Numfino

Position Size Calculator

Find out how many shares to buy or sell based on your account size and stop-loss. Control dollar risk on every trade before entering a position.

USD
%
USD
USD
USDOptional: shows the reward-to-risk ratio. 0 = skip
Position size (shares or units)100
Position size (shares or units)100
Amount at risk$250.00
Risk per share
$2.50
Position value
$5,000.00
Position as a share of the account
20%
Loss if the stop is hit
$250.00
Reward-to-risk ratio
3×
Profit at the target
$750.00

How to use this calculator

  1. Enter your total capital in Account size and your desired risk percentage in Risk per trade.
  2. Enter your planned buy or sell price in Entry price.
  3. Enter your planned exit point in Stop-loss price where the trade will close if price moves against you.
  4. Optionally enter a Target price to check the reward-to-risk ratio, or leave it at 0 to skip.

How position size is calculated

Position sizing determines how many shares or contracts to trade based on your predefined risk limit. Instead of buying arbitrary share quantities, you base trade size on the dollar amount you are willing to lose if the trade fails.

Position size = Amount at risk ÷ |Entry − Stop|,  Amount at risk = Account × Risk %
  • Account = total trading capital
  • Risk % = percentage of capital risked per trade
  • Amount at risk = maximum planned dollar loss (Account × Risk %)
  • Entry = planned entry price per share
  • Stop = planned stop-loss price per share
  • Reward-to-risk = |Target − Entry| ÷ |Entry − Stop|

The calculator multiplies your account size by your risk percentage to find your total dollar risk. It then divides that dollar risk by the distance between your entry price and your stop-loss price, rounding down to whole shares.

Worked example: $25,000 account

Suppose you have an account of $25,000 and set a risk of 1% per trade. Your planned amount at risk is $250. You plan to buy stock at an entry price of $50 with a stop-loss price of $47.50 and a target price of $57.50.

The risk per share is $2.50. Dividing $250 by $2.50 gives a position size of 100 shares. Buying 100 shares at $50 creates a position value of $5,000, or 20% of your account. If the price falls to your stop-loss, your loss is $250.

At your target price of $57.50, profit at the target is $750, yielding a reward-to-risk ratio of 3. Increasing risk to 2% raises your amount at risk to $500, producing a position size of 200 shares, a position value of $10,000, and profit at the target of $1,500.

Widening your stop-loss price to $45 increases risk per share to $5. With 1% risk, your position size drops to 50 shares, lowering position value to $2,500, or 10% of your account. The reward-to-risk ratio becomes 1.5, with target profit of $375.

How to read your position size result

Position value and amount at risk are distinct figures. While position value is $5,000, your planned loss is limited to $250. Sizing by stop distance protects your capital from single-trade shocks.

The reward-to-risk ratio shows whether potential gain justifies downside risk. A ratio of 3 means gaining three dollars for every dollar risked. After closing a trade, track net returns with the stock profit calculator.

If you buy shares in stages, track your basis with the average cost calculator. To compare returns across holdings, check the roi calculator.

Common mistakes in position sizing

A frequent mistake is buying a fixed share count regardless of volatility. Purchasing 100 shares on every setup causes your dollar risk to swing based on stock price and stop distance.

Another error is placing an artificially tight stop-loss to buy more shares. Squeezing your stop increases position size, but routine market noise can trigger a premature exit.

Traders also move stops further away when a trade loses money. Widening a stop increases your dollar loss beyond your plan and defeats risk management.

Tips for managing trade risk

Place your stop-loss price at technical support or an invalidation level before calculating position size, rather than picking an arbitrary dollar figure.

  • Keep your risk percentage consistent across trades so one loss does not erase multiple winners.
  • Always round down to whole shares so your total dollar loss stays within limits.
  • Skip setups where the reward-to-risk ratio fails to justify the downside.
  • If trading contracts rather than shares, check the options profit calculator.

Assumptions and limits of the calculator

A stop-loss order is an exit plan, not a guarantee. Fast markets or overnight news can cause prices to gap past your stop-loss price, creating a loss larger than your planned amount at risk.

The calculator rounds down to whole units and does not model fractional shares. It excludes brokerage commissions, execution slippage, margin interest, borrow fees and currency conversion.

The formulas apply equally to long and short trades. All outputs are educational estimates and do not constitute financial advice. Consult a qualified adviser for personal investment decisions.

Frequently asked questions

What is position sizing?

Position sizing calculates how many shares to buy or sell based on your account size and stop distance. It ensures no single trade exceeds your risk limit.

Why must you set the stop-loss price first?

Your stop-loss defines where your trade thesis is invalidated. Setting that price first lets you adjust share count to fit your risk, rather than forcing a stop to fit trade size.

Does this calculator support short trades?

Yes. The formulas use the absolute price distance between entry and stop-loss, functioning identically for long and short trades.

What happens if a stock gaps past my stop-loss?

A stop order triggers a market order once hit, which does not guarantee execution price. Sudden gaps can produce losses exceeding your planned amount at risk.

How does position value differ from amount at risk?

Position value is the total purchase cost of all shares. Amount at risk is the dollar loss incurred if the trade exits at your stop-loss.

Sources and further reading

Last reviewed November 21, 2026 · How we calculate