What Is Gross Margin?

Gross margin is the share of each sales dollar left over after paying the direct cost of what you sold. If a shop sells a jacket for $100 that cost $40 to buy in, it keeps $60, a 60% gross margin. That $60 must then cover rent, wages, marketing and everything else before any real profit is made.

The US Securities and Exchange Commission’s guide to financial statements explains that gross profit is what remains after subtracting the cost of sales from revenue, before operating expenses.1 Gross margin turns that dollar figure into a percentage, which makes it easy to compare across periods and companies.

Gross margin is the first and broadest of the three common margins. Our explainer on profit margin covers how gross, operating and net margins fit together.

How Do You Calculate Gross Margin?

Subtract cost of goods sold from revenue, divide by revenue and multiply by 100.

The formula is: Gross margin = (revenue − cost of goods sold) ÷ revenue × 100.

Here is a made-up example. A bakery has $200,000 of sales in a year. Its flour, butter, packaging and bakers’ wages for production come to $80,000. Gross profit is $120,000, and gross margin is $120,000 ÷ $200,000 × 100 = 60%.

You can calculate it for the whole business, for a product line or for a single item. Item-level margins are especially useful for deciding what to promote, reprice or drop.

What Counts as Cost of Goods Sold?

Cost of goods sold (COGS) includes only the costs directly tied to making or buying what you sell. The IRS sets out how businesses that carry inventory work out this figure on their tax returns.4

Usually in COGSUsually not in COGS (operating expenses)
Raw materials and partsOffice rent and utilities
Goods bought for resaleMarketing and advertising
Wages of staff who make the productWages of sales, admin and management staff
Freight to bring stock inShipping to customers (often treated separately)
Direct packagingSoftware, insurance and accounting fees
Factory overheads in manufacturingInterest and taxes

Where a cost belongs can vary by business and by accounting choice. What matters most is consistency, so that this year’s margin can be compared fairly with last year’s.

Service businesses use a similar idea, often called cost of revenue or cost of services. For an agency, it might include the pay of staff who deliver client work and any subcontractors.

How a sale splits into cost of goods sold and gross profit A horizontal bar representing a 100 dollar sale. The first 40 dollars is cost of goods sold. The remaining 60 dollars is gross profit, which is a 60 percent gross margin. Below, the gross profit is shown covering operating expenses of 45 dollars and leaving 15 dollars of operating profit. Where each $100 of sales goes (made-up example) Cost of goods sold $40 Gross profit $60 = 60% gross margin Operating costs $45 Profit $15 Gross margin shows how much each sale leaves to pay for everything else. Operating costs include rent, salaries, marketing and software.
Simplified illustration of how gross profit from a sale must cover operating costs before any profit remains.

Gross Margin vs Gross Profit vs Markup

These three terms describe the same gap between price and direct cost, but measure it differently.

TermFormulaExample (sale $100, cost $40)
Gross profitRevenue − COGS (in dollars)$60
Gross marginGross profit ÷ revenue × 10060%
MarkupGross profit ÷ cost × 100150%

Confusing margin with markup is one of the most common pricing errors. A 50% markup gives only a 33% margin. Our guide on how to price a product shows how to set prices with the right one.

Why Does Gross Margin Matter?

Gross margin tells you whether the core of the business, selling things for more than they cost, actually works.

  • It shows pricing power. A high or rising margin suggests customers value what you sell enough to pay well above cost.
  • It funds everything else. Rent, salaries, marketing and growth all come out of gross profit.
  • It reveals cost problems early. A falling margin can signal rising supplier prices, waste or too much discounting.
  • It guides product decisions. Comparing margins by product shows which items earn their place.
  • Investors watch it closely. In a company’s annual 10-K report, the income statement shows revenue and cost of sales, so gross margin can be worked out directly.2

A business with a thin gross margin needs high sales volume and tight cost control to survive. One with a wide margin has more room for marketing, mistakes and growth.

What Is a Good Gross Margin?

