Profit Margin Calculator
Free profit margin calculator. Enter cost and price to find profit, margin and markup, or work out the price you need for a target margin.
FreeNo signupUpdated Nov 14, 2026By CalculatorBase Editorial Team
Profit Margin Calculator
How to calculate profit margin and markup
Profit margin and markup both describe profit, but against different bases. Margin is profit as a share of the selling price. Markup is profit as a share of your cost. Mixing them up is one of the most common pricing mistakes, so this calculator shows both together.
The formulas
Profit = Selling price – CostMargin % = Profit / Selling price x 100
Markup % = Profit / Cost x 100
Price from margin = Cost / (1 – Margin %)
Price from markup = Cost x (1 + Markup %)
Markup to margin conversion
| Markup | Margin |
|---|---|
| 25% | 20% |
| 50% | 33.33% |
| 75% | 42.86% |
| 100% | 50% |
| 200% | 66.67% |
Margin can never reach 100%, because that would require a cost of zero. Markup has no upper limit.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit divided by the selling price, while markup is profit divided by cost. A product that costs $60 and sells for $100 has a 40% margin but a 66.67% markup.
How do I price a product for a target margin?
Divide your cost by (1 minus the margin as a decimal). For a 25% margin on an $80 cost: 80 / 0.75 = $106.67. Use the Cost and margin tab to do this automatically.
Is a 50% markup the same as a 50% margin?
No. A 50% markup is a 33.33% margin. To get a 50% margin you need a 100% markup, which means selling at double your cost.
What is a good profit margin?
It depends heavily on the industry. Retail and grocery often run on low single-digit to 10% net margins, while software and services can reach 20% to 40% or more. Compare against your own sector.
Is this gross margin or net margin?
The calculator uses the cost you enter. If you enter only the direct cost of goods, the result is gross margin. If you include all expenses such as rent and wages in the cost, the result is closer to net margin.
About this calculator
- Written by
- CalculatorBase Editorial Team
- Last reviewed
- November 14, 2026
- Method
- Standard formulas applied to your inputs, with no data stored.
Results are calculated from the values you enter using standard published formulas. They are estimates for general information. This is not financial, tax or legal advice. Confirm important figures with a qualified professional. Read the full disclaimer.