TechAnalyzer Pro All guidesENעברית

Position size calculator: how many shares to buy based on your stop and risk

Shares = (Account size × Risk %) ÷ (Entry price − Stop price). That is the entire formula. The calculator below runs it for you, applies a cap on position size, and expresses your target in units of risk (R). Whatever you enter is stored only in your browser.

Why start from the stop rather than the price? Position size is the only part of a trade that is entirely under your control. Not where the price goes, not when, only how much you lose if you turn out to be wrong. If you size positions by "how much money I have," you risk a different amount on every trade without ever knowing what it is.

The calculator

Enter four numbers (target and position cap are optional). The calculator works in whatever currency your prices are in (dollars for US stocks, shekels for Tel Aviv stocks, and so on) and rounds the share count down to whole shares.

Enter account size, risk %, entry and stop to see how many shares to buy.

Everything is calculated in your browser; your account size and risk % are saved on your device only. Not investment advice and not an instruction to trade.

How to use it, step by step

Two examples that show why the stop determines position size

Same account, same risk, same stock; the only difference is where the stop sits. With the tighter stop, example B buys three times as many shares. But in example B the position is a quarter of the portfolio, so a 4% gap down through the stop would cost 1,000 instead of 500. That is what the position cap is for: it doesn't protect you from the stop, it protects you from what happens when the stop doesn't fill at its price.

Same account, same risk, same stock. The only difference: where the stop is.
Example AExample B
Account size100,000100,000
Risk per trade0.5% = 5000.5% = 500
Entry5050
Stop4749
Distance to stop31
Shares166 shares500 shares
Position value8,300 (8.3% of account)25,000 (25% of account)
Loss if the stop is hit498500

What R is, and why the calculator shows the target in R

R is the risk on a single trade: the distance from entry to stop times the number of shares. A full loss is -1R; a target twice as far away as the stop is +2R. In these units you can compare trades across different stocks, prices and sizes, and answer the only question that matters over time: how many R you made per trade, on average, after costs. More in the guide to position sizing and R.

Mistakes the calculator can't prevent

Frequently asked questions

💡 Rule of thumb before every order: "If the stop is hit tomorrow morning, how much comes out of my account?" If you can't answer with a number, the position is too big or the trade isn't properly defined.

Want to see this on a real chart?

TechAnalyzer Pro analyzes any stock or cryptocurrency and marks the levels, patterns and indicators for you, with a plain-English explanation next to every term. No credit card required.

📈 One stock before a breakout, weekly by email

Each week, one stock with an interesting technical setup, and a simple explanation of what to check on the chart.

Free. Unsubscribe in one click. Not investment advice.

Daily technical analysis of popular stocks

NVDA · AAPL · MSFT · TSLA · AMZN · META · GOOGL · AMD · AVGO · NFLX · PLTR · JPM · SPY · QQQ · All stocks

For general information and educational purposes only — not investment advice and not an offer or recommendation to buy or sell any security. TechAnalyzer Pro is not a registered investment adviser or broker-dealer and does not provide personalized advice. Analysis is generated automatically by fixed rules and may be wrong or out of date. Past performance is not indicative of future results. Trading involves substantial risk of loss. Do your own research and consult a licensed financial professional before making any investment decision.