In short: What it cost you to make or buy the things you actually sold.
What it means
COGS stands for cost of goods sold. It's the direct cost of the products or ingredients behind the sales you made in a period. If you sold 400 candles, COGS is the wax, wicks, jars and packaging that went into those 400 candles.
It's the first cost subtracted from revenue, and what's left is your gross profit. That's the money that pays for everything else.
The formulaCOGS = beginning inventory + purchases − ending inventory
A worked example
A small shop starts the month with $5,000 of inventory. During the month it buys $9,000 more. At month end, $6,000 of inventory is left on the shelves. It had $40,000 of sales.
Beginning inventory
$5,000
+ Purchases
$9,000
− Ending inventory
$6,000
COGS
$8,000
Gross profit
$40,000 − $8,000 = $32,000
COGS % of sales
20%
What is a good number?
There's no universal good number. A restaurant might sit at 28–35% food cost, a boutique at 50% or more, and a software business near zero. Compare yourself with your own past and with others in your trade.
A rising COGS percentage with the same prices usually means waste, theft, a supplier increase or a mix shift toward lower-margin items.
How to put it to work
Count your inventory at the end of each month, even roughly, and keep a simple log of what you bought. Subtract the closing count from the opening count plus purchases, and you have COGS. Compare it as a percentage of sales month to month. A sudden jump is worth a conversation with your supplier or your team.
Common mistakes
Counting inventory you bought but didn't sell. Only the goods that left the shelf count. That's why the inventory adjustment matters.
Including overhead. Rent, marketing and the owner's salary are operating expenses, not COGS. Mixing them hides the true margin on your product.
Skipping direct labor. In a restaurant or workshop, the people who make the product are often part of the cost of what you sold. Ask your accountant how to treat them.
Never counting inventory. Without counts you're guessing. Even a quarterly count beats none.
Forgetting freight and packaging. Inbound freight and packaging often belong in the product cost.
Try it with your own numbers. The free Margin Check takes your revenue and cost of goods and shows your gross profit and gross margin in seconds.
The direct costs of the goods you sold: materials, ingredients, inbound freight, packaging and sometimes the labor that made the product. Rent, marketing and admin pay are not included.
How do you calculate COGS?
Add purchases to beginning inventory, then subtract ending inventory. The result is the cost of what you actually sold.
What's the difference between COGS and operating expenses?
COGS is tied to the product you sold. Operating expenses are the costs of running the business whether or not you sold much.
Educational, not financial or tax advice. Rules, rates and limits change, and your situation is your own. Check with a licensed professional before you make a big decision.
Examples use made-up numbers to show the math. Figures and ranges are common rules of thumb for planning, not promises.