Financial term · Reviewed August 17, 2026

Gross margin

Gross margin: Revenue minus cost of goods sold, divided by revenue. The Gross Margin Calculator returns this figure from gross margin = (revenue − cost of goods sold) ÷ revenue × 100. At that calculator’s documented worked-example inputs the gross margin is 40.0%; holding every other input steady, moving cost of goods sold from $120,000 to $180,000 moves it from 28.0% to 52.0%, a spread of 24.0%.

What is left after direct costs is what has to cover everything else, so gross margin sets the ceiling on how much overhead a business can carry at a given revenue. A company at 25% margin and one at 70% are not running the same business even if revenue matches, and their cost structures cannot be compared without it.

Quick reference: Gross margin.
TermGross margin
CategoryBusiness Finance
How it is foundGross margin = (revenue − cost of goods sold) ÷ revenue × 100
Worked exampleGross margin: 40.0%
Computed byGross Margin Calculator
Related terms8 defined in this glossary

Before you rely on it

What to check

Find out what sits inside cost of goods sold.

The common error

Where people go wrong with gross margin

Comparing margins across companies that classify differently. Move fulfilment or support into COGS and the margin falls without a thing changing operationally, which makes cross-company comparisons quietly unreliable.

Worked through

Gross margin in plain numbers

A shop has $200,000 in revenue and $120,000 in cost of goods sold. Gross profit is $80,000. Gross margin is $80,000 ÷ $200,000, or 40%. Trim the cost of goods by $10,000 through a better supplier deal and the margin becomes $90,000 ÷ $200,000, or 45%. Raise prices 5% with volume unchanged, revenue becomes $210,000 and margin becomes $90,000 ÷ $210,000 ≈ 42.9%, a smaller gain than the same dollars of savings on cost. Gross margin sits before rent, wages and other overhead, which come out afterward to reach operating profit.

Easily confused

Gross margin and its neighbours

Gross margin is not markup and not net margin. Markup divides profit by cost, so a 40% margin is a 66.7% markup on cost. Net margin subtracts all expenses, taxes and interest. Contribution margin subtracts only variable costs. Gross margin as a dollar figure is gross profit, and as a percentage it is a share of revenue; the mix-up between margin and markup is the most common pricing error: pricing at a 40% markup gives a 28.6% margin.

In real decisions

Where gross margin turns up

Owners use it to set prices and judge products. Investors compare gross margins across companies to see pricing power and efficiency. Retailers track it by category. Manufacturers watch it for cost pressure from materials. Software firms often show high gross margins and use the figure to judge whether growth can lead to profit; a falling margin is an early warning of rising costs or discounting.

Know the edges

Where gross margin stops being reliable

What counts as cost of goods sold differs by company and industry, so comparisons need care; some include shipping and labor, others do not. A high margin does not ensure profit if overhead is heavy. Mix changes can move the average without any change in individual products. Look at margins by product line and over time, and follow through to operating and net margins.

Quick answers

What people ask about gross margin

What is a good gross margin? It varies by industry. Software companies often report margins of seventy percent or more, grocery retailers much less. Compare with peers and with your own trend.

How is gross margin different from operating margin? Gross margin stops after the cost of goods sold. Operating margin subtracts overhead such as rent, wages and marketing as well, so it is lower.

How can I improve it? Raise prices where the market allows, negotiate supplier costs, reduce waste or shift the mix toward higher-margin products.

Does gross margin include shipping? It depends on how the company defines cost of goods sold. Some include freight and fulfillment, others put them in operating expenses. Check the definition before comparing.

Put it to work

How gross margin is calculated

Gross margin = (revenue − cost of goods sold) ÷ revenue × 100From the Gross Margin Calculator. It computes this directly.

At the gross margin calculator’s worked-example inputs, gross margin is 40.0%, gross profit is $100,000. Moving cost of goods sold from $120,000 to $180,000 moves that first figure from 28.0% to 52.0%.

Open the Gross Margin Calculator →

Accounting classifications, cash timing and one-time items can differ from these management estimates.