The formula is Beginning Inventory + Purchases − Ending Inventory = COGS. It captures what you sold, not what you bought — a crucial difference. COGS sits right below revenue on your P&L, and revenue minus COGS is your gross profit.
Why it matters: COGS drives gross margin, the truest measure of whether your pricing and production are healthy. In thin-margin businesses like restaurants, a COGS percentage that drifts up two points can erase the entire profit — which is why it's tracked obsessively (see our restaurant bookkeeping guide).
The most common mistake: booking purchases as COGS without counting inventory. If you buy $10,000 of materials but only used $7,000, your true COGS is $7,000 — the other $3,000 is still an asset sitting on the shelf. Skipping the inventory count makes your margins look wrong every month you stock up or draw down.
Rather not think about this at all?
We keep your books clean, reconciled, and tax-ready every month — so the terms above just take care of themselves. Book a free 15-minute call.
Schedule a Free Call →Cost of Goods Sold FAQ
What is cost of goods sold (COGS)?
What's the difference between COGS and operating expenses?
Part of the Tides Bookkeeping Glossary — and the complete guide to small business bookkeeping.