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.
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.
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.
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
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.
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 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
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
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
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
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.
