Gross margin vs net margin
Each, defined
Gross margin
Gross margin is a profitability metric, calculated as (Revenue − COGS) ÷ Revenue.
Formula: (Revenue − COGS) ÷ Revenue
Net margin
Net margin is a profitability metric, calculated as Net income ÷ Revenue.
Formula: Net income ÷ Revenue
Side by side
| Gross margin | Net margin | |
|---|---|---|
| Numerator | Revenue − cost of revenue | Net income |
| Costs deducted | Cost of revenue only | All costs, interest and tax |
| Tells you | Unit economics of the product | Profitability of the company |
| Moved by | Pricing, hosting, support costs | Everything, 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.)
| Line | Amount | Share of revenue |
|---|---|---|
| Revenue | 31,500.00 | 100% |
| Cost of revenue | (17,000.00) | -54% |
| Gross profit | 14,500.00 | 46% |
| Operating expenses | (12,752.60) | -40.5% |
| Net income | 1,747.40 | 5.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.
- The income statementTwo of the five account types, laid out so each subtotal answers a different question about how the month went.10 min
- Inventory and cost of goods sold › Lower of cost and net realizable valueA newer model is announced and the drills will sell for less: the write-down, the month it lands in, and what it does to the margin.4 min
- SaaS metrics and unit economicsGross margin on Northwind's actuals, why it has no ARR, and NRR, GRR, CAC payback and the burn multiple worked on the subscription plan it's pricing.7 min
- Budget vs actualSeptember against the budget the founders wrote in August: favorable and unfavorable by polarity, a flexed cost of revenue, and the three lines that were the budget's own mistakes.9 min
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.