Margin Calculator

Business

Calculate gross and net profit margins from cost and revenue

A margin calculator answers the most important question in any business: how much of each sale do you actually keep? Profit margin is the single number that tells you whether a business is actually making money, and how much of every dollar in sales it gets to keep. Two companies can post identical $500,000 in revenue and be in completely different financial health depending on their margin — one keeping $100,000 in profit, the other barely breaking even. Investors, lenders, and business owners all rely on margin percentages rather than raw dollar figures because margins are comparable across companies of any size.

This calculator computes both gross profit margin and net profit margin from the numbers you already have on your income statement: revenue, cost of goods sold (COGS), and net income. Gross margin shows how efficiently you produce or source what you sell, before overhead. Net margin shows what's left after every expense — rent, payroll, marketing, taxes, interest — is paid.

Whether you're pricing a new product, benchmarking against industry averages, or preparing financials for a loan application, knowing your exact margin — not a rough guess — is essential. Enter your figures below and get both margin percentages instantly, along with the dollar amounts behind them.

Why Margin Calculator Matters

Profit margin is the clearest signal of business health because it strips away scale. A $10 million company with a 3% margin ($300,000 profit) is in a more fragile position than a $500,000 company with a 20% margin ($100,000 profit) — the smaller company has far more cushion relative to its costs. Lenders and investors use margin trends, not revenue growth alone, to judge whether a business is sustainable.

Pricing decisions: If your gross margin is too thin, a single supplier price increase or a slow sales month can push you into a loss. Calculating margin before setting prices tells you exactly how much room you have to discount, negotiate with suppliers, or absorb rising costs without eroding profitability.

Benchmarking and diagnosis: Industry-average margins vary enormously — software companies often see gross margins above 70%, while grocery retailers operate on 2–3% net margins. Comparing your margin to your industry average reveals whether you're pricing correctly, controlling costs effectively, or losing money on operations that look profitable on the surface. A gross margin that looks healthy but a net margin near zero usually points to bloated overhead rather than a pricing problem.

The Margin Calculator Formula, Explained

Gross Margin % = (Revenue − COGS) / Revenue × 100; Net Margin % = Net Income / Revenue × 100

Where: Revenue = total sales before any deductions, COGS = cost of goods sold (direct costs of producing what you sold — materials, direct labor, manufacturing overhead), Net Income = revenue minus every business expense including COGS, operating expenses, interest, and taxes.

Gross margin isolates production efficiency: it answers 'how much do I make on each sale before running the business?' Net margin answers the bigger question: 'after paying for everything, how much do I actually keep?' The gap between the two margins is your operating expenses (rent, salaries, marketing, admin) as a percentage of revenue — tracking that gap over time reveals whether overhead is growing faster than sales.

A related figure, operating margin, sits between the two: Operating Margin % = Operating Income / Revenue × 100, where operating income excludes interest and taxes but includes operating expenses.

How to Use the Margin Calculator: Step by Step

  1. Enter total revenue

    Input total sales for the period you're analyzing (month, quarter, or year) before any costs are subtracted.

  2. Enter cost of goods sold (COGS)

    Include only direct costs tied to producing what you sold — materials, direct labor, and manufacturing overhead. Exclude rent, marketing, and admin salaries.

  3. Review your gross margin

    The calculator instantly shows gross profit in dollars and as a percentage of revenue — this is your margin before operating expenses.

  4. Enter net income (optional)

    If you want your net margin too, enter net income (revenue minus every expense including taxes) to see the percentage of revenue you actually keep.

  5. Compare against industry benchmarks

    Check your resulting margin against typical ranges for your industry to see whether you're pricing competitively or losing money to costs.

Margin Calculator Examples: Real-World Scenarios

1

Retail Product Company — Gross and Net Margin

A home goods brand reports $250,000 in quarterly revenue, with $150,000 in cost of goods sold and $30,000 in net income after all operating expenses and taxes.

Revenue:$250,000
COGS:$150,000
Net income:$30,000

Calculation

Gross margin = (250,000 − 150,000) / 250,000 × 100 = 40%. Net margin = 30,000 / 250,000 × 100 = 12%

Result

Gross margin: 40% ($100,000 gross profit). Net margin: 12% ($30,000 net profit). The 28-point gap between gross and net margin represents operating expenses eating into profitability.

2

Small Café — Thin Margins After Overhead

A neighborhood café generates $80,000 in monthly revenue, spends $52,000 on ingredients and direct labor (COGS), and has $18,000 in rent, utilities, and other operating expenses.

Revenue:$80,000
COGS:$52,000
Operating expenses:$18,000

Calculation

Gross profit = 80,000 − 52,000 = 28,000. Gross margin = 28,000/80,000×100 = 35%. Net income = 28,000 − 18,000 = 10,000. Net margin = 10,000/80,000×100 = 12.5%

Result

Gross margin: 35%. Net margin: 12.5% ($10,000 profit). A 35% gross margin is typical for food service, and overhead of $18,000 leaves a healthy but thin cushion for slow months.

3

SaaS Company — High Gross Margin Business

A subscription software company earns $1,200,000 in annual revenue with only $180,000 in COGS (hosting, support staff, payment processing fees).

Revenue:$1,200,000
COGS:$180,000

Calculation

Gross margin = (1,200,000 − 180,000) / 1,200,000 × 100 = 85%

Result

Gross margin: 85% ($1,020,000 gross profit). This is typical of software businesses, where the marginal cost of serving an additional customer is very low compared to physical product businesses.

Common Mistakes to Avoid

  • Confusing markup with margin — a 50% markup on cost (selling price = cost × 1.5) produces only a 33.3% margin, not 50%. These are different formulas measuring different things; use our dedicated markup calculator when pricing from cost.
  • Including operating expenses in COGS — only direct production costs belong in COGS. Adding rent, marketing, or admin salaries artificially deflates gross margin and hides how efficient your core production actually is.
  • Comparing margins across unrelated industries — a 10% net margin is strong for a grocery store but weak for a software company. Always benchmark against your specific industry.
  • Ignoring margin trends over time — a single period's margin tells you less than the trend. A steadily declining gross margin often signals rising input costs or discounting that needs attention before it compounds.

Tips & Tricks

  • Track gross margin monthly, not just annually — catching a two-point margin decline early is much easier to fix than discovering it a year later in annual financials.
  • If your net margin is thin but gross margin is healthy, the problem is overhead, not pricing — audit fixed costs like software subscriptions, rent, and staffing before raising prices.
  • Use contribution margin (price minus variable cost per unit) alongside overall profit margin when making per-product pricing decisions — it's more precise for individual product lines than blended company-wide margin.

Profit margin turns raw revenue and cost figures into the single most important measure of business health: how much of every dollar you actually keep. Use this calculator regularly to track gross and net margin trends, catch cost creep early, and benchmark against your industry. For pricing decisions built directly from cost, pair this with our markup calculator and break-even calculator to understand exactly how volume and pricing interact with your margins.

Margin Calculator — Frequently Asked Questions

Related Calculators

Authoritative References

External links open in a new tab. OmniCalc.us is not affiliated with these organisations.

Related Calculators