Trade exit calculator
Plan partial trade exits and calculate profit after fees. See the closed quantity, remaining position and result at a chosen mark price.
Inputs
Hypothetical example. Replace these inputs with your own.
Result
Calculation result
Example result
- Closed portion net P&L
- 128.27 quote
- Closed quantity
- 8 base
- Weighted exit price
- 116.25 quote/base
- Remaining quantity
- 2 base
- Entry fee allocated to the remainder
- 0.2 quote
- Remainder net P&L if closed at the mark
- -20.38 quote
- Combined net P&L if the remainder closes
- 107.89 quote
- Total entry fee paid once
- 1 quote
- Exit fees on the closed portion
- 0.93 quote
- Exit percentages apply to the original quantity. The entry fee is paid once and allocated between closed and remaining quantities.
- Closed portion net P&L is not the account cash balance. Remainder P&L assumes a future fill at the mark and its exit fee.
- This model covers spot long and linear long or short positions. Funding, inverse or quanto contracts, liquidation and taxes are excluded. Actual fills can differ.
| Exit number | Percent of original quantity · % | Quantity · base | Exit price · quote/base | Gross P&L · quote | Allocated entry fee · quote | Exit fee · quote | Net P&L · quote |
|---|---|---|---|---|---|---|---|
| 1 | 30 | 3 | 110 | 30 | 0.3 | 0.33 | 29.37 |
| 2 | 50 | 5 | 120 | 100 | 0.5 | 0.6 | 98.9 |
Saved scenarios
Save up to 20 new-tool scenarios on this device, separately from the six existing tools. Prices and balances stay out of the URL. DCA, journal and correlation scenarios save settings and a digest, requiring the matching CSV again to calculate.
Saving requires browser storage and Web Locks.
Formula and worked example
Each exit closes its stated share of the original quantity. Closed net P&L subtracts that share of the entry fee and the exit fee. The remaining position retains its own entry-fee allocation and assumes an exit at the entered mark.
Hypothetical example: 10 units bought at 100, with 0.1% fees, close 30% at 110 and 50% at 120. Closed net P&L is 128.27 on 8 units. The 2-unit remainder at mark 90 would lose 20.38; combined hypothetical net P&L is 107.89. Spot supports long only; linear futures support either side.
These estimates use bounded decimal arithmetic. They are scenario calculations, not trading instructions or forecasts.
Methodology sources: Investment risk and returns
Related tasks and reading
This website is developed by Zack White and Vincent Hale.