Skip to content
Guides

Cost of goods sold, explained for store and restaurant owners

Why sales minus bills isn't your profit, how to work out cost of goods sold and gross margin, and the inventory habits that make the numbers right.

Ask a busy store owner how the month went and you'll often hear the sales number. Sales are easy to see — they're in the register. Profit is harder, because the stock you paid for last month and the stock still on your shelves both get in the way. Cost of goods sold is how you sort that out.

What cost of goods sold means

Cost of goods sold (COGS) is what you paid for the products you actually sold during a period. For a grocery store, that's the wholesale cost of the items that went out the door. For a café or restaurant, it's the food and drink ingredients behind the meals you served.

It doesn't include rent, wages, utilities or advertising. Those are operating expenses, and they come after.

The formula

Cost of goods sold = stock at the start + stock you bought − stock left at the end

Say you start the month with $4,000 of stock on your shelves. You buy $3,500 more from suppliers, and at month end you count $4,400 still on hand:

Amount
Stock at the start$4,000
+ Stock bought this month$3,500
− Stock left at the end$4,400
= Cost of goods sold$3,100

If sales that month were $6,200, your gross profit is $6,200 − $3,100 = $3,100, a gross margin of 50%. Wages, rent and utilities then come out of that $3,100.

Why "sales minus bills" gets it wrong

If you treat every supplier invoice as an expense the day it arrives, a month where you stock up looks terrible. The month after, when you sell that stock without buying much, looks amazing. Neither is true. Counting purchases as inventory first, and moving them to cost of goods only when they sell, gives you a profit you can compare month to month.

Gross margin: the number to watch

Gross margin is gross profit divided by sales. It tells you how much of each dollar of sales is left to pay for everything else. Watch it every month. If it slips, look at supplier prices, waste and spoilage, theft, or prices on your shelf that haven't kept up.

Restaurants often track the same idea as food cost percentage — food cost divided by food sales. Many operators aim for roughly 28–35%, but the right number depends on your menu and prices. Your own trend matters more than an industry rule of thumb.

Habits that keep the numbers honest

  1. Record every supplier invoice as stock, not as a general expense.
  2. Count what's on your shelves at least once a quarter — monthly if you can.
  3. Write off spoiled or damaged stock when it happens, so it doesn't hide in your margin.
  4. Keep stock you resell separate from supplies you use up, like bags and cleaning products.

How Meksova helps

Connect your POS and bank card and sales and supplier payments sync into Meksova automatically. Goods you buy for resale are recorded as inventory. When you record a sale, the cost moves into cost of goods sold, so your income statement shows gross profit and margin, not just sales minus bills. Supplier invoices you haven't paid yet sit under Payable until you pay them, in full or in parts.

This guide is general information, not tax or legal advice. Rules change and every business is different — check with a tax professional for your situation.

See your own numbers in two minutes.

Open the demo for your trade — no sign-up, nothing to install.

4.8 on GoogleNo credit cardFrom $24.99/month