A good gross margin depends heavily on the industry, so compare with similar businesses rather than a single number.

Professor Aswath Damodaran of NYU Stern publishes average margins for US industries each year, using public company data.3 Those figures show huge differences. Software, drug makers and many online services tend to sit near the top, because each extra sale costs little to deliver. Grocery stores, car makers and airlines tend to sit much lower, because each sale carries heavy direct costs.

For a small business, three comparisons matter most:

  1. Your own history: is your margin stable, rising or falling?
  2. Similar businesses: trade associations, lenders and accountants can often share typical ranges.
  3. Your break-even needs: is the margin high enough to cover your fixed costs at realistic sales? Our explainer on break-even point shows how to check.

How Can You Improve Gross Margin?

You can widen gross margin by raising what you charge, lowering what each sale costs, or changing what you sell.

  1. Review prices. Even a small, well-explained price rise can lift margin noticeably.
  2. Negotiate with suppliers. Ask for volume discounts, longer payment terms or better freight rates.
  3. Cut waste. Spoilage, damaged stock and rework all raise COGS without adding sales.
  4. Improve efficiency. Better processes or tools can reduce the labor in each unit.
  5. Shift the sales mix. Promote higher-margin products and bundles, and rethink items that barely cover their cost.
  6. Limit heavy discounting. Frequent sales can quietly erode margin across the whole range.

Price and cost changes work best together. A supplier saving of 5% plus a price rise of 3% can lift gross margin by several points without customers noticing much difference at all.

Be careful not to cut costs in ways customers notice. Cheaper materials or rushed work can damage reviews and repeat sales, costing more than the margin gained.

Why Do Gross Margins Differ So Much Between Businesses?

Margins differ because some businesses carry heavy direct costs with every sale, while others carry almost none.

  • Resellers such as grocery and general stores buy finished goods and add a modest margin. Competition keeps prices tight, so they rely on high volume.
  • Manufacturers pay for materials, factory labor and equipment wear for every unit, which keeps margins moderate.
  • Restaurants often have healthy food margins, but labor and waste can squeeze them.
  • Software and digital products cost little to deliver one more copy, so gross margins can be very high, although development and support costs sit lower down the income statement.
  • Service firms depend on staff pay, so margins rise and fall with how efficiently people’s time is used.

Damodaran’s yearly industry data makes these differences visible across hundreds of public companies.3 The lesson for owners is simple: judge your margin against businesses with a similar cost structure, not against the headline numbers of very different industries.

How Do You Find Gross Margin in a Company’s Report?

Public companies show the numbers you need near the top of the income statement in their annual and quarterly reports.

Look for total revenue, often called net sales, and the line called cost of sales, cost of revenue or cost of goods sold. Some companies also show gross profit directly. The SEC’s guide explains that the income statement moves from revenue down through costs to net income, and gross profit is the first stop along the way.1

The annual report filed with the SEC, called the 10-K, contains the full income statement and management’s explanation of what moved margins during the year.2 Comparing gross margin over three to five years shows whether a company’s pricing power is strengthening or weakening.

How Does Gross Margin Work for Online Stores and Services?

The principle is the same, but online sellers and service firms need to be careful about which costs they count.

For online stores, platform fees, payment processing and fulfillment can be large. Some sellers treat them as part of the cost of each sale, which gives a truer picture of what each order really earns. Whatever you choose, be consistent from month to month.

For service businesses, the main direct cost is the time of the people delivering the work. Tracking hours by client or project shows which jobs earn a healthy margin and which ones quietly lose money. Raising rates on low-margin work, or delivering it more efficiently, often improves results more than chasing new clients.

How Do You Track Gross Margin Over Time?

Calculate gross margin every month and look at the trend, not just a single result.

Most accounting software can produce a profit and loss report showing revenue, cost of goods sold and gross profit. Set up your accounts so that direct costs are recorded in COGS categories, not mixed with general expenses.

Track margin by product line where you can. A business-wide average can hide one product with a falling margin that drags everything down. Seasonal businesses should compare each month with the same month last year.

