Calculate total inventory cost from annual demand, order size, ordering cost and holding cost, or find EOQ, carrying cost at a typical rate, or COGS.

Purchase cost
Blank excludes purchase cost.


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
Annual ordering and holding costFinds the yearly cost of placing orders and holding stock for a chosen order sizeRequires the annual demand, the quantity per order, the cost per order and the holding cost per unit per year, with the unit purchase cost as an option
Economic order quantity (EOQ)Finds the order size that gives the lowest ordering plus holding costRequires the annual demand, the cost per order and the holding cost per unit per year
Annual carrying costEstimates the yearly cost of holding inventory as a share of its valueRequires the average inventory value and the annual carrying rate
Cost of goods sold (COGS)Finds the cost of the inventory sold during a periodRequires the beginning inventory, the net purchases and additions, and the ending inventory

All amounts are in US dollars. The first two functions also show the number of orders per year and the ordering and holding costs separately. The carrying rate is prefilled with 25% and can be entered as a percent or a decimal.

Inventory Cost Formulas

TC = (D รท Q) ร— S +
(Q รท 2) ร— H [1]
TCAnnual ordering and holding cost ($)
DAnnual demand (units per year)
QQuantity per order (units)
SCost of placing one order ($)
HCost of holding one unit for a year ($)

Annual ordering and holding cost

D รท Q is the number of orders in a year, and Q รท 2 is the average stock when each order is used up evenly before the next one arrives [1]. With a demand of 1,200 units, orders of 100, $50 per order and $2 per unit per year, there are 12 orders costing $600 and an average of 50 units costing $100 to hold, for $700 in total. Entering a unit purchase cost adds D times that cost: at $10 a unit the total becomes $12,700.

Economic order quantity (EOQ)

EOQ = โˆš(2 ร— D ร— S รท H) [1]

This is the order size at which the total above is smallest [1]. For the same demand and costs it is 244.949 units, giving 4.8990 orders a year and a combined cost of $489.90. The purchase cost of the goods does not change the answer, because it is the same at every order size. Both the cost per order and the holding cost must be above zero.

Annual carrying cost

Carrying cost = V ร— r

V is the average inventory value and r is the annual carrying rate. $50,000 of inventory at 25% costs $12,500 a year to carry. The rate should cover everything it costs to keep stock, such as capital tied up, storage, insurance and losses. One MIT logistics course lists insurance at 2%, maintenance at 6% and the return given up on other investments at 7 to 10% of inventory value [1]. The quick picks of 15%, 20%, 25%, 30% and 40% are planning values, not measured rates.

Cost of goods sold (COGS)

COGS = BI + P โˆ’ EI [2]

BI is the beginning inventory, P is net purchases and other additions for the period and EI is the ending inventory. Beginning inventory of $500 plus $400 of purchases less $300 of ending inventory gives $600. On a US tax return the additions are listed line by line: Schedule C adds purchases, labor, materials and supplies and other costs to the beginning inventory before the ending inventory is subtracted [2], and Form 1125-A does the same for corporations and partnerships [3]. These line items are as of the 2025 Publication 334 and the November 2024 revision of the form. The result also shows the goods available for sale and the average of the beginning and ending inventory.

Limits of This Estimate

  • The ordering and holding functions assume steady, known demand, orders that arrive at once and no stockouts [1]. Safety stock and quantity discounts are not included, and the EOQ can be a fraction of a unit.
  • The carrying rate is entered, not measured, and the 25% default is a typical planning figure. These estimates are based on the best available data and estimations.
  • The COGS function is the basic inventory identity. It does not choose a valuation method such as FIFO or LIFO, and it is not a tax determination.

Sources