How to Calculate Crypto Futures PnL: Entry, Exit, Funding, and Fees

Athenum Analytics
Athenum Analytics
9 min read

The decision before the data

Calculate linear crypto futures PnL with a hypothetical long and short: fees on each fill, signed funding at settlement, and return on initial margin.

Your questionWhat to compareWhat this cannot establish
Reconcile a trade?Use the executed quantity and prices, actual fill fees and signed settled funding.An indicative rate cannot reconstruct a historical funding bill.
Compare long and short?Reverse price PnL and funding direction; calculate both fill fees separately.Net PnL is not a perfect mirror because fees remain payable.
Find break-even?Use signed funding already accrued and the fee on the candidate exit notional.The result is not a liquidation threshold or a forecast of future funding.

Practise with worked lessons

Hypothetical linear USDT long: gross PnL 303.92, fill fees 10.15, funding paid 10.50 and net PnL 283.27 USDT; return on 1,000 USDT initial margin 28.33%.
An explicitly hypothetical trade with fixed coin quantity, separate fill notionals and 21 stipulated funding settlements. No historical return or exchange cost is asserted.

Correction 2026-10-23: the previous example projected one snapshot rate across a holding period; it did not establish observed seven-day funding payments. The original API snapshot file was not recovered; Athenum's stored feed readings reproduce its venue rates, but one indicative rate per venue is not a settled seven-day payment, so those claims stay removed. The explicit hypothetical scenario below replaces those historical cost and venue-ranking claims. The original calculation method and source search are documented with the reproducible inputs. Scenario JSON Hyperliquid funding Binance funding Bybit funding

TLDR. For a linear perpetual, net PnL equals price PnL minus trading fees minus signed funding paid. A funding receipt is negative in that last term. In the hypothetical USDT-settled example below, a 10,000 USDT entry notional and 1,000 USDT initial margin give 0.15625 BTC at an entry price of 64,000 USDT. An assumed exit at 65,945.10 yields +303.92 USDT gross. Fees of 10.15 and modeled funding of 10.50 leave the long +283.27 USDT, or +28.33% on initial margin. These are scenario results, not an observed trade or a return forecast.

How do you calculate PnL on a crypto perpetual?

For a linear contract with fixed base-asset quantity, gross price PnL is quantity times the favorable price change. The result is in the contract's quote/settlement currency; USDT is not automatically USD. Inverse contracts use different formulas and settlement units.

- Long: gross PnL = size x (exit price - entry price) - Short: gross PnL = size x (entry price - exit price)

The hypothetical quantity is 10,000 / 64,000 = 0.15625 BTC. At the assumed execution exit of 65,945.10 USDT, gross long PnL is 0.15625 × (65,945.10 − 64,000) = 303.921875 USDT. The initial margin is 1,000 USDT, so gross return on that margin is 30.3921875%. This is not return on total account equity. With entry notional and quantity fixed, changing leverage changes the required initial margin, not this price-PnL amount.

An open position's price PnL depends on the valuation price; realized price PnL depends on its execution prices. Fees and funding have their own cash flows. Net PnL can be lower or higher than gross price PnL because funding can be received. This example assumes the position remains open until exit and does not model liquidation, slippage or collateral FX changes.

How do fees and funding change net PnL?

Keep execution fees and settled funding separate. Neither a universal fee rate nor a constant future funding rate can be inferred from this example.

Both example fills are assumed to incur a 0.05% taker fee; this is a scenario input, not a quoted exchange tariff. Entry fee = 10,000 × 0.0005 = 5.00 USDT. Exit notional = 0.15625 × 65,945.10 = 10,303.921875 USDT, so exit fee = 5.1519609375 USDT. Total fees are 10.1519609375, rounded to 10.15. A marketable limit order can also take liquidity; the actual fill classification and fee tier matter. A different exit price or quantity changes the fee.

Funding is a signed cash flow at the contract's applicable settlement times. In this idealized scenario, the position is eligible for 21 eight-hour settlements, each at +0.005%, and the mark price at every settlement is assumed to be 64,000 USDT. The fixed 0.15625 BTC quantity therefore has 10,000 USDT notional at each of those times. The long pays 21 × 10,000 × 0.00005 = 10.50 USDT; the short receives the same amount. The assumed exit price occurs after the last modeled settlement. For a real trade, use the settled rates and the contract's funding reference price: some venues use mark price, while Hyperliquid uses oracle price.

Hypothetical funding at 0.50 USDT per eligible eight-hour settlement. At 1/8/24/72/168/720 hours, stipulated counts 0/1/3/9/21/90 give 0/0.50/1.50/4.50/10.50/45.00 USDT. Fixed fees 10.15 use the same assumed execution prices in each separate scenario.

Hypothetical funding at 0.50 USDT per eligible settlement: 0/1/3/9/21/90 settlements give 0/0.50/1.50/4.50/10.50/45.00 USDT. The horizontal 10.15 fee line is a fixed reference using the same assumed entry and exit prices for each separate holding scenario, not a measured fee trajectory.

Against that fixed fee reference, funding first exceeds fees at the twenty-first modeled settlement, 168 hours after the idealized entry. This is not a general holding recommendation. A one-hour position can include zero or one eight-hour funding settlement depending on its timing. Exchange processing around a boundary can differ; this model stipulates eligibility and gives no guarantee for orders placed near a settlement time.

How does a different funding rate change the example?

Compare contracts using their own settlement intervals, settled rates, funding notionals at the contract’s reference price, quote currencies and trading costs. A current indicative rate is a scenario input, not a forecast or proof of what a position paid in the past. The former historical venue ranking has been removed because it projected one indicative rate per venue over seven days instead of summing settled payments.

