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.
Related Calculators
- Cost of Sales Calculator
- Wholesale Price Calculator
- Batch Size Calculator
- Conversion Cost Calculator
- All Business Calculators
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Annual ordering and holding cost | Finds the yearly cost of placing orders and holding stock for a chosen order size | Requires 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 cost | Requires the annual demand, the cost per order and the holding cost per unit per year |
| Annual carrying cost | Estimates the yearly cost of holding inventory as a share of its value | Requires the average inventory value and the annual carrying rate |
| Cost of goods sold (COGS) | Finds the cost of the inventory sold during a period | Requires 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
(Q รท 2) ร H [1]
| TC | Annual ordering and holding cost ($) |
| D | Annual demand (units per year) |
| Q | Quantity per order (units) |
| S | Cost of placing one order ($) |
| H | Cost 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)
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
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)
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
- Massachusetts Institute of Technology OpenCourseWare, ESD.273J Logistics and Supply Chain Management, Lecture 2: Inventory and EOQ Models: ordering and holding cost, the EOQ formula, its assumptions and carrying cost components
- Internal Revenue Service, Publication 334 (2025), Tax Guide for Small Business, Chapter 6: how cost of goods sold is figured on Schedule C
- Internal Revenue Service, Form 1125-A, Cost of Goods Sold (Rev. November 2024): cost of goods sold lines for corporations and partnerships
