Profit Margin Calculator

Profit Margin Calculator
calculate your margins in seconds.

Find your gross profit margin, operating margin, and net margin instantly. Built for small business owners, freelancers, and entrepreneurs who need real numbers β€” not estimates.

No sign-up
Always free
Works offline
All three margins

← All Calculators

Profit margin in 30 seconds

Profit margin is the percentage of your revenue that remains as profit after costs. A 10% margin means you keep 10 cents of every dollar you sell. The three types are gross margin (after production costs), operating margin (after operating expenses), and net margin (after everything) β€” each calculated as (profit ÷ revenue) × 100. Type your numbers into the calculator above for an instant answer.




Gross Margin Calculator

Enter your revenue and cost of goods sold (COGS) to calculate gross profit margin. This is the most commonly used margin metric for product-based businesses.

$

$

Enter revenue and COGS above to see your gross margin.

Operating Margin Calculator

Measures profitability after COGS and operating expenses like salaries and rent β€” before interest and taxes. Also called EBIT margin.

$

$

$

Salaries, rent, utilities, marketing, etc.

Enter values above to see your operating margin.

Net Margin Calculator

The true bottom line β€” the percentage of revenue that remains as profit after every single expense: COGS, operating costs, interest, and taxes.

$

$

After all costs, taxes & interest

Enter revenue and net income above to see your net margin.

All Three Margins

Enter your full income statement to calculate gross, operating, and net margin at once β€” the same view your accountant or investor would want to see.

$

$

$

$

$

Enter your income statement above to see all three margins.

Industry Benchmark Reference
β‰₯ 20%
Strong
10 – 20%
Moderate
< 10%
Thin

What Is Profit Margin?

Profit margin is the percentage of your revenue that remains as profit after you subtract your costs. It’s the single most revealing number in any business β€” more telling than revenue alone, because it shows how efficiently you turn sales into actual profit.

Think of it this way: a 10% margin means you keep 10 cents of every dollar you sell. A 40% margin means you keep 40 cents. Two businesses can both earn $500,000 in revenue, but if one has a 35% margin and the other a 12% margin, they’re in completely different financial positions β€” the higher-margin business has far more room to invest, weather slow months, and reward its owners.

Margin is also the number lenders, investors, and accountants always ask for. If you can state your gross, operating, and net margins with confidence, you’re speaking their language β€” and the calculator at the top of this page gives you all three in seconds.

The Three Types of Profit Margin (Gross, Operating, Net)

Each margin type measures a different layer of your business. Gross margin tests your pricing and production; operating margin tests how lean your operations are; net margin is the true bottom line β€” what you actually keep. Gross margin is always the highest of the three; net is always the lowest.

Margin type The question it answers Formula
Gross margin How profitably do I produce or deliver? (Revenue − COGS) ÷ Revenue × 100
Operating margin How profitably do I run the business day-to-day? (Revenue − COGS − OpEx) ÷ Revenue × 100
Net margin How much of every dollar do I actually keep? Net Income ÷ Revenue × 100

Formulas

Gross Profit Margin
Gross Margin % = ((Revenue βˆ’ COGS) Γ· Revenue) Γ— 100
Operating Profit Margin
Operating Margin % = ((Revenue βˆ’ COGS βˆ’ OpEx) Γ· Revenue) Γ— 100
Net Profit Margin
Net Margin % = (Net Income Γ· Revenue) Γ— 100

Gross margin example: $100,000 revenue − $60,000 COGS = $40,000 gross profit → 40%.

Operating margin example: $100,000 revenue − $60,000 COGS − $15,000 operating expenses = $25,000 operating profit → 25%.

Net margin example: $100,000 revenue − $80,000 in total costs (including interest and taxes) = $20,000 net income → 20%.

COGS (Cost of Goods Sold) covers only the direct costs of making your product or delivering your service. OpEx (Operating Expenses) covers overhead like salaries, rent, utilities, and marketing. Everything left after that β€” interest and taxes included β€” is net income.

Profit Margin vs. Markup β€” What’s the Difference?

Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost. They describe the same sale β€” but they always produce different numbers, and confusing them is one of the most expensive mistakes in business.

Take a product you buy for $60 and sell for $100. Your profit is $40 either way:

Same $40 profit, two numbers

Margin (profit ÷ price)
$40 ÷ $100 × 100 = 40%
Markup (profit ÷ cost)
$40 ÷ $60 × 100 = 66.7%

Markup always looks larger because it’s calculated on the smaller base β€” your cost instead of your price. That’s the trap: put a “30% markup” on a $70 cost and you get a $91 price with only a 23% margin, not the 30% you were aiming for. The two are not interchangeable.

When to use each: use margin in financial statements, investor conversations, and when comparing businesses β€” it’s the professional standard. Use markup when setting retail shelf prices, where you start from cost and work upward. Our Markup Calculator converts between the two instantly.

Margin-to-Markup Conversion Table

Bookmark this quick-look table β€” it’s the fastest way to move between the two:

