TechAnalyzer Pro All GuidesENעב

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

Quantity = (Capital × Risk percentage) ÷ (Entry price minus stop price). That's the whole formula. The calculator below does the calculation, adds a cap to the position size, and translates the target into risk units (R). The values you enter are saved only in your browser.

Why you start from the stop and not from the price: Quantity is the only thing in the trade that is completely under your control. Not where the price will go, not when, just how much you'll lose if you're wrong, less than what you hoped. Whoever sets quantity based on "how much money I have" risks a different amount in every trade, without knowing it.

The Calculator

Enter four numbers. The calculator works in the same currency as the prices (shekels for Tel Aviv stocks, dollars for US stocks), and rounds the quantity down to whole units.

Enter capital, risk percentage, entry and stop to get quantity.

The calculation is done in the browser only; the capital and risk percentage are saved on your device. This is not investment advice and not an instruction to execute.

How to use it, step by step

Two examples showing why the stop determines the quantity

Three times the quantity, thanks to a tight stop. In example B the position is a quarter of the portfolio, and an opening gap of 4% below the stop will cause 1,000 instead of 500. That's why the position cap exists: it doesn't protect you from the stop, it protects you from what happens when the stop isn't filled at its price.

Same capital, same risk, same stock. The only difference: where the stop is.
Example AExample in
Capital100,000100,000
Risk per trade0.5% = 5000.5% = 500
Entry5050
stop4749
Distance to stop31
Quantity166 Stocks500 Stocks
Position value8,300 (8.3% of capital)25,000 (25% of capital)
Loss if the stop is hit498500

What is R, and why does the calculator show the target in R units

R is the risk in a single trade: the distance from entry to stop multiplied by the quantity. A full loss is -1R, a target at double the distance is +2R. In these units, you can compare trades across different stocks, prices and sizes, and see the only question that matters over time: how many R you earned on average per trade after costs. The public track record of our engine is kept in these exact units, including the losses. More inPosition Sizing and R Guide.

The 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 the account?" If the answer isn't known as a number, the position is too large or the trade isn't properly defined.

Want to see this on a real chart?

TechAnalyzer Pro analyzes every stock or cryptocurrency and marks for you the levels, patterns and indicators — with an explanation in simple Hebrew next to every term. No credit card.

📈 Stock before breakout, once a week by email

Every Friday morning: one stock with a market cap above $5 billion converging below resistance, explained in simple Hebrew — and what happened to last week's pick, even when it didn't work.

Free. One-click unsubscribe. Not investment advice.