Position size calculator
Enter your trading capital, the percentage of it you are willing to risk, your entry price and your stop price. The calculator returns how many shares or units to trade so that a stop-out loses no more than that amount, rounded down to whole units or lots and capped by your capital and leverage. It works for long and short trades and uses only the prices you type.
Work out your position size
Result
How it was worked out
Fill in the fields above to see the result and every step here.
Worked example
With capital of 5,00,000, a risk of 1 percent, an entry at 250 and a stop at 240, the amount at risk is 5,000 and the risk per unit is 10. That allows a quantity of 500, a position value of 1,25,000 and an actual risk of 5,000. When the stop is very close to the entry, the capital cap limits the quantity instead, as in the stored tight-stop case.
How the quantity is worked out
Start with the amount you are willing to lose on the trade: your capital times the risk percent. With Rs 5,00,000 and a risk of 1%, that is Rs 5,000. Then find the risk on each unit, the gap between the entry price and the stop price. A long trade needs the stop below the entry and a short trade needs it above; a stop on the wrong side, or equal to the entry, is rejected.
The quantity is the amount at risk divided by the risk per unit, always rounded down, so a stop-out never loses more than you planned. If you trade in lots, the quantity is rounded down again to a whole number of lots. Finally it is limited to what your capital times leverage can buy at the entry price. When the stop is very close to the entry, this cap is often what sets the quantity, and the result says so.
The actual risk is the final quantity times the risk per unit, which can be below your planned amount because of the rounding and the cap. Brokerage, taxes and other charges are not taken off. A stop does not promise your exit price: gaps and slippage can make the real loss larger. This is a sizing aid that uses only the prices you type, not a recommendation to buy or sell anything.
The amount at risk is capital times the risk percent. Risk per unit is the gap between entry and stop; a long trade needs the stop below entry and a short trade needs it above. Quantity is the amount at risk divided by risk per unit, rounded down, then rounded down to whole lots if you set a lot size, and finally limited to what your capital times leverage can buy.
Common questions
How to use a position size calculator?
Enter your capital, the percent of it you will risk, the entry price and the stop price, and choose long or short. The result shows the quantity that keeps your loss at the stop within your chosen risk. In the stored example, a risk of 1 percent on 5,00,000 allows 500 units.
What is contract size in a position size calculator?
Contract size is the number of units in one lot. If you enter a lot size above one, the calculator rounds the quantity down to a whole number of lots, so the position never exceeds the risk you set. Leave it at one if you trade single shares.
Related calculators
Enter each investment and withdrawal with its date to get the annualised XIRR, total invested and gain. Works for SIPs, top-ups and part withdrawals.
Estimate your yearly income taxCompare income tax under the old and new regime on one salary, with standard deduction, rebate, marginal relief, surcharge and cess shown step by step.
Results follow the rules named above and are estimates for planning. They are not tax, legal or investment advice and do not replace your payslip, Form 16, loan statement or a chartered accountant.