How To Calculate Cost of Goods Sold (COGS Calculator)

Cost of Goods Sold Formula and Calculator

If you sell a physical product, understanding your Cost of Goods Sold (COGS) isn’t optional. It’s the backbone of your business finances. COGS tells you how much money it really takes to produce or purchase what you sell. Once you know that, you can make better pricing decisions, protect your margins, and see exactly where profit is being lost.

Think of COGS as the truth serum for your business. It cuts through what you think you’re earning and reveals what’s actually left after production. Whether you run a supplement brand, an e-commerce store, or a local manufacturer, mastering COGS changes how you operate.

What Cost of Goods Sold Actually Means

COGS includes every direct cost tied to making your product ready to sell. If you’re a manufacturer, that means ingredients, packaging, and labor. If you’re a reseller, it means the purchase price from your supplier plus shipping and import fees.

What it doesn’t include is just as important. Your rent, advertising, office staff, and marketing tools are not part of COGS. Those are overhead expenses. COGS only tracks what directly touches the product.

COGS Calculator

All amounts are in US dollars

COGS
$0.00
Gross profit optional
$0.00
Gross margin optional
0%
Formula view
COGS equals Beginning inventory plus Purchases plus optional add ons minus Ending inventory all values in USD

The Cost of Goods Sold Formula

Here’s the classic formula every business uses to calculate COGS

COGS = Beginning Inventory + Purchases during the period − Ending Inventory

It looks simple, but it tells you a lot about how your inventory and cash move. Let’s walk through it with an example.

Say you start the year with 10000 dollars in inventory. You buy another 5000 dollars worth of materials. By the end of the year, you have 4000 dollars of product left on your shelves.

Your COGS is 10000 + 5000 − 4000 = 11000.

That means you spent 11000 dollars to make or buy what you sold during that period.

Why COGS Matters More Than You Think

Your COGS affects every major part of your business. It decides how much you earn, how much you keep, and even how much tax you pay.

If your COGS is too high, your profits shrink fast. Knowing it allows you to find ways to reduce raw material costs, negotiate with suppliers, or improve efficiency. It also gives you the confidence to set prices that truly reflect your value.

And yes, the IRS cares about it too. COGS is subtracted from your revenue to determine taxable income. That means if you track it correctly, you could lower your taxes legally by reflecting your true expenses.

What To Include In COGS

If you’re a manufacturer

  • Raw materials and ingredients
  • Packaging supplies and containers
  • Direct labor costs (people assembling or producing your goods)
  • Factory utilities or equipment depreciation

If you’re a reseller

  • Cost of purchasing your products
  • Shipping and handling fees
  • Customs or import duties

Don’t include marketing, office rent, sales commissions, or software tools. They’re not directly tied to making or buying your product.

How To Calculate It Step By Step

Step one find your beginning inventory from your last accounting period
Step two add all new purchases or manufacturing costs during the current period
Step three subtract your ending inventory value

That number is your Cost of Goods Sold. Once you have it you can divide your total sales by your COGS to find your gross margin percentage — the most important indicator of how efficiently you operate.

Example

Imagine you run a supplement brand. You start with 8000 dollars of product in stock. You manufacture or buy another 12000 dollars worth during the year. You end with 5000 dollars of inventory still on your shelves.

Your COGS is 8000 plus 12000 minus 5000 which equals 15000 dollars. If you sold 30000 dollars worth of product, your gross profit is 15000 dollars and your gross margin is 50 percent. That’s a strong business if your overhead is managed well.

Final Thoughts

When you truly understand your Cost of Goods Sold, you stop guessing and start managing your business like a pro. COGS isn’t just an accounting number — it’s the key to scaling profitably. Once you know what it costs to make or buy your product, you gain the power to price strategically, cut waste, and make every sale count.

Share this post
Facebook
Twitter
LinkedIn
WhatsApp