Margin & Markup Calculator
Calculate profit margin, markup and profit from cost and selling price, or find the price for a target margin. Ideal for pricing products and quotes.
How margin and markup differ
Margin is profit as a percentage of the selling price, while markup is profit as a percentage of the cost. The same profit gives a lower margin than markup.
- Profit, margin and markup from cost and price
- Reverse mode: find the price for a target margin
- Shows margin and markup together to avoid confusion
- Guards against impossible margins of 100% or more
- Any currency symbol, computed locally
- Private and free; estimates only, not advice
How to use the Margin & Markup Calculator
- 1
Select your currency and choose a mode.
- 2
Enter the cost price of the item.
- 3
For 'cost & selling price', enter the price to see margin and markup.
- 4
For 'cost & target margin', enter the margin to get the required price.
- 5
Read the profit, profit margin and markup results.
About the Margin & Markup Calculator
The ByteTools Margin & Markup Calculator turns cost and price into the numbers that matter for pricing: profit, profit margin and markup. Enter the cost and selling price to see all three, or switch modes to find the selling price you need for a target profit margin.
It is built for retailers, freelancers, resellers and anyone quoting jobs who needs to price with confidence. Because margin and markup are easy to confuse, the tool shows both side by side with a plain-English explanation of the difference.
All calculations happen in your browser with nothing uploaded. Results are estimates to guide pricing decisions and are not financial advice.
Frequently asked questions
What is the difference between margin and markup?
Margin is profit as a percentage of the selling price, while markup is profit as a percentage of the cost. For a $60 item sold at $100, the $40 profit is a 40% margin but a 66.7% markup. Margin is always the smaller number for the same profit.
How do I calculate profit margin?
Subtract the cost from the selling price to get the profit, then divide by the selling price and multiply by 100. So (100 − 60) ÷ 100 × 100 = 40% margin. This calculator does it automatically and also shows the markup.
How do I price an item for a target margin?
Use the reverse mode: divide the cost by (1 − margin ÷ 100). For a 40% margin on a $60 cost, the price is 60 ÷ 0.6 = $100. Enter your cost and target margin and the tool returns the exact price.
Why can't the margin be 100% or more?
A 100% margin would mean the cost is zero, and above 100% is mathematically impossible because profit cannot exceed the full selling price. The calculator caps the target margin below 100% and warns you if you enter too high a value.
Are my pricing figures kept private?
Yes. All calculations run in your browser and nothing is transmitted, so your costs, prices and margins remain completely confidential.
Related tools
- Break-Even CalculatorFind your break-even point in units and revenue from fixed costs, price per unit and varia…
- ROI CalculatorCalculate return on investment, net profit and annualized ROI from the amount invested and…
- Discount CalculatorWork out the final sale price and money saved from any discount percentage, including stac…
- Percentage CalculatorCalculate what X% of a number is, what percent one number is of another, and percentage in…
- Freelance Rate CalculatorCalculate the hourly and day rate you need to charge as a freelancer from your target inco…