LyvexTrade is a learning site only. We are not a broker or exchange and never open accounts or take money. Disclaimer

Lot Size Calculator

This position size calculator starts from what you are willing to lose and works back to the lot size that matches it.

Written and checked by the LyvexTrade editors. Updated 26 September 2026. Our research process

Position size calculator

Position size
–
Price chart with a clearly marked protective floor line under the price

A position size calculator answers the question beginners usually ask last: how big should this trade be? Enter your account balance, the percentage you are prepared to risk, the pair and the distance to your stop-loss. The tool returns the position in units and lots.

The formula

Money at risk = balance × risk %
Position (units) = money at risk ÷ (stop distance in pips × pip value per unit)
Lots = units ÷ 100,000 (or ÷ 100 for gold)

The pip value per unit is the pip size converted into dollars: 0.0001 for EUR/USD, 0.01 ÷ price for USD/JPY, and $0.01 per ounce for gold.

Worked examples

Illustrative numbers, costs ignored.

  1. EUR/USD. Balance $5,000, risk 1% = $50. Stop 20 pips away. Units = 50 ÷ (20 × 0.0001) = 25,000, which is 0.25 lots. Check: 0.25 lots is $2.50 a pip, and 20 pips × $2.50 = $50.
  2. Gold. Balance $5,000, risk 2% = $100. Stop $8.00 below entry, which is 800 pips of $0.01. Ounces = 100 ÷ (800 × 0.01) = 12.5 oz, or 0.125 lots of 100 oz.
  3. USD/JPY at 150.00. Balance $10,000, risk 1% = $100, stop 40 pips. Pip value per unit = 0.01 ÷ 150. Units = 100 ÷ (40 × 0.01 ÷ 150) = 37,500, or 0.375 lots.

Reading the position size calculator result

The result is the largest position that loses roughly your chosen amount if the stop-loss is hit at its price. Many platforms only accept lot sizes in steps of 0.01, so round down, never up. Spreads, commission and slippage come on top, so the real loss can be a little larger; our costs lesson shows how much.

Notice what the formula does: a wider stop produces a smaller position, and a tighter stop a larger one. The money at risk stays the same. That is the point of sizing this way.

Next, run the result through the margin calculator to confirm you have enough margin, and see the pip calculator to check the value of each pip.

A stop-loss is not a guarantee. Prices can gap past it at the weekend open or on sudden news. Risking a small percentage per trade limits damage but does not remove it.