Skip to content
Position Management Tool

Gross P&L Calculator

Estimate the gross profit or loss of a closed position from entry price, exit price, and quantity.

Enter values and calculate to see results here

About this tool

How the Gross P&L Calculator works

Formula

Linear: pnl = direction × (exit - entry) × quantity × contract_size. Futures: pnl = direction × ((exit - entry) / tick_size) × tick_value × quantity. Inverse: pnl = direction × quantity × contract_size × (1/entry - 1/exit).

Example

EURUSD BUY at 1.0850, exit at 1.0900, 0.10 lots (contract_size=100000): P&L = $500

Inputs & units

Direction, entry, exit, quantity, and formula. Result is gross P&L in the instrument's profit currency.

Supported formulas

Linear (forex, stocks, indices), Futures tick value (futures), Inverse (crypto contracts).

Limitations

Gross P&L only. Spread, commissions, slippage, swap, funding, leverage, and margin are excluded.

Metadata source

Contract specifications (contract_size, tick_size, tick_value, quantity_unit, profit_currency) are sourced from the AlgoVistra instrument database.

This tool is for educational purposes only and does not constitute financial advice. Calculations are deterministic and do not account for market conditions, execution costs, or account-specific parameters.

Frequently asked questions

01

Is this net of fees?

No. This estimates gross P&L only. Spread, commissions, slippage, swap, and funding are not included.

02

Does it support all instrument types?

It supports forex, crypto, metals, indices, and equities. The calculation adapts to the instrument's unit and contract specifications when available.