To isolate the arithmetic, keep 21 eligible settlements and 10,000 USDT mark notional per settlement. Hypothetical eight-hour rates of −0.005%, 0%, +0.005% and +0.010% produce signed long funding payments of −10.50, 0, +10.50 and +21.00 USDT. Negative means the long receives funding. These four cases are assumptions, not measurements or prices from named exchanges.

Four assumed eight-hour rates for 21 settlements at 10,000 USDT mark notional: −0.005%, 0%, +0.005%, +0.010% yield signed long payments −10.50, 0, +10.50, +21.00 USDT. Hypothetical cases, not exchange observations.

Four hypothetical rate scenarios with the same interval, quantity and settlement mark price. The chart illustrates signed payments; it does not rank exchanges or establish executable profitability.

Real comparisons require each symbol's actual schedule and the rates settled while the position was eligible. Do not multiply one indicative rate by elapsed time and call the result realized cost. Continuous-accrual contracts require their own method. The guide to funding rate intervals explains why schedules must be checked per contract.

Where is your real breakeven after fees and funding?

Use signed funding paid F: a payment is positive, a receipt negative. With quantity q, entry E, entry fee rate f₁ and exit fee rate f₂, long break-even = [qE(1 + f₁) + F] / [q(1 − f₂)]. Short break-even = [qE(1 − f₁) − F] / [q(1 + f₂)]. F here is an already accrued cash flow held fixed while testing a candidate closing price. Subtracting a negative receipt in the short formula adds its magnitude. Future funding would change the result.

For the hypothetical long, F = +10.50 USDT gives break-even at 64,131.2656…, rounded to 64,131.27. For the corresponding short, F = −10.50 gives 64,003.1984…, rounded to 64,003.20. The short's receipt slightly exceeds the fees near entry, so its break-even is above entry. A sufficient long-side funding receipt can instead put long break-even below entry. At the example exit of 65,945.10, net long PnL is +283.27 and net short PnL is −303.57 USDT.

Long and short net PnL versus candidate exit after fixed accrued funding +10.50 and −10.50 USDT. Break-even 64,131.27 and 64,003.20 USDT; each exit fee uses its own notional. Hypothetical linear contract without a liquidation model.

Closing-price sensitivity after the stipulated funding payments: long break-even 64,131.27 USDT and short break-even 64,003.20 USDT. The funding bill stays fixed; each candidate closing fee uses its own exit notional. This is not a new historical price path for every point.

Return on the example's 1,000 USDT initial margin is +28.33% for the long and −30.36% for the short. These figures assume the positions remain open; they do not establish sufficient maintenance margin or survival of an actual price path. The leverage and liquidation calculator shows model-dependent thresholds, while the 10x vs 100x leverage guide explains the sizing trade-off. Cross-margin liquidation also depends on the rest of the account.

Long or short: how do the PnL terms flip?

Price PnL changes sign between the two directions. Funding changes sign for opposite positions in the same contract at the same settlements, while the assumed fill fees remain payable. Keep the signed funding term in both formulas; a receipt can offset fees.

PnL term

Long position

Short position

Gross price PnL

size x (exit - entry)

size x (entry - exit)

Taker fees

Each fill uses its own notional and fee rate; example 0.05%

Each fill uses its own notional and fee rate; example 0.05%

Funding, market positive

Paid by the long, a cost

Received by the short, a credit

Funding, market negative

Received by the long, a credit

Paid by the short, a cost

Real breakeven

Depends on fees and signed accrued funding; receipts can put it below entry

Depends on fees and signed accrued funding; receipts can put it above entry

In this scenario, positive funding costs the long 10.50 USDT and credits the short 10.50. With negative rates, those cash-flow directions reverse. This is the sign convention for the example, not a statement about a historical venue snapshot.

How do you calculate your crypto futures PnL yourself?

Turn it into a repeatable five-step check before and after every trade:

1. Identify whether the contract is linear or inverse and name its settlement currency. For this linear example, quantity equals entry notional divided by entry price.
2. Calculate price PnL from execution prices and quantity, then each fill's fee from its own executed notional and actual fee rate.
3. Sum signed funding using the actual quantity, contract-specific funding reference price and settled rate at each eligible settlement; retain receipts as negative payments.
4. Compare contracts only after accounting for intervals, currency, fees, spread and executable size. A quoted rate alone does not establish the cheapest realized trade.
5. Reconcile net PnL and return on the stated capital base. Calculate break-even with the signed accrued funding bill; assess account margin and liquidation risk separately.

The free PnL calculator handles price PnL and trading fees, excluding funding. Reconcile signed funding separately; the funding rate calculator evaluates a stated-rate scenario. The leverage and liquidation calculator uses explicit model assumptions and does not predict account-level liquidation or future payments. If perps are new to you, start with what are perpetual futures.

Use the free PnL calculator and funding rate calculator to inspect the assumptions, then open the live Athenum terminal for current market context. Current quotes cannot reconstruct a past settled funding bill or establish a future one. The reproducible scenario inputs linked above are the basis for every new chart in this article.

Juggling CoinGlass, Hyblock & TradingLite tabs
Paying $100+/mo across fragmented tools
Stale data you can’t trust for entries

One terminal. All the data.

Liquidations, orderbook depth, whale walls & open interest, all real-time, in one place. 29 supported exchanges; coverage differs by tool.

100+ pairs tracked live
Try It Free

No credit card required

Athenum Analytics
Author

Athenum Analytics

Athenum Analytics is our three-person editorial team covering crypto derivatives, market data and macroeconomic context.