Free tool
Profit/loss calculator with leverage
Work out the result of a leveraged long or short before you take it: net profit or loss after fees, return on your margin (ROE) and the price where the position would be liquidated.
Same math as the trade simulator in the Trade Dojo app. Funding payments on perpetual futures are not included.
How leveraged profit and loss is calculated
- Position size = margin × leverage. 500 USDT at 10× controls a 5,000 USDT position.
- Quantity = position size ÷ entry price. At 60,000 that is 0.0833 BTC.
- Gross P&L = (exit − entry) × quantity for a long, (entry − exit) × quantity for a short. A move to 61,800 (+3%) makes 150 USDT.
- Fees are charged on both sides on the full position, not on the margin: 0.05% of 5,000 to open (2.50) and of the closing value to exit (about 2.58).
- ROE = net P&L ÷ margin. About 144.9 ÷ 500 = +29%. The price moved 3%, your margin moved about ten times as much — in both directions.
Liquidation price
With isolated margin, the position is closed when the loss eats the whole margin. In this simplified model that happens at entry × (1 − 1/leverage) for a long and entry × (1 + 1/leverage) for a short:
| Leverage | Move against you that liquidates | Long from 60,000 is liquidated near |
|---|---|---|
| 2× | 50% | 30,000 |
| 5× | 20% | 48,000 |
| 10× | 10% | 54,000 |
| 20× | 5% | 57,000 |
| 50× | 2% | 58,800 |
Real exchanges liquidate a little earlier, because they keep a maintenance margin and charge a liquidation fee. Treat the number above as the latest possible exit and keep your stop loss well before it. The leverage and margin lesson explains isolated vs cross margin.
Leverage multiplies the result, not the edge
Leverage makes a good trade look spectacular and a bad one fatal. A 3% move at 10× is ±30% of your margin; at 50× the same move liquidates you. The trade idea is no better with more leverage — only the room for error is smaller. Decide the loss you accept first with the position size calculator, then pick the lowest leverage that opens that position.
Funding on perpetual futures
Crypto perpetual futures have no expiry. To keep their price close to spot, longs and shorts pay each other a funding rate at fixed intervals, often every 8 hours. On a trade held for days, funding can add up to more than the trading fees. This calculator leaves it out; the crypto perpetuals lesson shows how it works, and you can see it on live prices in the crypto trading simulator.
Profit/loss questions
How do I calculate profit with leverage?
Multiply your margin by the leverage to get the position size, divide by the entry price to get the quantity, then multiply the quantity by the price change. Subtract the fees on opening and closing to get the net result.
What is ROE in futures trading?
ROE (return on equity) is your profit or loss divided by the margin you put in. With leverage it moves much faster than the price: a 3% price move at 10× is roughly a 30% ROE.
How is the liquidation price calculated?
With isolated margin and no maintenance margin, a long is liquidated at entry × (1 − 1/leverage) and a short at entry × (1 + 1/leverage). Real exchanges liquidate slightly earlier.
Are fees charged on the margin or on the position?
On the full position value. At 10× leverage, a 0.05% fee is 0.5% of your margin on each side, so fees matter more as leverage grows.
Can I practice leveraged trading without risking money?
Yes. Trade Dojo lets you open leveraged longs and shorts on live prices with virtual money, so you can see liquidation and fees in action before they cost anything.
For education only, not financial advice. Leveraged trading can lose more than you expect; exchange rules for margin, liquidation and funding differ.