Profit Margin Calculator
Gross, operating and net margin from revenue and costs
๐น Income figures
All money coming in from sales before any costs.
Direct costs to make or buy what you sold (materials, labor, freight).
Operating expenses = rent, salaries, marketing, software, etc. Taxes = income/business tax for the period.
Last updated June 2026
Method: Margins use the standard accounting definitions - gross margin = (revenue - COGS) / revenue, operating margin = (revenue - COGS - operating expenses) / revenue, and net margin = (revenue - COGS - operating expenses - taxes) / revenue, each multiplied by 100.
Included: Gross profit, operating profit and net profit in dollars; gross, operating and net margin as percentages; a line-by-line breakdown of each cost as a share of revenue; and a markup-on-cost reference figure.
Not included: Interest, depreciation/amortization (EBITDA), one-off items, and any tax estimation - you enter your own tax figure. Results are estimates, not accounting or tax advice.
Profit margin calculator: the complete guide
Profit margin is the single number that tells you how much of every sales dollar your business actually keeps. A company can pull in millions in revenue and still lose money, or run modest sales and be highly profitable - the difference is the margin. This profit margin calculator turns four figures you already know (revenue, cost of goods sold, operating expenses and taxes) into three margins that matter: gross, operating and net.
Here is the quick version with the calculator's defaults. A business with $100,000 in revenue, $60,000 in COGS, $20,000 in operating expenses and $4,000 in taxes has a 40% gross margin, a 20% operating margin, and a 16% net margin - meaning 16 cents of every dollar of sales ends up as profit. Change any input and watch all three margins move.
The profit margin formulas
Every margin is just a profit figure divided by revenue, turned into a percentage. The three you will use most are:
Gross margin = (Revenue − COGS) ÷ Revenue × 100 Operating margin = (Revenue − COGS − OpEx) ÷ Revenue × 100 Net margin = (Revenue − COGS − OpEx − Taxes) ÷ Revenue × 100 The dollar profits behind those percentages are gross profit (revenue minus COGS), operating profit (gross profit minus operating expenses), and net profit (operating profit minus taxes). Revenue is always the denominator - that is what makes these margins rather than markups.
Gross vs. operating vs. net margin
The three margins answer three different questions, and reading them together tells you where your money goes:
- Gross margin asks: how profitable is each sale before overhead? It strips out only the direct cost of the product. A falling gross margin usually means rising input costs or too much discounting.
- Operating margin asks: how profitable is the core business? It also subtracts the overhead of actually running the company (rent, salaries, marketing). It is the cleanest measure of operating efficiency because it ignores taxes and financing.
- Net margin asks: what is truly left? It is the bottom line after every cost in the period, including tax. This is the figure owners and investors care about most.
How to use this calculator
You only need numbers from a single accounting period (a month, quarter or year). Enter them in order:
- Total revenue: your net sales for the period - total income after returns, refunds and discounts.
- Cost of goods sold (COGS): the direct cost of what you sold - materials, wholesale inventory cost, direct labor and inbound freight.
- Operating expenses: the indirect cost of running the business - rent, non-production salaries, marketing, software, insurance and utilities.
- Taxes: income or business tax for the period. If you only want pre-tax margins, leave this at zero and read the operating margin.
Press Calculate and you will see the net margin as the headline number, gross and operating margins alongside it, a dollar breakdown of each profit level, and a line-by-line table showing every cost as a percentage of revenue.
Who this calculator is for
- Small business owners checking whether the business is actually profitable, not just busy.
- Freelancers and consultants working out how much of their billings survives after costs.
- Ecommerce and retail sellers testing whether a product's price leaves enough margin after COGS and fees.
- Startup founders modeling unit economics and gross margin for investors.
- Students and analysts learning the difference between gross, operating and net margin.
Worked example 1: a healthy product business
Take the default case: $100,000 revenue, $60,000 COGS, $20,000 operating expenses, $4,000 taxes. Gross profit is $40,000 (40% gross margin). After $20,000 of overhead, operating profit is $20,000 (20% operating margin). After $4,000 of tax, net profit is $16,000, a 16% net margin. This is a comfortable, profitable business - 16 cents of every sales dollar is kept.
Worked example 2: a thin-margin retailer
Now a grocery-style operation: $500,000 revenue, $400,000 COGS, $80,000 operating expenses, $5,000 taxes. Gross margin is only 20% ($100,000 gross profit), operating margin is 4% ($20,000), and net margin is just 3% ($15,000). Despite five times the revenue of example 1, far less is kept per dollar. High-volume, low-margin businesses live or die on cost control - a 1-point rise in COGS would wipe out a third of the net profit.
Worked example 3: a high-margin service business
A software or consulting firm: $200,000 revenue, $30,000 COGS (hosting, contractor delivery), $90,000 operating expenses, $16,000 taxes. Gross margin is a strong 85% ($170,000), operating margin is 40% ($80,000), and net margin is 32% ($64,000). Service and software businesses typically show very high gross margins because they have little direct cost of sale - their profitability hinges on operating expenses, not COGS.
Typical net profit margins by industry
"Good" is relative - a 5% net margin is excellent in groceries and weak in software. Use the ranges below as a rough orientation, then benchmark against your own sector and competitors:
| Industry type | Typical gross margin | Typical net margin |
|---|---|---|
| Software / SaaS | 70-90% | 15-35% |
| Professional services / consulting | 50-70% | 10-25% |
| Restaurants / food service | 60-70% | 3-9% |
| General retail / ecommerce | 25-50% | 2-10% |
| Manufacturing | 25-35% | 5-12% |
| Grocery / supermarkets | 15-25% | 1-3% |
Illustrative ranges for orientation only; actual margins vary widely by company, region and year. Benchmark against your own audited peers, not a single rule of thumb.
Margin vs. markup - do not confuse them
This is the most expensive mistake in pricing. Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. A product that costs $60 and sells for $100 has a $40 profit - that is a 40% margin (40 / 100) but a 67% markup (40 / 60). If you set prices using a target margin but calculate it as a markup, you will systematically under-price. To go the other way (price up from a cost), use the Markup Calculator instead, or the Margin Calculator to find a price from a target margin.
Key terms explained
- Revenue (net sales): all income from sales for the period, after returns and discounts. The denominator for every margin.
- COGS: direct cost of producing or buying the goods/services you sold.
- Operating expenses (OpEx): indirect costs of running the business - overhead not tied to a specific sale.
- Gross profit: revenue minus COGS - money available to cover overhead and produce profit.
- Operating profit (EBIT): gross profit minus operating expenses, before interest and tax.
- Net profit: the bottom line after all costs, including tax.
- EBITDA: operating profit before depreciation and amortization - a separate metric this calculator does not compute.
How to improve your margin
Because margin is a ratio of profit to revenue, you can raise it from either side - and small price moves are often more powerful than they look:
- Raise prices: a price increase drops almost entirely to the bottom line, so even 2-3% can lift net margin noticeably.
- Cut COGS: renegotiate supplier terms, buy in larger lots, or reduce waste to widen gross margin.
- Trim operating expenses: review subscriptions, overhead and underused services - this lifts operating and net margin directly.
- Shift the mix: sell more of your higher-margin products or services rather than chasing volume on thin-margin lines.
- Reduce discounting: every dollar of discount comes straight out of profit, not cost.
Margin vs. profit: a ratio and a dollar figure
People often use "profit" and "margin" interchangeably, but they answer different questions and you need both. Profit is a dollar amount - what is left after costs. Margin is that profit expressed as a percentage of revenue. A business can grow its profit in dollars while its margin shrinks, which is a warning sign that costs are rising faster than sales. Suppose revenue climbs from $100,000 to $150,000 but net profit only edges up from $16,000 to $18,000: profit rose, yet the net margin fell from 16% to 12%. The extra $50,000 of sales brought in disproportionately more cost. Watching the margin, not just the profit line, is what catches that drift early. The calculator deliberately shows both - the dollar profit at each level and the matching percentage - so you can see when a bigger top line is quietly becoming a worse business.
Why the same revenue can produce very different profit
The three worked examples above all start from real sales, yet keep wildly different amounts. The reason is the cost structure behind the revenue. Two levers decide how much survives to the bottom line. The first is cost of goods sold: a software firm that resells its own code keeps 85 cents of every dollar before overhead, while a grocer who buys stock at near-retail keeps only 20. The second is operating leverage - how much of your cost is fixed overhead versus variable cost. A business with high fixed costs (rent, salaried staff, software) sees its margin swing hard with sales volume, because each extra sale spreads the same overhead across more revenue. That is why a service business can look unprofitable at low volume and very profitable once it passes the point where revenue covers its fixed costs. Run your own numbers through several revenue levels in the calculator to see where your business crosses from loss into profit - that breakeven point is one of the most useful things the margin view reveals.
Reading margin trends over time
A single period's margin is a snapshot; the real signal is the direction it moves. Track gross, operating and net margin every month or quarter and read them as a stack. If gross margin is falling, the problem is in pricing or input costs - you are either discounting too hard or paying more for materials. If gross margin holds steady but operating margin is slipping, overhead is growing faster than sales - new hires, software creep or rising rent. If both hold but net margin drops, the change is below the operating line, usually tax or interest. Because each margin isolates a different layer of cost, comparing how they move tells you exactly where to look, instead of just knowing that "profit is down." This calculator computes one period at a time, so record each result and compare the percentages period to period.
Limitations and assumptions
This is a quick planning tool, not your accounting system:
- It uses the figures you enter; the accuracy depends on classifying costs correctly as COGS vs. operating expenses.
- It does not estimate your tax - you provide the tax amount for the period.
- It does not separate interest, depreciation or amortization, so it does not produce EBITDA.
- It assumes a single period; it does not trend margins over time or handle accruals.
- Margins are sensitive to how revenue is measured - use net sales, not gross sales, for a realistic result.
How it compares to related calculators
This page answers "what margins does my business earn?" For related pricing questions, a sister tool fits better:
- To find a selling price or margin from cost and price alone, use the Margin Calculator.
- To price up from cost by a percentage, use the Markup Calculator.
- To work out pay and overtime costs that feed your operating expenses, use the Overtime Calculator.
- To convert an hourly rate into an annual cost when budgeting payroll, use the Hourly to Salary Calculator.
- To model the margin impact of a staff raise, use the Pay Raise Calculator.
Sources
- U.S. Small Business Administration (SBA) - Manage your finances: revenue, costs and profitability.
- Internal Revenue Service (IRS) - Publication 334, Tax Guide for Small Business (cost of goods sold and business expenses).
- Internal Revenue Service (IRS) - Deducting business expenses: ordinary and necessary operating costs.
โ ๏ธ Common mistakes & edge cases
Confusing margin with markup
A $40 profit on a $100 sale is a 40% margin but a 67% markup. Setting prices with a margin target but calculating it as markup leaves money on the table every single sale.
Misclassifying COGS and operating expenses
Putting overhead into COGS (or vice versa) distorts your gross margin. It will not change net margin, but it can hide a real problem in either production cost or overhead.
Using gross sales instead of net sales
Revenue should be after returns, refunds and discounts. Using gross sales inflates the denominator and makes margins look healthier than they really are.
Comparing margins across different industries
A 3% net margin is normal for a grocery store and alarming for a software firm. Always benchmark against peers in your own sector, not a single universal "good margin."
❓ Frequently asked questions
How do you calculate profit margin?
Profit margin is profit divided by revenue, expressed as a percentage. Gross margin = (revenue - COGS) / revenue x 100. Net margin = (revenue - COGS - operating expenses - taxes) / revenue x 100. So if you make $100,000 in revenue with $60,000 in COGS, $20,000 in operating expenses and $4,000 in taxes, your gross margin is 40%, your operating margin is 20%, and your net margin is 16%.
What is the difference between gross margin and net margin?
Gross margin only subtracts the direct cost of producing or buying what you sold (COGS), so it measures how profitable each sale is before overhead. Net margin subtracts everything - COGS, operating expenses and taxes - so it shows what is actually left as profit. Gross margin is always higher than net margin for the same business.
What is a good profit margin?
It depends heavily on the industry. As a rough guide, a net margin around 5% is often considered low, 10% healthy, and 20% or more strong. Software and services tend to run high gross margins (70-90%), while grocery and retail often operate on single-digit net margins. Compare yourself to peers in your own sector rather than to a universal number.
Is profit margin the same as markup?
No. Margin is profit as a percentage of the selling price (revenue), while markup is profit as a percentage of cost. A product that costs $60 and sells for $100 has a 40% margin but a 67% markup. Confusing the two is one of the most common pricing mistakes - use the Markup Calculator if you are pricing up from cost.
What counts as COGS versus operating expenses?
COGS (cost of goods sold) is the direct cost of what you sold: raw materials, the wholesale cost of inventory, direct production labor and inbound freight. Operating expenses are the indirect costs of running the business: rent, salaries for non-production staff, marketing, software, insurance and utilities. How you split them changes your gross margin but not your net margin.
Can profit margin be negative?
Yes. If your total costs exceed your revenue, profit is negative and the margin is below zero - the business is operating at a loss for that period. A negative gross margin means you are selling below the direct cost of the goods, which is usually unsustainable. The calculator shows a warning and a red figure when this happens.
What is operating margin and why does it matter?
Operating margin = (revenue - COGS - operating expenses) / revenue, before taxes and interest. It shows how profitable your core operations are, independent of tax rates and financing. Investors watch it closely because it isolates how well the business itself runs, separate from one-off or financial items.
Should I use revenue before or after returns and discounts?
Use net revenue - your total sales after subtracting returns, refunds and discounts. That gives a realistic margin. Using gross sales (before returns) overstates revenue and makes your margins look better than they are, which can lead you to under-price.
How can I improve my profit margin?
There are two levers: raise revenue or cut costs. On the revenue side you can raise prices, sell a higher-value mix, or reduce discounting. On the cost side you can negotiate supplier pricing to lower COGS, trim operating expenses, or improve efficiency. Because margin is a ratio, even a small price increase often moves net margin more than a large volume increase, since it drops almost entirely to the bottom line.
Does this calculator give an exact figure for my taxes?
No - you enter your own tax amount for the period. The calculator does not estimate income or business tax for you; it simply subtracts the figure you provide to compute net profit and net margin. For actual tax estimates, use a dedicated tax tool or consult an accountant.
๐ก Good to know
High revenue does not mean high profit
Two businesses with identical sales can have wildly different net margins. The one with tighter COGS and leaner overhead keeps more of every dollar - which is why margin, not revenue, is the real scoreboard.
A small price change moves margin a lot
Because a price increase has almost no added cost, most of it falls straight to net profit. Raising prices 3% can lift net margin more than a much larger jump in sales volume.
Watch gross margin first
If gross margin is slipping, no amount of overhead-cutting will fix the business. Gross margin is the early-warning gauge for rising input costs or too-aggressive discounting.
Related Calculators
Margin Calculator
Calculate profit margin, revenue and cost
Markup Calculator
Calculate markup percentage and selling price
Overtime Calculator
Calculate overtime pay at time-and-a-half
Hourly to Salary Calculator
Convert an hourly wage to annual salary and back
Pay Raise Calculator
Calculate your new pay after a percentage raise