Inventory Cost

Inventory cost is the total of purchase cost, ordering cost, holding cost, and shortage cost, not just the price you paid a supplier. Most businesses only track the first one, which is why "we're profitable on paper" and "we're short on cash" can both be true at once.

By Tibeau De Grauwe, FounderUpdated September 2026

  • 25 products free
  • No credit card
  • 10-min setup

What is inventory cost?

Inventory cost is the full cost of buying, ordering, storing, and running short of stock, combined into one figure. The formula most businesses and inventory management texts use is: Inventory Cost = Purchase Cost + Ordering Cost + Holding Cost + Shortage Cost.

Most businesses track only the first term, purchase cost, because it's the one that shows up on a supplier invoice. The other three are real money, they just don't arrive as a single visible charge, which is exactly why they get underestimated until a margin review or a cash crunch forces the question.

The four components of inventory cost

Each component answers a different question about where money actually goes once you decide to stock a product.

  • Purchase cost: what you paid the supplier for the goods themselves, the number on the invoice
  • Ordering cost: the labor, freight, and administrative cost of placing and receiving each purchase order, separate from the goods themselves
  • Holding cost (carrying cost): the cost of storing that inventory over time, capital tied up, warehouse space, insurance, and the risk of obsolescence or shrinkage
  • Shortage cost: lost sales, expedited replacement shipping, and customer goodwill damage from not having stock when a customer wants it

A worked example

Take a business that buys $80,000 of a product over a year (purchase cost). Placing and receiving those orders, staff time, freight-in, receiving inspection, costs $3,000 across the year (ordering cost). Average inventory value for that product sits at $20,000, and at a 25% holding cost rate, that adds $5,000 (holding cost). Two stockouts during the year cost an estimated $2,000 in lost sales and rush-shipped replacements (shortage cost).

Total inventory cost: $80,000 + $3,000 + $5,000 + $2,000 = $90,000, about 12.5% above the $80,000 purchase price alone. A business that only tracks purchase cost sees a product that "costs $80,000." The real figure is $90,000, and the $10,000 gap is exactly the part most spreadsheets never capture.

Why tracking purchase cost alone gives you the wrong picture

A product with a low purchase price can still be expensive to stock if it ties up a lot of warehouse space, moves slowly, or triggers frequent small orders instead of a few large ones. A product with a higher purchase price can be cheap to stock overall if it turns over fast and rarely runs short. Comparing products on purchase price alone, without ordering, holding, and shortage cost, routinely leads to stocking decisions that look fine on the invoice and lose money in practice.

This is also why 'we're profitable on paper' and 'we keep running out of cash' can both be true: gross margin is calculated off purchase cost, but ordering, holding, and shortage costs still draw down cash even though they don't show up in that margin line.

Where each number actually comes from

Purchase cost comes straight from supplier invoices and purchase orders, the easiest of the four to pull. Ordering cost needs a rough allocation of staff time and freight-in per order, most businesses estimate this once a year rather than tracking it per order. Holding cost is calculated from average inventory value and a holding cost rate, worked through in detail on the carrying cost page linked below. Shortage cost is the hardest to pin down exactly, since a lost sale rarely gets logged anywhere, but a stockout log paired with average order value gives a usable estimate.

Inventory software helps most with the two components that are otherwise easy to lose track of: average inventory value (needed for holding cost) and a running stockout history (needed for shortage cost), both of which are difficult to reconstruct by hand after the fact.

Trusted by small businesses

What our customers say

Super Kind! Quick replies from their support and very easy fixes, changed the dashboard a bit and customized it. Also gave me 450 items extra on the free plan just for me. Highly recommend and again great service!

Erasable Trading AU

Best customer service! Stockflow's customer support is fast and extremely helpful. They assisted me with customization of the software to improve my experience as a user.

Justin M.

Co-Owner, Consumer Goods

Frequently asked questions

What is the formula for inventory cost?
Inventory Cost = Purchase Cost + Ordering Cost + Holding Cost + Shortage Cost. Purchase cost is what you paid the supplier; the other three are ordering, storage, and stockout costs that rarely show up as a single line item.
Is inventory cost the same as carrying cost?
No. Carrying cost (also called holding cost) is one of the four components of total inventory cost, specifically the cost of storing inventory over time. Inventory cost also includes purchase cost, ordering cost, and shortage cost.
What is shortage cost in inventory management?
Shortage cost is the cost of not having enough stock when a customer wants it: lost sales, expedited replacement shipping, and the goodwill or repeat-business damage from a stockout. It never appears on an invoice, which is why it gets left out of most cost calculations.
Why does purchase cost alone give a misleading picture of inventory cost?
Because ordering, holding, and shortage costs still draw down cash and margin even though they don't appear on a supplier invoice. A low-priced product that moves slowly and ties up warehouse space can cost more overall than a higher-priced product that turns over quickly.
How do I calculate holding cost for the inventory cost formula?
Holding cost = average inventory value multiplied by your holding cost rate (commonly 20-30% per year). See the carrying cost page for the full formula, a worked example, and what typically makes up that percentage.