Trading and Options

How to Calculate Stock Position Size from Risk and Cash

Learn to size a stock trade from account equity, entry price, stop price and available cash. Check worked examples and why a stop does not cap actual losses.

Published:
Updated:
Reviewed:

Editorial dates are calendar dates in India Standard Time.

Keywords

  • position sizing calculator
  • stock position size calculator
  • trade risk calculator
  • shares from stop loss
  • cash limited stock position

Size a stock trade from two limits

A stop price determines the planned loss per share. Available cash sets a separate ceiling on the number you can buy. Use both inputs to find the largest whole trade increment that fits.

Separate risk budget from purchase cash

Account equity determines the monetary risk budget. Available cash is the amount allocated to buy shares. The stop distance is entry minus stop per share. The trade increment is the number of shares in each permitted block.

For a long stock trade, the model assumes buying at entry and selling at a lower price. The size is conditional on those prices and the budgets you supply.

Check trade size before placing an order

If other holdings tie up most of your account equity, a risk-only calculation can suggest more shares than your cash can buy. Comparing the two limits also shows whether changing the stop distance can affect the modeled quantity.

Calculate the risk and cash limits

Shares = I × min(floor(B ÷ (I × D)), floor(C ÷ (I × E))). I is the share increment, B is equity times risk percentage divided by 100, C is available cash, E is entry and D is the positive distance from entry to stop. The result checks the next increment against both limits.

Multiplying the increment by the price or stop distance gives the cost or modeled risk of one block.

Formula
Shares = I × min(floor(B ÷ (I × D)), floor(C ÷ (I × E)))
  • Divide account equity times the risk percentage by 100.
  • Floor the number of blocks independently under each limit.
  • Multiply the smaller block count by the trade increment.

Compare a risk-limited and cash-limited trade

With 10,000 in equity and cash, 1% risk, entry 50, stop 48 and an increment of one share, the risk budget is 100 and the distance is 2. The model allows 50 shares costing 2,500 with a modeled loss of 100. One more share raises modeled loss to 102.

Keep everything the same but move the stop to 49.90. The risk budget alone permits 1,000 shares, but 10,000 cash covers 200. At 200 shares the modeled stop loss is 20 and the unused risk budget is 80.

  1. Enter 10,000 for equity and cash and 1 for the risk percentage.
  2. Set entry to 50, stop to 48 and increment to one share.
  3. Compare the 50-share result with the 200-share result when stop changes to 49.90.

Enter one cash-funded long trade

Use the equity you want to base the risk budget on, the cash allocated to this trade, the chosen risk percentage, your hypothetical entry and stop, and your whole-share increment.

Check why the next block fails

The next-increment message shows which limit or limits would be exceeded. Unused risk is the risk budget minus the modeled loss, and unused cash is available cash minus the entry cost. Zero shares means no complete increment fits both limits.

For the first example, a 25-share increment and a risk budget of 99 permit 25 shares. The next block would bring the total to 50 shares and risk to 100. Rounding up would break the budget.

Keep the trade assumptions explicit

The trade has one entry and one hypothetical exit at the supplied stop price. There is no time or compounding input, and position size is calculated before charges.

Avoid mixing quote units and measuring risk from the wrong price

Do not substitute total account equity for cash you can allocate. A tighter stop can increase the risk-based quantity while the cash limit remains unchanged.

Use the intended entry for both the purchase cost and the distance to the stop. A screen quote can differ from your fill. A gap through the stop can make an exit occur at a worse price than the example assumes.

Apply the same arithmetic across markets

One cash-funded long stock entry and hypothetical exit at the stop price, with consistent major-currency units. USD, GBP, CAD, AUD and INR change display formatting only. Convert quotes in pence to pounds before mixing them with GBP amounts.

The US, Canada and Australia examples can be expressed in USD, CAD and AUD. Use INR and rupees for an Indian scenario. For UK shares, a 500 GBX quote is £5. The entered increment comes from your scenario and does not encode a venue or broker rule.

Choose a tool for the stage of your trade

Position sizing is a pre-trade feasibility calculation. Stock Profit and Loss measures a completed round trip using fill prices and charges. Stock Average Price combines purchases of the same security and can include purchase fees.

Understand the limits of the stop scenario

Equity, cash and prices support up to 1 trillion with up to 12 decimal places. Entry must be positive and the stop may be zero. Risk ranges from 0% to 100%. Share increments are positive whole numbers up to 1 trillion. Calculations preserve exact decimals before displaying money to cents.

Educational scope

Educational scenario. Actual fills and losses may differ from the estimate. The model excludes fees, taxes, spreads, slippage, gaps, FX, short positions, leverage and broker order rules. It provides no personalized investment advice.

Companion calculator

Put the method into practice.

Open Position Sizing Calculator

Frequently asked questions

Why do I need cash and equity separately?
Positions already held can contribute to account equity without making those funds available for another purchase.
What if I move my stop closer to entry?
The modeled loss per share falls and the risk limit may permit more shares. The cash limit stays the same if entry and available cash are unchanged.
How do I handle a 25-share trade increment?
Enter 25 and the calculator evaluates only multiples of 25. It returns zero when 25 shares would exceed either budget.
Can the loss exceed the amount at risk shown here?
Yes. The estimate assumes the exit fills at the supplied stop. Gaps or slippage can make the loss larger, and a stop-limit order may remain unfilled.
Does 1% represent a recommended risk budget?
It is an example input. The model uses your supplied percentage and does not determine an appropriate risk level.
How do I include charges?
This model excludes charges. To assess a completed trade with fixed transaction charges, use the Stock Profit and Loss Calculator with actual fill prices and fees.

Sources and review

Sources reviewed . Consult current local rules before relying on time-sensitive information.

Continue learning

Find a financial tool