The risk-based share formula
Whole shares = floor(risk budget ÷ price risk per share). A $10,000 account risking 1% has a $100 budget. With a $50 long entry and a $48 stop, risk is $2 per share, so the risk formula allows 50 shares.
Check cash as well as stop risk
A long trade can fit a chosen stop-risk budget while requiring more cash than is available. For a long position, this tool also limits quantity to floor(available cash ÷ entry price). It assumes no leverage or fractional shares.
Short positions need broker checks
For a short, the stop is above entry. The displayed count comes from the stop-risk formula, but it does not verify whether shares are available to borrow or how much margin the broker requires. Losses on a short can exceed the planned amount.
Evaluate the target separately
Quantity answers how much is at risk if a planned stop is reached. It says nothing about whether the proposed target is realistic. Check the entry, stop, and target with the risk reward calculator, then record the plan before the outcome.