Profit Margin Calculator
Selling price and profit from cost and margin.
The answer updates as you type. Everything is computed in your browser; nothing is sent to a server.
How it is calculated
Two things often get mixed up:
- Margin is measured on the selling price: margin = (price − cost) ÷ price. To get the price: price = cost ÷ (1 − margin).
- Markup is measured on the cost: price = cost × (1 + markup).
Examples
- Cost 200 EGP and a 25% margin: price = 200 ÷ 0.75 = 266.67 EGP, profit 66.67.
- The same cost with a 25% markup: price 250 EGP, profit 50, which is only a 20% margin.
Common questions
- What is the difference between margin and markup? Margin is a share of the selling price and markup is a share of the cost. The same profit gives a smaller margin than markup.
- Does it include expenses? No. The cost you enter should include all your expenses (shipping, packaging, any costs) so the profit is real.
- Must margin be under 100%? Yes, because margin is part of the selling price.
Source: The standard accounting formulas for margin and markup.
Note: Results are estimates for personal guidance only, not financial or legal advice.
Is my data stored?
No. Everything is calculated inside your browser, and no number or date is sent to any server.
Selling price is not net profit
Buying an item for 200 and selling it for 250 leaves a difference of 50 before any expenses omitted from cost. Include packaging, shipping you pay and platform fees when you need a price based on full cost.
An example of the two percentages
In that example, margin is 50 / 250 = 20%, while markup is 50 / 200 = 25%. Choose the mode that matches your agreement rather than treating the names as interchangeable. If cost rises while selling price stays fixed, margin falls.