Ending Inventory Calculator: From COGS, the Gross Profit Method or the Retail Method
Calculate ending inventory from beginning inventory, purchases and COGS, or estimate it with the gross profit or retail method, with turnover and days on hand.
How it works
Goods available for sale = beginning inventory + net purchases · COGS known: ending inventory = goods available − COGS · Gross profit method: estimated COGS = net sales × (1 − gross profit rate); ending inventory = goods available − estimated COGS · Retail method: cost-to-retail ratio = goods available at cost ÷ goods available at retail; ending inventory at retail = goods available at retail − markdowns − net sales − employee discounts and shrinkage; ending inventory at cost = ending retail × ratio · Turnover = COGS ÷ average inventory
Ending inventory is the cost of the goods still on hand at the end of a period. Everything you had at the start plus everything you bought is the goods available for sale; part of it was sold (cost of goods sold) and the rest is ending inventory. When you know COGS, for example from a perpetual inventory system, ending inventory is simply goods available minus COGS. When you do not know COGS and cannot count stock, accountants use two estimating methods. The gross profit method takes your normal gross profit rate from past periods, estimates COGS as sales × (1 − rate), and subtracts it from goods available. You can enter the rate as a margin on sales or as a markup on cost; a 50% markup equals a 33.33% margin. The retail method, used by stores that track goods at selling prices, works out what share of retail value your goods cost (the cost-to-retail ratio) and applies it to the retail value left on the shelves. The average cost version includes markdowns in the ratio; the conventional version leaves them out, which approximates lower of cost or market and gives a more conservative value. Employee discounts and expected shrinkage reduce the retail value on hand but, unlike markdowns, never enter the ratio. The calculator also gives gross profit, inventory turnover, days on hand and, if you enter a physical count, the shrinkage. To value inventory layer by layer with FIFO, LIFO or weighted average cost, use the FIFO LIFO calculator; to solve for COGS when you know ending inventory, use the COGS calculator.
Worked example
A shop starts the year with $50,000 of inventory at cost and makes $120,000 of net purchases, so $170,000 of goods were available for sale. Its cost of goods sold was $125,000, so ending inventory is $170,000 − $125,000 = $45,000. With $200,000 of net sales, gross profit is $75,000 (a 37.50% margin). Average inventory is ($50,000 + $45,000) ÷ 2 = $47,500, so inventory turned over $125,000 ÷ $47,500 = 2.63 times, about 138.7 days of stock on hand.
Sources: Omni Calculator: Ending inventory (beginning inventory + net purchases − COGS example) · SuperfastCPA: How to estimate ending inventory (gross profit and retail method examples) · AccountingCoach: Verifying ending inventory (gross profit and retail methods)
Frequently asked questions
What is the formula for ending inventory?
Ending inventory = beginning inventory + net purchases − cost of goods sold. For example, $25,000 + $30,000 − $40,000 = $15,000. If you do not know COGS, estimate it with the gross profit or retail method.
How does the gross profit method estimate ending inventory?
Multiply net sales by (1 − normal gross profit rate) to estimate COGS, then subtract that from goods available for sale. With $500,000 of goods available, $600,000 of sales and a 40% gross profit rate, estimated COGS is $360,000 and ending inventory is $140,000.
How does the retail inventory method work?
Divide goods available at cost by goods available at retail to get the cost-to-retail ratio. Subtract sales (and markdowns) from goods available at retail to get ending inventory at retail, then multiply by the ratio. With $80,000 cost and $100,000 retail available and $10,000 left at retail, ending inventory is $10,000 × 80% = $8,000.
When are inventory estimation methods used?
For monthly or quarterly statements without a stocktake, to check whether a count looks reasonable, for budgets, and to estimate goods lost in a fire, flood or theft for an insurance claim. Annual financial statements normally need a physical count.
Does FIFO or LIFO change ending inventory?
Yes. When prices are rising, FIFO leaves the newest, more expensive units in ending inventory, so it gives a higher ending inventory and lower COGS than LIFO. This calculator works from totals; use the FIFO LIFO calculator to value cost layers.
Related calculators
Estimates from the gross profit and retail methods are approximations. Follow your accounting framework and your accountant’s guidance for financial statements and tax returns.