A simple dashboard with three lines, sales, gross profit and gross margin percentage, is enough for most small businesses. Review it with your accountant each quarter.

Cash and margin are different. A healthy gross margin does not guarantee that cash arrives on time. Our explainer on cash flow explains why both matter.

A Worked Example

Here is a made-up example of a coffee shop using gross margin to make decisions.

The shop sells three main items. A latte sells for $5.00 and costs $1.25 in coffee, milk and cup: a 75% gross margin. A sandwich sells for $9.00 and costs $4.50 in ingredients: a 50% gross margin. Bottled juice sells for $4.00 and costs $2.60 to buy in: a 35% gross margin.

The owner had been pushing juice with a display at the counter. After calculating margins, she moves the display to promote a latte and pastry bundle instead. She also renegotiates her milk supply, cutting latte costs by $0.10.

Total sales stay similar, but the overall gross margin rises from 58% to 63% over three months. That extra margin covers a pay rise for staff without raising prices.

How Does Gross Margin Connect to Break-Even?

Gross margin tells you how much each sale contributes toward fixed costs, which makes break-even easy to estimate.

Divide your monthly fixed costs by your gross margin to find the sales you need just to cover them. A made-up shop with $12,000 of monthly fixed costs and a 40% gross margin needs $30,000 of sales a month to break even. At a 50% margin, the same shop needs only $24,000.

That 10-point difference in margin cuts the sales target by a fifth. It shows why even modest margin gains can make a business far more resilient, especially in slow months.

Common Mistakes

A few errors make gross margin misleading.

  • Putting overheads into COGS, which makes margin look worse and hides real product economics.
  • Leaving direct costs out, such as freight in or packaging, which makes margin look better than it is.
  • Confusing margin and markup when setting prices.
  • Comparing with the wrong industry, such as judging a grocery store against a software company.
  • Ignoring stock changes. COGS depends on the inventory you actually used, not just what you bought.
  • Celebrating margin alone, without checking whether operating costs leave any profit.

Key Terms Explained

These words come up whenever margins are discussed.

  • Revenue: total sales before any costs. Our explainer on revenue covers it in depth.
  • Cost of goods sold (COGS): the direct cost of the products or services sold in a period.
  • Gross profit: revenue minus COGS, in dollars.
  • Gross margin: gross profit as a percentage of revenue.
  • Operating expenses: running costs not tied to each sale, such as rent and salaries.
  • Sales mix: the blend of different products a business sells.

The Bottom Line

Gross margin shows how much of every sales dollar is left after direct costs, and it is the first test of whether a business model works. Calculate it as revenue minus cost of goods sold, divided by revenue. Compare it with your own history and similar businesses, and improve it through smarter pricing, lower direct costs and a better sales mix. For more, browse our business explainers.

Frequently Asked Questions

Gross margin equals revenue minus cost of goods sold, divided by revenue, times 100. A $100 sale with $40 of direct costs has a 60% gross margin.

Gross margin subtracts only direct costs. Net profit margin also subtracts operating expenses, interest and taxes, so it is always lower.

Usually, but not on its own. A business also needs enough sales volume and controlled operating costs to turn gross profit into real profit.

It depends on the industry. Compare with similar businesses and make sure the margin covers your fixed costs at realistic sales levels.

Direct costs such as materials, goods bought for resale, production labor, freight in and direct packaging. Rent, marketing and admin salaries are not included.

Margin divides gross profit by the selling price, while markup divides it by cost. A 60% margin on a $40 cost equals a 150% markup.

Sources

  • 1US Securities and Exchange Commission (SEC): Beginners’ Guide to Financial Statements
  • 2Investor.gov (SEC): How to Read a 10-K
  • 3Aswath Damodaran, NYU Stern: Operating and Net Margins by Industry Sector
  • 4Internal Revenue Service (IRS): About Form 1125-A, Cost of Goods Sold

Every figure in this article is checked against the sources above. How we research and fact-check →