Margin Equals markup of
10% 11.1%
20% 25%
30% 42.9%
40% 66.7%
50% 100%

Conversion formulas

Markup from margin
Markup % = (Margin Γ· (1 βˆ’ Margin)) Γ— 100
Margin from markup
Margin % = (Markup Γ· (1 + Markup)) Γ— 100

Example: a 30% margin converts to 0.30 ÷ 0.70 = 42.9% markup. Notice the gap widens as margins grow β€” a 50% margin is a full 100% markup, meaning the price is double the cost.

How to Calculate Selling Price From a Target Margin

Flip the margin formula around when you know your cost and want a specific margin. The reverse-pricing formula is:

Reverse pricing

Selling price from target margin
Selling Price = Cost Γ· (1 βˆ’ Target Margin)

Worked example: your cost is $70 and you want a 30% margin. Price = $70 ÷ (1 − 0.30) = $70 ÷ 0.70 = $100.00. Check: ($100 − $70) ÷ $100 = 30%.

Required selling price at a $60 cost for common margin targets:

Target margin Required price Profit per unit
10% $66.67 $6.67
20% $75.00 $15.00
30% $85.71 $25.71
40% $100.00 $40.00
50% $120.00 $60.00

Worked Example: All Three Margins on One Business

Watch how the three margins tell one connected story. Here’s a month for a small online store:

Revenue: $10,000

− COGS (inventory, packaging, shipping to customers): $4,000 → Gross profit $6,000 β€” 60% gross margin

− Operating expenses (ads, tools, freelance help): $3,500 → Operating profit $2,500 β€” 25% operating margin

− Interest and taxes: $1,000 → Net profit $1,500 β€” 15% net margin

Now read the gaps β€” that’s where the problem lives. This store drops 35 points between gross (60%) and operating (25%), so its pricing is healthy but its overhead is heavy β€” the fix is in expenses, not prices. The 10-point slide from operating (25%) to net (15%) is financing and taxes, which is normal. Run the same diagnosis on your own numbers with the “All Three” tab above.

What Is a Good Profit Margin? Benchmarks by Industry

What counts as “good” depends heavily on your industry. These are blended US benchmarks drawn from publicly reported figures by Ramp, LivePlan, and Amazon’s seller data β€” use them as a directional reference, not a hard target:

Industry Avg. Gross Margin Avg. Net Margin
Software / SaaS 70 – 80% 18 – 26%
Digital products 80 – 95% 40 – 70%
Professional services / consulting 50 – 70% 15 – 25%
E-commerce / online retail 35 – 50% 3 – 7%
General retail 20 – 50% 2 – 6%
Restaurants / food service 25 – 40% 3 – 9%
Construction 20 – 35% 5 – 11%
Manufacturing 25 – 40% 5 – 10%
Grocery 20 – 30% 1 – 3%

Two things matter more than the table: your industry (a 9% net margin is excellent for a restaurant but weak for software) and your trend β€” a margin rising quarter over quarter is a better signal than any fixed target.

Costs to Include: The Hidden-Cost Checklist

Margins are only as honest as the costs you feed them β€” and most businesses undercount. Here’s the full picture:

COGS (direct costs): raw materials, manufacturing or direct labor, packaging, and shipping to customers.

Operating expenses: salaries, rent, utilities, marketing and advertising, software subscriptions, insurance, and professional fees.

The costs people forget: payment processing fees (about 2.9% plus 30 cents per card transaction in the US), returns and refunds, marketplace or platform fees, equipment wear and depreciation, and business licenses. If you’re self-employed, add self-employment tax (15.3% in the US) β€” it’s a real cost of doing business. Leave these out and your margin is a fantasy; include them and it becomes a decision-making tool.

How to Improve Your Profit Margin

There are only two levers: increase revenue or reduce costs. Which lever matters depends on which margin is thin:

If your gross margin is low, the problem is in your cost of goods. Renegotiate supplier pricing, buy in bulk, cut production waste, shift your product mix toward high-margin items, and check whether your pricing actually reflects your costs.

If your operating margin is low but gross margin is healthy, overhead is the culprit. Audit software subscriptions, measure every marketing dollar against the revenue it generates, and automate repetitive work instead of hiring for it.

If your net margin is low even with decent operating margins, look at your debt. High interest payments drag net margin hard β€” refinancing or paying down high-interest debt can meaningfully improve the profit you actually keep.

The highest-leverage move is usually pricing. Take a business with $100,000 in revenue and a 10% margin ($10,000 profit). Raise prices just 2% with costs unchanged: revenue becomes $102,000, profit becomes $12,000 β€” an 11.8% margin. That’s a 20% profit increase from a 2% price lift, with no new customers needed.

7 Costly Profit Margin Mistakes to Avoid

1. Confusing margin with markup. Pricing a $70-cost product with a “30% markup” gives you $91 β€” but that’s only a 23% margin. Always price from the margin formula, not markup, when you have a target.

2. Ignoring hidden costs. Payment fees, returns, platform commissions, and shipping materials quietly eat 5–15% of revenue for many small businesses. If they’re not in your math, your margin is fiction.

