Position Size Calculator: Risk-Based Trading Quantity
A position size calculator converts a pre-defined monetary risk into a share quantity. It uses account value, risk percentage, planned entry and invalidation price. The output is a ceiling on size under those assumptions—not an instruction to trade and not a guarantee that an actual loss will stop at that amount.
Position size formula
For a long cash-equity trade:
Account risk in rupees = Account value × Risk percentage
Risk per share = Planned entry price − Planned stop price
Position size = Floor(Account risk ÷ Risk per share)
The floor operation rounds down to a whole share. The result must then pass two additional limits: capital available and market liquidity. The smallest valid limit wins.
| Input | Meaning | Example | Why it belongs in the calculation |
|---|---|---|---|
| Account value | Capital base used for the risk rule | ₹10,00,000 | Converts percentage risk into rupees |
| Risk per trade | Maximum planned risk before execution gaps/costs | 0.5% | Keeps size tied to capital |
| Entry price | Intended purchase price | ₹500 | Determines capital and distance to stop |
| Stop/invalidation price | Level at which the setup is no longer valid | ₹480 | Defines planned per-share risk |
| Slippage/cost buffer | Optional allowance beyond the price gap | ₹2 per share | Makes the estimate less fragile |
Position sizing is different from predicting direction. A setup can be wrong and still be well-sized; a correct market view can still cause unacceptable damage if the position is oversized. The calculator is designed to answer “how much exposure fits the stated risk?” rather than “will the trade work?”
Worked example: risk-based share quantity
Assume a hypothetical ₹10 lakh trading account, 0.5% planned risk, entry at ₹500 and stop at ₹480.
- Account risk = ₹10,00,000 × 0.5% = ₹5,000.
- Risk per share = ₹500 − ₹480 = ₹20.
- Position size = ₹5,000 ÷ ₹20 = 250 shares.
- Capital required = 250 × ₹500 = ₹1,25,000.
| Calculation | Formula | Result |
|---|---|---|
| Rupee risk budget | ₹10,00,000 × 0.5% | ₹5,000 |
| Planned risk per share | ₹500 − ₹480 | ₹20 |
| Risk-based quantity | ₹5,000 ÷ ₹20 | 250 shares |
| Cash required | 250 × ₹500 | ₹1,25,000 |
| Planned loss at stop | 250 × ₹20 | ₹5,000 before gaps/costs |
This result does not mean ₹5,000 is the maximum possible loss. A stock can gap below the stop, trading can be halted, liquidity can disappear, or the order can fill at a worse price. Brokerage and statutory charges also affect net outcomes. The planned risk is a model input, not an insurance contract.
Include a slippage and cost buffer
If the example allows an extra ₹2 per share for adverse execution and costs, effective planned risk per share becomes ₹22. Quantity falls to floor(₹5,000 ÷ ₹22) = 227 shares. Capital required becomes ₹1,13,500.
| Buffer assumption | Effective risk per share | Risk-based quantity | Planned risk used |
|---|---|---|---|
| ₹0 | ₹20 | 250 | ₹5,000 |
| ₹1 | ₹21 | 238 | ₹4,998 |
| ₹2 | ₹22 | 227 | ₹4,994 |
| ₹5 | ₹25 | 200 | ₹5,000 |
A buffer improves the arithmetic but cannot fully model a gap. It should reflect the instrument’s liquidity, typical spread, order type and volatility rather than a universal number. In thinly traded shares, the displayed best price may cover only a small quantity.
The capital constraint
Risk-based quantity can exceed what the account can buy. Suppose entry is ₹2,000, stop is ₹1,990 and the same risk budget is ₹5,000. The formula returns 500 shares, requiring ₹10 lakh—the entire account. If the maximum capital allocation for the setup were ₹1.5 lakh, the capital-limited quantity would be floor(₹1,50,000 ÷ ₹2,000) = 75 shares.
Use both limits:
Risk-based quantity = Floor(Rupee risk budget ÷ effective per-share risk)
Capital-based quantity = Floor(Maximum capital allocation ÷ entry price)
Final quantity ceiling = Lower of risk-based and capital-based quantity
| Entry | Stop | Rupee risk budget | Risk-based quantity | ₹1.5 lakh capital limit | Final ceiling |
|---|---|---|---|---|---|
| ₹500 | ₹480 | ₹5,000 | 250 | 300 | 250 |
| ₹2,000 | ₹1,990 | ₹5,000 | 500 | 75 | 75 |
| ₹250 | ₹225 | ₹5,000 | 200 | 600 | 200 |
| ₹80 | ₹76 | ₹5,000 | 1,250 | 1,875 | 1,250 |
The capital limit prevents a very tight stop from creating an enormous position. Tightening a stop solely to make quantity larger reverses the correct process. The invalidation point should come from the setup and market structure; quantity adapts to the stop.
Choosing the account value input
“Account value” needs a consistent definition. For an unleveraged cash portfolio, it may be current liquid trading equity. For a multi-account household or a leveraged derivatives account, the figure is less straightforward. Do not alternate between deposited cash, gross buying power and total net worth just to obtain a preferred position size.
| Candidate base | Advantage | Problem | Conservative handling |
|---|---|---|---|
| Current account equity | Updates after gains and losses | Can fluctuate daily | Record at a fixed review time |
| Starting-month equity | Stable during the month | Slow to reflect large drawdown | Reset after a defined loss threshold |
| Cash balance | Easy to verify | Ignores existing exposure | Combine with an open-risk check |
| Broker buying power | Reflects leverage offered | Can dramatically overstate loss capacity | Do not treat leverage as risk capital |
The calculation should shrink after losses rather than encouraging recovery bets. If account equity declines, the same risk percentage produces a smaller rupee budget. That automatic scaling is one of the method’s useful properties.
Selecting a risk percentage
There is no universally correct percentage. The calculator accepts a user-defined input because appropriate risk depends on strategy evidence, volatility, holding period, correlation, liquidity, gap exposure and the person’s financial circumstances.
The percentage is planned risk to the stop, not the amount invested. A position using ₹1.25 lakh of capital can have ₹5,000 planned risk if the entry-stop gap is ₹20 across 250 shares. Conversely, a leveraged position can expose the account to losses beyond the cash margin.
| Risk setting | Rupee budget on ₹10 lakh | Quantity at ₹20/share risk | Ten simultaneous full-risk positions |
|---|---|---|---|
| 0.25% | ₹2,500 | 125 | ₹25,000 planned open risk |
| 0.50% | ₹5,000 | 250 | ₹50,000 planned open risk |
| 1.00% | ₹10,000 | 500 | ₹1,00,000 planned open risk |
| 2.00% | ₹20,000 | 1,000 | ₹2,00,000 planned open risk |
The final column shows why evaluating each trade independently is not enough. Several correlated positions can fail together. Ten banking shares are not ten independent risks during a sector shock.
Portfolio heat: add open risks before adding a trade
Portfolio heat is the sum of planned losses to the stops across open positions, usually expressed as a percentage of account equity. It is only an approximation because gaps and correlation can make realised losses larger.
Portfolio heat = Sum of open planned rupee risks ÷ Account equity
If four open trades each have ₹4,000 of remaining risk and a proposed trade adds ₹5,000, total planned open risk becomes ₹21,000. On a ₹10 lakh account, heat is 2.1%. In a separate, more concentrated example:
| Open position | Remaining quantity | Entry/current stop gap | Planned remaining risk | Correlation note |
|---|---|---|---|---|
| A | 200 | ₹15 | ₹3,000 | Private bank |
| B | 150 | ₹20 | ₹3,000 | Private bank |
| C | 100 | ₹25 | ₹2,500 | IT services |
| Proposed D | 250 | ₹20 | ₹5,000 | Another lender |
| Total | — | — | ₹13,500 | Concentrated in financials |
Summing the rupees is necessary but not sufficient. Positions exposed to the same sector, commodity, index, currency or event should be treated as a cluster. If one catalyst can invalidate several trades, their combined exposure matters more than their individual labels.
Long and short position formulas
For a long trade, planned risk per share is entry minus stop when the stop is below entry. For a short trade, it is stop minus entry when the stop is above entry.
| Direction | Valid stop relationship | Planned risk per unit | Example |
|---|---|---|---|
| Long | Stop below entry | Entry − stop | ₹500 − ₹480 = ₹20 |
| Short | Stop above entry | Stop − entry | ₹520 − ₹500 = ₹20 |
| Long with buffer | Stop below entry | Entry − stop + buffer | ₹500 − ₹480 + ₹2 = ₹22 |
| Short with buffer | Stop above entry | Stop − entry + buffer | ₹520 − ₹500 + ₹2 = ₹22 |
Short selling and derivatives add risks beyond the mirror-image formula, including leverage, margin changes and theoretically unbounded loss on an uncovered short equity position. The calculator’s arithmetic does not establish that the instrument or strategy is suitable.
Stop price is an invalidation point, not a wish
Position sizing begins only after a defensible stop or exit condition exists. Placing the stop at an arbitrary percentage because it creates a convenient quantity is circular. Common analytical approaches use market structure, volatility or a clearly defined thesis event.
Structure-based stop. The level sits beyond support, a swing low or another chart condition that invalidates the setup. Chart levels can fail and are interpreted differently by different traders.
Volatility-based stop. The distance is linked to a volatility measure such as average true range. This can allow more room in volatile securities, which automatically reduces quantity for a fixed risk budget.
Thesis-based exit. A fundamental event or result invalidates the trade. Because the exit may occur after a gap, planned price risk may understate real risk.
| Stop approach | Strength | Limitation | Sizing implication |
|---|---|---|---|
| Fixed percentage | Simple and repeatable | Ignores instrument volatility | Same percentage can be too tight or loose |
| Price structure | Connected to chart thesis | Levels are not guaranteed barriers | Wider structure means smaller quantity |
| Volatility multiple | Adapts to recent movement | Volatility can jump suddenly | Higher volatility reduces quantity |
| Time or event exit | Fits catalyst-based thesis | Loss is not capped by a price | Requires scenario and gap allowance |
Our technical-analysis hub explains chart structure and indicators. Technical analysis does not remove risk; it supplies a consistent hypothesis that still requires invalidation and size control.
Why stop orders do not guarantee the planned loss
A stop order generally becomes executable only after the trigger condition is met. The next available trade can be worse than the stop, particularly after overnight news or in an illiquid security. Circuit filters, exchange halts, system failures and order rejection can also delay an exit.
SEBI’s derivatives risk disclosure document warns that leverage can magnify losses and that losses may exceed original margin. SEBI’s current derivatives education page also highlights market, liquidity and operational risks. Those warnings are relevant whenever borrowed exposure or derivative contracts are involved.
The practical implication is to size below the theoretical maximum when gap or liquidity risk is meaningful, avoid assuming a stop is guaranteed, and understand the broker’s order types before trading.
Futures, options and lot sizes
For futures, quantity is constrained by the exchange-specified lot size. Calculate risk per contract using point risk multiplied by contract units, then round down to a whole number of lots:
Risk per futures contract = |Entry − stop| × contract multiplier
Contracts = Floor(Rupee risk budget ÷ risk per contract)
Contract specifications and lot sizes can change, so obtain current values from the exchange or broker rather than hard-coding an old number.
Options require a different model. A long option’s premium paid can be lost, while its market value responds to the underlying price, volatility, time decay and other variables. A short option can carry loss far beyond premium received. Dividing risk budget by entry-stop premium difference is only a simplified trade-plan estimate, not a full options risk model.
| Instrument | Quantity unit | Risk feature the basic tool misses |
|---|---|---|
| Cash equity | Whole shares | Gap and liquidity risk |
| Equity futures | Whole contracts/lots | Leverage, daily margin and contract changes |
| Long options | Whole lots | Volatility and time decay |
| Short options | Whole lots | Non-linear and potentially very large loss |
Do not force a trade when one minimum lot already exceeds the rupee risk budget. “One lot” is not automatically a small position.
Reward-to-risk is separate from position size
Position size controls the planned loss if the invalidation level is reached near the intended price. Reward-to-risk compares a possible target distance with the stop distance:
Reward-to-risk multiple = (Target − entry) ÷ (Entry − stop) for a long trade.
A high multiple does not make a setup probable, and a calculator cannot validate the target. Expected value also depends on win rate and the distribution of actual wins and losses.
| Entry | Stop | Illustrative target | Planned risk/share | Potential reward/share | Reward/risk |
|---|---|---|---|---|---|
| ₹500 | ₹480 | ₹540 | ₹20 | ₹40 | 2.0R |
| ₹500 | ₹480 | ₹560 | ₹20 | ₹60 | 3.0R |
| ₹500 | ₹490 | ₹540 | ₹10 | ₹40 | 4.0R |
| ₹500 | ₹450 | ₹540 | ₹50 | ₹40 | 0.8R |
The third row looks best arithmetically, but only if ₹490 is a legitimate invalidation level rather than a stop chosen to inflate the ratio and quantity.
A repeatable position-sizing workflow
- Define the setup and the evidence that would invalidate it.
- Choose the entry and stop from that logic, not from desired quantity.
- Set a pre-defined account-risk budget consistent with the overall plan.
- Add a realistic execution buffer where appropriate.
- Calculate risk-based whole-share quantity.
- Apply the available-capital and concentration limits.
- Check total portfolio heat and correlated exposures.
- Inspect market depth and avoid a quantity that cannot be exited reasonably.
- Record the plan before entry and compare planned versus actual execution afterward.
The trade journal should capture planned entry, actual average fill, stop, planned risk, actual exit, costs and reason for deviation. Over time, those records show whether slippage assumptions and stop placement reflect reality.
Common position-sizing errors
- Using margin instead of exposure. A small margin deposit can control a much larger notional position.
- Risking a percentage of each position rather than account equity. The rules answer different questions.
- Ignoring other open trades. Portfolio heat and correlation can dominate one-trade risk.
- Rounding up to a lot. If the minimum lot breaches the budget, the correct calculated quantity may be zero.
- Moving a stop farther after entry without reducing quantity. This increases rupee risk beyond the plan.
- Adding to a losing position without recalculating total risk. The combined stop exposure must be recomputed.
- Assuming the stop price is guaranteed. Gaps and liquidity can produce a larger loss.
- Using an arbitrary tight stop to obtain a large position. Market logic must determine invalidation first.
Frequently asked questions
How is position size calculated?
Divide the planned rupee risk by the effective risk per share, then round down. Apply capital, liquidity and concentration limits afterward. For a long trade, per-share risk is entry minus stop plus any buffer.
Is position size the same as amount invested?
No. Position size is a quantity. Amount invested is quantity multiplied by entry price. Planned loss depends on quantity multiplied by the entry-stop distance, subject to execution risk.
What account risk percentage should I use?
There is no universal percentage. It depends on strategy evidence, volatility, correlation, liquidity, gap exposure and personal circumstances. The calculator models a chosen input; it does not recommend one.
Why is my result zero?
The rupee risk budget may be smaller than the risk of one share or one contract. With derivatives, the minimum exchange lot may exceed the budget. Zero can be the correct risk-based result.
Does a stop-loss cap my loss?
No. A stop is an order mechanism, not a guaranteed execution price. Gaps, halts, liquidity and system events can create a worse fill or prevent immediate execution.
Can I use the calculator for futures and options?
Futures can be approximated using point risk and current contract multiplier, rounded down to whole lots. Options have non-linear risks and require instrument-specific modelling beyond this basic share calculator.
Sources
- SEBI risk-disclosure document for the derivatives segment
- NSE: Equity Derivatives contract information
Position-size outputs are arithmetic estimates. Exchange specifications, broker risk controls, market depth and actual fills determine whether a quantity can be traded as modelled.
Related research
- Technical-analysis tools and market screens
- Stock-market crash guide and risk checklist
- How to start investing in the share market in India
This article and calculator are for research and education, not personalised investment advice or a trading recommendation. Gale is not a SEBI-registered investment adviser. Position-size outputs are arithmetic illustrations; stops, liquidity and execution are not guaranteed, and actual losses can exceed planned risk or margin. Verify contract specifications, do your own research and consult a SEBI-registered adviser before acting.