FX Day Job library
Forex position size calculator
Calculate a forex position size from your balance, risk budget, stop distance and pip value. See the formula, rounding and limits before use.

Formula and limits
Risk budget = balance × risk % ÷ 100. Raw lots = risk budget ÷ (stop pips × pip value per lot). The result rounds down to your broker's lot increment. Fees and slippage are excluded; actual losses can exceed the budget.
All calculations happen in your browser. No inputs are uploaded or saved. Use the exact specifications of your instrument; examples are not trading recommendations. Prefilled values are illustrations, not a recommended risk level.