FREE TOOL · LIVE YAHOO FINANCE DATA · NO SIGNUP

Gross Margin Calculator — Benchmark by Sector

Calculate gross margin percentage for any stock, then benchmark it against 14 industry sectors. See instantly whether a company retains more or less of each revenue dollar than its peers after direct costs — the cleanest read on pricing power and unit economics.

Enter a ticker to calculate gross margin

Try AAPL, MSFT, or any US-listed company. The calculator pulls live revenue and cost of revenue from Yahoo Finance and benchmarks the gross margin against the sector median.

RELATED TOOL

Screen mid-cap stocks by gross margin →

Rank companies by gross margin to find the businesses with the strongest pricing power — or spot the thin-margin names where competition has eroded the moat.

What Is Gross Margin?

Gross margin is the share of revenue a company keeps after paying the direct cost of the goods or services it sold. The formula is (Revenue − Cost of Goods Sold) ÷ Revenue × 100. A 60% gross margin means that for every dollar of sales, 60 cents is left to cover operating expenses, interest, taxes — and, ultimately, profit. It sits at the very top of the income statement, before overhead, so it isolates the economics of the product itself.

Because it strips out everything below the cost of revenue, gross margin is the cleanest single read on pricing power. A business that can charge well above its input costs — a premium brand, a patented drug, a software platform — carries a high, stable gross margin. One in a commoditized market where competition drives price toward cost carries a thin one. Watch the trend as closely as the level: a slowly compressing gross margin is often the first sign a moat is eroding.

Why Sector Context Decides the Verdict

A 35% gross margin is excellent for a retailer and alarming for a software company. The same number means opposite things in different industries, so gross margin is only meaningful against a sector benchmark. Asset-light software and biotech businesses routinely clear 70%+ because the marginal cost of one more unit is near zero. Energy, materials, and retail run much thinner because physical inputs dominate their cost of revenue. The benchmark card in the calculator compares a company to its own sector's low, median, and high — and flags whether it lands Strong, Average, or Weak.

How to Read the Verdict

Strong — at or above median

The company retains more of each revenue dollar than the typical peer — a sign of pricing power, scale, or a differentiated product mix.

Average — low to median

Gross margin sits in the normal band for the industry. Workable unit economics, but not a standout — check the trend and operating leverage below the gross line.

Weak — below sector low

The company keeps less of each revenue dollar than almost all peers — possible weak pricing power, a commoditized product, or a cost structure that needs scrutiny.

Gross Margin Benchmarks by Sector

SectorLowMedianHigh
Technology40%58%72%
Healthcare42%55%68%
Communication Services38%52%65%
Consumer Discretionary28%40%55%
Consumer Staples22%33%48%
Financials30%44%58%
Real Estate35%48%62%
Industrials18%30%44%
Materials15%28%42%
Utilities28%38%50%
Energy12%24%38%
Retail20%32%48%
Software60%72%85%
Biotech50%65%80%

Indicative sector gross-margin ranges for mid- and large-cap issuers. Always compare a company to its own sector, not the cross-market average.

How to Use This Calculator

1

Enter a ticker

Type any US-listed ticker and click Calculate — live revenue and cost of revenue load from Yahoo Finance.

2

Read the margin

See the gross margin percentage and a verdict badge — Strong, Average, or Weak versus the sector.

3

Check the sector card

Compare the margin to the sector low, median, and high to see where the company really stands.

4

Or enter it manually

Switch to manual input for private companies, pro-forma scenarios, or segment-level analysis.

Frequently Asked Questions

What is the gross margin formula?

Gross Margin % = (Revenue − Cost of Goods Sold) ÷ Revenue × 100. It measures the share of each revenue dollar left after the direct costs of producing the goods or services sold — before operating expenses, interest, and taxes. A 60% gross margin means 60 cents of every revenue dollar remains to cover everything else and, ultimately, profit.

What is a good gross margin?

There is no single number — it depends entirely on the industry. Software and biotech routinely clear 70%+ because the incremental cost of another unit is near zero. Retail, energy, and materials operate on much thinner gross margins because their cost of revenue is dominated by physical inputs. The right benchmark is always the company's own sector median, which is exactly what this calculator compares against.

What is the difference between gross margin and net margin?

Gross margin only subtracts the direct cost of goods sold, so it isolates pricing power and unit economics. Net margin subtracts everything — operating expenses, interest, taxes — to show the share of revenue that becomes bottom-line profit. A company can have a high gross margin but a thin net margin if its overhead, R&D, or interest burden is heavy.

Why do software companies have such high gross margins?

Once software is built, the cost of serving one more customer is minimal — mostly hosting and support. That near-zero marginal cost pushes gross margins toward 70–90%. Physical-goods businesses carry the cost of materials, labor, and logistics in their cost of revenue, so their gross margins are structurally lower even when the business is excellent.

Can gross margin be negative?

Yes. If a company's cost of revenue exceeds its revenue, gross margin is negative — it is losing money on the core product before any overhead. This is common for early-stage companies scaling production or for firms selling below cost to win share, and it is a serious warning sign for a mature business.

Where does the calculator get its data?

Ticker lookups pull the most recent reported annual revenue and cost of revenue from Yahoo Finance. You can also switch to manual input to enter your own Revenue and COGS — useful for private companies, pro-forma scenarios, or segment-level analysis.

FINISHED THE NUMBERS?

A calculator gives you one number. The report gives you the argument.

Assumptions, scenarios, and what breaks them — on any public company.

See a sample report →