Position Size Calculator (Stocks, Futures and Options)
Work out how many shares or whole F&O lots fit the amount you are willing to risk on one trade — from your capital, entry and stop-loss. Lot sizes for Nifty, Bank Nifty and every F&O stock are filled in for you.
Last updated:
Example values are filled in — replace them with your own capital, risk and prices.
Position size — shares
166 shares
This is arithmetic on the numbers you enter — a calculation, not advice on what to trade or how much. It does not include margin, brokerage, taxes or slippage. Nothing you type is stored or sent anywhere. MyAlgoMate provides trading technology, not investment advice.
How this position size calculator works
Position sizing answers one question: how big can this trade be so that, if my stop-loss is hit, I lose no more than the amount I chose? You give the calculator three things — the amount you are willing to risk, where you would enter and where your stop-loss is — and it works out the largest whole quantity that stays inside that amount.
Pick Stocks for shares, Futures for index or stock futures, or Option buyer when you buy options (calls or puts). In the F&O tabs, search for Nifty, Bank Nifty or any F&O stock and its current lot size is filled in from the same data as our F&O lot sizes page, updated automatically. You can type over the lot size if you want to try a different one. Results change as you type — there is no button to press.
The position size formula
Risk amount = Capital × Risk % (or the fixed ₹ amount you choose) Risk per share = | Entry price − Stop-loss price | Quantity = ROUND DOWN ( Risk amount ÷ Risk per share ) Futures Risk per lot = Stop-loss distance (points) × Lot size Lots = ROUND DOWN ( Risk amount ÷ Risk per lot ) Option buyer Risk per lot = ( Entry premium − Stop-loss premium ) × Lot size Lots = ROUND DOWN ( Risk amount ÷ Risk per lot )
Capital is the money in your trading account that you size against. Risk amount is the most you are prepared to lose on this one trade. Risk per share (or per unit) is how much each share loses if the price moves from your entry to your stop-loss — the formula uses the gap either way, so it works for a short (sell-first) trade with the stop-loss above the entry too. The result is always rounded down: rounding up would put more than your chosen amount at risk.
Because the risk amount is fixed, the stop-loss decides the size. A stop-loss twice as far away gives roughly half the quantity; a closer one gives more. The money at risk stays about the same either way.
Worked example: a stock
These are the example numbers already filled into the calculator. The 1% is just a number picked for the example, not a suggestion — the percentage is yours to choose.
| Item | Value |
|---|---|
| Capital | ₹5,00,000 |
| Risk on this trade | 1% = ₹5,000 |
| Entry price | ₹1,500 |
| Stop-loss price | ₹1,470 |
| Risk per share | ₹30 |
| Quantity (rounded down) | 166 shares |
| Money at risk if the stop-loss is hit | ₹4,980 |
| Capital needed | ₹2,49,000 (49.8% of capital) |
₹5,000 ÷ ₹30 = 166.67, rounded down to 166 shares. The money at risk is 166 × ₹30 = ₹4,980 — just under the amount chosen, because of the rounding. Buying 166 shares at ₹1,500 needs ₹2,49,000. If that is more than your capital, the calculator says so and shows the most shares your capital covers at that price.
If you also type a planned exit of ₹1,560, the calculator shows the risk : reward ratio of your own numbers: (₹1,560 − ₹1,500) ÷ (₹1,500 − ₹1,470) gives 1 : 2.0.
Worked example: Nifty futures
Futures are sized in whole lots. This example uses the current Nifty lot size of 65 (Dec 2026 contracts, updated automatically), the same ₹5,00,000 capital and 1% risk, and a stop-loss 30 points from the entry. Any index level works — only the distance to the stop-loss matters.
| Item | Value |
|---|---|
| Risk amount | ₹5,000 |
| Stop-loss distance | 30 points |
| Lot size | 65 |
| Risk per lot | 30 × 65 = ₹1,950 |
| Whole lots (rounded down) | 2 lots |
| Quantity | 130 units |
| Money at risk if the stop-loss is hit | ₹3,900 |
₹5,000 ÷ ₹1,950 = 2.56, so 2 lots fit. Now try a smaller risk amount of ₹1,400: one lot still risks ₹1,950, which is more than ₹1,400, so the result is 0 lots and the calculator shows a “no whole lot fits your risk” message with the risk of one lot. It never rounds up to one lot for you.
The calculator does not work out margin. Once you know the number of lots, check the margin for those lots in our F&O margin calculator.
Worked example: buying a Nifty option
For an option buyer the stop-loss is a premium, not an index level. Say you plan to buy a Nifty option at a premium of ₹120 with a stop-loss at ₹90 (example premiums), using the current lot size of 65.
| Item | Value |
|---|---|
| Risk amount | ₹5,000 |
| Risk per unit | ₹120 − ₹90 = ₹30 |
| Risk per lot | ₹30 × 65 = ₹1,950 |
| Whole lots (rounded down) | 2 lots |
| Premium outlay | ₹15,600 |
| Money at risk if the stop-loss is hit | ₹3,900 |
The premium outlay — 2 × 65 × ₹120 = ₹15,600 — is the most a buyer can lose, because a bought option can fall to zero. The stop-loss only decides how much of that outlay you plan to put at risk. Set the stop-loss premium to 0 if you want to size on the whole premium.
What “risk per trade” means
Risk per trade is the amount you are prepared to lose on one trade if it goes to your stop-loss. You can enter it in two ways: as a percentage of your capital, which grows or shrinks as your capital changes, or as a fixed rupee amount, which stays the same until you change it.
There is no correct number, and this page does not suggest one. It depends on your capital, your circumstances and how much loss you can bear. One way to think about it is to ask how many stop-losses in a row you could take and still be comfortable. Whatever figure you pick, the calculator simply turns it into a quantity — it does not judge it.
Position size is not margin
The two answer different questions. Position size asks how much you lose if the stop-loss is hit. Margin asks how much your broker blocks from your account before you can hold a futures or sold-option position — it follows exchange rules (SPAN plus exposure margin) and changes during the day.
A trade can fit your risk and still need more margin than you have, or need little margin while putting more at risk than you would like. Size first from risk, then check the margin for the same lots in the F&O margin calculator. Option buyers pay the full premium instead of margin, which is why the Option buyer tab shows the premium outlay.
Risk : reward from your planned exit
If you type a planned exit price, the calculator divides the distance from your entry to that exit by the distance from your entry to your stop-loss and shows it as a ratio such as 1 : 2.0. It is plain arithmetic on your own numbers — it says nothing about whether the price will get there. The planned exit must be on the other side of the entry from the stop-loss; if it is not, the calculator tells you instead of showing a ratio.
Position size in Excel or Google Sheets
The same maths works in a spreadsheet. Put your inputs in row 2 and use:
Shares (A2 capital, B2 risk %, C2 entry, D2 stop-loss) =ROUNDDOWN(A2*B2/ABS(C2-D2),0) Futures lots (A2 risk amount ₹, B2 stop-loss points, C2 lot size) =ROUNDDOWN(A2/(B2*C2),0) Option buyer lots (A2 risk amount ₹, B2 entry premium, C2 stop-loss premium, D2 lot size) =ROUNDDOWN(A2/((B2-C2)*D2),0)
Format B2 as a percentage in the first formula (type 1% rather than 1), or divide by 100. ROUNDDOWN with 0 decimal places keeps the answer a whole number, the same as the calculator. Lot sizes change from time to time, so check the current one on the F&O lot sizes page before you rely on a saved sheet.
Limitations — when the real loss can be bigger
The money at risk shown here assumes your stop-loss order fills exactly at your stop-loss price. In real markets it may not:
- Gaps. If the price opens beyond your stop-loss — after results, news or a weekend — the order fills at the first available price, and the loss can be larger than planned.
- Slippage. In fast or thinly traded markets, stop-loss market orders can fill a few ticks away from the trigger price. Option premiums can move very quickly.
- Charges. Brokerage, STT, exchange charges, GST and stamp duty are on top. Work them out in the brokerage calculator.
- Lot-size changes. The exchange revises lot sizes from time to time. The lot size filled in is for the current contract month; if a change is announced, the calculator mentions it.
Where you place the stop-loss is your own decision. Some traders use levels from their own chart work — for example from the pivot point calculator or the Fibonacci retracement calculator. Whatever method you use, the sizing maths here is the same.
Position size — questions, answered.
Decide the most you are willing to lose on the trade — your risk amount, as a percentage of your capital or a fixed rupee figure. Divide it by the risk per share, which is the gap between your entry price and your stop-loss price, and round down to a whole number. For example, ₹5,000 ÷ (₹1,500 − ₹1,470) = 166.7, so 166 shares. For futures and options, divide by the risk per lot (stop-loss distance × lot size) and round down to whole lots.
Lots = risk amount ÷ (stop-loss points × lot size), rounded down. With the current Nifty lot size of 65 (Dec 2026 contracts), a 30-point stop-loss risks ₹1,950 per lot, so a risk amount of ₹5,000 fits 2 lots. Bank Nifty's current lot size is 30; enter its own stop-loss distance in points. Pick the index in the Futures tab and the lot size is filled in for you. Your capital also has to cover the margin, which is separate — check it in the F&O margin calculator.
It is the most you are prepared to lose on one trade if your stop-loss is hit, written either as a share of your capital (1% of ₹5,00,000 is ₹5,000) or as a fixed rupee amount. The figure is your own choice and depends on your capital and how much loss you can bear — this calculator does not suggest one. A useful way to think about it is how many stop-losses in a row you could take and still be comfortable. If you are unsure, a SEBI-registered investment adviser can help you decide.
An option buyer's risk is in the premium, not in index points. Risk per lot = (entry premium − stop-loss premium) × lot size, and lots = risk amount ÷ risk per lot, rounded down. The premium can move much faster than the index and can fall to zero by expiry, so the most a buyer can lose is the whole premium paid. Enter a stop-loss premium of 0 to size on the whole premium.
No. Position size is worked out from risk only — how much you lose if the stop-loss is hit. Margin is the money your broker blocks before you can hold a futures or sold-option position, and it follows exchange rules (SPAN plus exposure margin). A position can fit your risk and still need more margin than you have. Check the margin for the same lots in our F&O margin calculator. Option buyers pay the premium instead of margin.
F&O orders can only be placed in whole lots. If the risk of one lot (stop-loss distance × lot size) is more than your risk amount, the result is 0 lots, and the calculator shows what one lot would risk so you can see the gap. Trading one lot anyway would mean risking more than the amount you chose — that decision is yours; the calculator never rounds up.
Yes. With capital in A2, risk % in B2 (formatted as a percentage), entry in C2 and stop-loss in D2, =ROUNDDOWN(A2*B2/ABS(C2-D2),0) gives the number of shares. For lots, with the risk amount in A2, stop-loss points in B2 and lot size in C2, use =ROUNDDOWN(A2/(B2*C2),0). The same formulas work in Google Sheets.
More free calculators
Turn your own rules into automated orders.
Already size your trades by your own rules? MyAlgoMate's algo trading software places the orders your rules call for at 150+ Indian brokers — and TradeBridge turns your own TradingView or Chartink alerts into live orders. You decide the rules; we provide the technology.