Start free

Beginning and ending inventory: formulas and examples

By mise · Updated September 29, 2026

Quick answer: ending inventory is the value of what you count at the end of a period; it becomes the next period's beginning inventory. The link to COGS is: beginning inventory + purchases − ending inventory = COGS, so ending inventory = beginning inventory + purchases − COGS. Value counts at the latest purchase price (common in restaurants), FIFO or weighted average — and stay consistent.

Two numbers from two counts drive your whole cost of goods. Here is how they fit together and how to value them.

The formulas

COGS = beginning inventory + purchases − ending inventory
Ending inventory = beginning inventory + purchases − COGS
Example: March 1 count $9,400 (beginning). March purchases $31,200. March 31 count $10,100 (ending). COGS = 9,400 + 31,200 − 10,100 = $30,500. The $10,100 is April's beginning inventory.

Valuation methods

MethodHowUsed by
Latest purchase priceCount × last invoice priceMost restaurants and bars
FIFOOldest cost used first; stock valued at newest costsRetail, accounting
Weighted averageAverage cost of units availableAccounting systems

For weekly food cost, latest price is practical and close to FIFO when stock turns fast. Whatever you choose, use the same method every period.

Where errors come from

In mise each closed count is valued at the price you paid and becomes the starting point of the next period automatically.

Count your stock by scanning barcodes

Point the camera and the product comes up complete: name, brand, category, size and photo — the mise AI finds it from the barcode or a photo. 7-day free trial, no card.

Start free
Download on the App StoreGet it on Google Play
Keep reading Food cost calculator Restaurant COGS: how to calculate cost of goods sold Restaurant inventory turnover: formula and industry average All guides

Frequently asked questions

How do you calculate ending inventory?

Count and value what is on hand at the end of the period. Or, from the books: beginning inventory + purchases − COGS.

Is ending inventory the same as next period's beginning inventory?

Yes, as long as both refer to the same moment and valuation method.