Position size calculator: what it is and how many shares to buy
Position size calculator: how many shares to buy
Position sizing is working out how many shares to buy on a trade, and a position size calculator does that math for you. You divide the maximum loss you accept on the trade by the risk per share, the distance between the entry price and the stop loss, and round down.
Starting numbers: Home Depot, .
: Home Depot closes at $297.51. The last swing low is the one of , at $282.83: the stop goes one cent below, at $282.82. Between entry and stop there are $14.69 per share (4.9% of the price). With $10,000 of capital and 1% risk per trade the math gives 6 shares: these are the starting numbers of the calculator above.
How do you calculate position size?
Fig. 1 · From the account to the shares, in three steps
- First you decide how much you accept to lose on the trade: a percentage of the account or a fixed dollar amount.
- Then you look at the chart: the stop goes where the idea no longer holds, and its distance from the entry is the risk per share.
- Divide the first number by the second: you get the shares.
- Always round down: one more share would push the loss over the cap.
Fig. 2 · Risking 1% is not investing 1%
- The position value is what you buy: here 20% of the account.
- The risk is what you lose if the stop triggers: here 1%.
- The math fixes the risk; the position value comes out of it, and changes with the distance of the stop.
Fig. 3 · A very tight stop and the account ceiling
- With the stop a few cents away the risk per share is tiny.
- The math then asks for a huge number of shares: the position value exceeds the account.
- Without leverage the ceiling is account divided by price; with leverage the real risk depends on how the broker grants it.
risk per share = entry price β stop price
shares = maximum accepted loss / risk per share, rounded down
position value = shares Γ entry price Β· loss at the stop = shares Γ risk per share
| Step | Math | Result |
|---|---|---|
| Maximum accepted loss | $10,000 × 1% | $100.00 |
| Risk per share | 297.51 − 282.82 | $14.69 |
| Shares (rounded down) | $100.00 / $14.69 = 6.8 | 6 |
| Position value | 6 × 297.51 | $1,785.06 (17.9%) |
| Loss if the stop triggers | 6 × 14.69 | $88.14 |
Position sizing is the step that comes after the stop loss: the stop says where you get out, position sizing says how many shares to buy so that this exit costs what you decided. The risk reward ratio is a different question: it compares the possible gain with the risk per share, and it does not change the share count.
What are the position sizing methods?
four rules: what changes is what stays fixed1Fixed percentage risk
- every trade risks the same percentage of the account as it is at that moment
- after losses the account is smaller and so is the risk; after wins both grow
Home Depot: 1% of $10,000 = $100.00, 6 shares
2Fixed dollar risk
- every trade risks the same amount, decided at the start
- easy to remember, but when the account shrinks the amount weighs more
$100.00 fixed: with the account down to $8,000, the share at risk rises to 1.25%
3With volatility (ATR)
- the stop goes at a multiple of the ATR, the typical range of one session
- shares = maximum loss / (multiple Γ ATR): fewer shares on a volatile stock, more on a calm one
Home Depot, : ATR $5.06, stop at 2 ATR = $10.12 per share, 9 shares
4Fixed position value
- you always invest the same amount, without looking at the stop
- it is the most common way, but the risk changes from trade to trade with the distance of the stop
$2,000 invested with the stop at 2 ATR: $46.90 at risk on Coca-Cola, $139.30 on Tesla
Fixed percentage or fixed dollar risk: what changes?
Fig. 4 · The same sequence of outcomes, two rules
- A HYPOTHETICAL sequence, chosen to explain: ten losses in a row at the stop, then ten wins equal to the risk. Account $10,000, risk 2%.
- With fixed dollar risk you always risk $200.00, whatever happened before.
- With fixed percentage risk you start at $200.00 and after ten losses you risk $163.41: the bet follows the account.
- It is not a result and it does not say which rule is better: it shows how each one reacts to a losing streak.
| Rule | Account after 10 losses | Risk on trade no. 11 | Account after 20 trades |
|---|---|---|---|
| Fixed dollar risk | $8,000.00 (−20.0%) | $200.00 | $10,000.00 |
| Fixed percentage risk | $8,170.73 (−18.3%) | $163.41 | $9,960.08 |
Percentage risk falls less in a losing streak and climbs back more slowly in a winning one: with the same sequence, the two accounts do not end at the same place. How a fall in the account is measured, and how much it takes to recover it, is explained in the lesson on drawdown.
How do you size a position with the ATR?
Fig. 5 · Same risk, different volatility
- The ATR measures how much the stock moves in a typical session, gaps included.
- With the stop two ATRs away, the stop is close on the calm stock and far on the volatile one.
- The maximum loss is the same: the number of shares changes.
shares = maximum accepted loss / (multiple Γ ATR), rounded down
| Stock | Close | ATR(14) | ATR as % of price | Stop (distance) | Shares | Position value |
|---|---|---|---|---|---|---|
| Coca-Cola | $56.50 | $0.67 | 1.2% | $55.16 ($1.34) | 74 | $4,181.00 (41.8%) |
| Home Depot | $297.51 | $5.06 | 1.7% | $287.39 ($10.12) | 9 | $2,677.59 (26.8%) |
| Tesla | $281.38 | $9.95 | 3.5% | $261.48 ($19.90) | 5 | $1,406.90 (14.1%) |
The same dollar risk puts 41.8% of the account into Coca-Cola and 14.1% into Tesla: the stock that moves more gets less capital. The share count alone says nothing, because the prices differ: what counts is the position value. It is the same principle as the Turtlesβ units, sized on the average true range.
Deeper dives: the stop loss · swing trading · order types.
Interactive exerciseSize the position yourself on a real chart
Home Depot, entry at the close of : you place the stop- You enter at the close of the last session, at $315.09. Click the stop level on the chart: below the last swing low, no more than one ATR below it.
- With $10,000 of capital and 1% risk per trade, type how many shares you buy.
- Read the math: maximum loss, risk per share, shares, and what happens with one share more.
The chart stops on , the entry day: close at $315.09. Move the mouse over the chart, the dashed line marks the stop price.
How much should you risk per trade? The effect of different choices
There is no right number, and this page does not suggest one. Many books quote 1 or 2% of the account per trade: it is a convention, not a law. Below, the same entry and the same stop with different risks; the table follows the numbers of the calculator at the top.
| Risk per trade | Maximum loss | Shares | Position value | Loss at the stop | Stops in a row to lose 20% |
|---|---|---|---|---|---|
| 0.5% | $50.00 | 3 | $892.53 (8.9%) | $44.07 | 45 |
| 1% | $100.00 | 6 | $1,785.06 (17.9%) | $88.14 | 23 |
| 2% | $200.00 | 13 | $3,867.63 (38.7%) | $190.97 | 12 |
| 3% | $300.00 | 20 | $5,950.20 (59.5%) | $293.80 | 8 |
| 5% | $500.00 | 34 | $10,115.34 (101.2%) | $499.46 | 5 |
The last column is arithmetic: with the risk recomputed each time on the remaining account, how many stop-outs in a row take the account below 80% of where it started. It does not say how many will come. Above 100% the position value exceeds the account: without leverage those shares cannot be bought. A fall in the account has a name and its own measures: drawdown.
The most common position sizing mistakes
1Mixing up risk and position value
- risking 1% means losing 1% if the stop triggers, not investing 1%
- the position value comes out of the math, and it can be 20 or 50% of the account
2Rounding up
- one more share pushes the loss at the stop over the cap you set
- the share count is always truncated downwards
3Moving the stop to make the math work
- moving the stop closer to buy more shares changes the chart, not the real risk
- first the stop, decided on the chart; then the shares, decided by the math
4Forgetting gaps and costs
- on a gap the stop fills lower: the loss is larger than planned
- commissions and slippage add to the risk per share
5Counting positions that move together as separate
- three banks, each at 1%, often fall in the same session
- if the stops trigger together, the real risk is the sum
Deeper dives: the stop loss · drawdown · the risk reward ratio · the take profit · the trading journal.
Where to go from here
Risk managementThe other lessons in the Β«Risk managementΒ» section
Stop loss
- an order that closes the position at a level decided before entering
- below the last swing low, a support level, a trendline, or two ATRs away
- pick the entry day on a real chart and count the shares
Take profit
- a limit order that closes at a gain, at a level decided before entering
- at a multiple of the risk, below resistance, on a chart pattern or with the ATR
- click the level on a real chart: at least twice the risk and below resistance
Trailing stop loss
- a stop loss that rises with the price and never moves down
- by percentage, by amount, by ATR multiples, under recent lows or on a moving average
- pick the distance and find on a real chart where you would have exited
Risk reward ratio
- the potential reward divided by the risk, both set before entering
- it comes from the chart levels: the stop below support, the target below resistance
- place the stop and the target on a real chart: the page grades them and works out the ratio
Frequently asked questions
What is position sizing?
It is the math of how many shares to buy on a trade, done before entering. It starts from how much you accept to lose and from the distance between entry and stop loss: the number of shares is the ratio of the two, rounded down.
How do you calculate position size?
Divide the maximum accepted loss by the risk per share (entry minus stop) and round down. In the Home Depot example of July 14, 2023: a $10,000 account and 1% risk make $100.00 of maximum loss; an entry at $297.51 and a stop at $282.82 make $14.69 per share: 6 shares.
How much should I risk per trade?
There is no right number: it depends on the trader and on how many losses in a row they are willing to sit through. Many books quote 1 or 2% of the account as a convention. The higher the risk per trade, the fewer stop-outs it takes for a deep fall in the account.
What is the difference between position size and stop loss?
The stop loss says where you get out if the trade goes wrong; position sizing says how many shares to buy so that this exit costs an amount decided in advance. The stop is chosen on the chart, the quantity comes from the math.
How does ATR position sizing work?
The stop goes at a multiple of the ATR, the typical range of one session, and the shares are the maximum loss divided by that distance. On July 14, 2023, with the same risk and the stop two ATRs away, the math put 41.8% of the account into Coca-Cola and only 14.1% into Tesla: less capital where the price moves more.
Method and sources
| Source |
|---|
| Van K. Tharp, Trade Your Way to Financial Freedom: the position sizing models, among them percent risk and percent volatility. |
| Curtis M. Faith, Way of the Turtle: the Turtlesβ units, sized on the average true range (N). |
| J. Welles Wilder Jr., New Concepts in Technical Trading Systems (1978): the true range and the average true range. |
| Alexander Elder, Come Into My Trading Room: the 2 percent rule on the risk of a single trade. |
| John J. Murphy, Technical Analysis of the Financial Markets: chapter 16, money management and trading tactics. |
The chart and the math use the Home Depot sessions from our end-of-day archive, adjusted for dividends and corporate actions and rounded to 2 decimals, from ; the volatility comparison also uses Coca-Cola, Tesla, on the same day. Entries are at the close of the first day a swing low is confirmed (the lowest low of the five sessions before and the five after); the stop is the first cent below that low; the ATR is Wilderβs 14-session ATR. The examples are verified at every update. The sequence of fig. 4 and the numbered figures are hypothetical diagrams, not prices or results. This guide explains how the tools work: it does not contain investment recommendations and promises no returns. Our method · license · report an error.
DOMINA’s stock pages, indices and commodities are rebuilt every night. Leave your email: we write to you when the picture changes.
No third-party advertising. Unsubscribe with one click. Go to the platform →With your consent we use Google Analytics cookies to count visits. If you decline, the page works the same and no measurement cookie is set. Cookie policy