Position Size Calculator: How to Size a Trade by Risk
Last updated June 7, 2026

A position size calculator tells you exactly how many shares, coins, or contracts to trade so that hitting your stop-loss costs only a fixed, pre-decided fraction of your account. It takes three inputs, your account balance, the percent you are willing to risk, and the distance from entry to stop, and returns a share count that keeps every loss the same controlled size.
Key takeaway
What is a position size calculator?
A position size calculator is a tool that converts a risk decision into a concrete number of shares or units. You supply your account balance, the percentage of it you are willing to lose on the trade, your planned entry price, and your stop-loss price. The calculator returns the largest position whose worst-case loss still equals your chosen risk amount.
The point is to separate two decisions that beginners often blur together: how much money you are willing to lose, and how many shares that translates to. The first is a fixed risk-management rule. The second is a math output that changes with every chart. You can run the numbers yourself with the Bullynx position size calculator, which handles the arithmetic and caps the result by your available capital.
What is the position size formula?
The position size formula is built from two quantities: your dollar risk and your per-share risk. Dollar risk is the most you are willing to lose on the trade. Per-share risk is how far price has to move against you to hit your stop. Dividing the first by the second gives the number of shares.
Dollar Risk = Account Balance x Risk Percent
Per-Share Risk = | Entry Price - Stop-Loss Price |
Position Size = Dollar Risk / Per-Share Risk
The vertical bars mean absolute value, so the per-share risk is always a positive number whether you are sizing a long or a short scenario. Notice what the formula does not include: your target, your conviction, or how much capital you have lying idle. Those can cap the result (you cannot buy more shares than your cash allows), but they never set the size. Risk sets the size.
A worked example with numbers
Suppose your account holds 10,000 dollars and your rule is to risk 1 percent per trade. A stock you are watching has a potential entry around 50 dollars, and you would place your stop at 48 dollars because that sits just below a support level. The math runs in three short steps.
Dollar Risk = 10,000 x 0.01 = 100
Per-Share Risk = | 50 - 48 | = 2
Position Size = 100 / 2 = 50 shares
You would trade 50 shares, a position worth 2,500 dollars. If the stop is hit, you lose 50 shares times 2 dollars, exactly 100 dollars, which is your planned 1 percent. The position is worth a quarter of the account, but the risk is only 1 percent because the stop is close. This is the core idea: the share count flexes so the loss stays fixed.
Now widen the stop to 45 dollars (a 5-dollar distance). Per-share risk becomes 5, so position size drops to 100 / 5 = 20 shares. Same account, same risk rule, much smaller position, purely because the chart demanded a wider stop. To see how those potential losses compare to the upside before committing, pair this with the risk/reward calculator.
How much should you risk per trade?
Most risk-management guidance frames per-trade risk as a small, fixed percentage of account equity, with figures around 1 to 2 percent commonly cited for active traders. The exact number is a personal choice, but the logic behind keeping it small is mathematical, not arbitrary: it determines how deep a losing streak you can survive.
The table shows how a fixed per-trade risk compounds across an unlucky run of consecutive losers, illustrating why a low percentage matters.
At 1 percent, ten losses in a row dent the account by roughly 10 percent, an annoying but recoverable setback. At 10 percent per trade, the same streak wipes out around two thirds of the account, a hole that requires a near-tripling just to get back to even. Smaller risk per trade is what keeps a normal cold streak from becoming a risk of ruin event. For the broader discipline this sits inside, see our guide to trading risk management.
How do you size positions for forex, crypto, and futures?
The formula is identical across asset classes; only the unit and the value of one price increment change. For stocks the unit is shares and per-share risk is just a dollar distance. For forex and futures, you convert the entry-to-stop distance into pips or ticks, then multiply by the value of one pip or tick to get per-unit risk before dividing.
The principle does not bend. You still decide the dollar loss first, then solve for how many units hold that loss constant. A useful sanity check on any result is whether you actually have the capital and, if using leverage, the margin to hold it. Buying on margin amplifies both gains and losses on the position, and FINRA notes that margin calls can force liquidation at the worst possible moment, so a good calculator caps the share count by your real available capital, not just by the risk math.
Common position sizing mistakes
Position sizing fails in predictable ways, and almost all of them come from letting something other than risk drive the share count. Watching for these keeps the math honest.
- Sizing by capital, not risk. Deciding to "put 5,000 dollars into this trade" ignores the stop distance, so identical-dollar positions carry wildly different risk.
- Moving the stop to fit a bigger position. If you widen the stop only to justify more shares, you have inverted the process and abandoned your risk rule.
- Ignoring the worst case. Gaps, slippage, and illiquid names mean the real loss can exceed the theoretical stop. Size with a little headroom on volatile assets.
- Risking too much per trade. As the chart above shows, a high per-trade percentage turns an ordinary losing streak into a deep drawdown.
- Forgetting fees and spread. Commissions and the bid-ask spread widen your effective loss slightly; tight scalps feel this most.
Putting position sizing in context
Position sizing is the bridge between a chart idea and an actual order. It does not tell you whether a setup is good; it tells you how to express any setup so a single loss never threatens the account. Run the formula the same way every time, let the entry-to-stop distance set the share count, and keep per-trade risk small enough that a normal cold streak is survivable.
The fastest way to make this a habit is to compute it before every potential entry rather than after. The position size calculator does the arithmetic in seconds and caps the result by your capital, so the only decisions left to you are the ones that actually require judgment: where the stop belongs and how much you are willing to risk.
Frequently asked questions
- What is the position size formula?
- Position size in shares equals your dollar risk divided by the per-share risk. Dollar risk is your account balance times the percent you are willing to risk; per-share risk is the absolute distance between your entry price and your stop-loss price.
- How much should I risk per trade?
- Most educational sources suggest risking a small fixed percentage of account equity per trade, commonly cited around 1 to 2 percent. Risking less makes a losing streak survivable; risking more raises the chance of a deep drawdown.
- Does position size depend on the stop-loss?
- Yes. The stop-loss sets your per-share risk, which is the denominator in the formula. A tighter stop allows a larger share count for the same dollar risk; a wider stop forces a smaller one.
- What happens if I ignore position sizing?
- Without sizing by risk, a single bad trade can erase weeks of gains. Fixed-percentage sizing caps the loss on any one position so a losing streak does not compound into a catastrophic drawdown.
- Is a position size calculator only for forex?
- No. The same risk-based math applies to stocks, crypto, forex, and commodities. Only the unit changes (shares, coins, lots, or contracts) and whether you cap the result by available capital.
Put this into practice. Upload a chart screenshot and Lynx AI reads the structure, levels, and a long or short bias, with what would invalidate it.
Keep reading
- How to Calculate Position Size CorrectlyFree Tools
- Breakeven Price: How to Calculate ItFree Tools
- Compound Interest in Trading: Formula and Calculator GuideFree Tools
- Pip Value Explained: Forex Sizing Made EasyFree Tools
- How to Calculate Profit and Loss on TradesFree Tools
- Risk Reward Ratio Explained: Formula and Breakeven Win RateFree Tools
Educational only. Not financial advice. NFA. Bullynx is not a registered investment adviser or broker-dealer. Trading and investing involve significant risk of loss. Read the full risk disclosure.