---
title: "Gross margin, explained"
description: "Revenue 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."
canonical: "https://lopifi.com/accounting/gross-margin"
---

# Gross margin, explained

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

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

---

- **Section:** Finance & metrics
- **Reference:** Finance · Metric
- **Mentioned in:** 7 pages

## What it means

Gross margin is the share of each sales dollar left after paying the direct cost of delivering what you sold. At 75%, every $1 of revenue leaves 75 cents for product development, sales, overhead and, eventually, profit.

It's the first profit line on the P&L. Nothing about building or selling the product has been subtracted yet.

Gross profit is revenue minus cost of revenue. Divide gross profit by revenue and you have the margin. Use GAAP revenue for the same period on both sides. Dividing by ARR mixes a run rate with an actual result.

The income statement can show gross profit, but the percentage is a ratio you work out yourself. It's only as good as what you put in cost of revenue.

In March, Acme recognizes $100,000 of revenue. Hosting costs $12,000, payment processing $3,000 and support salaries $10,000, so cost of revenue is $25,000. Gross profit is $75,000 and gross margin is 75%. Leave support in G&A and the margin reads 85%, until a diligence team moves it back.

Investors use it to price each new dollar of revenue, so it feeds straight into valuation. They watch the trend as closely as the level. A margin that falls while revenue grows tends to mean a cost like hosting is scaling faster than customers.

**Why it matters.** It tells investors how much each new dollar of revenue is worth, and it moves valuations. It's only as good as what you put in cost of revenue.

## Try it with your numbers

Change any number. The working below updates as you type.

*[Interactive calculator: https://lopifi.com/accounting/gross-margin#calculator]*

## Common questions

### Is gross margin a GAAP measure?

Gross profit can be a line on a GAAP income statement. The percentage is a metric you calculate from it, and what goes into cost of revenue is a policy choice, so write yours down.

### Why did my gross margin drop when revenue grew?

Usually because a cost in cost of revenue grew faster: hosting for a large new customer, a support hire, or higher payment processing fees.

### What's a typical SaaS gross margin?

Software companies often report 70% to 80% or more. Businesses heavy on services, payments or hardware run lower. A benchmark is useless unless cost of revenue is defined the same way, so check what's in it before you compare.

## Where it comes up

The glossary entries, founder guides and lessons on this site that use the term and link here.

- [Gross margin](https://lopifi.com/md/glossary/gross-margin) (Glossary): Gross margin is a profitability metric, calculated as (Revenue − COGS) ÷ Revenue.
- [How to read an income statement (P&L)](https://lopifi.com/md/startups/how-to-read-an-income-statement) (Guide · 6 min): 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 template](https://lopifi.com/md/startups/chart-of-accounts-for-startups) (Guide · 6 min): A 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 rule](https://lopifi.com/md/startups/cash-vs-accrual-accounting-for-startups) (Guide · 5 min): Cash 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.
- [The income statement](https://lopifi.com/md/learn/the-income-statement) (Accounting · Lesson 10): Two of the five account types, laid out so each subtotal answers a different question about how the month went.
- [Inventory and cost of goods sold](https://lopifi.com/md/learn/inventory-and-cost-of-goods-sold) (Accounting · Lesson 17): October's drills, costed FIFO and by weighted average, counted against the record, and written down to what they will sell for.
- [SaaS metrics and unit economics](https://lopifi.com/md/learn/saas-metrics-and-unit-economics) (Finance · Lesson 6): Gross 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.

## Read further

- [Metric definitions](https://lopifi.com/md/docs/domain/metrics) (In depth): Every metric in this system ships with its formula, period, inputs and source. A KPI without a definition is a number people argue about in meetings.
- [Cost of revenue](https://lopifi.com/md/accounting/cost-of-revenue) (Related · Convention)
- [Income statement](https://lopifi.com/md/accounting/p-and-l) (Related · US GAAP · ASC 220)
- [CAC payback](https://lopifi.com/md/accounting/cac-payback) (Related · Finance · Metric)

- **Previous:** [ARR and MRR](https://lopifi.com/md/accounting/arr)
- **Next:** [Net revenue retention](https://lopifi.com/md/accounting/net-revenue-retention)

*General information, not tax, legal or accounting advice. Check with a CPA before you act on it.*
