COGS

/kägz/ · acronym
Short for Cost of Goods Sold.

COGS is the direct cost of producing or acquiring the products a business sells: materials, manufacturing, and freight-in, but not marketing, rent, or salaries unrelated to production. It's subtracted from revenue to calculate gross profit, and it's one of the first numbers any investor or lender checks.

Also known as
Cost of sales, COS
Category
Accounting · Inventory
Lives on
Income statement (P&L)
Related module

What COGS actually measures

COGS isolates the cost of making or buying the specific thing you sold, nothing more, nothing less. If you sell handmade candles, COGS is wax, wicks, fragrance oil, and the packaging that ships with the product. It is not your rent, your bookkeeping software, or the ad spend that got the customer to your store.

This distinction matters because it's how you calculate gross profit: revenue minus COGS, which tells you how much money is left to cover everything else (overhead, salaries, marketing) before you know if the business itself is profitable. A business with healthy revenue but thin gross margin is often in real trouble, even if the top line looks good.

“Revenue tells you if people want what you sell. Gross margin tells you if you can afford to sell it to them.”

The formula

COGS is calculated over a period (usually a month, quarter, or year) using your beginning and ending inventory:

COGS formula
Beginning inventory+Purchases−Ending inventory=COGS

A worked example

Say you run a small skincare brand. Here's how COGS plays out for March.

March · skincare brand
Inventory on March 1$12,400
Purchases during March$8,200
Inventory on March 31−$9,100
COGS for March$11,500

If that business made $31,000 in revenue during March, gross profit is $31,000 − $11,500 = $19,500. That's a gross margin of roughly 63%, the number that actually tells you whether the business model works.

Why this matters beyond bookkeeping

COGS shows up in three places people genuinely care about. Pricing decisions: you can't price a product sustainably without knowing what it actually costs to deliver. Investor and lender diligence: gross margin is one of the first ratios anyone checks, because it reveals whether unit economics work before scale. Tax filings: COGS is deductible against revenue, so getting it right, and substantiated with real inventory records, directly affects what you owe.

In Encarmo

COGS posts to the ledger automatically

When Inventory and Accounting run together, every sale decrements stock and posts the matching COGS entry, no spreadsheet, no month-end estimate.

See the Inventory module →

Common mistakes

01

Including costs that aren't direct

Rent, admin salaries, and marketing spend don't belong in COGS. Mixing them in inflates COGS and understates gross margin, which misleads pricing decisions.

02

Using Shopify's “cost” field as COGS

Shopify's cost field often excludes freight-in, customs duties, or packaging, all of which belong in true COGS. It's a starting point, not the final number.

03

Forgetting to count ending inventory accurately

If you don't do a real stock count, you're estimating COGS, not calculating it. Estimates compound into meaningfully wrong gross margins by year-end.

04

Treating COGS as static across the year

Material costs and shipping rates change. Recalculating COGS only at year-end hides margin erosion that's been happening for months.

Quick answers

Is COGS the same as operating expenses?

No. COGS is the direct cost of the product itself: materials, manufacturing, freight-in. Operating expenses (rent, salaries, marketing, software) are separate and sit further down the income statement, after gross profit is calculated.

Do service businesses have COGS?

Yes, though it's usually called Cost of Services or Cost of Revenue. It captures the direct cost of delivering the service, such as contractor labor or materials used on the job, not overhead like marketing or admin salaries.

What's the difference between COGS and the “cost” results from a Shopify or Amazon calculator?

Those platform figures usually reflect only the per-item cost you entered. True COGS also folds in freight-in, customs duties, and packaging tied directly to what sold, so the platform number is a starting point, not your final income statement figure.

How often should I recalculate COGS?

At minimum, every time you close the books, monthly for most small businesses. Material costs and freight rates shift through the year, so recalculating only at year-end can hide margin erosion that's been building for months.

Stop estimating COGS. Automate it.

Inventory and Accounting share one ledger in Encarmo. Every sale posts the right COGS entry automatically, no spreadsheets, no month-end guesswork.

$0/mo core platform · No credit card required · Free 1-day migration