Ending Inventory Calculator
Roll inventory forward: beginning inventory plus net purchases or production, minus cost of goods sold, gives the cost of stock still on hand.
Ending Inventory Calculator
Background.
Every unit of stock a business pays for ends the period in one of two places: sold, or still on the shelf. That is the whole logic of the inventory rollforward. Add what you started with to what you bought or made and you have the goods available for sale; take away the cost of what went out as sales, and what is left is ending inventory, the asset on the balance sheet that becomes next period's opening balance.
Many small businesses meet the equation backwards. Under a periodic system you count the shelves at year end, value the count, and back into cost of goods sold. Running it forwards is useful when a count is not possible or not yet done: monthly or quarterly figures between annual stocktakes, a check on what the books say should be there before the count starts, or an estimate of stock lost in a fire or burglary. The gap between the rolled-forward figure and a physical count is shrinkage, from theft, breakage, spoilage or miscounted deliveries, and it is often the most useful number the exercise produces.
The arithmetic is trivial; the discipline is in the inputs. All three figures must be at cost rather than selling price, in one currency, for one period, and under one cost-flow method, whether FIFO, weighted average or, under US GAAP only, LIFO. Net purchases should already reflect returns to suppliers, purchase discounts and inbound freight, and a manufacturer enters the cost of goods completed rather than raw purchases.
Mistakes here do not stay put. An ending inventory overstated by 5,000 understates cost of goods sold by 5,000 and inflates this period's gross profit by the same amount, then reverses next period when that figure opens the books.
What is ending inventory calculator?
Ending inventory is the cost of goods a business still holds when an accounting period closes: stock waiting to be sold and, for a manufacturer, raw materials and work in progress as well. It is reported as a current asset at cost, or at a lower amount if the goods have lost value. Because it is simply the part of goods available for sale that was not expensed as cost of goods sold, the two figures always divide one total between them, and an error in either is an equal and opposite error in the other.
How to use this calculator.
- Enter Beginning inventory as the closing inventory on the previous period's balance sheet. The page requires a figure above zero, so it does not cover a business's very first period.
- Enter Net purchases / production added: purchases at cost less returns, allowances and supplier discounts, plus freight-in and non-recoverable import duties. A manufacturer enters the cost of goods manufactured instead.
- Enter Cost of goods sold for the same period, taken from perpetual inventory records or, if you only know sales, estimated as sales × (1 − gross margin).
- Compare the ending inventory with a physical count if you have one. A shortfall is shrinkage or a recording error and is worth tracing before the books close.
The formula.
Ending inventory = beginning inventory + net purchases − cost of goods sold. The first two terms together make goods available for sale, the total cost of everything the business could have sold during the period. Cost of goods sold is the share of that total recognised as an expense; ending inventory is the share carried forward. There are no constants and no unit conversion, so the answer is in whatever currency the inputs share. All three inputs must be positive, and cost of goods sold may not exceed goods available for sale, because a business cannot sell stock it never had; a figure that would come out negative points to a missing purchase or a mismatched period. Each input moves the result one for one, upwards for the first two and downwards for cost of goods sold.
A worked example.
A shop opens the quarter with 50,000 of stock at cost and buys 120,000 more, net of returns and including freight, so goods available for sale come to 50,000 + 120,000 = 170,000. Its records put the cost of goods sold for the quarter at 130,000. What should remain is 170,000 − 130,000 = 40,000 of ending inventory. Now suppose the stocktake finds only 37,500. The missing 2,500 is shrinkage, about 1.47% of goods available. Once the books are corrected to the count, cost of goods sold rises to 132,500 and the quarter's gross profit falls by the same 2,500.
Frequently asked questions.
How can I estimate ending inventory without counting the stock?
Does choosing FIFO or LIFO change the ending inventory?
Should freight, import duty and VAT be included in net purchases?
My physical count is lower than the calculated figure. What happened?
Why does an inventory error affect two years of profit?
How does ending inventory feed into inventory turnover?
References& sources.
How this page was produced
- Published by
- Quanta Calculator
- Overseen by
- Daniel, Quanta Calculator Researcher
- Primary sources
- 3 cited below
- Method
- ending inventory = beginning inventory + purchases - COGS
- Published
- Last verified
Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 1560 calculators remain free
- No billing is enabled