Battle of the Frames: Build with Pigment AI and compete for $4,000 in prizes. Enter the contest →

Blog
Supply Chain

How to model inventory costs in a planning platform

Model inventory costs with a worked example. Connect stock flows, holding costs, service targets, working capital, and cash timing.

Kyle Rish

Kyle Rish

Head of Supply Chain Planning

Topic

Supply Chain

Read time

14 minutes

Published

November 19, 2026

Last updated

November 19, 2026

Table of Contents

Summary

Key takeaways

  • The decision: inventory cost modeling helps you decide how much stock to hold, where, and when, given demand, lead times, and service requirements
  • Total cost: carrying, ordering, and shortage costs each need their own driver
  • Carrying rate: build your own rate from components instead of borrowing a generic benchmark
  • Workflow: model stock movements and costs, test changes to assumptions, then compare inventory, service, and cost outcomes
  • Shared ownership: supply chain, procurement, and finance each own the assumptions they know best

What it means to model inventory costs

Every inventory decision answers the same question: how much stock should we hold, where, and when, given demand, lead times, and the service level we have promised? Modeling inventory costs puts a price on each answer, so planners can compare options instead of relying on rules of thumb.

To model inventory costs, you break total cost into carrying, ordering, and shortage costs. You tie each one to a driver, such as volume, value, lead time, or forecast error, at SKU, location, and month level. Then you test changes to those drivers and compare what happens to inventory levels, service, and cost.

A static carrying-cost percentage gives you one number for the whole business. A model shows which SKU (stock keeping unit, a single item you track), warehouse, or supplier drives that cost, so you know where to act.

US businesses hold a lot of stock. Census inventories-to-sales data from the October 15, 2026 release puts the total business inventories/sales ratio for the end of August 2026 at 1.33. That's down from 1.40 a year earlier, and means businesses held about 1.33 months of sales on hand, worth $2,818.8bn in total.

The inventory cost components and their drivers

Every inventory cost falls into one of 3 buckets: carrying, ordering, or shortage. Each bucket moves with a different driver, so you model them separately and then add them up.

Carrying costs

Carrying cost, also called holding cost, is what you pay to keep stock on hand over time. The carrying cost components (FHWA) fall into 4 groups: capital costs, inventory service costs (taxes and insurance), storage space costs, and inventory risk costs.

  • Capital cost: the return you give up on cash tied up in stock, based on your own cost of capital
  • Service cost: the taxes and insurance you pay on the inventory you hold
  • Storage cost: warehouse space, handling, and utilities for the space your stock takes up
  • Risk cost: shrinkage, damage, and obsolescence, meaning stock that loses value before it sells

Your carrying rate is company-specific, so build it bottom-up. Express each component as a percentage of average inventory value, then add them together. Finance should approve the capital cost component, since it depends on the company's cost of capital.

The formula is carrying cost = average inventory value × carrying rate. Keep each component as its own line, so a change in interest rates updates capital cost without touching storage.

Ordering costs and order quantity

Ordering cost is the fixed cost of placing and receiving one order, such as purchasing time, receiving, and invoice handling. The formula is ordering cost = cost per order × orders per year. Larger orders mean fewer orders, but they raise average inventory and carrying cost.

Economic order quantity (EOQ) finds the order size that balances those 2 costs. The formula is EOQ = √(2DS/H), where D is annual demand, S is cost per order, and H is carrying cost per unit per year. You get H from your carrying rate × unit cost.

eCampusOntario's open textbook walks through a worked example in its EOQ model explained chapter. With annual demand of 250,000 units, an order cost of $150, and a holding cost of $12 per unit, EOQ is 2,500 units.

EOQ assumes steady demand and no stockouts, so treat it as a starting point. In a planning model, you recalculate it per SKU whenever inputs change.

Shortage and stockout costs

A stockout happens when you can't fill demand from stock. The cost includes lost margin on the sale, expedited freight to recover, and contract penalties or lost customers.

Safety stock is extra inventory you hold to absorb swings in demand and supply. It's where carrying cost and shortage cost meet: more safety stock lowers stockout risk but raises carrying cost.

The driver is your service-level target, meaning the share of order cycles you aim to fill without a stockout. Higher targets need disproportionately more safety stock, so set them by product segment.

A practical workflow for modeling inventory costs

The workflow has 3 steps: model stock movements and costs, test changes to your assumptions, and compare the inventory, service, and cost implications. A planning platform keeps all 3 in one place, so planners work from the same numbers.

Pigment is a planning and decision platform that sits alongside your operational and accounting systems. Your ERP still runs transactions, and your warehouse system still runs the warehouse. Pigment does not come with a rigid inventory-cost model. Instead, supply chain teams build and own the model themselves, with flexible, multidimensional structures that adapt as fast as the market does.

The worked numbers below use one illustrative SKU, with invented figures to show the math.

Step 1: Model stock movements and costs

Dimensions

Dimensions are the lists your numbers break down by. Pick them based on where decisions happen, because every extra dimension multiplies the size of the model.

Add ABC analysis as an attribute on the SKU list. ABC analysis ranks items by annual value, so A items are the few that drive most of the spend. You can then set service levels and review cadences by class.

Cheerz offers an example of inventory planning in practice. It dimensionalized its bill of materials (the list of components in each product) in Pigment, with units, supply chain information, and variable costs per component. Read how Cheerz reduced stock levels by 30% on average.

Assumptions and inputs

