Position Size Calculator
Determine the correct position size from your risk amount, entry, and stop loss — the foundation of trade risk management.
Enter values and calculate to see results here
How the Position Size Calculator works
Formula
quantity = risk_amount / |per_quantity_risk|, where per_quantity_risk = |direction × (entry - stop_loss) × contract_size| for linear.
Example
EURUSD BUY at 1.0850, SL at 1.0800, risk $500, linear: per_unit_risk = $50, quantity = 0.10 lots
Inputs & units
Direction, entry, stop loss, risk amount (in the instrument's profit currency), and formula. Result includes mathematical and tradable quantity with volume validation.
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. Quantity may be capped at volume_max or rounded to volume_step.
Metadata source
Contract specifications (contract_size, tick_size, tick_value, quantity_unit, profit_currency, volume rules) 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.
Explore other calculators
Price Distance Calculator
Calculate the distance between two price levels in pips, points, or percentage — useful for mapping trade ranges and measuring moves.
Open toolRisk / Reward Ratio Calculator
Compute the risk-to-reward ratio of a trade setup from entry, stop loss, and take-profit levels.
Open toolSolve Trade Level Calculator
Find a missing take-profit or stop-loss level given the other values and a desired risk/reward ratio.
Open toolGross P&L Calculator
Estimate the gross profit or loss of a closed position from entry price, exit price, and quantity.
Open toolFrequently asked questions
How is position size calculated?
The tool divides your risk amount by the per-unit risk (from entry to stop loss), then adapts for the instrument's contract size and quantity unit.
What if I don't have instrument metadata?
The tool will still calculate a basic result, but selecting a specific instrument provides more accurate sizing for contract size and unit type.
