Money
Profit Margin Calculator
Enter your cost and selling price to see profit, margin and markup, or flip it to find the price that hits a target margin.
Result
Updates as you typeEnter a cost and a selling price to see the result.
What this calculates
Profit margin is the share of each sale you keep after paying the cost of what you sold. It is the number most pricing decisions turn on, and it is easy to confuse with markup.
Use the first mode when you already know your price and cost. Use the second when you know the margin you want and need the price that delivers it.
The formula
- Selling price
- What the customer pays, before any tax you collect on behalf of a tax authority.
- Cost
- What it costs you to supply one unit: materials, subcontractors, direct labour.
- Margin
- Profit as a share of the selling price. It can never exceed 100%.
- Markup
- Profit as a share of cost. It can exceed 100%.
Assumptions
- Gross margin only: overheads, tax and payment fees are not deducted unless you include them in cost.
- All amounts are in one currency.
Worked example
You sell a product for $100 and it costs you $60 to supply.
- 01Profit = $100 − $60 = $40
- 02Margin = $40 ÷ $100 × 100 = 40%
- 03Markup = $40 ÷ $60 × 100 = 66.7%
A 40% margin is the same deal as a 66.7% markup.
How to read the result
A healthy margin depends on your model. Retail and resale often run on 20–50% gross margin; services and software are frequently higher because the cost of supply is mostly time. Compare against your own history and your overheads, not a universal number.
A negative margin means you are selling below cost: each sale loses money before overheads.
Common mistakes
- Treating a 50% markup as a 50% margin. A 50% markup gives a 33.3% margin.
- Leaving out costs that scale with each sale, such as payment fees, shipping or subcontractor time.
- Using a target margin of 100% or more. Margin is a share of price, so it is always below 100%.
Frequently asked questions
What is the difference between margin and markup?
How do I price something for a 40% margin?
Is this gross or net margin?
How do I calculate gross profit?
Keep going
Related tools
- Break-Even CalculatorFind the units and revenue you need to cover fixed costs, with an optional profit target and margin of safety.
- Quote GeneratorWrite a priced quote with an expiry date and acceptance line, then convert it to an invoice in one click when the client says yes.
- Markup CalculatorWork out markup % from cost and price, or the selling price for a markup, and see the equivalent profit margin.
- Discount CalculatorFind the price after a percentage off, the amount saved, the original price from a sale price, or the true total of stacked discounts.
- Price Increase CalculatorFind the new price that keeps your margin when costs rise, or see what a price rise does to your margin and how many sales you could lose and still make the same profit.