How do you calculate profit margin?
Profit margin is the share of the selling price you keep as profit. Subtract the cost from the price, then divide by the price. Markup divides the same profit by the cost instead.
Worked example
- Profit: $100 − $60 = $40.
- Margin: $40 ÷ $100 = 40%.
- Markup: $40 ÷ $60 = 66.67%.
What price gives me a target margin?
Divide the cost by one minus the margin. To keep a 50% margin on a $60 cost, sell at $120.00. Going the other way, at a $100 price a 50% margin means the cost can be at most $50.00. Open "Find the price for a target margin".
What is the difference between margin and markup?
A 66.7% markup is only a 40% margin. Converting: markup = margin ÷ (1 − margin). The table above the result lists common margins and the markup each one needs. Gross, operating and net margin are different measures of the same idea; see the profit margin calculator.
Results are estimates from the numbers you enter, not accounting, tax or legal advice. Margin here is before overhead and tax unless your cost includes them.
Questions people ask
How do I calculate margin from cost and price?
Margin = (price − cost) ÷ price. A $60 cost sold at $100 gives $40 ÷ $100 = 40%.
Is margin the same as markup?
No. Margin is profit as a share of the price and markup is profit as a share of cost. The same $40 profit is a 40% margin and a 66.7% markup.
What price do I need for a 50% margin?
Cost ÷ (1 − margin). On a $60 cost that is $120.00, which is a 100% markup.
Can a margin be higher than 100%?
No. Profit cannot exceed the price, so margin stays under 100%. Markup can be any size: a 200% markup is a 66.7% margin.
Sources
- U.S. Small Business Administration (SBA): Manage your finances
- Internal Revenue Service (IRS): Publication 535, Business Expenses
Related calculators
- Markup calculator: Selling price from cost and markup
- Profit margin calculator: Gross, operating and net margin
- Break-even calculator: Units and revenue to cover costs
- Cost of an employee: Salary plus employer taxes and benefits
- Freelance rate calculator: Hourly rate to reach an income
- Commission calculator: Flat and tiered commission with base pay
- Depreciation calculator: Straight-line, declining balance and more
- Customer lifetime value: CLV, CAC ratio and payback
Published by wiseowlcalc · Last updated · United States, 2026 · Checked by wiseowlcalc against the sources above; not yet reviewed by a named professional (editorial policy). Cost and price are your inputs.
Calculators give estimates for planning only. They are not financial, tax, legal or medical advice. Check important decisions with a qualified professional.