Last reviewed August 28, 2026

COGS Calculator: Formula, Scenarios & Interpretation

Calculate cost of goods sold from beginning inventory, purchases and ending inventory, then connect it to gross profit.

What the calculation measures

This periodic-inventory formula connects inventory movement to the cost recognized against sales.

How to interpret the result

Use consistent inventory valuation rules and accounting periods so COGS comparisons remain meaningful.

Run scenarios instead of one answer

Change the most uncertain input and compare outcomes. A calculator is most useful when it shows sensitivity, not when one estimate is treated as a guarantee.

Limits and assumptions

Accounting standards, manufacturing overhead and write-downs can require professional accounting treatment.

Try the browser tool

Work with your file locally.

Open COGS Calculator