Skip to content

Gross Margin Calculator

Type your revenue and your cost of goods sold to get the gross margin…

Type your revenue and your cost of goods sold to get the gross margin, then pick your industry to see where you sit against its average.

$

Sales, after returns

$

What the goods sold cost

Compare with an industry

More optionsAmounts in US dollar

Currency

Only the symbol changes: the maths is the same in any currency.

Gross margin

39%

You keep $32,760 of gross profit from $84,000 of sales, above the 35.3% average for retail (special lines).

Cost of goods $51,240Profit $32,760Revenue $84,000
avg 35.3%

The same $32,760 profit, divided two ways:

Margin 39% = $32,760 ÷ $84,000 revenue

Markup 63.93% = $32,760 ÷ $51,240 cost of goods

The line on the bar is where cost of goods would end at the Retail (Special Lines) average gross margin, 35.3% (US listed companies, January 2026).

Drag the handle, or use the arrow keys, to try another revenue figure.

How this works: 2 sources,

How this works

Method

Gross margin is gross profit as a share of revenue. Subtract the cost of goods sold from revenue, divide by revenue and multiply by 100. A shop with $84,000 of sales and $51,240 of stock sold keeps $32,760 of gross profit, and 32,760 ÷ 84,000 = 0.39, a 39% gross margin. Full method

How it’s tested

2 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.

Privacy

On your device. Nothing you enter or open leaves this browser. Without AI, everything stays on this device. If you added your own AI key, Ask sends your question (or, for Explain my result, the figures) to that provider. Built-in browser AI keeps it here. Until you add your own AI key, nothing can be sent. About privacy labels

Changes

  • Added six pages for prices and profit: margin, profit margin, gross margin, markup, stacked discounts and commission, with a price bar you can drag and margins by industry.
  • Added eight pages for common questions, from percent of a number to percent error and reverse percentages, each with its own method, examples and table.
  • Added key facts with a worked example of each formula.
  • Redesigned: type the numbers straight into a sentence, with bars on one scale that picture the answer.
  • Results now update as you type, with no Calculate button.
  • First published.

Every change on What’s new

How we make toolsReport a mistake

How to calculate gross margin

Gross margin is gross profit as a share of revenue. Subtract the cost of goods sold from revenue, divide by revenue and multiply by 100. A shop with $84,000 of sales and $51,240 of stock sold keeps $32,760 of gross profit, and 32,760 ÷ 84,000 = 0.39, a 39% gross margin.

Cost of goods sold counts only what went into the goods you actually sold: the stock you started the year with, plus purchases, minus the stock left at the end (and for a maker, materials and direct labour). Rent, marketing and office wages are not in it; they come off later, in the operating margin. The IRS’s small-business guide works an example: net receipts of $385,060 and a cost of goods sold of $288,140 leave a gross profit of $96,920, a gross margin of 25.17%.

Gross margin is the number to compare with your industry, because it depends on what you sell more than on how big you are. The marker on the bar is the average for the industry you pick, from Aswath Damodaran’s yearly data on US listed companies; services and software sit high, wholesale and car makers low.

gross margin = (revenue − cost of goods sold) ÷ revenue × 100

Gross margin by industry, US companies, January 2026

Average gross margin, the markup on cost of goods it implies, and the number of companies in each industry, highest margin first. Banks, insurers, REITs and other financial firms, which have no cost of goods in the usual sense, are left out.

