Audited ·Last updated 27 Jul 2026·7 citations·Tier 1·0 uses

Profit Margin Calculator

Free profit margin calculator. Compute gross, operating, and net margin from revenue, COGS, operating expenses, and taxes — with worked examples.

Profit Margin Calculator

Top-line net sales — gross sales less returns, allowances, and trade discounts. This is the same figure your income statement labels "Net revenue" or "Net sales."
$
Direct costs of producing the goods or services you sold — raw materials, direct labor, freight-in, and manufacturing overhead. Excludes SG&A and R&D.
$
Selling, general and administrative expenses, research and development, depreciation, and amortization — every operating cost below the gross-profit line. Excludes interest and taxes.
$
Net interest expense plus current and deferred income tax provision — the items between operating income and net income on a standard 10-K income statement.
$
Net profit margin
15.00
Net income as a percentage of revenue — the bottom-line profitability ratio after all costs, interest, and taxes are deducted.
Gross margin
40.00%
Operating margin
20.00%
Gross profit
$400.00
Operating profit (EBIT)
$200.00
Net profit (net income)
$150.00

Background.

A profit margin calculator unpacks a single sales dollar into the three layers of profitability that every income statement reports — gross, operating, and net — and tells you what share of revenue each one keeps. Margin is the most quoted profitability ratio in corporate finance because it strips scale out of the comparison: a corner café earning $20,000 of net income on $100,000 of revenue runs a healthier business by this measure than an enterprise software vendor earning $200 million on $4 billion, even though the absolute dollars differ by four orders of magnitude. This tool computes all three margins from a standard set of inputs — revenue, cost of goods sold, operating expenses, and the combined block of interest expense and income taxes — and reports each one as both a dollar profit and a percentage of revenue. The three layers exist because each answers a different question.

Gross margin, equal to (Revenue − COGS) ÷ Revenue, measures pricing power and product economics. It tells you how much room a business has to absorb operating costs, fund growth, and still return capital to owners. Brealey, Myers and Allen call gross margin the cleanest read on a firm's competitive position because it sits above almost every discretionary cost: SG&A budgets can be cut, R&D can be deferred, and capital structure can be re-engineered, but the gap between the price you charge and the cost of producing what you sell reflects genuine economic moat. Software companies routinely run 75–85% gross margins because their marginal cost of distribution is near zero; specialty retailers run 35–45%; grocery chains run 20–25%; commodity producers run 5–15%. When gross margin compresses, almost nothing further down the income statement can save the franchise.

Operating margin, equal to (Gross profit − Operating expenses) ÷ Revenue, measures the profitability of the core business once you have paid the people and infrastructure that run it. The SEC requires public companies to report operating income on Form 10-K precisely because it isolates the productivity of the operating engine from financing decisions (interest) and government policy (taxes). Two firms with identical operating margins but different capital structures will report very different net margins; analysts therefore use operating margin to compare businesses on a like-for-like basis. EBITDA margin — operating margin plus depreciation and amortization — is a closely related metric popularized by leveraged-buyout investors who wanted a cash-proxy that ignored non-cash charges; it is not a GAAP measure and the SEC requires reconciliation to operating income whenever it is disclosed.

Net margin, equal to (Operating profit − Interest − Taxes) ÷ Revenue, is the bottom line. It is what eventually flows to retained earnings and, ultimately, to shareholders. Net margin is the most commonly cited margin in the financial press because it is the simplest, but Damodaran warns in Investment Valuation that net margin is also the noisiest of the three: it is contaminated by one-time tax items, non-recurring write-downs, financing decisions that vary across firms, and accounting choices on depreciation methods and inventory costing (LIFO versus FIFO). For comparing operating performance year-over-year or against peers, operating margin is usually more reliable.

