COGS Calculator
Calculate your cost of goods sold, gross profit, and gross margin instantly. Free COGS calculator for small businesses — no signup required.
Ready to calculate
Enter your inventory values and purchases to calculate your cost of goods sold.
How to Use This COGS Calculator
- Enter your beginning inventory — the total dollar value of inventory you had at the start of the accounting period.
- Enter your purchases — the total cost of inventory purchased or produced during the period.
- Enter your ending inventory — the dollar value of inventory remaining at the end of the period.
- Optionally enter revenue — to see your gross profit and gross margin percentage alongside your COGS.
The calculator auto-calculates as you type, so you will see your numbers update in real time.
The Formula
Cost of Goods Sold:
COGS = Beginning Inventory + Purchases - Ending Inventory
With Revenue (optional):
Gross Profit = Revenue - COGS
Gross Margin % = (Gross Profit / Revenue) × 100
Example: A retail shop has $10,000 in beginning inventory, purchases $5,000 in new stock during the quarter, and has $3,000 left at the end:
- COGS = $10,000 + $5,000 - $3,000 = $12,000
- If quarterly revenue was $20,000: Gross Profit = $20,000 - $12,000 = $8,000
- Gross Margin = $8,000 / $20,000 = 40%
Understanding Your COGS Number
Your COGS figure tells you how much it actually costs to deliver the products you sell. A rising COGS relative to revenue means your margins are shrinking — time to negotiate with suppliers, optimize production, or adjust prices.
Here are typical COGS percentages by industry (as a percentage of revenue):
| Industry | Typical COGS % | Typical Gross Margin |
|---|---|---|
| Grocery / supermarket | 70–80% | 20–30% |
| Restaurant | 28–35% | 65–72% |
| Retail (general) | 50–65% | 35–50% |
| Manufacturing | 60–75% | 25–40% |
| E-commerce | 40–60% | 40–60% |
| Wholesale / distribution | 75–85% | 15–25% |
| Software / SaaS | 15–30% | 70–85% |
If your COGS percentage is significantly higher than the industry average, look at your supplier costs, production efficiency, and inventory management practices.
Frequently Asked Questions
What is cost of goods sold (COGS)?
How do I calculate COGS?
Why is COGS important for my business?
What is included in COGS?
What is the difference between COGS and operating expenses?
Can COGS be zero?
More Tools You Might Like
Gross Margin Calculator
Calculate gross margin percentage, gross profit, and effective markup instantly. Free gross margin calculator with industry benchmarks — no signup required.
Inventory Turnover Calculator
Calculate your inventory turnover ratio and days to sell inventory. Free calculator with industry benchmarks — see how fast your inventory moves.
Markup Calculator
Calculate markup percentage, selling price, and profit margin instantly. Free markup calculator for small businesses — no signup required.
Get notified of new tools
We build new free tools every week. Subscribe and never miss one.
No spam. Unsubscribe anytime.