1. Calculators
  2. Business Profitability & Operations

Profit Margin Calculator

Turn revenue and costs into gross profit, operating profit and net profit, with the margin at each level and a chart of where each sales dollar goes. A second tool finds the price that delivers the gross margin you want.

Updated Oct 16, 2026Free · no sign-upFormulas tested

Your inputs

Enter a year (or a month) of figures from your profit and loss statement. All amounts must cover the same period.

Fills revenue, cost of revenue, operating costs, D&A and interest for the last 12 months (in dollars). You can change any value afterwards.
$
Sales after returns and discounts.
$
Direct costs of what you sold: materials, inventory bought for resale, direct labor, shipping in.
Operating expenses
$
Overheads: salaries outside production, rent, marketing, software, insurance, admin.
$
The yearly write-down of equipment, vehicles and other long-lived assets. Enter 0 if it is already inside operating expenses.
$
Interest on loans, credit lines and leases.
%
Applied to pre-tax profit. 21% is the US federal corporate rate; for a pass-through business enter 0 to see profit before owner taxes.

Results

Net profit$106,650A net profit margin of 8.9% on $1,200,000 of revenue
Gross profit
$480,000
Gross profit margin
40.0%
Operating profit (EBIT)
$150,000
Operating profit margin
12.5%
Net profit margin
8.9%
Pre-tax profit
$135,000
Income tax
$28,350
EBITDA
$180,000
15.0% of revenue

Out of every $100 of sales, $60.00 pays for the goods, $27.50 covers operating costs and $3.61 goes to interest and tax, leaving $8.89 of net profit.

From revenue to net profit ($)

Revenue and profitStill leftCost
$0$250K$500K$750K$1M$1.3MRevenueGross profit− D&A− InterestNet profit

Blue bars are levels (revenue, gross, operating and net profit). Each red slice is a cost taken out of the bar before it; the grey part is what is still left.

Income statement

LineAmount% of revenue
Revenue$1,200,000100.0%
Cost of goods sold-$720,000-60.0%
Gross profit$480,00040.0%
Operating expenses-$300,000-25.0%
EBITDA$180,00015.0%
Depreciation & amortization-$30,000-2.5%
Operating profit (EBIT)$150,00012.5%
Interest expense-$15,000-1.3%
Pre-tax profit$135,00011.3%
Income tax-$28,350-2.4%
Net profit$106,6508.9%

Results are estimates from the numbers you enter. They are not financial, tax or legal advice.

How to use the profit margin calculator

The Profit & margins tool follows a profit and loss statement line by line. Use one period throughout; a full year avoids seasonal swings.

  1. Revenue. Net sales after returns, refunds and discounts.
  2. Cost of goods sold (COGS). The direct cost of what you sold: inventory, materials, production labor and inbound freight.
  3. Operating expenses. Enter one total, or switch to Itemized to enter salaries, rent, marketing and other costs separately. Leave out depreciation here, because it has its own field.
  4. Depreciation and amortization. The yearly write-down of equipment, vehicles and other long-lived assets, as shown in your accounts.
  5. Interest and tax. Interest on business debt, and the tax rate on pre-tax profit. The default 21% is the US federal corporate rate; S corporations, partnerships and sole proprietors are taxed at the owner level, so enter 0 for them.

The chart traces revenue down to net profit, and the table shows every line as a share of revenue. The Price for a target margin tool returns the price for a unit cost and the gross margin you want.

How profit and margins are calculated

Each level of profit subtracts one more group of costs:

Gross profit = Revenue − Cost of goods sold
Operating profit (EBIT) = Gross profit − Operating expenses − Depreciation & amortization
Pre-tax profit = Operating profit − Interest expense
Net profit = Pre-tax profit − Income taxIncome tax = Pre-tax profit × tax rate, and zero when pre-tax profit is negative. EBITDA, also shown, is operating profit before depreciation and amortization.

Each margin divides one of those profits by revenue:

Gross margin = Gross profit ÷ Revenue
Operating margin = Operating profit ÷ Revenue
Net margin = Net profit ÷ RevenueAll three divide by the same revenue, and each step only subtracts costs, so gross margin is always the highest of the three and net margin the lowest.

For the second tool, the price that delivers a target gross margin is:

Price = Cost ÷ (1 − Target margin)A 40% margin on a $60 cost gives $60 ÷ 0.60 = $100. The margin is measured on the price, not on the cost.

A worked example

Company A, a small wholesaler, had $1,200,000 of sales last year. The goods it sold cost $720,000, leaving a gross profit of $480,000, a gross margin of 40.0%.