What managers and investors do with these three numbers diverges. Managers use the trend in gross margin as an early warning system — a 200-basis-point decline year-over-year almost always signals either input-cost inflation that has not been passed through, a competitive price war, or a shift in product mix toward lower-margin lines, and any of those needs immediate action. Operating margin tells the CEO whether the operating leverage is working as designed: when revenue grows faster than fixed operating costs, operating margin should expand mechanically, and when it does not, the gap between expected and realized margin is the diagnostic. Net margin is the headline shareholders read, but seasoned analysts will normalize it for one-time items and compare against the CFA Institute's industry-benchmark medians or Aswath Damodaran's annually-updated margin tables at NYU Stern. Run the numbers below, then read the explainer to understand which margin matters for which decision.

What is profit margin calculator?

Profit margin is the ratio of a profit measure to revenue, expressed as a percentage. There are three standard layers, each progressively further down the income statement. Gross profit margin is gross profit (revenue minus cost of goods sold) divided by revenue — it measures the percentage of every sales dollar left after paying for direct production costs. Operating profit margin is operating income (gross profit minus operating expenses including SG&A, R&D, and depreciation) divided by revenue — it measures the profitability of the core business before financing and taxes, and is also called EBIT margin. Net profit margin is net income (operating income minus interest expense and income taxes) divided by revenue — it measures the share of each sales dollar that ultimately flows to shareholders as profit. The three layers come from the standard income-statement format prescribed by the SEC for Form 10-K filings and adopted in similar form by every major accounting framework (US GAAP, IFRS, and equivalents). Profit margin is a backward-looking metric: it measures realized profitability for a completed period, not future expectation. It is also scale-invariant — a 15% net margin describes the same business whether the firm has $100,000 of revenue or $100 billion — which makes it the standard ratio for cross-firm comparison. This calculator computes all three margins, plus the corresponding dollar profit figures, from any combination of revenue, COGS, operating expenses, and the combined block of interest expense and income taxes.

How to use this calculator.

  1. Enter net revenue — the top line of your income statement, which is gross sales less returns, allowances, and trade discounts. Use the period total: monthly, quarterly, or annual, whichever you are analyzing.
  2. Enter cost of goods sold — only the direct costs of producing what you sold during the same period. This includes raw materials, direct labor, freight-in, and manufacturing overhead, but excludes SG&A, R&D, marketing, interest, and taxes.
  3. Enter operating expenses — selling, general and administrative costs (SG&A), research and development (R&D), depreciation, and amortization. Anything between gross profit and operating income on a GAAP income statement belongs here. Leave at zero if you only need gross margin.
  4. Enter the combined block of interest expense and income taxes — net interest paid plus the current and deferred tax provision. Use the period figure that matches revenue. Leave at zero if you only need gross and operating margin.
  5. Read the six outputs. Net profit margin is the headline number — net income as a percentage of revenue. Gross margin and operating margin sit above it. The three corresponding dollar figures show the absolute profit at each layer.
  6. Compare against industry benchmarks. NYU Stern professor Aswath Damodaran publishes free annual tables of margin by industry — use those for context. A 15% net margin is excellent for a grocery chain and mediocre for a software company.

The formula.

Net margin = (Rev − COGS − OpEx − T) ⁄ Rev × 100%

Three formulas drive this calculator, each layered on the one above. Gross margin is computed as (Revenue − COGS) ÷ Revenue × 100. The numerator is gross profit in dollars; the denominator is revenue; the ratio is expressed as a percentage. Operating margin extends this by subtracting operating expenses from gross profit before dividing: Operating margin = (Gross profit − Operating expenses) ÷ Revenue × 100. The numerator is operating income (also called EBIT, earnings before interest and taxes). Net margin completes the stack by deducting interest and taxes from operating profit: Net margin = (Operating profit − Interest − Taxes) ÷ Revenue × 100. The numerator is net income, the bottom line of the income statement. All three formulas use the same denominator (revenue), which is why the three margins are directly comparable — the gap between gross and operating margin is the SG&A and R&D burden as a percentage of sales, and the gap between operating and net margin is the combined interest and tax burden. All arithmetic in this calculator is performed in arbitrary-precision decimal math to avoid the rounding errors that affect spreadsheet implementations on large revenue figures. Revenue must be positive; COGS, operating expenses, and taxes-and-interest are clamped to zero or above.

