All posts Accounting basics · 1 Jul 2026 · 10 min read

How to calculate COGS for a cafe: formula, example, and the % to aim for.

Cafe COGS = opening inventory + purchases − closing inventory — the cost of what you actually sold, not what you bought. Here is the formula, a worked monthly example, the healthy 28-35% band, and how to track it without a Sunday spreadsheet.

Ibrahim Ölmez Founder, nouz · serial entrepreneur

To calculate COGS for a cafe over any period, use: opening inventory + purchases during the period − closing inventory = cost of goods sold. That's the cost of everything you actually sold — the beans, milk, syrups, and pastries that went out the door — not everything you bought. For most cafes, COGS lands somewhere around 28-35% of net revenue. If yours is much higher, you're either over-buying, over-pouring, or under-pricing.

The one line to remember: COGS is the cost of what you sold, not the cost of what you purchased. Get that distinction right and the rest is arithmetic.

TL;DR — the cafe COGS formula. Opening inventory + purchases − closing inventory = COGS. As a percentage: COGS ÷ net revenue × 100. Healthy band for most cafes: roughly 28-35% of net revenue — treat it as a sanity check, not a rule.

What is COGS for a cafe?

COGS — cost of goods sold — is what it cost you to make the drinks and food you actually sold during a period. For a cafe, that's the coffee, milk, syrups, tea, pastries, and any food that ends up in a customer's hand. It does not include rent, wages, or the cups and napkins those drinks go into (more on that below — it's the mistake most owners make).

Think of it this way: every flat white you sell has a cost buried inside it — a few cents of beans, a portion of milk, a fraction of a syrup bottle. Add up that hidden cost across everything you sold today, this week, or this month, and you have your COGS. It's the single biggest cost between your top-line sales and whatever profit is left, which is exactly why getting it right matters.

If you want the concept explained from the ground up before you crunch your own numbers, our COGS snapshot guide walks through it plainly.

Quick definition. COGS = the direct cost of the products you sold in a period. Sell more, COGS goes up. Sell nothing, COGS is zero — even if your storeroom is packed with beans you bought.

What counts as COGS for a cafe (and what doesn't)?

For a cafe, COGS is anything that becomes part of a product you sell: coffee beans, milk and milk alternatives, syrups and sauces, tea, chocolate, pastries and baked goods (whether you bake them or buy them in), sandwiches, and any retail food or drink that leaves the counter. If it's an ingredient or a finished item you resell, it's COGS.

What is not COGS trips people up constantly. Two buckets to keep separate:

  • Variable costs that aren't ingredients — takeaway cups, lids, sleeves, napkins, stirrers, cleaning supplies, dishwasher tablets. These rise and fall with how busy you are, so they feel like COGS. They're not — they're operating (variable) costs. Tracking them separately keeps your COGS clean and comparable month to month.
  • Fixed costs — rent, insurance, your barista's wages, the espresso machine lease, your accounting software. These don't move with a single cup sold, so they live in a different part of the P&L entirely.
The cup-and-napkin trap. Takeaway cups, lids, and napkins are not COGS — they're variable operating costs. Lumping them in inflates your COGS number and makes it useless for comparison against benchmarks. Keep ingredients in COGS; keep packaging and cleaning in variable costs.

Why be strict about this? Because your COGS percentage is only meaningful if it's measuring the same thing every month. Slip cups into COGS one month and out the next, and your trend line lies to you. In nouz, this split is baked into how costs are categorised, so you don't have to remember the rule every time — but even on paper, keep the two buckets apart.

What's the difference between purchases and COGS?

Purchases are what you bought. COGS is what you sold. They are almost never the same number in a given period, and confusing them is the single most common cafe accounting mistake.

Here's how it goes wrong. You order a big delivery of beans and long-life milk on the 30th because there was a deal. That's a large purchase this month. But most of it is still sitting in your storeroom on the 31st — you haven't sold it yet. If you count the whole delivery as this month's COGS, your profit looks terrible this month and artificially great next month when you sell it all with no purchases recorded. Neither number is real.

The formula fixes this exactly. By adding what you started with (opening inventory), adding what you bought (purchases), and then subtracting what's left over (closing inventory), you strip out the stuff you bought but didn't sell. What's left is the true cost of what you actually sold.

The purchases-vs-COGS trap. A big end-of-month delivery is a purchase, not a cost of sale — until you sell it. Count purchases as COGS and your profit will swing wildly for no real reason. Always subtract closing inventory to land on true COGS.

This is also why a simple "add up my supplier invoices" approach is only roughly right. It's fine as a fast estimate when your stock levels stay flat week to week, but the moment you stockpile or run down inventory, invoices alone will mislead you.

The cafe COGS formula — step by step

The formula is three counts and one subtraction: opening inventory + purchases − closing inventory = COGS. Do it tonight in fifteen minutes and you'll have a real number.

  1. Opening inventory — the value of all your food-and-drink stock at the start of the period (this is just last period's closing inventory). Count beans, milk, syrups, pastries, food — value it at what you paid.
  2. Purchases — every ingredient and resale item you bought during the period. Pull it from supplier invoices and receipts.
  3. Closing inventory — count and value your food-and-drink stock at the end of the period, the same way you counted opening.
  4. Subtract. Opening + purchases − closing = COGS.

Then, to get your percentage: COGS ÷ net revenue × 100. Note it's net revenue — sales after tax and any transaction fees — not your gross till total. Comparing COGS to gross sales makes your percentage look artificially low and hides margin problems.

Two counts do the work. You only ever physically count stock twice per period — at the start and the end. Everything in the middle comes from invoices. The end-of-period count becomes the start count for the next period, so it's one count per period on an ongoing basis.

A worked example: one month at a small cafe

Here's what the formula looks like with real euro numbers. This is an illustrative example, not nouz data — plug in your own figures.

LineAmount (EUR)
Opening inventory (stock on hand, 1st of month)2,400.00
+ Purchases during the month (beans, milk, syrups, pastries, food)8,600.00
− Closing inventory (stock on hand, last day of month)2,900.00
= COGS (cost of what was sold)8,100.00
Net revenue for the month (sales after tax + fees)26,000.00
COGS % (COGS ÷ net revenue × 100)31.2%

Read it line by line. The cafe started the month with EUR 2,400 of stock, bought EUR 8,600 more, and ended with EUR 2,900 left on the shelf. So it actually consumed 2,400 + 8,600 − 2,900 = EUR 8,100 of ingredients to serve its customers. Against EUR 26,000 of net revenue, that's a 31.2% COGS — comfortably inside the healthy band.

Notice the trap in action: this cafe bought EUR 8,600 but its true cost of sales was EUR 8,100, because it ended the month with more stock than it started with. If you'd counted purchases as COGS, you'd have overstated your cost by EUR 500 and undersold your own profit for the month.

What's a healthy COGS percentage for a cafe?

Most cafes run a COGS somewhere around 28-35% of net revenue — but the honest answer is "it depends on your menu." A drinks-heavy espresso bar with little food often runs lower, because coffee has strong margins. A cafe with a big food and pastry program usually runs higher, because prepared food costs more relative to what you can charge. Treat the band as a sanity check, not a target to hit exactly.

If your COGS is well above the band, the usual suspects are: over-pouring and portion drift (that "just a splash more" milk adds up), waste and spoilage (pastries binned at close), theft or unrecorded staff drinks, prices that haven't kept up with supplier increases, or simply buying more than you can sell before it spoils.

For the deeper benchmark picture — how drink cost and food cost differ, and what "good" looks like line by line — see our food cost ratios and benchmarks guide. And if you just want to punch in your numbers and see the percentage instantly, the food cost percentage calculator does the division for you.

Rule of thumb. Most cafes target COGS in the ~28-35% of net revenue range. Lower for drink-led menus, higher for food-led. If yours is above ~40%, start with portioning, waste, and pricing before assuming the number is "just the industry."

Is COGS the same as food cost? And where does labour fit?

For a cafe, COGS and "food cost" are close cousins but not identical. Food cost usually refers just to the food-and-drink ingredients — which is essentially your COGS. Where owners get burned is assuming a healthy COGS means a healthy business. It doesn't, because COGS leaves out the other giant number: labour.

This is exactly what one cafe owner meant on the Square Community forum: "My COGS have always been great; it's the labor that's killed me." — sugarlab, Sugar Lab Bakeshop.

COGS + labour together make up your prime cost — the two biggest controllable costs in any cafe, and the pair that actually decides whether a day paid off. A brilliant 29% COGS can still lose money if labour is running hot on a slow Tuesday. If COGS is the number you calculate tonight, prime cost is the number that tells you whether tonight was worth staying open for. We break that down in the cafe daily prime cost guide.

Per-day vs periodic: how often should you actually run this?

You have two options, and most cafes should do both. A periodic COGS — monthly, using the full opening/purchases/closing formula — is your accurate, audit-grade number. A per-day or per-drink estimate — using known recipe costs (e.g. this latte costs EUR 0.62 to make) — gives you a fast daily read without a nightly stock count.

The periodic version is honest but slow: you can't do a full physical count every night. The per-recipe version is fast but drifts, because it doesn't catch waste, spoilage, over-pouring, or theft — the very things that push real COGS above the recipe math. Run recipe-cost estimates daily to steer, then reconcile against a real monthly count to catch the drift.

The catch is that a nightly manual count is impractical, which is why most owners fall back to a monthly (or worse, tax-time) number and fly blind in between. That gap — knowing your rough cost of sales today instead of three weeks after the accountant sends the P&L — is the whole problem worth solving.

Two speeds. Daily recipe-cost estimates to steer the ship, monthly opening/purchases/closing counts to reconcile and catch waste. Daily tells you how today's going; monthly tells you the truth.

How to track cafe COGS without a spreadsheet

The lowest-effort accurate method is to log purchases as you receive them, count stock at the start and end of each period, and let software do the opening + purchases − closing arithmetic and the percentage. A spreadsheet works — until it doesn't.

Owners try to force their POS to do it and hit walls. As one restaurant owner put it about tracking cost of goods through Square's product fields: "In a restaurant, I don't have quantities of Plates of food... Sounds like a hack to me." — madh, restaurant owner, Square Community.

That's the core issue: a coffee POS is built to take payments, not to track the cost of what you sold. So owners bolt on a Sunday spreadsheet, and it leaks — a typo here, a stale formula there, an invoice never entered.

This is what nouz is built to remove. You log your revenue and costs as the day happens, categorise ingredients as COGS and packaging as variable (the split is built in), and your COGS — and your profit — settle by close of day, not three weeks later on the accountant's schedule. It's designed for owner-operators who want today's number today, glanced at on your phone between rushes. If you run a coffee shop specifically, nouz for cafes shows how the daily close works end to end.

FAQ

Is COGS the same as food cost for a cafe?

Roughly, yes — for a cafe, food cost is essentially your COGS: the direct cost of the ingredients and resale items you sold. The important distinction is that neither includes labour. A good food cost can still leave you unprofitable if wages are high, which is why owners track COGS and labour together as "prime cost." Food cost tells you about ingredients; prime cost tells you whether the day paid off.

Do cups, lids and napkins count as COGS?

No. Takeaway cups, lids, sleeves, napkins, stirrers, and cleaning supplies are variable operating costs, not COGS. They rise with how busy you are, which makes them feel like cost of sales, but they aren't ingredients in a product you sell. Keep them in a separate variable-costs bucket so your COGS percentage stays clean and comparable month to month.

What's a healthy COGS percentage for a cafe?

Most cafes land around 28-35% of net revenue, with drink-led menus often lower and food-heavy menus higher. Treat it as a sanity check rather than a fixed target — your menu mix and pricing drive it. If you're running well above 40%, look at portioning, waste and spoilage, staff drinks, and whether your prices have kept pace with supplier increases before assuming it's just "the industry."

What's the difference between purchases and COGS?

Purchases are what you bought in the period; COGS is what you actually sold. They differ whenever your stock level changes — a big end-of-month delivery is a purchase, but it's not a cost of sale until you sell it. The formula (opening inventory + purchases − closing inventory) subtracts leftover stock so you're only counting what left the counter. Using raw purchase totals as COGS makes your monthly profit swing for no real reason.

How often should I calculate cafe COGS?

Run an accurate periodic COGS at least monthly using the full opening/purchases/closing count — that's your true number. Between counts, use per-recipe cost estimates to get a fast daily read so you're not flying blind for a month at a time. Daily estimates steer the day; the monthly count reconciles them and catches waste, spoilage, and over-pouring that recipe math misses.