Skip to content
Keyboard shortcuts
Esc
Everywhere
Search the site
⌘K
Search the site
/
Show these shortcuts
?
Close what is open
Esc
Talk to us

Gross margin vs net margin

Both are a share of revenue. Gross margin subtracts only the cost of delivering the product, while net margin subtracts every cost, including operating expenses, interest and tax.

Each, defined

Gross margin

Gross margin is a profitability metric, calculated as (Revenue − COGS) ÷ Revenue.

Formula: (Revenue − COGS) ÷ Revenue

Gross margin in the glossary

Net margin

Net margin is a profitability metric, calculated as Net income ÷ Revenue.

Formula: Net income ÷ Revenue

Net margin in the glossary

Side by side

Gross margin and Net margin compared
Gross marginNet margin
NumeratorRevenue − cost of revenueNet income
Costs deductedCost of revenue onlyAll costs, interest and tax
Tells youUnit economics of the productProfitability of the company
Moved byPricing, hosting, support costsEverything, including headcount

The same P&L, read at two lines

Northwind's September 2026: revenue of $31,500 less $17,000 cost of revenue leaves a 46% gross margin. Operating expenses of $12,752.60 take it to a 5.5% net margin. (Northwind Traders, Inc., September 2026, accrual basis, USD.)

The same P&L, read at two lines
LineAmountShare of revenue
Revenue31,500.00100%
Cost of revenue(17,000.00)-54%
Gross profit14,500.0046%
Operating expenses(12,752.60)-40.5%
Net income1,747.405.5%

How they relate

Gross margin measures the product: how much of each dollar of revenue survives the direct cost of delivering it. Net margin measures the company: how much survives everything.

A software company with an 80% gross margin and a net loss is common; the gap is sales, marketing and R&D spent on growth. A falling gross margin is a different and usually worse signal, because each sale is earning less.

Questions

Is gross margin the same as markup?
No. Markup divides gross profit by cost; gross margin divides it by revenue. And for a software company, cost of revenue covers hosting, support, payment processing and third-party licenses, not only the cost of goods for a physical product.
Where does operating margin fit?
Operating margin sits between them: operating income, after operating expenses but before interest and tax, over revenue.

The lessons that teach this

From the free founder back-office course: each lesson is taught on one company's books, with the authority behind every rule.

See it computed

The calculators, journal entries and tools that use these terms.

Definitions are the glossary’s, generated from the same documents. Figures in the examples are computed by tested functions, not typed. General information, not tax, legal or accounting advice. Check with a CPA before you act on it.