A worked example.

Example

Suppose a small consumer-products business posts $1,000 of revenue in a month, $600 of cost of goods sold (raw materials and direct labor on the units shipped), $200 of operating expenses (rent, salaries, marketing), and $50 in combined interest and tax. The calculator computes gross profit of $400 — that is $1,000 in revenue minus $600 in COGS — for a gross margin of 40%. Operating profit is $400 − $200 = $200, producing an operating margin of 20%. Net profit is $200 − $50 = $150, producing a net margin of 15%. Each margin tells a different story. The 40% gross margin says the business has a healthy gap between price and direct cost — comfortably above the 25–30% retail-average benchmark Damodaran reports for consumer goods. The 20% operating margin says fixed operating costs (rent, salaries, marketing) consume half of the gross profit; if the business grows revenue without proportionally growing those costs, operating margin will expand mechanically as the firm scales. The 15% net margin is what flows to retained earnings — for every $1 of sales, 15 cents ultimately becomes profit. Compare that against the S&P 500's median net margin of roughly 10–12% and the business is materially above the broad-market average. If the owner wants to improve the bottom line, the gap between gross and operating margin is the lever: every dollar of operating-expense reduction drops straight through to net income, whereas COGS reductions of the same dollar amount also pass through dollar-for-dollar but tend to be harder to achieve in a manufacturing business.

revenue1,000
cogs600
operating Expenses200
taxes And Interest50

Frequently asked questions.

