Position Size Calculator

Calculate position size (shares) for long or short trades based on your account size, risk tolerance, and stop loss level. Essential for proper risk management.

$
%
$
$

Enter your account size, risk percentage, entry price, and stop loss, then click Calculate position size to see the recommended number of shares.

Position Size Formula

Dollar Risk = Account Size × Risk %

Risk Per Share = |Entry Price - Stop Loss|

Position Size = floor(Dollar Risk ÷ Risk Per Share)

Works for both long and short positions. Shares are floored to whole units.

Worked Examples

Example 1: Long trade on a $25,000 account

You have a $25,000 account and want to risk 2% per trade. You plan to buy a stock at $50.00 with a stop loss at $47.00.

  • Dollar Risk = $25,000 × 2% = $500
  • Risk Per Share = |$50.00 - $47.00| = $3.00
  • Position Size = floor($500 ÷ $3.00) = 166 shares
  • Position Value = 166 × $50.00 = $8,300

Example 2: Short trade with a tight stop

You have a $10,000 account, risking 1%. You short a stock at $120.00 with a stop loss at $122.50.

  • Dollar Risk = $10,000 × 1% = $100
  • Risk Per Share = |$120.00 - $122.50| = $2.50
  • Position Size = floor($100 ÷ $2.50) = 40 shares
  • Position Value = 40 × $120.00 = $4,800

How to Use This Calculator

  1. Choose your trade direction — select Long if you're buying, Short if you're selling.
  2. Enter your account size — the total capital in your trading account.
  3. Set your risk percentage — most traders risk 1-2% per trade. This is the maximum you're willing to lose.
  4. Enter your entry price — the price at which you plan to open the position.
  5. Set your stop loss price — below entry for longs, above entry for shorts. This is where you'll exit if the trade goes against you.
  6. Click Calculate — the calculator returns the number of shares to buy or sell, your dollar risk, and position value.

Frequently Asked Questions

What is a good risk percentage per trade?
Most professional traders risk between 0.5% and 2% of their account per trade. Beginners should start at 1% or lower. The key is consistency — even a small edge compounds over time when risk is controlled.
How does stop loss distance affect position size?
A wider stop loss means fewer shares (smaller position), and a tighter stop means more shares (larger position). The calculator adjusts automatically so your total dollar risk stays the same regardless of stop distance.
Why are shares floored to whole numbers?
Most brokers require whole-share orders for stocks. Flooring ensures you never exceed your intended risk. Some brokers allow fractional shares — in that case, your actual position could be slightly larger.
Does this work for options or futures?
This calculator is designed for stocks and ETFs. For options, the risk-per-contract calculation is different because of leverage and premium. For futures, use contract-based position sizing with tick values.
What if my position size is 0 shares?
This means your stop loss is too far from entry relative to your account risk. Either tighten your stop, increase your risk percentage, or increase your account size. A 0-share result means the trade doesn't fit your risk parameters.