Workspace / Research tools
Execution

Leveraged Bitcoin trade cost calculator

Leverage changes how much exposure a margin amount supports, while trading fees and funding relate to that larger exposure. This calculator models a linear long position from margin, leverage and entry price. Enter an exit price, trading fee, signed funding rate, settlement interval and holding period to separate gross price profit from the net result. It also puts the result in relation to the initial margin. The calculation does not provide a liquidation price or establish that the position could remain open throughout the assumed price path.

Explicit assumptionsFormula & methodology includedNo account required

Set your assumptions

CALCULATE LOCALLY

Default values are an illustrative scenario, not current market quotes. Use consistent quote-currency units across your inputs.

Your scenario

ESTIMATED RESULT
Net long trade P&L$46.97
Return on initial margin4.7%
Entry and exit fees$5.03
Long funding cash flow$-10.50
Quantity = margin × leverage / entry. Net P&L = quantity × (exit − entry) − quantity × (entry + exit) × fee − initial notional × interval rate × intervals.

Linear long perpetual cost model. Positive funding is paid by the long; negative funding is received. No liquidation model: a modeled exit may be unreachable if liquidation occurs earlier. Funding assumes constant initial notional.

Shared links contain the input values. Share only information you intend to make public.

Explore how the result changes

Sensitivity analysis: only the selected input changes. Other assumptions stay fixed. Points outside the model’s valid range are excluded. This is not a forecast.

Read methodology ↗

Derive the position exposure from margin and leverage

In this simplified model, initial notional equals margin multiplied by leverage. Divide that notional by the entry price to obtain the base quantity. For a long position, gross price profit is quantity multiplied by the exit price minus the entry price.

The quantity stays fixed during the scenario. A change in market price changes the position's current notional but does not automatically buy or sell additional BTC. Contract multipliers, inverse settlement and exchange-specific margin adjustments require a different model and should not be inferred from this linear calculation.

Deduct fees on both executions and handle funding by sign

The entry fee is calculated on entry notional and the exit fee on exit notional. These amounts can differ because the prices differ. Net result equals gross price profit minus entry and exit costs, with funding added when received and subtracted when paid.

Funding is projected using initial notional multiplied by the interval rate and equivalent settlement count. Positive funding is a payment by this long position; negative funding is a receipt. The model keeps the initial notional and rate constant, so it does not reproduce funding from changing mark prices or future rates.

Do not confuse an arithmetic return with position survivability

Dividing net result by initial margin expresses a scenario return on that margin. It does not include any additional collateral that might be needed along the way. If more capital is reserved to support the position, the return relative to that full capital amount will differ.

Liquidation depends on the exchange, maintenance margin, mark price, margin mode, collateral and other positions. Those rules are outside this tool. Even when an assumed final exit is profitable, an earlier adverse move may prevent that exit from being reachable without additional funds or a smaller position.

Questions about this tool

Are trading fees charged only on the margin I deposit?

In this model, fees apply to the full entry and exit trade values. Increasing leverage while keeping initial margin fixed increases the modeled exposure and therefore the fee amounts at the same fee rates.

Why does this calculator not show a liquidation price?

A reliable liquidation calculation needs the venue's maintenance-margin rules, mark-price convention, margin mode and account details. Inferring it from leverage alone would leave out information that can change the result.

Your research workspace

Save selected inputs and research notes explicitly in this browser. Compare assumptions and restore a saved setup without submitting a trade. JavaScript enables the controls.

Find a tool or explanation