Revenue less cost of revenue, over revenue.
Shows what each sales dollar leaves for everything else.
Only as accurate as your cost of revenue.
No standard defines it. A ratio computed from GAAP figures; no standard defines the ratio itself. Sources
Formula
(Revenue − COGS) ÷ Revenue
Requires a COGS classification; omit the metric if there isn't one.
Work out Gross margin
Change any number and the working updates as you type. Runs in your browser; nothing you type is sent anywhere. Amounts in US dollars.
Gross margin = (Revenue − Cost of revenue) ÷ RevenueRecognized revenue, not ARR.
People who keep customers running belong here, not in G&A.
Third-party licenses, data.
Gross margin
75.0%
How it’s worked out
- 1Cost of revenue$12,000.00 + $3,000.00 + $10,000.00 + $0.00$25,000.00
- 2Gross profit$100,000.00 − $25,000.00$75,000.00
- 3Gross margin$75,000.00 ÷ $100,000.0075.0%
Gross profit is a GAAP line; the margin percentage is a ratio built on it. It's only as honest as what you put in cost of revenue.
A real example, booked
On May 8, 2026 a distributor ships $7,500 of goods that cost $4,800 on Net 30 terms, due June 7, 2026. Gross profit is $2,700: a 36% margin, or a 56.3% markup on cost.
Transaction · May 8, 2026
JE-1 8 May 2026 Manual posted
Ship the goods and invoice the customer.
Read-onlyBalanced
- Price
- $7,500
- Cost of goods
- $4,800
- Gross margin
- 36%
Mistakes people make
What goes wrong in a real set of books, and what an accountant reviewing them catches.
Leaving hosting or support out of cost of revenue, which overstates margin.
Dividing gross profit by ARR instead of GAAP revenue for the same period.
Comparing margin across months after changing what goes into cost of revenue.
The lessons that teach this
From the free founder back-office course, taught on one company's books, with exercises to work it yourself.
- 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
Gross margin, in use
Quoted from the 3 documents that use the word: what it does to an interface, in the spec's own words.
A negative number on a P&L means the line went the other way, such as a contra-revenue, a credit to an expense account or a negative gross margin.
If the chart of accounts has no COGS, the component omits the gross profit subtotal rather than showing a gross margin equal to revenue, which is a lie by omission.
A ratio computed only from GAAP figures (gross margin, the current ratio, DSO) isn't a non-GAAP measure, and neither is an operating metric that isn't a financial measure at all (customer count, churn rate, headcount).
US GAAP, and where these rules come from — Metrics are not GAAP
For founders
The same idea written for a founder: what it costs a startup that ignores it, and what to do in a real month.
- Gross marginRevenue less cost of revenue, as a percentage of revenue. It's what's left from each dollar of sales to pay for everything else. As a ratio, it's a metric rather than a GAAP line.
- How to read an income statement (P&L)Revenue, cost of revenue, gross margin, operating expenses and net income, read line by line, on accrual basis, with the mistakes founders make most.
- Chart of accounts for startups: a starting templateA starting chart of accounts for a US startup: number ranges, the expense accounts you need, and when to add an account versus a class or tracking tag.
- Cash vs accrual accounting for startups, and the IRS ruleCash or accrual for a startup: why investors and auditors read accrual, when the IRS lets a C-corp file on cash, and the 2026 gross receipts limit.
Nearby in the catalog
No component names this concept outright. These sit in the same part of the system.
7Dashboard & charts
Family spec- MetricDefinitionEvery metric requires one. Formula with values substituted.
- NonGaapReconciliationEBITDA below net income, every adjustment named.
- MrrBridgeThe movement, not a single number with a percentage.
- BudgetVsActualPolarity-aware, materiality-filtered, versions tracked.
- ForecastTableProjections dashed and labeled everywhere.
- CovenantMonitorThe contractual definition, not the generic one.
- KpiHealthStripProvisional marking for pre-close numbers.
- RevenueTrackerRevenue by stream, with mix, growth and concentration.
- ExpenseTrackerSpend by category on three bases, with polarity derived per row.
Also in Profitability
Work with this concept
The calculators that compute it and the ledger payloads that carry it.
- Margin & markupMargin is profit over price; markup is profit over cost. Solve either way.
- Gross margin vs net marginBoth 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.
- Journal entry for a sale on accountFor a sale on credit, debit Accounts receivable and credit Revenue for the price; under a perpetual inventory system also debit Cost of goods sold and credit Inventory for what the goods cost. When the customer pays, debit Cash and credit Accounts receivable.
Defined in Metric definitions. This page is generated from that document, so the two can't disagree.