Your position
USDT perps, isolated marginResult
Link to this calculation- Average entry price
- Total size
- Position value at entry
- Fees paid on the fills
- Break-even price (after fees)
- Break-even vs average
- PnL at the current price (after fees)
- Current price vs average
Estimate: These are estimates. Exchanges use tiered maintenance margin (bigger positions need more), liquidate on the mark price rather than the last trade, and handle fees and cross margin their own way. Check your exchange's position screen before you trade.
Worked example
BTC long, the numbers above- Each fill's size in BTC is its dollar amount ÷ its price. Your 3 fills add up to 0.0369088 BTC for $3,000.00.
- Average entry = total cost ÷ total size = $3,000.00 ÷ 0.0369088 = $81,281.39. Bigger fills pull the average towards their price.
- Fees: 0.05% of each fill = $1.50 so far. Closing costs 0.05% again, so break-even = average × (1 + fee) ÷ (1 − fee) = $81,362.72, 0.10% above the average.
- At the current price of $84,766.30 (+4.29% from the average) the long is at $125.56 after fees on the way in and out.
The formula
Average entry = (Price₁ × Size₁ + Price₂ × Size₂ + …) ÷ (Size₁ + Size₂ + …)
Size in coins = Size in USD ÷ Price · Fees paid = fee rate × Σ (Price × Size)
Break-even (long) = Average × (1 + fee) ÷ (1 − fee) · (short) = Average × (1 − fee) ÷ (1 + fee)
The average entry is weighted by size, so a big fill moves it more than a small one. Dollar-cost averaging a fixed amount buys more coins when the price is low, which pulls the average below the simple mean of your prices. Break-even adds the fee you paid on every fill and the one you will pay to close. Funding is not included.