3. Comparing gross margin to net margin. They measure different things β€” it’s apples to oranges. A 60% gross margin alongside a 10% net margin is normal, not a contradiction.

4. Not paying yourself. Your labor is a cost. A business that only “works” because the owner works for free isn’t profitable β€” price your own hours in.

5. Judging by a single month. Seasonality, one-off expenses, and late invoices make any single month misleading. Use a trailing 3- to 12-month average for real decisions.

6. Discounting without doing the margin math. A 20% discount on a 20%-margin product wipes out 100% of your profit: a $100 price on an $80 cost becomes $80 β€” zero margin. Every promotion needs a margin check first.

7. Chasing revenue instead of profit. A $500,000 business at a 20% margin keeps $100,000 β€” exactly the same as a $1,000,000 business at 10%. Top-line growth that shrinks your margin is a step backward.

Profit Margin in Excel & Google Sheets

Prefer a spreadsheet? These formulas mirror the calculator above. Put revenue in A2, COGS in B2, and net income in C2:

Copy-paste formulas

Gross margin %
=(A2-B2)/A2
Net margin %
=C2/A2
Price for a 30% target margin
=B2/(1-0.3)
Convert a margin (in D2) to markup
=D2/(1-D2)

Format the result cells as percentages and you have a permanent margin tracker. Recalculate monthly β€” a margin trending upward quarter over quarter is the healthiest signal your business can send.

Frequently Asked Questions

Common questions about profit margins β€” answered plainly, without the finance jargon.

Profit margin is the percentage of revenue you keep as profit after costs. A 10% margin means you keep 10 cents of every dollar of sales. It’s the clearest single measure of how efficiently a business turns sales into profit.

Three steps: 1) profit = revenue − costs; 2) divide profit by revenue; 3) multiply by 100. For example, $100,000 revenue − $60,000 costs = $40,000 profit; $40,000 ÷ $100,000 × 100 = 40% margin. Which costs you subtract decides which margin you get β€” COGS gives you gross margin, subtracting everything gives you net margin.

Gross margin = (Revenue − COGS) ÷ Revenue × 100. Operating margin = (Revenue − COGS − Operating Expenses) ÷ Revenue × 100. Net margin = Net Income ÷ Revenue × 100. Every margin has the same shape: profit divided by revenue, times 100.

Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. On a $100 sale with a $60 cost, your profit is $40 either way β€” but your margin is 40% ($40 ÷ $100) while your markup is 66.7% ($40 ÷ $60). Markup always looks larger because it’s calculated on the smaller base. Use margin for financial statements and comparing businesses; use markup when setting shelf prices from cost.

For net margin, around 10% is typical for a healthy small business, 20% or more is strong, and under 5% is thin. But “good” is industry-specific: software companies often clear 20%+ net margins, while grocery stores survive on 1–3%. Compare yourself against your industry’s benchmarks β€” and your own trend over time.

Gross margin subtracts only direct production costs (COGS) from revenue β€” it tests your pricing and production efficiency. Net margin subtracts everything: COGS, operating expenses, interest, and taxes β€” it’s the true bottom line of what you keep. Never compare the two directly; they answer different questions. A business can have a strong gross margin but a weak net margin if its overhead is bloated.

Work backward from your cost with this formula: Selling Price = Cost ÷ (1 − 0.30). If your cost is $70: $70 ÷ 0.70 = $100. Check it: ($100 − $70) ÷ $100 = 30%. The same formula works for any target β€” on a $70 cost, a 20% margin needs an $87.50 price, 40% needs $116.67, and 50% needs $140.

No. Margin is profit divided by revenue, and profit can never exceed revenue β€” you can’t keep more than you brought in β€” so margin always stays below 100%, only approaching it as your costs approach zero. Markup, however, can exceed 100%: selling a $10 item for $25 is a 150% markup.

All of them β€” that’s what makes net margin honest. Include COGS (materials, direct labor, packaging, shipping), operating expenses (salaries, rent, utilities, marketing, software), and the costs most people forget: payment processing fees, returns and refunds, platform fees, and β€” if you’re self-employed in the US β€” self-employment tax.

Not always. An unusually high margin can mean you’re underinvesting in growth, overpricing and losing customers, or simply not paying yourself a real salary. Context matters more than the number: compare against your industry, watch the trend over several quarters, and pair margin with cash flow β€” a profitable business can still fail if its cash is locked up in inventory or unpaid invoices.

Monthly for tracking, quarterly or annually for strategy. A single month can mislead β€” seasonal dips, one-off expenses, or a big invoice can swing the number wildly. Review a trailing 3- to 12-month average when making decisions, and dig into any month that breaks the pattern.

100% markup. Convert with: Markup = Margin ÷ (1 − Margin). For a 50% margin: 0.50 ÷ (1 − 0.50) = 0.50 ÷ 0.50 = 1.00, or 100%. That means the selling price is exactly double the cost β€” a $100 price on a $50 cost.