Skip to content Skip to footer

What Is Cost of Goods Sold (COGS) and How Do You Calculate It?

The Margin Maker

If you sell physical products, Cost of Goods Sold, or COGS, is one of the most important numbers in your books.

COGS represents the direct cost of producing or buying the exact products you sold during the year. It helps show your true gross profit before regular operating expenses are considered.

Get this number wrong, and your margins, inventory reports, and tax return may all be wrong.

The COGS Formula

The basic formula is:

Beginning Inventory + Purchases or Production Costs – Ending Inventory = COGS

Beginning inventory is what you had available for sale at the start of the year.

Then you add products purchased or produced during the year. Finally, you subtract the inventory still sitting on your shelves at year-end.

This math shows how much inventory actually left the business through sales.

For example:
  • Beginning inventory: $20,000
  • New inventory purchases: $80,000
  • Ending inventory: $25,000

Your COGS would be $75,000.

The Direct Cost Rule

COGS is only for costs directly connected to the products you sold.

Common COGS items include:

  • Wholesale inventory purchases
  • Raw materials
  • Product packaging
  • Freight-in from suppliers
  • Import duties
  • Direct factory labor
  • Manufacturing supplies
  • Production-related storage costs

The simple test is this:

Would this cost exist if you did not produce or purchase the product?

If the answer is yes, it may belong in COGS.

The Operating Expense Mistake

The most common error is mixing COGS with normal operating expenses.

These costs usually do not belong in COGS:

  • Marketing
  • Sales commissions
  • Office rent
  • Administrative payroll
  • General software
  • Accounting fees
  • Shipping finished products to customers
  • Website expenses

Those are operating expenses.

Mixing them into COGS makes your gross profit margin look lower than it really is. That can hide pricing problems, confuse lenders, and make financial decisions harder.

Clean categories help you see whether your products are actually profitable.

Get Your Inventory Math Right

Miscalculating COGS doesn’t just mess up your margins. It can trigger IRS questions if your ending inventory numbers are wrong. Let our accounting team review your inventory tracking and ensure your COGS is calculated correctly. Contact us today or log into our Client Portal to schedule a review.

📧 Email: oshamsi@oscpatax.com
📞 Phone: (214) 253-8515

General information only, not tax advice. Always consult a tax professional to evaluate your specific circumstances and state rules.