Input

Position direction

Use one quote currency for all prices and monetary amounts. Display precision: amounts 2, percentages 4, prices/quantities 8 decimals; position quantities round down. ≈ marks shortened values. Tiny/large values use scientific notation; result text and exports retain up to 36 decimals.

Result

Run the tool to see the result.

How to use

Enter prices, asset quantity, leverage and entry/exit fee percentages for a linear position. Leverage changes initial margin, not PnL for a fixed quantity. Funding, borrowing and slippage are excluded; ROI uses net PnL divided by initial margin.