📈
📈 Business tools

Ending Inventory Calculator (incl. gross profit method estimate)

Results update as you type. Any currency.

Your numbers

Understanding the ending inventory calculator — concept and principle

This calculator finds ending inventory at cost: what you started with, plus what you bought, minus what you sold. If you know cost of goods sold from your records, it uses that; if not, it estimates COGS with the gross profit method from sales and a typical margin. It also shows goods available for sale, gross profit, inventory turnover and days of inventory. Retailers, bookkeepers and insurance claim preparers use it.

Estimate stock without countingEstimate stock without counting: $40,000 + $185,000 (goods available $225,000); $310,000 × (1 − 42%) (estimated COGS $179,800) → $45,200 (estimated ending inventory)Estimate stock without counting%$40,000 + $185,000goods available $225,000$310,000 × (1 − 42%)estimated COGS $179,800$45,200estimated ending inventory
Estimate stock without counting — with the default inputs: $45,200.

How it is calculated

The principle

Inventory works like a tank: what flows in (beginning stock plus purchases) either flows out as goods sold or stays in the tank. Knowing three of the four quantities gives the fourth. When there is no stock count, for a monthly report or to estimate stock lost in a fire or theft, the gross profit method uses a recent gross margin to turn sales into an estimate of COGS. The estimate is only as good as that margin: price changes, a different product mix or shrinkage make the true figure differ.

Worked example

Defaults: beginning inventory 40,000; purchases 185,000; gross profit method; net sales 310,000; margin 42%.

  1. Goods available = 40,000 + 185,000 = $225,000.
  2. COGS ≈ 310,000 × (1 − 0.42) = $179,800.
  3. Ending inventory = 225,000 − 179,800 = $45,200.
  4. Gross profit = 310,000 − 179,800 = $130,200; margin 42%.
  5. Average inventory = (40,000 + 45,200) ÷ 2 = 42,600; turnover = 179,800 ÷ 42,600 = 4.22.
  6. Days of inventory = 365 × 42,600 ÷ 179,800 = 86.
How Ending inventory changes with Beginning inventory (at cost)How Ending inventory changes with Beginn…020,00040,00060,00080,000100,00010,00020,00030,00040,00050,00060,00080,000Example: $45,200Beginning inventory (at cost)
Each point is the calculator re-run with only “Beginning inventory (at cost)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Beginning inventory (at cost)Ending inventory
10,000$15,200
20,000$25,200
30,000$35,200
40,000$45,200
50,000$55,200
60,000$65,200
80,000$85,200

How to read the result

The gross profit method gives a reasonable estimate between counts, but the year-end figure in your accounts must still come from a physical count. If a later count is well below the estimate, the difference suggests shrinkage, errors or a changed margin. Turnover and days of inventory show how long stock sits before it sells.

Common mistakes

Keep in mind: Estimates are not audited figures. For insurance claims or tax, follow the insurer's and tax authority's requirements.

Frequently asked questions

When is the gross profit method used?

For interim reports, for checking a physical count and for estimating inventory destroyed in a fire or lost to theft.

Is gross margin the same as markup?

No. Margin is profit ÷ sales; markup is profit ÷ cost. A 42% margin is a markup of about 72%.

Why might the estimate be wrong?

Because the margin changes with prices, discounts, product mix and shrinkage.

Sources: OpenStax, Principles of Accounting, Volume 1: Financial Accounting, section 10.2 "Calculate the Cost of Goods Sold and Ending Inventory Using the Periodic Method" · CFA Institute, "CFA Program Level II Financial Ratio List"

Checked 9 Nov 2026. Goods available for sale − cost of goods sold = ending inventory: OpenStax, “Principles of Accounting, Volume 1: Financial Accounting”, section 10.2 “Calculate the Cost of Goods Sold and Ending Inventory Using the Periodic Method”. Gross profit margin = gross profit ÷ total revenue and inventory turnover = COGS ÷ average inventory: CFA Institute, “CFA Program Level II Financial Ratio List” (ratios 7 and 15).

📈 All business tools →🌍 Calculators by country →