Margin Calculator
Find profit margin and markup from cost and price, the price for a target margin, and stock and forex margin.
Change the values and press Calculate to work out your own figures.
Profit margin
Enter the cost and price.
Show the working
- margin = profit ÷ price; markup = profit ÷ cost
Price for a margin
Enter the cost and target margin.
Show the working
- price = cost ÷ (1 − margin)
Stock trading margin
Enter the share price, shares and margin requirement.
Show the working
- required = price × shares × requirement
Forex margin
Enter the exchange rate, units and leverage.
Show the working
- required = rate × units ÷ leverage
How to use it
Enter the cost and price. Enter the cost and target margin. Enter the share price, shares and margin requirement. Enter the exchange rate, units and leverage.
Enter amounts without commas or with them; rates are percentages (5 for 5%). Negative amounts are allowed where a sign means money paid out.
Key facts
margin = (price − cost) ÷ price; markup = (price − cost) ÷ cost; price for a margin = cost ÷ (1 − margin)
Questions
What is the margin on an item bought at $120 and sold at $160?
25% (a 33.33% markup).
Formulas
margin = (price − cost) ÷ price; markup = (price − cost) ÷ cost; price for a margin = cost ÷ (1 − margin)
Sources
Limitations
- Results are estimates for planning, not offers or financial advice; lenders and banks may round, count days or time payments differently.
- Rates are nominal annual rates compounded as you choose; payments at a different frequency use the equivalent periodic rate.