About the Cost of Goods Sold Calculator
COGS from beginning inventory, purchases and ending inventory — the periodic inventory method.
Also known as: cogs formula, cost of sales, cost of goods sold.
How to use this calculator
- Enter beginning inventory, purchases, ending inventory.
- The result updates instantly as you type — press Calculate (or Enter) at any time.
- Open “Step-by-step” to see how the answer was worked out.
- Use Copy result or Share to save the answer or send a link with your inputs.
Formula
COGS = beginning inventory + purchases − ending inventory
Worked example
Using the values pre-filled in the calculator above:
- Beginning inventory = 45,000
- Purchases = 120,000
- Ending inventory = 38,000
the calculator returns:
- COGS: 127,000
Working
45,000 + 120,000 − 38,000