Formula
Q = margin × L / entry ; PnL = ±Q(exit − entry) − fee·Q(entry + exit) ; + long, − short
Worked example
With these values
- Direction
- Long (buy)
- Entry price
- 60,000
- Exit price
- 63,000
- Margin used
- $500.00
- Leverage (×)
- 10
- Fee per side
- 0.05 %
The calculator gives
- Profit or loss
- $244.88
- Return on margin
- 48.98 %
- Position value
- $5,000
- Quantity
- 0.0833
- Total fees
- $5.13
These values are only an illustration. Replace them with yours in the form above.
How "Profit or loss" changes with "Entry price"
| Entry price | Profit or loss |
|---|---|
| 30,000 | $5,492 |
| 48,000 | $1,557 |
| 60,000 | $244.88 |
| 72,000 | -$629.69 |
| 90,000 | -$1,504 |
All other values stay as in the example.
When to use it
- Simulate the result of a long or short leveraged position, with fees on both orders.
Limits of this calculation
- Leverage multiplies losses as much as gains and can wipe out the whole margin on a small price move.
- Each exchange has its own margin tiers, mark price, fees and funding: its figures prevail over this estimate.
Official and scientific sources
Questions
How is the result calculated?
The calculator applies this rule: Q = margin × L / entry ; PnL = ±Q(exit − entry) − fee·Q(entry + exit) ; + long, − short
Is it free?
Yes. It is free, needs no account, and works on phone and desktop.
Are my numbers stored?
Everything runs in your browser. Nothing you type is sent to a server.