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.