About the Profit Margin Calculator
Profit margin and markup from cost and selling price — or the price needed for a target margin.
Also known as: margin calculator, product margin, margin percentage, product-margin, margin-pricing.
How to use this calculator
- Enter cost, i know the.
- The result updates instantly as you type — press Calculate (or Enter) at any time.
- Review the breakdown shown under the main result.
- Use Copy result or Share to save the answer or send a link with your inputs.
Formula
Margin = (price − cost) ÷ price · Price = cost ÷ (1 − margin)
Worked example
Using the values pre-filled in the calculator above:
- Cost = 40
- I know the: Selling price
- Selling price = 65
the calculator returns:
- Profit margin: 38.46%
- Selling price: 65
- Profit per unit: 25
- Markup: 62.5%