← All tools
ONE POSITION · PRICE, FEES & FUNDING

Perpetual P&L Calculator

What is your modeled profit or loss after trading fees and funding, and can your position open and remain open?

Model one BTC or ETH linear, quote-settled perpetual long or short in USD, USDT or USDC. Results stay in the selected settlement currency; stablecoin amounts are not USD conversions.

Editing requires JavaScript. Without it, the initial results, worked example and explanations remain readable.

Your assumptions

Linear perpetual

The mark moves to your scenario price at the start and stays there during the holding period. Funding uses that constant mark. This is not a simulated path from entry to exit.

Position

Greater than 0; at most 1,000,000,000 underlying units.

0.00000001 to 1,000,000,000,000 per underlying unit.

Same price bounds. Applies immediately at hour zero.

Funding and fees

0 to 8,760 hours; fractional hours allowed.

−10% to +10%. Enter 0.01 for 0.01%. Positive: longs pay, shorts receive.

Whole hours from 1 to 24, measured from opening.

0% to 10%, charged on entry notional.

0% to 10%, charged on actual closing notional.

Isolated-margin assumptions

0 to 1,000,000,000,000. Opening fees come out of this balance.

1× to 1,000×. Changes entry requirements; quantity stays fixed.

0% to 50% of mark notional, plus a closing-fee reserve.

Custom trading fees only. Spread and slippage are zero and excluded; other exchange costs are not modeled.

Modeled outcome

Survived the modeled checkpoints

The position closes at the requested horizon. This does not establish safety under an unmodeled price path.

Actual modeled close
Hour 24.000 · mark 55,000.00 USDT
Price P&L before fees and funding
+5,000.00 USDT
Opening trading fee
20.00 USDT
Closing trading fee
22.00 USDT
Funding through actual close
-16.50 USDT · paid
Funding settlements completed
3
Return on allocated collateral
+49.415%
Retained balance after closing costs
14,941.50 USDT
Initial margin requirement at entry
5,000.00 USDT
Allocated collateral
10,000.00 USDT

Amounts are in USDT, without conversion to another currency. Fees reduce collateral; retained balances can be negative.

Margin is checked before and after funding. The first payment is after one full interval; a payment exactly at the horizon is included. Incomplete intervals have no payment. No exchange-clock alignment, compounding or reinvestment.

Linear P&L, fees and funding

Long price P&L = quantity × (closing mark − entry price)
Short price P&L = quantity × (entry price − closing mark)
Opening fee = quantity × entry price × decimal opening fee rate
Closing fee = quantity × actual closing mark × decimal closing fee rate
Funding per settlement = quantity × scenario mark × decimal interval rate × direction sign
Funding direction sign: long = −1; short = +1
Net P&L = price P&L + signed funding − opening fee − closing fee
Return on allocated collateral = net P&L ÷ allocated collateral × 100%

Quantity is in BTC or ETH, with multiplier 1. Prices are settlement currency per underlying unit; P&L, fees, funding and collateral are in that settlement currency. Enter percentages directly: 0.01 means 0.01%, or 0.0001 as a decimal. Positive funding means longs pay and shorts receive; negative funding reverses the flows.

Fees use the respective opening and actual closing notionals. This version uses custom fees with zero spread and slippage. Those execution effects and other possible exchange costs are excluded.

A constant mark from hour zero

Entry requirements are checked at the entry price. The mark then moves to your scenario price at the start and stays there during the holding period. Funding uses that constant mark and a constant rate. This is not a simulated path from entry to exit.

At each modeled event, the engine applies the mark, checks isolated margin, settles any due funding for an open position, then checks margin again. Surviving positions close at the horizon.

The first payment is one complete interval after opening. A payment exactly at the horizon is included; incomplete intervals have no payment. The schedule is opening-relative, with no real exchange-clock alignment, compounding or reinvestment.

Worked example

A 1 BTC long enters at 50,000 USDT with 10,000 USDT allocated collateral and 10× configured leverage. The mark becomes 55,000 USDT at hour zero. Maintenance is 0.5%; opening and closing fees are each 0.04%. Funding is +0.01% every 8 hours for 24 hours.

The shared engine gives 5,000.00 USDT price P&L, an opening fee of 20.00 USDT and a closing fee of 22.00 USDT. There are 3 payments at hours 8, 16, 24, each -5.50 USDT, for total signed funding of -16.50 USDT.

Net modeled P&L is 4,941.50 USDT. Initial margin is 5,000.00 USDT and return on allocated collateral is 49.415%. The position survives the modeled checkpoints.

Leverage, collateral and early closure

Configured leverage determines initial margin: entry notional divided by leverage. Allocated collateral is the amount actually assigned to this isolated position. Changing leverage does not resize quantity or independently multiply price P&L or funding. Return uses allocated collateral, not initial margin or notional.

Opening fees come out of collateral. Entry equity after those costs must cover initial margin and strictly exceed entry maintenance plus the closing-fee reserve. A rejected position has no reported trade P&L or return.

Liquidation is modeled at the first checkpoint where equity is no greater than mark-based maintenance plus the closing-fee reserve. Results use that actual closing time and mark, and subsequent funding stops. Retained balances include closing fees and can be negative; losses are not capped at collateral.

This is a simplified isolated-margin model, not an exchange-specific liquidation rule. Surviving the constant-mark checkpoints does not prove safety along an unmodeled price path.

Choose your next question

For a worked explanation of the contract, read how perpetual futures work, including fees and funding.

For the analytical trigger mark under zero-funding isolated-margin assumptions, use the Liquidation Price Calculator.

For isolated payment estimates, use the Funding Rate Calculator.

For price paths, execution assumptions and combined strategies, open the full Workbench. Inputs are not transferred automatically.

For all model conventions, read the methodology, or browse all tools.