How the position size calculator works
Position sizing answers one question: how many shares should I buy? Instead of picking a round number or a fixed dollar amount, you start from how much you are willing to lose if the trade goes wrong. Enter your account size, the percentage of the account you will risk, your planned entry price and the price where you will exit if you are wrong (your stop-loss). The calculator divides your dollar risk by the risk per share to give the share count, then shows the capital the position ties up and the amount actually at risk after rounding down to whole shares.
Add a target price to see the reward-to-risk ratio. If the stop is above your entry, the calculator treats the trade as a short sale. When a very tight stop would call for more shares than your account can buy, the result is capped at what you can afford without margin.
The position sizing formula
Dollar risk = Account size × Risk % Risk per share = |Entry price − Stop price| Shares = floor(Dollar risk ÷ Risk per share) Position value = Shares × Entry price Reward-to-risk = |Target − Entry| ÷ Risk per share
Why fixed-risk sizing works
Fixed-fractional sizing keeps every loss roughly the same size relative to your account, no matter how volatile the stock or how far away the stop is. A wide stop on a volatile stock produces a smaller position; a tight stop on a quiet stock produces a larger one. Over many trades this keeps a losing streak from doing lasting damage and makes results depend on your edge rather than on a few oversized bets.
It also forces discipline before you enter. If the correct stop is so far away that the position becomes too small to be worthwhile, that is useful information: the trade may not be worth taking. Checking a stock's volatility, average volume and recent range on its chart page helps you set a stop the market is unlikely to trigger by random noise.
Things the calculator does not include
Commissions, the bid-ask spread and slippage all add a little to real losses, and overnight gaps can jump straight past a stop. Many traders risk 0.5% to 2% per trade and cap total open risk across all positions. For longer-term investing rather than trading, the stock return calculator is a better fit.