Inputs are the numbers you feed the model. Give each one a named owner, so everyone knows who updates it and when. This is where supply chain, procurement, and finance share the decision.

  • Demand forecast: units by SKU, location, and week, owned by demand planning
  • Lead time and variability: average days from order to receipt and how much that varies, owned by procurement
  • Unit cost: purchase or standard cost per unit, owned by finance
  • Cost of capital: the rate behind capital cost, set with finance
  • Storage rates: cost per pallet or square foot by site, owned by logistics
  • Service-level targets: fill goals by ABC class, owned by supply chain leadership
  • Minimum order quantities (MOQs): the smallest order each supplier accepts, owned by procurement

Calculations

Each calculation feeds the next, so order matters. The illustrative SKU has a $40 unit cost, demand of 1,000 units a month, a $100 cost per order, and an 18% carrying rate.

  1. Order quantity: H = 18% × $40 = $7.20, so EOQ = √(2 × 12,000 × $100 ÷ $7.20) ≈ 577 units
  2. Projected inventory: opening + receipts − demand, so 600 + 577 − 1,000 = 177 units at month end
  3. Safety stock: Z × standard deviation of demand over the lead time, where Z is 1.65 for a 95% service level; assume 200 units
  4. Average inventory value: (order quantity ÷ 2 + safety stock) × unit cost = (289 + 200) × $40 = $19,560
  5. Carrying cost: average inventory value × carrying rate = $19,560 × 18% = $3,521 a year
  6. Ordering cost: cost per order × orders per year = $100 × 20.8 = $2,080 a year

The safety stock formula in step 3 comes from Peter King's APICS safety stock equations, published in APICS magazine in 2011.

Use this as a check: at EOQ, ordering cost ($2,080) roughly equals carrying cost on cycle stock (289 × $7.20 = $2,081). If those lines drift apart, an order size is off.

Step 2: Test changes to your assumptions

A scenario is a version of the plan with one or more inputs changed. Sensitivity analysis asks which input moves total cost the most, so you know where to focus. Changing one assumption at a time keeps the cause and effect clear.

Start with a handful of what-if cases:

  • Demand drop: demand falls 10%, so you see how much excess stock and carrying cost build up
  • Longer lead time: a supplier adds 2 weeks, which raises safety stock and stock in transit
  • Higher cost of capital: the capital part of your carrying rate rises, which lowers EOQ for every SKU
  • Supplier tariff: unit cost rises for one supplier, so you test moving volume to a backup

In the illustrative SKU, raising the carrying rate from 18% to 24% makes H $9.60 and drops EOQ to 500 units. You place more, smaller orders, and cycle stock falls.

For a structured way to build and compare cases, use our supply chain scenario playbook.

Step 3: Compare inventory, service, and cost implications

For each case, put the results side by side: projected inventory by location, the service level you can still meet, and total cost split into carrying, ordering, and shortage. The goal is a trade-off you can explain, such as how much extra safety stock buys a higher service level, and what it costs.

A change that cuts carrying cost but pushes shortage cost or service risk above your target is not an improvement. Compare all three before you choose.

Connecting inventory to demand, supply, and finance

An inventory cost model is only as good as the plans feeding it. Demand sets what you need, supply sets what arrives, and finance-approved assumptions set the cost of holding it. Planners can align supply, demand, and finance around one set of numbers, rather than reconciling separate spreadsheets.

Demand and supply inputs

Forecast error is the gap between forecast and actual demand. It drives both safety stock and excess stock you can't sell.

The McKinsey forecast accuracy findings estimate roughly 2.7 percentage points less finished-goods inventory for every percentage point of forecast accuracy gained. McKinsey notes the relationship varies by industry and company maturity.

Our overview of demand and inventory planning covers how forecasts flow into stock targets. The supply plan sets receipts, lead times, and capacity, which fill the receipts line in projected inventory. Our glossary explains how supply planning works and the trade-offs it involves.

A short note on margin and working capital

Inventory ties up cash, and carrying costs such as storage, shrinkage, and obsolescence reach the income statement. Where your model uses finance-approved assumptions, such as unit cost and cost of capital, you can show finance how a stock decision changes these figures. Keep this secondary: the model's job is to support the stock decision, and finance owns the financial view.

Governance and common modeling mistakes

Review assumptions in your monthly sales and operations planning (S&OP) cycle, where demand, supply, and finance agree on one plan.

Save each approved plan as a version, so you can compare plan against actuals and see which assumption drifted.

These mistakes come up often:

  • Single blended carrying rate: one rate for all items hides how much obsolescence risk differs by product
  • Ignoring lead-time variability: using average lead time alone understates safety stock for unreliable suppliers
  • Stale monthly spreadsheets: Cheerz's Excel process only allowed monthly updates, which forced it to carry extra stock
  • No shared ownership: assumptions that sit with one team go stale, so give procurement, supply chain, and finance each their own inputs
  • EOQ in isolation: optimizing order size alone ignores MOQs, warehouse capacity, and freight price breaks

Our article on reaction time for planners explains why the time to a confident decision is the metric to watch.

Start with your A items in one location, then expand once the cost lines reconcile with finance. You can pull data from enterprise resource planning (ERP) and data lake systems such as SAP, NetSuite, Snowflake, and BigQuery through Pigment data integrations.

See it in action

Watch the Pigment demo, Maximizing Demand and Inventory Efficiency with Pigment, to see how planners work with demand and inventory in one place. Request a demo to talk through your own inventory planning model or start your 14-day Pigment free trial.

Frequently Asked Questions

No items found.

See Pigment in action

The fastest way to understand Pigment is to see it in action. Sign up today and explore how agentic AI can transform the way you plan.

Three colleagues focused on an iMac screen in a bright office with plants and modern artwork.

From 8 days to 4 min

Update P&L actuals & financial forecasting

80%

Time cut on data aggregation

12 hours

Saved per month on executive reporting

6 days faster

For scenarios creation and analysis