T
TinyBizTools

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

  1. Enter your beginning inventory — the total dollar value of inventory you had at the start of the accounting period.
  2. Enter your purchases — the total cost of inventory purchased or produced during the period.
  3. Enter your ending inventory — the dollar value of inventory remaining at the end of the period.
  4. 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):

IndustryTypical COGS %Typical Gross Margin
Grocery / supermarket70–80%20–30%
Restaurant28–35%65–72%
Retail (general)50–65%35–50%
Manufacturing60–75%25–40%
E-commerce40–60%40–60%
Wholesale / distribution75–85%15–25%
Software / SaaS15–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

Frequently Asked Questions

What is cost of goods sold (COGS)?
COGS represents the direct costs of producing or purchasing the goods your business sold during a specific period. It includes raw materials, direct labor, and manufacturing overhead — but not indirect expenses like rent, marketing, or administrative salaries.
COGS = Beginning Inventory + Purchases During Period - Ending Inventory. For example, if you start with $10,000 in inventory, purchase $5,000 more, and end with $3,000, your COGS is $12,000.
COGS directly affects your gross profit and gross margin, which are key indicators of business health. Tracking COGS helps you set prices, control costs, and make informed decisions about production and purchasing. It is also required for tax reporting.
COGS typically includes raw materials, direct labor costs, manufacturing overhead, freight and shipping for materials, and any costs directly tied to production. It does not include selling expenses, administrative costs, or rent on office space.
COGS covers the direct costs of producing goods (materials, direct labor). Operating expenses are indirect costs of running the business (rent, utilities, marketing, administrative salaries). Revenue minus COGS equals gross profit; gross profit minus operating expenses equals operating income.
Yes, COGS can be zero for service-based businesses that do not sell physical products. However, many service businesses still track direct costs (like subcontractor fees) as a form of COGS to calculate their gross margin accurately.
📬

Get notified of new tools

We build new free tools every week. Subscribe and never miss one.

No spam. Unsubscribe anytime.