How the math works
The calculator starts with your risk budget in dollars, subtracts fixed fees, then divides the remaining amount by the per-share risk between entry and stop. That produces the largest position that still fits your risk cap.
max shares = floor((account size × risk %) - fees) ÷ per-share risk
- Per-share risk is the distance between entry and stop for the chosen direction.
- Position value shows how much capital the trade would deploy at the entry price.
- Account allocation helps you see whether the trade is too concentrated even if the dollar risk fits.