Skip to content

Profit Margin Calculator

Enter a price and cost to see your margin and markup, or pick a target margin and solve for the price to charge or the most you can spend.

Updated Sep 26, 2026 · Estimates for planning only. Not financial, tax or legal advice.

What do you want to work out?
$

What the customer pays, before sales tax.

$

Materials, labor and anything else it takes to deliver this sale.

Profit margin

40.00%

$40.00 profit on $100.00 of revenue

Revenue
$100.00
Cost
$60.00
Gross profit
$40.00
Margin (share of price)
40.00%
Markup (share of cost)
66.67%

Margin and markup describe the same dollars from different starting points. A 40% margin is a 66.67% markup.

How to use it

  1. Choose what you want to solve for: the margin itself, the price for a target margin, or the maximum cost.
  2. Fill in the two known numbers. Results update as you type.
  3. Check the markup line as well. Suppliers and retailers often quote markup, so it helps to see both.

The formulas

Margin % = (Price − Cost) ÷ Price × 100Price for a target margin = Cost ÷ (1 − Margin)Max cost for a target margin = Price × (1 − Margin)

With a $45 cost and a 40% target margin, the price is 45 ÷ 0.60 = $75. A common mistake is to add 40% to cost ($63), which only gives a 28.6% margin.

Margin or markup: which one to use

Margin tells you how much of each sales dollar you keep, so it is the number that ties back to your income statement. Markup is handy on the buying side because you start from what you paid. Use the markup calculator when you think in cost-plus terms.

MarginEquivalent markup
10%11.1%
20%25.0%
25%33.3%
30%42.9%
40%66.7%
50%100.0%
60%150.0%
75%300.0%

Gross, operating and net margin

This calculator works one sale at a time, which is gross margin. Operating margin also subtracts overhead such as rent and admin salaries, and net margin takes out interest and taxes too. You can see all three for the whole business in the profit and loss template.

When margin alone misleads

  • Volume matters. A 60% margin on ten sales can earn less than a 20% margin on a thousand.
  • Payment timing matters. A profitable job paid in 90 days can still leave you short on cash.
  • Hidden costs. Card fees, returns, shipping and your own time all eat into margin if they are left out of cost.

Frequently asked questions

What is a good profit margin?

It depends heavily on the industry. Grocery stores run on low single-digit net margins, while software and consulting firms can clear 20% or more. Compare yourself with businesses like yours, and track your own trend over time.

Is profit margin the same as markup?

No. Margin divides profit by the selling price; markup divides the same profit by cost. A $60 item sold for $100 has a 40% margin and a 66.7% markup.

Can a margin be over 100%?

Not when costs are positive. Margin is profit as a share of price, so it tops out just under 100%. Markup has no ceiling.

Should I include overhead in the cost?

For gross margin, use only the direct cost of the item or job. For a true net margin, you would also spread rent, salaries and other overhead across sales, which is easier to see on a full profit and loss statement.