◆ New — Strategy Validator, Code Fixer & Prop Compliance Checker are live. Try one free →
Home / Free tools / Position Size Calculator
Risk & sizing · free, no login

Position Size Calculator

How many units to trade so a loss costs exactly what you decided.

Risk amount$100
Position size50 units
Position value$5,000

Educational tool only — not financial advice. Verify figures with your broker.

Built a strategy around this? Validate its Pine Scriptto catch look-ahead bias & repainting before you trade it.

What is the Position Size Calculator?

The Position Size Calculator is a risk-and-sizing tool that answers a single question: how many units (or lots) should I trade so that if my stop is hit, the loss equals exactly the amount I decided to risk? It converts a chosen dollar or percentage risk and a stop distance into a concrete position size. It sizes the trade; it does not judge the trade.

How to use it

  1. Enter your account equity and the percentage (or dollar amount) you're willing to risk on this one trade to set your risk budget.
  2. Enter your entry price and stop-loss price so the tool can measure the stop distance in pips or price units.
  3. Enter the pip value (or contract/units per lot) for the instrument you're trading.
  4. Read the highlighted result: the position size (units or lots) at which a stop-out costs exactly your risk budget, no more.
  5. Adjust the risk percentage or stop distance and watch the size change to see the trade-off between a wider stop and a smaller position.

How it's calculated

Position size = risk amount divided by (stop distance in pips x pip value per unit). The risk amount itself is account equity x risk percent. In words: decide how many dollars you can lose, divide by how many dollars you lose per unit if the stop is hit, and that quotient is how many units keep the loss at your chosen figure.

Frequently asked

How much should I risk per trade in a forex position size calculator?

Many traders cap risk at a small fixed fraction of equity (commonly cited around 1-2%), but the right number is a personal risk decision, not a formula output. The calculator sizes whatever percentage you enter; it does not recommend one.

Does the position size calculator account for slippage or gaps?

No. It assumes your stop fills exactly at the stop price. Real fills can be worse during fast moves or gaps, so an actual loss can exceed the figure shown.

Why does a wider stop mean a smaller position?

Because the loss per unit grows with stop distance. To keep the total risk fixed, the number of units must shrink as the stop widens.

Keep in mind: This number tells you the size that caps a clean stop-out at your chosen risk. It does not tell you whether the trade will win, and it cannot guarantee the actual loss, since slippage, gaps, and requotes can push the real fill past your stop.

Catch the bug that compiles.Run auditGet Pro