Skip to content

Position & risk · Free calculator

Position Size & Lot Size Calculator

Find a position size from your risk amount, entry and stop loss.

Calculator

Your result

Enter values and calculate to see your answer here.

Price risk only. Spread, commissions, slippage, swap, funding, leverage, and margin are excluded. Quantity may be capped at volume_max or rounded to volume_step.

How it works

Your inputs. A clear answer.

  1. Pick the instrument

    Choose the pair, gold, an index or a coin. Its contract size, profit currency and lot step fill in, so the answer matches what your broker accepts.

  2. Enter entry, stop loss and risk

    Choose buy or sell, type the entry price and stop loss, and the amount of money you are willing to lose if the stop is hit.

  3. Read your position size

    Calculate position size to get the exact size and a tradable lot size rounded to the instrument's step and limits.

Worked exampleEUR/USD, buy (long), linear, contract size 100,000
Entry price1.0850
Stop loss1.0800 (50 pips)
Risk amount500 USD
Risk per lot500 USD
Position size1.00 lot
Illustrative numbers, not a trade idea.

Position Size & Lot Size formula and details

Risk per lot
risk_per_lot equals |entry − stop_loss| × contract_size
Position size
lots equals risk_amount ÷ risk_per_lot
In pips
lots equals risk_amount ÷ (stop_pips × pip_value_per_lot)
Inputs and 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).
Not included
Price risk only. Spread, commissions, slippage, swap, funding, leverage, and margin are excluded. Quantity may be capped at volume_max or rounded to volume_step.
Instrument data
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.

FAQ

A few things to know.

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.

How do I calculate lot size in forex?

Divide the amount you are willing to lose by the loss per lot if your stop is hit. On EUR/USD with a USD account, one standard lot moves about $10 per pip, so a 50-pip stop risks $500 per lot. To risk $100 you would trade 0.20 lots.

Does it round to lots my broker accepts?

Yes, when the instrument has volume rules. The result shows the exact mathematical size and a tradable size rounded to the instrument's lot step and kept within its minimum and maximum.

Does the position size calculator work for gold (XAUUSD) and crypto?

Yes. Select XAUUSD, an index or a coin and the calculator uses that instrument's own contract size and lot step. One lot of gold is usually 100 ounces, so a 5.00 move against you costs 500 per lot; crypto is often sized in coins rather than lots.

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.