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.

Exit 1
Exit 2

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.
Calculation breakdown
Exit numberPercent of original quantity · %Quantity · baseExit price · quote/baseGross P&L · quoteAllocated entry fee · quoteExit fee · quoteNet P&L · quote
1303110300.30.3329.37
25051201000.50.698.9

Saved scenarios

Save inputs on this device. Prices and balances stay out of the URL. For DCA, journal and correlation scenarios, provide 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

How to use this tool

Enter the position and planned exits. Check the portions allocated to each exit, then compare the modeled P&L and any remaining position.

Do planned exit levels guarantee the profit shown?

No. This is a calculation using the prices and portions you supply. Gaps, partial fills, slippage and costs outside the model can change realized proceeds.

This website is developed by Zack White and Vincent Hale.