Average gross margin, the markup on cost of goods it implies, and the number of companies in each industry, highest margin first. Banks, insurers, REITs and other financial firms, which have no cost of goods in the usual sense, are left out.
IndustryGross marginMarkup on COGSCompanies
Drugs (Pharmaceutical)71.7%253.7%228
Software (System & Application)71.7%253.6%309
Software (Entertainment)66.5%198.1%77
Tobacco64.3%180.2%10
Telecom (Wireless)63.0%170.1%12
Cable TV62.9%169.6%9
Software (Internet)62.6%167.2%29
Hotel/Gaming60.9%155.4%63
Drugs (Biotechnology)60.8%155%496
Semiconductor59.0%143.7%66
Show all 83 rows
Utility (Water)59.0%143.7%14
Telecom. Services58.8%142.8%39
Telecom. Equipment58.1%138.9%57
Oil/Gas (Production and Exploration)57.2%133.6%142
Apparel56.9%131.9%35
Green & Renewable Energy55.2%123.4%15
Precious Metals55.0%122.3%56
Beverage (Soft)54.7%120.9%27
Healthcare Products54.0%117.4%204
Real Estate (General/Diversified)51.2%105%12
Household Products51.0%104.2%110
Transportation (Railroads)51.0%103.9%4
Publishing & Newspapers50.4%101.8%19
Healthcare Information and Technology48.3%93.5%115
Beverage (Alcoholic)47.0%88.5%14
Semiconductor Equip46.3%86.3%31
Education45.8%84.6%32
Utility (General)44.2%79.1%14
Shoe43.9%78.2%11
Power43.6%77.2%46
Oil/Gas Distribution43.4%76.6%23
Office Equipment & Services41.4%70.7%14
Entertainment41.4%70.6%92
Recreation39.8%66.1%49
Hospitals/Healthcare Facilities39.1%64.2%31
Electronics (Consumer & Office)38.8%63.3%8
Computers/Peripherals38.4%62.2%36
Broadcasting38.1%61.6%24
Machinery37.5%59.9%105
Environmental & Waste Services36.3%57%53
Advertising36.2%56.8%52
Oil/Gas (Integrated)36.1%56.4%4
Retail (Special Lines)35.3%54.6%94
Real Estate (Development)35.3%54.5%14
Chemical (Specialty)35.1%54.1%59
Metals & Mining34.7%53.1%73
Retail (Building Supply)34.2%52%14
Information Services34.1%51.7%15
Business & Consumer Services33.4%50.1%155
Retail (General)33.2%49.7%23
Restaurant/Dining32.2%47.6%64
Real Estate (Operations & Services)32.2%47.5%54
Electrical Equipment31.8%46.7%112
Building Materials30.9%44.8%41
Retail (Distributors)30.6%44%62
Furn/Home Furnishings30.3%43.4%27
Shipbuilding & Marine27.1%37.1%8
Electronics (General)26.8%36.5%114
Retail (Grocery and Food)26.3%35.7%15
Diversified25.8%34.8%20
Construction Supplies25.5%34.3%40
Air Transport24.8%33%23
Packaging & Container24.3%32%19
Computer Services24.3%32%64
Transportation24.1%31.8%19
Food Processing23.2%30.3%78
Homebuilding22.7%29.4%30
Retail (Automotive)22.0%28.1%34
Trucking21.2%26.9%26
Rubber& Tires18.0%21.9%3
Aerospace/Defense17.5%21.2%79
Paper/Forest Products17.1%20.7%6
Auto Parts15.8%18.8%35
Engineering/Construction15.5%18.3%48
Food Wholesalers15.4%18.3%13
Chemical (Diversified)15.3%18.1%4
Coal & Related Energy14.9%17.5%16
Farming/Agriculture13.1%15.1%35
Steel12.3%14%19
Healthcare Support Services12.1%13.7%104
Oilfield Svcs/Equip.11.1%12.5%97
Auto & Truck10.4%11.6%33
Chemical (Basic)9.3%10.3%29

Common questions

What is the difference between gross margin and gross profit?

Gross profit is an amount: revenue minus cost of goods sold, $32,760 in the example. Gross margin is that amount as a share of revenue, 39%. The margin lets you compare a small shop with a big one.

What is a good gross margin?

Compare it with your industry. In January 2026 the US averages ran from 15.4% for food wholesalers to 56.9% for apparel and 71.7% for drug makers. Your gross margin has to be high enough to pay every running cost and still leave a profit.

Do service businesses have a cost of goods sold?

Often not in the IRS sense. A consultant or a designer selling their own time can treat gross profit as net receipts, and many count the direct cost of delivering the work, such as subcontractors, as their cost of sales.

How do I turn gross margin into markup?

Divide the margin by what is left of 100 and multiply by 100: a 39% gross margin is 39 ÷ 61 × 100 = 63.9% markup on cost. The table lists the markup next to each industry’s margin.