Finance
Instant, private, and free
Margin Calculator.
Required margin and leverage calculations
Set your values
Results update as you type.
How to Use the Margin Calculator
Calculate profit margin and markup from cost and selling price.
- Enter the cost price.
- Enter the selling price (or desired margin).
- See profit, margin %, and markup %.
Margin Formulas
Profit Margin
Profit as a percentage of the selling price.
Example:
Input: Cost $60, Price $100
Calculation: (100−60)/100
Result: 40% margin
Markup
Profit as a percentage of the cost.
Example:
Input: Cost $60, Price $100
Calculation: (100−60)/60
Result: 66.7% markup
Real-World Use Cases
Retail Pricing
Set prices that hit a target margin.
Wholesale
Convert between markup and margin.
Tips
Tips
- Margin and markup are not the same — don't confuse them.
- A 50% markup is only a 33% margin.
Related Calculators
Cite this calculator
Canonical URL: https://mathify.one/en/finance/margin
Cite as: Mathify. (2026). Margin Calculator. https://mathify.one/en/finance/margin
Use Cases
Plan Your Forex Trades
Determine how much capital you need to open a forex position with your chosen leverage, helping you manage risk and avoid margin calls.
Example: Trade 10,000 units of EUR/USD at 1.10 with 50:1 leverage → margin = $220
Compare Leverage Options
See how different leverage ratios affect the capital required for the same trade, so you can choose a level that fits your risk tolerance.
Example: Compare 10:1 vs 100:1 leverage on a $50,000 position
Frequently Asked Questions
- What is margin in trading?
- Margin is the amount of capital you need to open and maintain a leveraged position. It's a percentage of the total trade value, and the calculator helps you determine that amount based on your trade size and leverage.
- How does leverage affect margin?
- Higher leverage reduces the margin required, allowing you to control a larger position with less capital. For example, 100:1 leverage means you only need 1% of the trade value as margin.
- What is the formula for margin?
- Margin = (Trade Size × Price) / Leverage. This calculator uses that formula to give you the required capital instantly.
Tips & Common Mistakes
Tips
- Always input the trade size in the same currency as the price to get accurate margin results.
- Remember that margin is not a cost; it's a deposit that is returned when you close the trade, minus any losses.
- Use the calculator to test different leverage levels before entering a trade to ensure you have sufficient funds.
- Check your broker's margin requirements, as they may vary from the standard formula.
Common Mistakes to Avoid
- Forgetting to convert trade size to the correct units (e.g., lots to units) before entering it.
- Using the wrong price (e.g., bid vs ask) which can lead to inaccurate margin calculations.
- Assuming that higher leverage is always better without considering the increased risk of liquidation.
Last updated: August 13, 2026