How this position size calculator works
Sizing a trade correctly means deciding how many lots (or shares) to buy or sell so that if price reaches your stop loss, you lose no more than the amount you chose to risk — never more, and ideally not much less either. This tool does that math for every trade before you place it, across forex pairs, gold and silver, oil, major indices, crypto and individual stocks.
Enter your account balance and how much of it you're willing to risk on this one trade, then your entry and stop loss. The calculator converts the distance between entry and stop into pips (or, for stocks, into a direct price distance), works out what one pip is worth for the instrument and lot size you've selected, and solves for the exact position size that keeps your risk pinned to that dollar figure. Add a take profit and it will show your reward-to-risk ratio and potential profit as well.
What is a lot size calculator?
A lot size calculator — also called a position size calculator or forex risk calculator — is a tool that converts your account balance, risk percentage and stop-loss distance into the exact number of lots (or shares, for stocks) you should trade. Instead of guessing a position size and hoping the dollar risk works out, you set the risk first and the calculator works backward to the correct lot size. This is the core habit behind consistent risk management: risk is decided before the trade, not discovered after it goes wrong.
Traders search for a forex lot size calculator, a pip value calculator, a margin calculator and a risk-reward calculator as separate tools, but they're really the same calculation viewed from different angles. This calculator combines all four into one workflow so you only have to fill in your trade parameters once.
How to calculate forex position size manually
If you want to understand the formula this calculator runs behind the scenes, forex position sizing comes down to four steps:
- Step 1 — Work out your risk amount. Multiply your account balance by your risk percentage. A $5,000 account risking 1% per trade risks $50 on that trade.
- Step 2 — Measure your stop-loss distance in pips. Subtract your stop-loss price from your entry price, then divide by the pip size for that instrument (0.0001 for most forex pairs, 0.01 for JPY pairs and gold).
- Step 3 — Find the pip value for one standard lot. This depends on the contract size and, for some pairs, the current exchange rate — see the pip value section below.
- Step 4 — Divide risk by (pips × pip value). Position size (in lots) = Risk Amount ÷ (Stop-Loss Pips × Pip Value per Lot). Round down to your broker's lot step (usually 0.01) so you never risk more than intended.
This is exactly the calculation this lot size calculator runs automatically the moment you enter your balance, risk %, entry and stop loss — no spreadsheet or manual pip-value lookup required.
Position sizing across different asset classes
Forex majors and minors (EUR/USD, GBP/USD, USD/JPY, AUD/USD, USD/CAD, USD/CHF, NZD/USD) are the easiest pairs to size correctly because their pip value either sits fixed in USD or scales directly off the live exchange rate you enter.
Forex cross pairs (EUR/GBP, GBP/JPY, EUR/AUD, AUD/CHF, CAD/JPY, NZD/CAD and similar) don't involve the US dollar on either side, so their pip value has to be converted into USD through an indicative exchange rate. This calculator flags cross pairs on screen so you know when an approximate rate is being used instead of your broker's live feed.
Gold (XAUUSD) and silver (XAGUSD) position sizing works the same way as forex but with metal-specific contract sizes — typically 100 troy ounces per standard lot for gold and 5,000 ounces for silver — so a $1 move in gold is worth a very different amount than a 1-pip move in EUR/USD.
Indices (US30/Dow Jones, NAS100/Nasdaq, SPX500/S&P 500, GER40/DAX, UK100/FTSE, JP225/Nikkei, STX50/Euro Stoxx) are typically quoted in whole points rather than pips, with a broker-defined value per point — this calculator uses common industry-standard defaults, but always cross-check your specific broker's index contract specification.
Crypto CFDs (BTCUSD, ETHUSD, XRPUSD) can move hundreds or thousands of dollars in a single session, so position sizing matters even more than in forex — a lot size that looks small on screen can still represent significant dollar exposure.
Stocks are sized differently from forex: instead of standard/mini/micro lots, this calculator computes the exact number of shares to buy or short-sell so your dollar risk between entry and stop loss stays fixed.
Understanding pip value
A pip (percentage in point) is the smallest standard price movement for a currency pair — 0.0001 for most pairs, or 0.01 for pairs quoted in Japanese yen. Pip value is what that single-pip move is worth in your account currency, and it changes based on three things: the instrument's contract size, its pip size, and — for pairs where your account currency isn't the quote currency — the live exchange rate. A single generic "$10 per pip" rule of thumb only holds for standard-lot USD-quoted majors; this calculator applies the correct formula per instrument instead of a one-size-fits-all number.
Leverage and margin explained
Leverage lets you control a larger position than your account balance alone would allow — 1:30 leverage means $1 of margin can control $30 of notional exposure. Margin is the portion of your balance a broker sets aside to hold that open position. Leverage changes how much margin a trade consumes, but it does not change how much you can lose relative to your stop loss — that's determined purely by your position size and stop distance, which is exactly what a risk-first lot size calculator solves for. Higher leverage means lower margin usage for the same position size, not higher allowed risk.
Risk management rules every trader should know
- The 1% rule — many professional traders cap risk at 1% of account balance per trade, so a losing streak doesn't meaningfully damage the account.
- The 2% rule — a slightly more aggressive ceiling used by some traders with a proven edge and higher trade-frequency tolerance for drawdown.
- Reward-to-risk ratio (R:R) — a 1:2 R:R means your take profit is twice as far from entry as your stop loss, so you can be profitable even with a below-50% win rate.
- Position sizing over stop-loss width — a common mistake is picking a stop-loss distance to hit a desired lot size, backward from what the chart says. Set your stop where the trade idea is actually invalidated, then let the calculator size the position around that stop.
- Risk of ruin — risking too large a percentage per trade compounds losses quickly: a 50% drawdown needs a 100% gain just to break even, which is why disciplined, calculator-driven position sizing matters more than any single trade's outcome.
Reading the numbers
- Position Size — the lot size to enter in your trading platform, shown in standard, mini and micro lots side by side (or shares, for stocks).
- Risk Amount — your risk percentage converted into a dollar figure, so you always know the cash number behind the percentage.
- Pip Value — what one pip is worth for one standard lot of the instrument you picked; the calculator scales this by your position size automatically.
- Est. Margin — the margin your broker would hold at the leverage you selected, so you can check the trade actually fits your free margin.
- R:R — reward-to-risk ratio between your take profit distance and your stop loss distance.
Glossary of key trading terms
- Lot — a standardized trade size; 1.0 standard lot = 100,000 units of the base currency in forex.
- Pip — the smallest standard price increment tracked for a given instrument.
- Pip value — the dollar (or account-currency) value of a one-pip move for a given lot size.
- Leverage — the ratio of position size to required margin, expressed as 1:X.
- Margin — the balance a broker holds aside to keep a leveraged position open.
- Spread — the gap between the bid and ask price, an implicit trading cost not included in this calculator.
- Slippage — the difference between an order's expected fill price and its actual fill price, common during high volatility.
- Stop loss — a predefined price at which a losing trade is closed to cap risk.
- Take profit — a predefined price at which a winning trade is closed to lock in reward.
- Drawdown — the decline in account balance from a previous peak, typically expressed as a percentage.
- Long / Short — a long position profits when price rises; a short position profits when price falls.
Frequently asked questions
What is a lot in forex trading?
A standard lot is 100,000 units of the base currency. A mini lot is 10,000 units (0.1 standard), and a micro lot is 1,000 units (0.01 standard). Metals, indices and crypto CFDs use their own contract sizes, which this calculator applies automatically per instrument.
How is pip value calculated?
Pip value depends on the contract size, the pip size for that instrument, and — for pairs where the U.S. dollar is the base currency rather than the quote currency — the current exchange rate. This tool applies the correct formula for each instrument type rather than a single generic one.
Why does my position size come out smaller than expected?
A wide stop loss means more pips between entry and stop, so each pip has to be worth less of your risk budget — which means fewer lots. Tightening your stop increases position size for the same dollar risk, but only makes sense if the tighter stop still respects the market structure.
Does this account for spread and commission?
No — figures are based on your entered entry, stop and take profit prices only. Spread and commission will slightly change your real breakeven and net profit, so build in a small buffer when trading tight stops.
What's the difference between lot size and position size?
They're used almost interchangeably in retail forex — "lot size" refers to the standardized unit (standard, mini, micro), while "position size" is the broader term covering any asset, including share counts for stocks. This calculator reports both depending on the instrument type you select.
How much should I risk per trade?
Most professional and prop-firm risk guidelines cap risk between 0.5% and 2% of account balance per trade. Beginners are generally better served staying at the lower end of that range while they build a consistent track record.
What is a good reward-to-risk ratio?
A reward-to-risk ratio of 1:1.5 or higher is a common baseline, meaning your take profit target is at least 1.5 times further from entry than your stop loss. Higher ratios let you stay profitable even with a lower win rate.
Can I use this calculator for stocks, indices and crypto, not just forex?
Yes. Select a stock ticker, an index like US30 or NAS100, or a crypto pair like BTCUSD or ETHUSD from the instrument list, and the calculator automatically switches to the correct sizing method for that asset class.
Is this lot size calculator free to use?
Yes, this tool is completely free, requires no signup, and runs entirely in your browser — no trade data is sent to a server.
Does higher leverage mean I can risk more?
No. Leverage only affects how much margin a position consumes — it doesn't change your actual dollar risk, which is determined by position size multiplied by stop-loss distance. Two trades with the same lot size and stop loss carry the same risk regardless of leverage.
Why is my broker's margin figure slightly different from this calculator's?
Margin requirements can vary by broker, account type and regulatory jurisdiction. This calculator uses standard contract specifications as a close estimate — always confirm the exact figure in your broker's own platform before placing a trade.