Free tool · updated 2026-09

Position Size Calculator for Stocks: How Many Shares to Buy

The share count is not a guess and it is not the same on every trade. It falls out of three numbers: your account, the percentage you are willing to lose, and the distance to your stop.

Short answer

Shares to buy equal your account multiplied by your risk percentage, divided by the per-share risk (entry minus stop). A $25,000 account risking 1% has $250; entering at $50.00 with a stop at $48.50 risks $1.50 a share, so the position is 166 shares. A tighter stop buys more shares for the same money at risk, never less risk.

5 min read · The Algo Vision
Position Size Calculator (Stocks)
Practise on real charts →All guides & tools

Stock position size calculator

Position size

Shares = (account × risk%) ÷ |entry − stop|. Slippage, gaps and commissions are not included, so treat the risk figure as the planned amount, not a guarantee.

About this calculator. The result is an educational estimate. Contract sizes, pip values, spreads, commissions and overnight financing differ by broker and by instrument, and fills can differ from the prices you model. Check your own account's specification before trading.

The formula

Shares = (account × risk%) ÷ (entry price − stop price)

That is the whole calculation. The denominator is your risk per share, so a tight stop buys more shares and a wide stop buys fewer - for exactly the same money at risk. The calculator also shows the position's cost, because a correctly sized position can still be larger than your buying power.

Chart Bound, the free trading game
Practise this in Chart Bound, free

Sizing is arithmetic. Reading the chart that sets your stop is the skill - Chart Bound drills that part free, on real historical charts.

Play free, no signup →

Worked example

A $25,000 account risking 1% has $250 to lose on the trade. Entry at $50.00 with a stop at $48.50 risks $1.50 a share, so the position is 166 shares and costs $8,300. Move the stop to $47.00 and the same $250 buys 83 shares.

What the number does not include

Where the stop comes from

Sizing is downstream of the stop, so the stop cannot be chosen to make the size comfortable. The three usual methods are structure (beyond the swing that invalidates the idea), volatility (a multiple of average range) and a fixed percentage. Moving a stop to fit a position you already wanted is the most expensive habit on the list, and it is why risk management starts with the stop, not the size.

Frequently asked questions

How do I calculate position size for stocks?

Divide the money you are willing to risk (account x risk %) by the per-share risk (entry minus stop). The result is the share count.

What risk percentage should I use?

That is your decision and depends on your plan and circumstances; smaller percentages survive longer losing runs, which the risk of ruin calculator shows directly.

Does this work for ETFs and crypto?

The same maths works anywhere you can define an entry and a stop. There is a crypto version with fractional units on its own page.

Why is my position bigger than my account?

A very tight stop can produce a share count that costs more than your buying power. The calculator flags it - the fix is fewer shares, not a wider stop.

Embed this calculator on your site

Free to use, on any site, with no signup: paste this one line where you want the tool to appear. It loads our hosted version, so it stays up to date, and the link under it credits back to this page.

420×620 by default and it scales down to fit a narrower column. Please keep the attribution link.

Keep learning

Lot Size CalculatorRisk:Reward CalculatorDrawdown Recovery CalculatorForex Risk ManagementPosition sizing
Chart Bound, the free trading game
Practise this in Chart Bound, free

Sizing is arithmetic. Reading the chart that sets your stop is the skill - Chart Bound drills that part free, on real historical charts.

Play free, no signup →