01 Half position sold without fees
Original 10 units bought at 100; sell 50% of original quantity at 110; no fees.
Five units remain in inventory, and their unrealized P&L is excluded.
Calculate the net P&L on multiple spot sale tranches after allocated buy fees and sell fees, while keeping unsold inventory separate.
Each sell percentage refers to the ORIGINAL after-fee spot quantity. Cost basis and original buy commission are allocated by units sold. Per-tranche gross P&L = sold units × (sale price − entry price); net P&L deducts allocated buy commission, sell percentage commission and any fixed sell fee.
Results assume the entered tranches have filled in full at the entered prices. Planned limit orders are NOT realized profits. No unrealized P&L is calculated for unsold units. Spot quote-denominated fees only; actual exchange fee currency, fills, taxes, slippage and rounding can differ.
Estimated rebate is displayed separately from primary net P&L. Only positive percentage commissions on the sold allocation are considered rebate-eligible; no assumed rebate is credited to unsold units or fixed fees.
User-supplied input only; no exchange API, prediction, order placement or guaranteed outcome.
Allocate each sell tranche against a percentage of the original spot quantity. Deduct the matching share of opening fees and that tranche's sell fees. Count only sold quantity as realized P&L; track unsold inventory separately.
Realized net P&L = Σ[sold quantity × (sell price − entry price) − allocated entry fees − sell fees]Sell tranche percentages are based on the original position, not the remaining balance. The calculator assumes fills at the specified prices and quote-denominated fees.
Original 10 units bought at 100; sell 50% of original quantity at 110; no fees.
Five units remain in inventory, and their unrealized P&L is excluded.
Original 10 units at 100; buy fee 0.1%, sell 5 units at 110 with 0.1% sell fee.
Half the original buy fee is allocated to the sold five units; the remaining half belongs to unsold inventory.
No. Each percentage is of the original quantity; entered tranches cannot total more than 100%.
No. The headline P&L represents only the realized-like sold portion under the assumed fills.
The original entry charge is apportioned by quantity sold, rather than deducted in full from the first tranche.
Worked examples explain hypothetical user inputs only. Not investment advice, live official pricing, an execution guarantee or a profit forecast.