ToolsProfit Margin Calculator

Free tool · No signup · Live ticker data

Profit Margin Calculator

Calculate gross, operating, and net profit margins for any company. Enter a ticker to auto-populate from live income statement data — or input your own numbers. See how margins compare to sector medians, track 5-year trends, and get a plain-English verdict.

Inputs

Results

Enter income statement data to see margins

Load a ticker for live data, or enter values manually. Results update instantly.

How to use this profit margin calculator

1

Load a ticker or enter values manually

Type any US-listed ticker and click Load to auto-populate revenue, COGS, operating income, and net income from the latest income statement. Or toggle to manual entry for custom analysis.

2

Read the three margin gauges

Gross margin shows production efficiency, operating margin shows core business profitability, and net margin shows bottom-line earnings. Green means above sector median, red means below.

3

Check the 5-year trend

Expanding margins over time signal improving efficiency or pricing power. Contracting margins warn of rising costs, competitive pressure, or margin compression.

4

Compare to sector peers

The verdict line compares each margin to the sector median. A company with margins well above the median likely has a competitive moat — pricing power, scale, or a differentiated product.

Understanding Profit Margins

What is gross margin?

Gross margin is the percentage of revenue remaining after subtracting the direct cost of producing goods or services (COGS). It measures how efficiently a company turns raw inputs into revenue. A software company with 80% gross margin keeps $0.80 of every dollar after server and delivery costs. A manufacturer with 25% gross margin keeps $0.25 after materials and factory labor.

Gross margin is the first line of defense for profitability. If gross margins are thin, there's little room for R&D, marketing, or profit after operating expenses. Declining gross margin often signals rising input costs, pricing pressure from competitors, or a shift toward lower-margin products.

Operating margin vs. net margin

Operating margin captures profitability from core operations — revenue minus both COGS and operating expenses (SG&A, R&D, depreciation). It excludes interest payments and taxes, making it the best metric for comparing companies with different capital structures or tax jurisdictions.

Net margin is the bottom line — what's left after all expenses including interest, taxes, and one-time charges. The gap between operating and net margin reveals how much earnings are consumed by debt service and taxes. A company with 20% operating margin but 5% net margin is heavily leveraged or facing high effective tax rates.

Why margins matter for investors

Margins reveal competitive advantages that revenue growth alone cannot show. Two companies each growing revenue 15% annually look identical — until you see one has expanding margins while the other's are compressing. The first is gaining pricing power or scale; the second is buying growth at the expense of profitability.

High and stable margins often indicate a moat: brand power (Apple), switching costs (Microsoft), network effects (Visa), or regulatory barriers (utilities). Companies with thin, volatile margins face commoditization risk — they compete on price, not differentiation.

How to use margin trends

A single year's margin is a snapshot. The trend over 3–5 years tells the real story. Expanding margins suggest the company is gaining operating leverage — growing revenue faster than costs. This is the hallmark of a well-run business with scalable economics.

Watch for margin peaks that coincide with cyclical highs. Energy companies may show 25% net margins at peak oil prices, but those margins will compress when commodity prices fall. Separate structural margin improvement (from better products, lower costs) from cyclical margin expansion (from favorable market conditions).

Profit Margins by Sector — Benchmarks

SectorGrossOperatingNet
Technology60–75%25–35%20–30%
Healthcare55–70%15–25%10–20%
Consumer Discretionary30–50%8–15%5–10%
Consumer Staples30–40%10–18%5–12%
Industrials25–40%10–18%6–12%
Energy30–50%10–20%5–15%
Utilities40–55%15–25%8–15%
Real Estate50–65%25–40%15–30%
Basic Materials25–40%10–20%5–12%
Financial Services50–80%25–40%20–35%

Frequently asked questions

What is a good profit margin?

A 'good' profit margin depends on the industry. Software companies often have gross margins above 70% and net margins of 20-30%. Grocery retailers may have gross margins of 25-30% and net margins of 1-3%. The key is comparing a company's margins to its sector peers, not to companies in different industries. Improving margins over time is generally a positive sign regardless of the absolute level.

How do you calculate gross margin?

Gross Margin = (Revenue − Cost of Goods Sold) ÷ Revenue × 100. Revenue is total sales. Cost of goods sold (COGS) includes direct costs to produce the product — raw materials, direct labor, and manufacturing overhead. The result is expressed as a percentage. For example, if revenue is $100M and COGS is $60M, gross margin is ($100M − $60M) ÷ $100M = 40%.

What is the difference between gross margin and net margin?

Gross margin measures profitability after only direct production costs (COGS), while net margin measures profitability after all expenses including operating costs, interest, and taxes. A company with 60% gross margin but 5% net margin has high production efficiency but heavy overhead, debt service, or tax burden. The gap between gross and net margin reveals how much of the company's revenue is consumed by non-production costs.

What does operating margin tell you?

Operating margin (operating income ÷ revenue) shows how much profit a company earns from its core business operations before interest and taxes. It captures both production costs (COGS) and operating expenses (SG&A, R&D, depreciation). Operating margin is the best single metric for comparing operational efficiency across companies because it excludes capital structure decisions (debt levels) and tax strategies that affect net margin.

How can a company improve its profit margins?

Companies improve margins through pricing power (raising prices without losing customers), cost reduction (negotiating supplier contracts, automating processes), revenue mix shift (selling more high-margin products), and operating leverage (spreading fixed costs over growing revenue). Sustainable margin improvement typically comes from competitive advantages like brand strength, switching costs, or network effects — not one-time cost cuts.