Position Size Calculator
A position size calculator tells you how many shares to buy so that a stop-loss hit costs only the amount you chose to risk. Enter your account size, the percentage you are willing to lose, your entry price and your stop price; the shares, dollar risk and position value update instantly.
- Shares to buy
- 100
- Dollar risk
- $250.00
- Risk per share
- $2.50
- Position value
- $5,000.00 (20%)
Not investment advice. Results are arithmetic on the numbers you enter and ignore fees, slippage and gaps unless stated.
What is the formula?
Risk amount = Account size × Risk % ÷ 100 Risk per share = |Entry price − Stop price| Shares = floor(Risk amount ÷ Risk per share) Position value = Shares × Entry price
Worked example
- Account size $25,000, risk 1% → risk amount $250.
- Entry $50.00, stop $47.50 → risk per share $2.50.
- Shares = floor(250 ÷ 2.50) = 100 shares.
- Position value = 100 × $50 = $5,000 (20% of the account). Illustrative numbers only.
How to use this with Market Scanner
- US Stock Momentum Scanner — find a candidate, then size it before entry
- How to trade pullbacks in a strong trend — pullback lows often define the stop
- Position sizing — glossary definition
- Stop-loss — glossary definition
Frequently asked questions
How much should I risk per trade?
Many traders cap risk at 0.5% to 2% of the account per trade so a losing streak does not cause a large drawdown. The right figure depends on your strategy and tolerance; this calculator only applies the number you enter.
Why are shares rounded down?
Rounding down keeps the loss at the stop at or below your chosen risk amount. Rounding up could exceed it.
Does this work for short trades?
Yes. The calculator uses the absolute distance between entry and stop, so a stop above the entry for a short trade gives the same share count logic.
Does the calculator include slippage or fees?
No. Gaps, slippage and commissions can make the real loss larger than the planned risk amount. Leave a margin if your market gaps often.
Is my data stored?
No. Calculations run in your browser. Share links keep values after the # in the address, which browsers do not send to servers.
Embed this calculator
Add this free calculator to your site. The embed keeps a visible “Powered by Market Scanner” link.
<iframe src="https://marketscanner.co/embed/tools/position-size-calculator" title="Position Size Calculator by Market Scanner" width="100%" height="640" style="border:0;max-width:720px" loading="lazy"></iframe> <p><a href="https://marketscanner.co/tools/position-size-calculator">Position Size Calculator</a> powered by <a href="https://marketscanner.co/">Market Scanner</a></p>