Accounting term

COGS

/käɡz/ · 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+PurchasesEnding 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, a gross margin of roughly 63%. That 63% is 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?

Some do, under the label “cost of services” — direct labor, subcontractor costs, or materials used to deliver the service. A pure consulting business with no direct delivery cost may report none.

What's the difference between COGS and COGS calculator results from Shopify or Amazon?

Marketplace “cost” fields are usually incomplete — they often miss freight-in, customs, and packaging. Treat them as a starting estimate, then reconcile against your actual purchase and shipping records.

How often should I recalculate COGS?

At minimum monthly, ideally in real time if your system supports it (which Inventory + Accounting together do automatically). Waiting until year-end hides margin problems 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.