Profit and ROE calculator
Enter the entry and exit prices, your margin and your leverage, and I will tell you how much you make or lose in USDT, with fees already included, and what share of your margin that is: the ROE your exchange shows you.
Profit or loss, after fees+49.17 USDT
ROE on your margin+49.17%
Before fees+50 USDT
Fees0.83 USDT
Position size1,000 USDT
The price moves +5% and, at x10, you make 49.17 USDT: 49.17% of your margin, with fees already deducted.
On isolated margin, without the funding rate or slippage. The figure that counts is your exchange’s.
What leverage does with the same move
A long with 100 USDT of margin, opened at 60,000 and with the fees that come filled in. This is the ROE if the price rises or falls 2%:
| Leverage | If the price rises 2% | If it falls 2% |
|---|---|---|
| x1 | +1.92% | -2.08% |
| x2 | +3.84% | -4.16% |
| x5 | +9.59% | -10.39% |
| x10 | +19.19% | -20.79% |
| x20 | +38.38% | -41.58% |
| x50 | +95.94% | Liquidated |
The price move is the same in every row; what changes is the position size. At x50, a 2% drop liquidates you first, because liquidation is 1.5% away.
The formula I use
- Size = margin × leverage. 100 USDT at x10: 1,000 USDT.
- Result before fees = size × (exit − entry) ÷ entry, with the sign reversed if you are short. From 60,000 to 63,000: 1,000 × 5% = 50 USDT.
- Fees = size × opening fee + value at close × closing fee. 1,000 × 0.02% + 1,050 × 0.06% = 0.83 USDT.
- ROE = result after fees ÷ margin. 49.17 ÷ 100 = 49.17%.
To warn you about liquidation I use the formula from the liquidation price calculator, on isolated margin and with a 0.5% maintenance margin.
ROE is not what your account makes
ROE is measured on the margin of that position, not on your whole balance. 50% ROE with 100 USDT of margin is 50 USDT: if your account holds 2,000, it has made 2.5%.
The same goes for losses, which is why ROE looks scarier than what the account actually loses. What is worth watching is how much of your account you lose if the trade goes wrong, and the position size calculator gives you that.
What the calculation leaves out
- The funding rate, which you pay or receive every few hours while the position is open. How much it comes to is in the funding calculator.
- Slippage: a market order or a stop is filled at whatever price is available, and it can be somewhat worse.
- Fee discounts for volume traded or for paying with the exchange’s token: if you have them, change the percentages.
How fees are calculated is in maker and taker fees, and what leverage does, in what leverage is.
Frequently asked questions
How do you calculate profit with leverage?
Multiply the margin by the leverage to get the position size, and that size by how much the price moved. With 100 USDT at x10 and a 5% rise, you make 50 USDT before fees.
What is ROE?
The profit or loss divided by the margin you put up, as a percentage. It is the figure exchanges show next to each open position, although there it usually leaves the fees out: here they are taken off, so it comes out slightly lower.
Why is ROE so high with so little movement?
Because leverage multiplies the price move on your margin: at x20, 1% in the price is 20% ROE. It works the same way on the way down.
What fees should I enter?
Your exchange’s futures fees: the maker fee if you open or close with a limit order, and the taker fee if you do it at market or with a stop. The ones filled in, 0.02% and 0.06%, are an example.
Does it work for a short?
Yes. Choose short: you make money if the exit price is below the entry and lose if it is above.
Does it include funding?
No. The funding rate depends on how long you keep the position open and on how the rate changes. To work it out separately there is the funding calculator.