What is the difference between margin and markup?
Margin and markup describe the same dollar gap between price and cost, but use different denominators. Margin divides gross profit by the selling price: a $40 profit on a $100 selling price is a 40% margin. Markup divides gross profit by the cost: that same $40 profit on a $60 cost is a 67% markup. The two are related — a 40% margin corresponds to a 67% markup, a 50% margin to a 100% markup, and so on — but they are not interchangeable. Retailers usually quote markup to set shelf prices because they start from cost; investors and analysts quote margin because they start from revenue. Confusing the two is one of the most common pricing errors in small-business finance.
What is considered a good profit margin?
Industry-dependent. NYU Stern's Aswath Damodaran publishes free annual margin tables by sector — these are the canonical reference. Software and IT services routinely earn 20–30% net margins because of near-zero marginal cost of distribution. Pharmaceuticals run 15–25% on the back of patent protection. Banks earn 20%+ in good years. Specialty retail typically runs 5–10% net margin; grocery 1–3%; airlines and commodity manufacturing often run below 5% and lose money outright in downturns. The S&P 500 historical median net margin is roughly 10–12%. Any business materially below its industry median needs a defensible explanation; materially above usually indicates either real competitive advantage or accounting choices that will normalize.
Why do software companies have higher gross margins than retailers?
Marginal cost. The COGS of an additional software license is almost zero — a copy of installed code distributed over the internet — so gross margin compresses only when cloud hosting, customer support, or implementation services scale with revenue. SaaS gross margins of 75–85% are typical, with the upper end reserved for self-serve products that need no human in the sales loop. Retailers, by contrast, have a hard floor on COGS: every unit sold carries a wholesale cost that must be paid to a supplier. A grocer paying $0.80 wholesale to sell at $1.00 retail has a 20% gross margin by mathematical necessity, no matter how efficient the supply chain. The gross-margin gap between software and retail is the single biggest reason software businesses command higher valuation multiples — there is more dollar room below the gross-profit line to absorb operating cost, fund growth, and return capital.
What is the difference between operating margin and EBITDA margin?
Operating margin is operating income (EBIT) divided by revenue — it includes depreciation and amortization as expenses, because GAAP treats those as operating costs. EBITDA margin adds depreciation and amortization back into the numerator: EBITDA = EBIT + D&A. The difference matters for capital-intensive businesses where D&A is a large non-cash charge. A telecom with $10 billion of EBIT and $4 billion of D&A reports an EBIT margin lower than its EBITDA margin by 400 basis points of revenue. Private-equity and LBO investors prefer EBITDA because it approximates operating cash flow before working-capital changes. The SEC treats EBITDA as a non-GAAP measure and requires public companies to reconcile it to the nearest GAAP figure (usually net income or operating income) whenever they disclose it. For most operating analysis, EBIT margin is more rigorous; for cash-coverage analysis, EBITDA margin is more useful.
How do I calculate net profit margin from an income statement?
Find the line labeled "Net income" (or "Net earnings") at the bottom of the income statement. Find the top-line figure labeled "Total revenue" or "Net sales." Divide net income by revenue and multiply by 100. On a Form 10-K, both figures are reported in the "Consolidated Statements of Operations" section. Be careful with non-recurring items: a one-time gain on sale of a subsidiary, an impairment charge, or a tax-reform adjustment can swing net margin by hundreds of basis points in a single year. Most analysts compute both reported net margin and an "adjusted" or "normalized" net margin that strips out one-time items, then compare the adjusted figure against prior periods. Damodaran's Investment Valuation devotes a full chapter to normalization adjustments.
Why is gross margin a better measure of pricing power than net margin?
Gross margin sits above almost every discretionary cost. SG&A budgets can be cut, R&D can be deferred, interest expense can be refinanced, tax rates depend on jurisdiction and structure — every line item below gross profit is influenced by decisions that have little to do with the underlying product economics. The gap between the price you charge and the cost of producing what you sell, by contrast, reflects genuine market position: differentiated products with weak substitutes command higher prices and therefore higher gross margins. Brealey, Myers and Allen use gross margin as the canonical proxy for competitive moat in Principles of Corporate Finance. A business with a sustainably high gross margin has room to absorb shocks, invest in growth, and still return capital; a business with a thin gross margin has nowhere to hide when costs rise or competition intensifies.
Can profit margin be negative, and what does that mean?
Yes. Any margin is negative when its numerator is negative. Gross margin is negative when COGS exceeds revenue — the business is selling its product below direct cost, usually because of penetration pricing, mispricing, or supply-cost shock. This is unsustainable beyond a short window. Operating margin is negative when SG&A and R&D drag operating income below zero even though gross profit is positive — this is common for early-stage growth companies investing ahead of revenue, and is acceptable if the operating loss is funded by investors who expect the loss to narrow as revenue scales. Net margin is negative whenever the firm reports a net loss for the period. Investors tolerate negative net margin in pre-profit growth stories but require a credible path to break-even within a defined window; in mature industries, negative net margin is a serious warning sign.
How do taxes and interest affect net margin?
Interest expense and income tax are the two items between operating income and net income on a GAAP income statement, and both compress net margin relative to operating margin. Interest expense is a function of capital structure — a highly leveraged firm pays more interest per dollar of revenue than a debt-free competitor with the same operating margin, so its net margin will be lower even though the businesses are operationally identical. Income tax is a function of jurisdiction and structure: US C-corps face a 21% federal statutory rate plus state taxes (effective rates typically 22–27%), while pass-through entities pay nothing at the corporate level. The CFA Institute's equity curriculum recommends comparing firms on operating margin (EBIT margin) to neutralize both capital-structure and tax-jurisdiction differences before drilling into net-margin gaps.
How does this calculator differ from a markup calculator?
A markup calculator works in the opposite direction. Markup tools start from cost and a target markup percentage and solve for the selling price — they are pricing tools used by retailers and resellers who buy at wholesale and need to set a shelf price. This profit-margin calculator starts from a completed income statement (revenue, COGS, operating expenses, interest and tax) and reports the three layers of margin already realized. The two are mathematical inverses: given a cost and a price, markup and margin are deterministic functions of each other. Quanta publishes both because they sit at opposite ends of the workflow — markup before the sale, margin after.

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon