Position Size Calculator
Find the right number of shares to buy based on your capital and risk level. Our Position Size Calculator helps you trade smarter with better risk control.
With ₹1,00,000 capital at 5% risk, you can invest ₹50,000 given your risk boundary and stoploss.
What is a Position Size Calculator?
A Position Size Calculator is a free online tool that helps traders determine the exact number of shares, units, or lots they should buy or sell in a single trade based on their available capital, risk tolerance, stop-loss level, and entry price. Instead of guessing how many shares to trade or relying on intuition, this calculator gives you a mathematically precise answer that keeps your risk within a defined and manageable limit.
Position sizing is one of the most important and most overlooked aspects of trading in stocks, futures, and options. Many traders focus entirely on finding the right entry point but ignore how much to buy, which ultimately determines how much they can lose if the trade goes against them. Whether you are an intraday trader on NSE or BSE, a swing trader, or an F&O participant, using a position size calculator before every trade is a fundamental discipline that separates profitable traders from those who burn through capital. You can also explore related trading tools such as the Stock Average Calculator and the XIRR Calculator on Dhanarthi to build a complete trading toolkit.
How Does the Position Size Calculator Work?
The Position Size Calculator works by balancing two key inputs: how much money you are willing to lose on a single trade (your account risk), and how much you stand to lose per share if your stop-loss is triggered (your trade risk). By dividing the account risk by the trade risk, the calculator tells you the maximum number of shares you can buy while keeping your potential loss within your predefined limit.
You provide four inputs: your total trading capital, the percentage of capital you are willing to risk on this trade (most professional traders use 1% to 2%), your entry price for the trade, and your stop-loss price. The calculator then computes the maximum loss in rupees, the per-share risk, the number of shares you can trade, and the total investment amount required for that position. The result ensures that if your stop-loss is hit, you lose only the predetermined percentage of your capital and nothing more, allowing you to stay in the game for the next trade.
Position Size Formula
The standard position size formula used for stocks and equity trading is:
Position Size (Shares) = Account Risk (Rs.) / Trade Risk per Share (Rs.)
Where:
- Account Risk (Rs.) = Total Capital x (Risk Percentage / 100)
- Trade Risk per Share (Rs.) = Entry Price - Stop-Loss Price (for a long/buy trade)
- Total Investment Required = Position Size x Entry Price
For F&O (Futures and Options) trading: Since futures and options trade in predefined lot sizes, the formula is adjusted to:
Number of Lots = Account Risk (Rs.) / (Trade Risk per Unit x Lot Size)
The final number of lots is always rounded down to the nearest whole number since you cannot trade fractional lots on Indian exchanges.
Example Calculation
Let us work through a practical example to understand how position sizing protects capital.
Inputs:
- Total Trading Capital = Rs. 5,00,000
- Risk Percentage per Trade = 1%
- Entry Price = Rs. 780 per share
- Stop-Loss Price = Rs. 730 per share
Step-by-step calculation:
- Step 1: Calculate Account Risk Account Risk Rs. 5,00,000 x 1% = Rs. 5,000
- Step 2: Calculate Trade Risk per Share Trade Risk per Share Entry Price - Stop-Loss Price = Rs. 780 - Rs. 730 = Rs. 50
- Step 3: Calculate Position Size Position Size Rs. 5,000 / Rs. 50 = 100 shares -** Step 4: Calculate Total Investment Total Investment** 100 shares x Rs. 780 = Rs. 78,000
Result:
- Maximum allowable loss (if stop-loss is triggered): Rs. 5,000 (1% of capital)
- Number of shares to buy: 100
- Total capital deployed: Rs. 78,000 (15.6% of total capital)
This calculation ensures that even if this trade hits the stop-loss and you lose the maximum possible amount, you lose only Rs. 5,000 out of Rs. 5,00,000, which is 1% of your capital. Your account survives and you can trade again. This is the core principle of position sizing in practice.
How to Use Dhanarthi's Position Size Calculator?
- Step 1: Open the Position Size Calculator at dhanarthi.com/calculators/position-size-calculator.
- Step 2: Enter your total trading capital in the "Total Capital" field. This is the total amount of funds you have allocated for trading, not your entire savings.
- Step 3: Enter your risk percentage per trade in the "Risk %" field. For most retail traders, 1% to 2% per trade is considered appropriate. This means if your trade hits your stop-loss, you will lose that percentage of your total capital and no more.
- Step 4: Enter the price at which you plan to enter the trade in the "Entry Price" field. This should be the price at which you intend to place your buy order.
- Step 5: Enter your stop-loss price in the "Stop-Loss Price" field. This is the price level at which you will exit the trade if it goes against you. Always decide your stop-loss based on technical levels, not based on how much you can afford to lose.
- Step 6: Click "Calculate." The calculator will instantly display your Account Risk in rupees, the Trade Risk per Share, the Number of Shares to Buy, and the Total Investment Amount required.
Use this result to set your order quantity in your trading platform. Pair this with the ROI Calculator to evaluate whether the potential reward justifies the risk before entering the trade.
Benefits of Using This Calculator
- Protects Capital from Catastrophic Losses: The single biggest reason traders blow up their accounts is oversizing a position on a bad trade. The Position Size Calculator ensures that even your worst trade removes only a small, predefined percentage of your capital, keeping you in the market long-term.
- Eliminates Emotional Decision Making: When traders enter a trade without calculating position size, they often buy too many shares out of overconfidence or too few out of fear. The calculator removes emotion from the equation entirely and gives you a number based on pure mathematics.
- Promotes Consistent Risk Across All Trades: Without a calculator, your risk per trade is inconsistent and unpredictable. With it, every trade carries the same percentage of risk regardless of the stock price, volatility, or trade setup. This consistency is a hallmark of professional trading systems.
- Works Across All Asset Classes: The same formula applies to equity delivery trades, intraday stocks, futures contracts, and options (with adjustments for lot size). Dhanarthi's calculator is versatile and useful for any type of trader on NSE or BSE.
- Supports Long-Term Trading Survival: A trader using 1% risk per trade would need to lose 100 consecutive trades before losing all their capital. This mathematical buffer gives you the runway to refine your strategy, learn from mistakes, and eventually become consistently profitable.
Who Should Use This Position Size Calculator?
- Intraday traders: Day traders take multiple positions every session and are especially vulnerable to compounding losses if position sizes are uncontrolled. Using the calculator before every intraday trade ensures that a single bad session does not wipe out several weeks of profits.
- Swing traders and positional traders: Traders who hold positions for several days to weeks use wider stop-losses, which means their trade risk per share is larger. The calculator ensures that a wider stop-loss does not result in a disproportionately large rupee loss.
- F&O traders: Futures and options traders deal with lot sizes and leverage, making position sizing even more critical. An improperly sized futures position can produce losses several times larger than an equity position. The calculator helps F&O traders determine the correct number of lots to trade given their capital and risk parameters.
- Beginners entering the stock market: New traders often start by buying round numbers of shares (10, 50, 100) with no relation to their actual risk tolerance. This calculator teaches beginners the right approach from the very beginning and prevents the habit of oversizing that destroys most new trading accounts.
- Portfolio managers and algo traders: Even systematic traders and those managing larger portfolios benefit from position sizing calculations to maintain consistent risk across a diversified set of open positions at any point in time.
Where Can You Use This Position Size Calculator?
- Before every trade entry: The most important use of this calculator is right before you place a trade order. Once you identify your entry and stop-loss from chart analysis, enter those levels into the calculator to get your exact share quantity before touching your broker platform.
- When back-testing a trading strategy: If you are reviewing historical trades or testing a new strategy, the position size calculator helps you understand what your rupee risk would have been on each trade had you used proper sizing. This gives you a realistic picture of strategy performance.
- When adjusting for market volatility: In highly volatile markets (such as during budget announcements, election results, or global events), you may want to reduce your risk percentage from 2% to 0.5% or 1%. The calculator instantly shows you the new share quantity for the same trade setup, helping you reduce exposure quickly.
- For planning multiple simultaneous positions: If you plan to hold positions in three or four stocks at the same time, use the calculator for each trade to ensure your aggregate risk across all open positions remains within a safe total limit, such as 5% to 6% of total capital.
- When teaching yourself risk management: Beginners can use the calculator in paper trading mode to practice position sizing before committing real money, building the habit of calculating size before every trade.
Types of Position Sizing Methods
- Fixed Percentage Method (Most Common): This is the most widely used approach, especially for retail traders in India. You define a fixed percentage of your capital (typically 1% to 2%) as the maximum risk per trade. As your account grows, the rupee risk per trade increases proportionally, and as your account shrinks after a losing streak, the rupee risk decreases automatically. This method protects you from ruin during losing streaks while allowing you to scale up during winning periods. Dhanarthi's Position Size Calculator is built on this method.
- Fixed Rupee Amount Method: Instead of a percentage, you define a fixed rupee amount to risk per trade, such as Rs. 2,000 regardless of your account size. This method is simpler but does not scale with your capital. If your account grows significantly, your risk percentage drops to a negligible level. If your account shrinks after losses, the fixed amount may represent a dangerously high percentage of remaining capital.
- Volatility-Based Method (ATR Method): This advanced method uses the Average True Range (ATR) of the stock to set the stop-loss distance, and then calculates position size accordingly. Since ATR reflects the stock's actual price movement range, the stop-loss is placed beyond the noise of normal volatility. Higher ATR means a wider stop and smaller position size, while lower ATR allows a tighter stop and larger position size. This method is used by professional and systematic traders.
- Kelly Criterion: The Kelly Criterion is a mathematical formula used to calculate the optimal bet size based on the win rate and reward-to-risk ratio of a trading system. The formula is: f = (bp - q) / b, where f is the fraction of capital to risk, b is the reward-to-risk ratio, p is the probability of winning, and q is the probability of losing. While theoretically optimal, the full Kelly fraction is aggressive and most traders use half-Kelly or quarter-Kelly to reduce volatility of outcomes.
- Percentage Margin Method: Popular among futures and intraday traders, this method fixes a percentage of capital as the maximum margin to be deployed in any single trade. For example, a trader with Rs. 5 lakh may decide to never deploy more than 20% of capital as margin on a single futures trade. This caps the maximum leverage on any single position.
Position Size Calculator vs Risk-Reward Ratio
These two concepts are closely related but serve different purposes, and using both together produces the most disciplined trading decisions.
Position Size Calculator answers the question: "How many shares should I buy given my capital and stop-loss?" It controls how much you lose if a trade goes wrong.
Risk-Reward Ratio answers the question: "Is this trade worth taking given the potential gain versus the potential loss?" A trade with a 1:1 risk-reward ratio means your target is as far from entry as your stop-loss. A 1:2 ratio means your target is twice as far as your stop-loss.
Together, they work as follows: first, you identify a trade setup with a technically valid stop-loss and a realistic target, then check if the risk-reward ratio is at least 1:2 before taking the trade. If it passes that test, you use the Position Size Calculator to determine exactly how many shares to buy while keeping your loss within 1% of capital if the stop is hit.
Using both tools together, along with the ROI Calculator on Dhanarthi, builds a robust pre-trade checklist that keeps you consistent and disciplined across hundreds of trades. You can also use the CAGR Calculator to track how your trading capital is growing over time relative to your position sizing discipline.
Common Mistakes to Avoid
- Not using a stop-loss at all: Position sizing is entirely dependent on having a defined stop-loss. If you do not use a stop-loss, the concept of position sizing breaks down completely because your potential loss becomes theoretically unlimited. The calculator is only as useful as your commitment to exiting at your stop-loss price when it is hit.
- Setting the stop-loss based on how much you want to lose rather than technical levels: Many traders reverse the process: they first decide they can only afford to lose Rs. 500 on this trade, and then place the stop-loss at the price that would cause a Rs. 500 loss on their round lot. This is backwards. Always identify the technically correct stop-loss first, then use the calculator to determine the appropriate quantity.
- Risking more than 2% per trade: Risking 5%, 10%, or more per trade is one of the most common ways retail traders destroy their accounts. A 10% risk per trade means 10 consecutive stop-losses wipe out your entire capital. At 1% risk, you would need 100 consecutive losses to lose everything. The math strongly favours smaller risk percentages.
- Ignoring lot sizes in F&O trading: In futures and options, you cannot buy partial lots. If the calculator says you can trade 1.8 lots, you must round down to 1 lot. Rounding up to 2 lots means you are actually risking more than your predefined limit, defeating the purpose of the exercise.
- Calculating position size once and never recalculating: Your capital changes after every profitable or losing trade. A position sized for a Rs. 5 lakh account should be recalculated when your account grows to Rs. 6 lakh or drops to Rs. 4 lakh. Always base the calculation on your current account balance, not the original figure.
- Taking too many simultaneous positions: Even if each individual position is properly sized at 1% risk, holding 10 positions at once means you have 10% of your capital at risk simultaneously. Define a maximum total portfolio risk (such as 5% to 6%) and ensure your combined open positions do not exceed it.
Tips to Maximise Trading Performance with Position Sizing
- Start with 0.5% to 1% risk when learning: If you are new to trading or testing a new strategy, begin with the smallest possible risk per trade. As you gain confidence and your strategy proves itself over at least 50 to 100 trades, you can gradually move to 1.5% or 2%.
- Maintain a trading journal with position size data: Record your entry price, stop-loss, position size, and actual result for every trade. Reviewing this journal periodically reveals whether your sizing is consistent, whether you are actually exiting at stop-losses, and how your capital is evolving over time.
- Scale into positions rather than entering full size: Instead of buying your full calculated quantity at once, consider entering 50% of the position at the planned entry and adding the remaining 50% only if the trade moves in your favour and you have a higher-confidence confirmation signal. This reduces average risk without sacrificing upside.
- Reduce position size during high-volatility events: On days with major events such as RBI policy announcements, quarterly results, Union Budget, or global macro events, markets can gap beyond your stop-loss, causing slippage. On such days, reduce your risk percentage to 0.5% or avoid intraday trades altogether.
- Use the calculator for every single trade without exception: The biggest mistake is to apply position sizing rules selectively, using it for some trades but abandoning it when you feel especially confident about a setup. The trades where you feel most confident are often the ones where overconfidence leads to oversizing and larger-than-expected losses. Use the calculator every time, without exception.
1. What is a Position Size Calculator?
A Position Size Calculator is a free online tool that tells you the exact number of shares or lots to buy in a single trade based on your total capital, risk percentage, entry price, and stop-loss price. It ensures that if your stop-loss is hit, you lose only a predefined small percentage of your trading capital rather than a large damaging amount.
2. Is this calculator accurate?
Yes. Dhanarthi's Position Size Calculator uses the standard position sizing formula used by professional traders worldwide: Position Size = Account Risk / Trade Risk per Share. As long as you input accurate values for your capital, risk percentage, entry price, and stop-loss, the result is mathematically precise.
3. How do I use this calculator?
Enter your total trading capital, your desired risk percentage per trade (typically 1% to 2%), your planned entry price, and your stop-loss price. Click "Calculate" to instantly get your Account Risk in rupees, Trade Risk per Share, Number of Shares to Buy, and Total Investment Required.
4. What is the minimum and maximum risk percentage I should use?
Most professional retail traders use 1% to 2% risk per trade. Beginners and those testing new strategies should use 0.5% to 1%. Risk percentages above 3% per trade are generally considered aggressive and increase the probability of significant capital drawdown during losing streaks. There is no universal minimum, but going below 0.25% may produce position sizes too small to be practically executable.
5. Can I use this calculator for F&O (Futures and Options) trading?
Yes. For futures trading, enter the futures entry price and stop-loss, calculate the shares figure, and then divide by the lot size to get the number of lots (always round down). For options, enter the option premium as your entry price and your planned exit on the option premium as the stop-loss. Keep in mind that options have non-linear risk profiles and the calculator provides an approximation rather than an exact figure for complex options strategies.
6. What is the ideal risk percentage per trade for an intraday trader?
Most experienced intraday traders in India use 0.5% to 1.5% per trade. Since intraday traders may take multiple trades in a single session, capping each trade at 1% ensures that even a full day of stop-loss hits does not cause more than 3% to 5% total capital loss in one session.
7. What happens if I do not use a stop-loss?
Without a stop-loss, the position size calculator cannot protect your capital because there is no defined exit point. A trade without a stop-loss carries potentially unlimited risk. Position sizing only works as a capital protection tool when you commit to placing and honouring your stop-loss order in the market.
8. Does position sizing guarantee profits?
No. Position sizing does not improve the win rate of your trading strategy or guarantee that your trades will be profitable. What it does guarantee is that losses stay controlled and predictable, giving your capital the longevity needed to survive losing streaks and allow a profitable strategy to express itself over enough trades. Consistent use of position sizing is what separates traders who survive long enough to succeed from those who blow up their accounts early.
9. How is position sizing different from portfolio diversification?
Portfolio diversification means spreading capital across multiple stocks or asset classes to reduce concentration risk. Position sizing is about controlling the maximum loss on each individual trade within your portfolio. Both are risk management tools, but they operate at different levels. Position sizing works at the individual trade level, while diversification works at the portfolio level. You need both for comprehensive risk management.
10. Should I recalculate my position size after every trade?
Yes, ideally you should. Your capital changes after every trade. If you made profits on the last few trades, your account is larger and your 1% risk in rupees is higher. If you suffered losses, your 1% risk is lower. Recalculating before every trade ensures your position sizing always reflects your current actual capital rather than an outdated figure.
