---
title: "Gross margin vs net margin"
description: "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."
canonical: "https://lopifi.com/differences/gross-margin-vs-net-margin"
---

# 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.

Source: https://lopifi.com/differences/gross-margin-vs-net-margin
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

## Each, defined

### Gross margin

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

Formula: `(Revenue − COGS) ÷ Revenue`

[Gross margin in the glossary](https://lopifi.com/md/glossary/gross-margin)

### Net margin

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

Formula: `Net income ÷ Revenue`

[Net margin in the glossary](https://lopifi.com/md/glossary/net-margin)

## 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.

## See it computed

- [Net margin calculator](https://lopifi.com/md/calculators/net-margin): Net margin is a profitability metric, calculated as Net income ÷ Revenue.
- [Operating margin calculator](https://lopifi.com/md/calculators/operating-margin): Operating margin is a profitability metric, calculated as Operating income ÷ Revenue.
- [Margin & markup](https://lopifi.com/md/tools/margin): Margin is profit over price; markup is profit over cost. Solve either way.

*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.*
