Profit Margin Calculator

Calculate Gross Margin, Operating Margin (EBIT), and Net Profit Margin across company revenues.

Complete financial statement profitability diagnostic. Convert revenue, Cost of Goods Sold (COGS), operating expenses (SG&A), and taxes into standard GAAP profitability ratios: Gross Profit Margin, Operating (EBIT) Margin, and Net Profit Margin.

How this calculator works

Gross Margin = (Revenue - COGS) / Revenue * 100. Operating Margin = (Gross Profit - Operating Expenses) / Revenue * 100. Net Margin = Net Income / Revenue * 100.

Key benefits

Assumptions & exclusions

Frequently asked questions

What is a good net profit margin for a business?

Across all US industries, an average net profit margin is around 7% to 10%. Margins vary widely: grocery stores operate at 1%–3%, while software and specialized consultancies often achieve 20%–35%.

What is the difference between gross, operating and net margin?

Gross margin is what remains after direct product costs. Operating margin also subtracts the overhead of running the business. Net margin subtracts interest and taxes as well, leaving the share of each sales dollar the business finally keeps.

Which margin should I watch most closely?

All three, because their gaps diagnose different problems. A wide gap between gross and operating margin points to overhead; a wide gap between operating and net points to borrowing costs or tax. A falling gross margin points to pricing or supplier costs.

Why is my operating margin lower than my gross margin?

Operating margin subtracts rent, payroll, marketing and administration after gross profit. Some drop is normal — overhead is real — but a widening gap over time usually means overhead is growing faster than sales and deserves direct attention.

How can I improve my net profit margin?

The levers sit at each layer: raise prices or reduce direct costs for gross margin, control overhead growth for operating margin, and reduce interest costs for net margin. Small gains at the gross layer are usually the most powerful.

Should margins from different periods use the same cost classification?

Yes. Moving a cost between direct costs and operating expenses changes the gross and operating margins without changing the business. Consistent classification is what makes period-to-period margin comparisons meaningful.

Formula-Based Calculator · By QalcTools Editorial Team. Formulas tested against independent reference values · Content reviewed November 2026 by the QalcTools Editorial Team.

Methodology note: GAAP financial statement analysis and corporate finance benchmarking.

Related calculators

Category: Business & Commercial Calculators

About this calculator

Revenue tells you how much a business sells; margins tell you whether selling is worth it. This calculator takes one period of trading — revenue, the direct cost of what was sold, operating expenses, and interest and taxes — and expresses the result as three margins stacked in a waterfall. The gross margin shows what survives the direct costs of your product. The operating margin shows what survives running the business. The net margin shows what the owner actually keeps from each dollar of sales. Reading the three together locates where profit leaks: at the product, in the overhead, or in financing and tax.

How it works

Enter total revenue for the period, then the cost of goods sold — the direct materials, production labor and delivery costs of what you sold. Subtracting gives gross profit and the gross margin. Enter operating expenses next: rent, payroll, marketing and administration. Subtracting those gives operating profit and its margin, the result of the business itself before financing. Finally enter interest and taxes together, as the page groups them, and subtracting gives net profit and the net margin. Every figure covers the same period, and each margin is its profit divided by the same revenue, so the three percentages are directly comparable as slices of one sales dollar.

The formula, explained

Gross margin = (Revenue − Cost of goods sold) ÷ Revenue × 100; Operating margin = (Gross profit − Operating expenses) ÷ Revenue × 100; Net margin = (Operating profit − Interest & taxes) ÷ Revenue × 100

The engine floors each entry at zero and works down the waterfall in order: gross profit is revenue minus cost of goods sold, operating profit subtracts operating expenses from gross profit, and net profit subtracts the combined interest-and-taxes figure from operating profit. Each margin is its profit level divided by revenue, multiplied by 100, and reported to one decimal place; when revenue is zero, every margin reports zero rather than an error. Dollar profits are rounded to whole dollars. There is no annualizing, averaging or benchmarking inside the engine — it converts the four figures you enter into the three standard margins exactly, which is why matching periods and consistent cost classification matter so much.

Inputs and variables

VariableMeaningExample
Total RevenueAll sales for the period you are examining, net of refunds and discounts as you record them. Every margin is a share of this figure, so its accuracy governs all three results.$640,000
Cost of Goods SoldThe direct cost of what was sold in the same period: materials, production or delivery labor, and freight on goods. Costs of running the business do not belong here.$352,000
Operating ExpensesThe overhead of operating: rent, office and management payroll, marketing, software and professional fees. These are subtracted after gross profit to reach operating profit.$176,000
Interest and TaxesLoan interest and income taxes for the period, combined into one entry on this page. Subtracting them from operating profit leaves the bottom line.$28,000

Worked example

A regional services firm records $640,000 of revenue for the year, $352,000 of direct delivery costs, $176,000 of operating expenses, and $28,000 of combined interest and taxes. The owner wants all three margins to see where the year’s profit thinned.

  1. Gross profit: $640,000 − $352,000 = $288,000. Gross margin: $288,000 ÷ $640,000 = 45.0%.
  2. Operating profit: $288,000 − $176,000 = $112,000. Operating margin: $112,000 ÷ $640,000 = 17.5%.
  3. Net profit: $112,000 − $28,000 = $84,000. Net margin: $84,000 ÷ $640,000 = 13.1%.
  4. Of each sales dollar, 55 cents went to direct costs, 27.5 cents to overhead, and about 4.4 cents to interest and taxes — leaving 13.1 cents kept.

Gross margin 45.0% ($288,000), operating margin 17.5% ($112,000) and net margin 13.1% ($84,000) on $640,000 of revenue.

The waterfall tells a coherent story: the product itself is healthy at a 45 percent gross margin, the business keeps a solid 17.5 percent after overhead, and financing and tax take a modest further slice to leave 13.1 percent — a respectable bottom line for a services firm. The diagnostic value appears when one layer breaks pattern. A strong gross margin with a weak operating margin indicts overhead; a strong operating margin with a weak net margin indicts debt or tax. Here no layer is broken, so growth — more sales at these margins — is a safer ambition than cost surgery.

Understanding your results

Compare margins within your own business over time before comparing them with anyone else’s. A net margin rising from 9 to 13 percent across three years says management is working, whatever other firms achieve. Cross-business comparisons only make sense inside the same industry and model: a grocer keeping 2 percent net can be excellently run, while a consultancy keeping 13 percent may be underperforming its peers. The three-layer structure travels across industries better than any single margin, because it shows where a business model spends its sales dollar by design rather than by failure.

Margins also translate directly into pricing and cost decisions. Each point of gross margin on $640,000 of revenue is $6,400 a year, so a supplier increase that costs two points of margin is a $12,800 decision, not an abstraction. Likewise, the gap between gross and operating margin is the overhead budget expressed as a share of sales — the figure to watch when headcount or rent grows faster than revenue. When a margin moves, this page cannot say why, but it tells you precisely which layer to investigate first.

Assumptions and limitations

Margins are ratios, and they inherit every judgment inside the figures you enter. Classifying a cost as direct or overhead moves profit between the gross and operating layers without changing the business at all, and owner-run firms often blur salary, vehicle and premises costs between personal and business use. The figures also describe one period: a seasonal business can post superb and dismal margins in adjacent quarters that average to something ordinary. Finally, margins say nothing about cash — a profitable period can still strain the bank account when customers pay slowly. Use the three margins to direct questions, then answer them in your accounts and bank statements.

Common mistakes to avoid

Sources