Running the business cost $300,000 in salaries, rent, marketing and other overheads, plus $30,000 of depreciation. That leaves an operating profit of $150,000 and an operating margin of 12.5%.

After $15,000 of interest, pre-tax profit is $135,000. Tax at 21% takes $28,350, so the net profit is $106,650: a net margin of 8.9%.

Put another way, 60.0% of every sales dollar pays for the goods and 27.5% covers operating costs and depreciation. If Company A were a pass-through business and you set the tax rate to 0, net profit would be $135,000 before the owners pay their own income tax.

Gross, operating and net margin: what each one tells you

Looking at only one margin can hide a problem.

  • Gross margin measures pricing and purchasing. When it falls, costs are rising faster than prices or the sales mix has shifted toward cheaper products.
  • Operating margin adds the cost of running the business and shows whether overheads are in proportion to sales. Two firms with the same gross margin can differ widely here if one carries a large office or sales team.
  • Net margin is what is left for the owners after lenders and tax. It depends on financing and tax status, so it is the weakest measure of operations, but it is the profit that funds growth and payouts.

Margins vary widely by industry. A grocery store, a restaurant, a manufacturer and a software company can all be well run with completely different margins, because their costs sit in different places. Compare your margins with your own history and with businesses that sell in the same way, not with a general target.

What moves net profit most

Small changes near the top of the income statement have large effects at the bottom, because fixed overheads do not change with them. Each line changes one thing from the example:

Change Net profit Net margin
The example $106,650 8.9%
Prices up 5%, same volume $154,050 12.2%
Volume up 10%, same prices and overheads $144,570 11.0%
Cost of goods 5% lower $135,090 11.3%
Operating expenses 10% lower $130,350 10.9%

A 5% price rise adds more net profit than selling 10% more units, because the extra volume brings its own cost of goods, while a price rise drops straight to the bottom line if customers stay. That is the reason pricing deserves as much attention as cost cutting. The catch is that customers may buy less at the higher price, which this table does not model; the break-even calculator shows how far volume could fall before a price change stops paying off.

Pricing for a target margin

The second tool answers a common pricing question: what must I charge to keep a given share of each sale? With a $60 unit cost, a 40% gross margin needs a price of $100.00, which is a markup of 66.7% on cost.

Adding 40% to the cost instead would give $84.00, a margin of only 28.6%; the markup vs margin calculator explains that common error. The price climbs quickly as the target rises: a 30% margin on the same cost needs $85.71, a 60% margin $150.00.

What this calculator does not include

The calculator applies one flat tax rate to positive pre-tax profit. Real tax bills depend on deductions, credits, state taxes, losses carried forward and, for pass-through businesses, the owners’ personal brackets. There is no line for other income or expenses, such as investment income or a one-off write-off; add other expenses to the interest figure, or subtract other income from it, to include them.

It also measures profit, not cash. Profit counts sales when they are made and equipment as it wears out, while cash moves when customers pay and when you buy assets, so a profitable business can still run short of cash. Finally, the margins do not show whether the business earns enough on the money invested in it.

Frequently asked questions

How do you calculate profit margin?
Divide the profit by revenue and multiply by 100. Which profit you use gives the type of margin: gross profit for gross margin, operating profit for operating margin and net profit for net margin. In the example, $106,650 of net profit on $1,200,000 of revenue is a net margin of 8.9%.
What is the difference between gross margin and net margin?
Gross margin only subtracts the direct cost of what you sold, so it measures how profitable the product itself is. Net margin subtracts everything: overheads, depreciation, interest and tax. The gap between the two shows how much of the gross profit the rest of the business uses up; in the example gross margin is 40.0% and net margin 8.9%.
What is a good profit margin for a small business?
There is no single answer, because margins depend heavily on the industry. A retailer or distributor can run a healthy business on thin margins and high volume, while software or consulting firms usually need much higher margins to cover their costs. The most useful comparisons are with your own past results and with businesses that sell the same kind of product in the same way.
Is operating profit the same as EBIT?
Usually, yes. Both are profit after operating costs and depreciation but before interest and tax. They differ when a company has non-operating income, such as investment gains, which some analysts include in EBIT but not in operating profit.
Should the owner's salary be included in operating expenses?
Yes, at a market rate, even if you pay yourself through draws instead of payroll. Leaving it out makes the margin look higher than the business can really support, and anyone buying or lending to the business will adjust for it. If you pay yourself through draws, add a fair salary to the operating expenses you enter.

Related calculators

All calculators →

This calculator is for education and planning. It uses the formulas described above and the inputs you provide; real results depend on fees, taxes, timing and other details that a general tool cannot know. PromtFinance does not give personal financial advice. Check important decisions with your provider or a qualified professional.