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).
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
Sources
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.
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
- For a business that sells goods, the IRS figures cost of goods sold as inventory at the start of the year plus purchases, minus items withdrawn for personal use, minus inventory at the end of the year. Source: IRS, Publication 334 (2025), Tax Guide for Small Business.
- The average gross margin of US listed companies was 37.8% in January 2026, from 10.4% for car and truck makers to 71.7% for system and application software. Source: Aswath Damodaran, NYU Stern, Margins by Sector (US), January 2026.
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.
| Industry | Gross margin | Markup on COGS | Companies |
|---|---|---|---|
| Drugs (Pharmaceutical) | 71.7% | 253.7% | 228 |
| Software (System & Application) | 71.7% | 253.6% | 309 |
| Software (Entertainment) | 66.5% | 198.1% | 77 |
| Tobacco | 64.3% | 180.2% | 10 |
| Telecom (Wireless) | 63.0% | 170.1% | 12 |
| Cable TV | 62.9% | 169.6% | 9 |
| Software (Internet) | 62.6% | 167.2% | 29 |
| Hotel/Gaming | 60.9% | 155.4% | 63 |
| Drugs (Biotechnology) | 60.8% | 155% | 496 |
| Semiconductor | 59.0% | 143.7% | 66 |
Show all 83 rowsShow fewer
| Utility (Water) | 59.0% | 143.7% | 14 |
| Telecom. Services | 58.8% | 142.8% | 39 |
| Telecom. Equipment | 58.1% | 138.9% | 57 |
| Oil/Gas (Production and Exploration) | 57.2% | 133.6% | 142 |
| Apparel | 56.9% | 131.9% | 35 |
| Green & Renewable Energy | 55.2% | 123.4% | 15 |
| Precious Metals | 55.0% | 122.3% | 56 |
| Beverage (Soft) | 54.7% | 120.9% | 27 |
| Healthcare Products | 54.0% | 117.4% | 204 |
| Real Estate (General/Diversified) | 51.2% | 105% | 12 |
| Household Products | 51.0% | 104.2% | 110 |
| Transportation (Railroads) | 51.0% | 103.9% | 4 |
| Publishing & Newspapers | 50.4% | 101.8% | 19 |
| Healthcare Information and Technology | 48.3% | 93.5% | 115 |
| Beverage (Alcoholic) | 47.0% | 88.5% | 14 |
| Semiconductor Equip | 46.3% | 86.3% | 31 |
| Education | 45.8% | 84.6% | 32 |
| Utility (General) | 44.2% | 79.1% | 14 |
| Shoe | 43.9% | 78.2% | 11 |
| Power | 43.6% | 77.2% | 46 |
| Oil/Gas Distribution | 43.4% | 76.6% | 23 |
| Office Equipment & Services | 41.4% | 70.7% | 14 |
| Entertainment | 41.4% | 70.6% | 92 |
| Recreation | 39.8% | 66.1% | 49 |
| Hospitals/Healthcare Facilities | 39.1% | 64.2% | 31 |
| Electronics (Consumer & Office) | 38.8% | 63.3% | 8 |
| Computers/Peripherals | 38.4% | 62.2% | 36 |
| Broadcasting | 38.1% | 61.6% | 24 |
| Machinery | 37.5% | 59.9% | 105 |
| Environmental & Waste Services | 36.3% | 57% | 53 |
| Advertising | 36.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 & Mining | 34.7% | 53.1% | 73 |
| Retail (Building Supply) | 34.2% | 52% | 14 |
| Information Services | 34.1% | 51.7% | 15 |
| Business & Consumer Services | 33.4% | 50.1% | 155 |
| Retail (General) | 33.2% | 49.7% | 23 |
| Restaurant/Dining | 32.2% | 47.6% | 64 |
| Real Estate (Operations & Services) | 32.2% | 47.5% | 54 |
| Electrical Equipment | 31.8% | 46.7% | 112 |
| Building Materials | 30.9% | 44.8% | 41 |
| Retail (Distributors) | 30.6% | 44% | 62 |
| Furn/Home Furnishings | 30.3% | 43.4% | 27 |
| Shipbuilding & Marine | 27.1% | 37.1% | 8 |
| Electronics (General) | 26.8% | 36.5% | 114 |
| Retail (Grocery and Food) | 26.3% | 35.7% | 15 |
| Diversified | 25.8% | 34.8% | 20 |
| Construction Supplies | 25.5% | 34.3% | 40 |
| Air Transport | 24.8% | 33% | 23 |
| Packaging & Container | 24.3% | 32% | 19 |
| Computer Services | 24.3% | 32% | 64 |
| Transportation | 24.1% | 31.8% | 19 |
| Food Processing | 23.2% | 30.3% | 78 |
| Homebuilding | 22.7% | 29.4% | 30 |
| Retail (Automotive) | 22.0% | 28.1% | 34 |
| Trucking | 21.2% | 26.9% | 26 |
| Rubber& Tires | 18.0% | 21.9% | 3 |
| Aerospace/Defense | 17.5% | 21.2% | 79 |
| Paper/Forest Products | 17.1% | 20.7% | 6 |
| Auto Parts | 15.8% | 18.8% | 35 |
| Engineering/Construction | 15.5% | 18.3% | 48 |
| Food Wholesalers | 15.4% | 18.3% | 13 |
| Chemical (Diversified) | 15.3% | 18.1% | 4 |
| Coal & Related Energy | 14.9% | 17.5% | 16 |
| Farming/Agriculture | 13.1% | 15.1% | 35 |
| Steel | 12.3% | 14% | 19 |
| Healthcare Support Services | 12.1% | 13.7% | 104 |
| Oilfield Svcs/Equip. | 11.1% | 12.5% | 97 |
| Auto & Truck | 10.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.