COGS Calculator
Enter beginning inventory, purchases, and ending inventory to calculate COGS, gross profit, and gross margin instantly.
Inventory & Cost Inputs
$
$
$
$
Cost of Goods Sold (COGS)
—
Gross Profit
—
Revenue − COGS
Gross Margin
—
Gross Profit ÷ Revenue
| Item | Amount |
|---|---|
| Beginning Inventory | — |
| + Purchases / Production Cost | — |
| − Ending Inventory | — |
| = COGS | — |
| Revenue | — |
| Gross Profit | — |
| Gross Margin | — |
Copied to clipboard!
Summary
Enter beginning inventory, purchases, and ending inventory to calculate COGS, gross profit, and gross margin instantly.
How it works
- Enter the value of inventory you had at the start of the period.
- Enter the total cost of goods purchased or produced during the period.
- Enter the value of inventory remaining at the end of the period.
- Optionally enter your total revenue to see gross profit and gross margin.
- Results update instantly as you type.
Use cases
- Calculate COGS for monthly, quarterly, or annual income statements.
- Determine gross profit for a product line or entire store.
- Estimate gross margin percentage to benchmark against industry standards.
- Compare COGS across periods to spot inventory inefficiencies.
- Prepare financial reports for investors or lenders.
- Verify accounting entries during an audit.
Frequently Asked Questions
Related tools
Last updated: 2026-05-29 ·
Reviewed by Nham Vu