Free tool · No sign-up
Lot Size Calculator
Find the right lot size for your risk in seconds. Works for major forex pairs, JPY pairs, crosses and gold (XAUUSD).
Calculator inputs
Result
- Amount at risk
- $100.00
- Pip value per 1.00 lot
- $10.00
- Loss at stop (this lot size)
- $100.00
Want risk-based lot sizing inside your EA? We code it for MT4 and MT5.
WhatsApp UsThis calculator is a free education tool, not investment advice. Check every result against your broker's or firm's own figures before you trade.
How the lot size is calculated
The calculator uses one simple formula:
Lot size = Amount at risk ÷ (Stop loss × Value per pip for 1.00 lot)
- Amount at risk = account balance × risk %.
- Pip value for 1.00 standard lot (100,000 units) is $10 on pairs that end in USD, like EURUSD. For other pairs it is converted into USD with the current price.
- The result is rounded down to 0.01 lots, the smallest step at most brokers, so you never risk more than you planned.
Example: EURUSD
Balance $10,000, risk 1% = $100. Stop loss 20 pips. Pip value $10 per lot. Lot size = 100 ÷ (20 × 10) = 0.50 lots.
Example: Gold (XAUUSD)
At most brokers 1.00 lot of gold is 100 ounces, so a $1.00 price move is worth $100 per lot. With a $5.00 stop and $100 risk: 100 ÷ (5 × 100) = 0.20 lots. Some brokers use a different contract size, so check the symbol specification in your platform.
Good to know
- This calculator assumes a USD account. If your account is in another currency, convert the result.
- Spreads, slippage and commissions can make the real loss a little bigger than the planned amount.
- An Expert Advisor can do this calculation automatically on every trade. See our MT5 EA development service or read the complete guide to Expert Advisors.
FAQs
What is a pip?
A pip is the standard small price step in forex. For most pairs it is 0.0001. For pairs that end in JPY it is 0.01.
Why do some pairs need the current price?
The pip value of pairs like USDJPY or EURGBP is in another currency (JPY or GBP). The calculator needs the current price to convert it into USD.
Does this work for gold?
Yes. Choose XAUUSD and enter your stop loss as a price distance in dollars, for example 5.00. It assumes 1.00 lot = 100 ounces, which is common but not universal.
Can an EA calculate the lot size for me?
Yes. An Expert Advisor can size every trade from your risk % and stop loss automatically. We code this into MT4 and MT5 EAs.
Free tools
Send Us Your Strategy
Share your rules on WhatsApp. We'll ask a few questions and give you a clear quote. The consultation is free.
WhatsApp Your Strategy+91 92575 82250 · support@victoryalgo.com
Risk & Regulatory Notice
- We are NOT registered with SEBI or any financial regulator. We do not give investment advice, tips or signals, recommend brokers, manage money or trade for you.
- Software only: we code the rules you give us. Nothing on this page is investment advice.
- A bot follows your rules. It can't promise profit, and past or backtest results don't show future results.
- Trading forex, gold, indices and CFDs is high risk. You can lose money, so always test on a demo account first.
Victoryalgo · Software development company · Based in India, working globally
Regulatory status, risk disclosure & policies