COGS Calculator — Free Cost of Goods Sold Tool for Business
Calculate your cost of goods sold, gross profit, and gross margin percentage instantly. Free COGS calculator for retail and small businesses — no signup.
Ready to calculate
Enter your inventory values and purchases to calculate your cost of goods sold.
Understanding your cost of goods sold (COGS) is fundamental to running a profitable business. Whether you’re a retailer tracking inventory flows or a manufacturer calculating production costs, COGS directly impacts your gross profit, pricing strategies, and tax obligations. Our free COGS calculator helps you quickly determine your true cost of sales, so you can make informed decisions about pricing, purchasing, and profitability.
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.
Why COGS Matters for Your Business
Cost of goods sold is more than just an accounting figure — it’s your business’s profitability foundation. Every improvement in COGS directly flows to your bottom line. Lower your COGS by 5%, and that improvement goes straight to gross profit without increasing sales efforts.
COGS also drives critical business decisions. Should you switch suppliers? Invest in production equipment? Adjust your pricing? The answers depend on how these changes affect your COGS. Many businesses focus heavily on increasing revenue while ignoring COGS optimization, missing significant profit opportunities.
For tax purposes, COGS is deductible from revenue, reducing your taxable income. Accurate COGS tracking ensures you’re not overpaying taxes or facing issues during audits. The IRS requires businesses that sell products to use COGS methodology rather than deducting expenses as they occur.
Most importantly, COGS helps you understand unit economics. If your COGS per unit is $12 and you’re selling for $15, you have only $3 gross profit to cover all other business expenses. This clarity helps you set minimum prices, evaluate new products, and identify your most profitable offerings.
Common COGS Mistakes to Avoid
• Mixing operating expenses with COGS — office rent, marketing, and administrative salaries don’t belong in COGS, even though they feel like business costs
• Forgetting about freight and shipping costs — if you paid to get materials to your business or products to customers, these often count as part of COGS
• Using outdated inventory valuations — especially during inflation, old cost assumptions can make your COGS calculations meaningless
• Ignoring labor efficiency — direct labor is part of COGS, so inefficient production processes inflate your cost of goods sold unnecessarily
Pro Tips for Managing COGS
• Track COGS monthly, not annually — trends matter more than absolute numbers. A gradually increasing COGS percentage signals trouble ahead.
• Negotiate payment terms with suppliers — even if unit costs stay the same, extending payment terms improves your cash flow and working capital
• Consider volume discounts strategically — buying more for lower unit costs only helps if you can sell the inventory before it becomes obsolete
• Audit your inventory counting process — small errors in beginning/ending inventory create large swings in COGS calculations
Detailed Worked Example: Retail Clothing Store
Sarah owns a boutique clothing store and wants to calculate her COGS for Q3 to understand her profit margins before the holiday season.
Starting position (July 1):
- Beginning inventory: $25,000 (summer collection)
Q3 Purchases:
- August: $15,000 (fall merchandise)
- September: $8,000 (additional fall items)
- October: $12,000 (early holiday inventory)
- Total purchases: $35,000
Ending position (September 30):
- Ending inventory: $18,000 (unsold items)
COGS Calculation: COGS = $25,000 + $35,000 - $18,000 = $42,000
Results analysis:
- Q3 revenue: $68,000
- Gross profit: $68,000 - $42,000 = $26,000
- Gross margin: $26,000 ÷ $68,000 = 38.2%
What this means: Sarah’s 38.2% gross margin falls within the typical retail clothing range (35-50%), but it’s on the lower side. She should investigate whether slow-moving summer inventory is inflating her COGS or if her wholesale costs are too high. For comparison with our markup calculator, her effective markup was 61.9% ($26,000 profit ÷ $42,000 cost).
Understanding these numbers helps Sarah make informed decisions about holiday pricing, spring buying, and whether to clear remaining summer inventory at a discount. She can also compare her performance to industry benchmarks using our gross margin calculator to see where she stands competitively.
Related Tools
Gross Margin Calculator — Free Profit Margin Tool
Calculate gross margin percentage, gross profit, and effective markup instantly. Free gross margin calculator with industry benchmarks — no signup required.
Inventory Turnover Calculator — Free Stock Analysis Tool
Calculate your inventory turnover ratio and average days to sell inventory. Free inventory turnover calculator with industry benchmarks — no signup required.
Markup Calculator — Free Price & Profit Tool for Business
Calculate markup percentage, selling price, and profit margin instantly. Free markup calculator for retailers and small businesses — no signup required.
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?
Get notified of new tools
We build new free tools every week. Subscribe and never miss one.
No spam. Unsubscribe anytime.