Position Size Calculator

This free position size calculator helps discretionary and algorithmic traders translate a fixed risk percentage into a share (or unit) count from account size, entry, and stop-loss distance. It is for people who want consistent risk-per-trade discipline — such as a 1–2% rule — before placing orders. Instant results, no signup. Educational only; not trading advice.

By AlgoFinanceLab Editorial · Reviewed by AlgoFinanceLab Editorial · Last updated: July 26, 2026

Algorithmic trading

Inputs

$
2%
$
$
$

Results

Position size
62 shares
Risk amount
$500
Reward amount
$1,116
Risk/reward ratio
1:2.25
Total position value
$9,300
% of account
37.2%
Trade setup verdict
🟢Good trade setup — favourable risk/reward ratio.

Want to learn more? Explore our guides.

Learn algo position sizing

Disclaimer: This calculator is for educational purposes only and does not constitute trading or investment advice. Position sizing is one factor in risk management — it does not guarantee profits or prevent losses. Past performance is not indicative of future results. Consult a qualified financial advisor before trading.

How to use this calculator

  1. Enter your trading account size (total equity you are sizing against).
  2. Set risk per trade as a percent of that account (many traders stay near 1–2%; the slider allows 0.5–5% for illustration).
  3. Enter the planned entry price for a long-style example.
  4. Enter the stop-loss price below entry — the level where you exit if the trade fails.
  5. Enter a take-profit price above entry so the tool can show reward and risk/reward ratio.

How the result is calculated

Risk amount is account size multiplied by your risk percent. Stop distance is the absolute difference between entry and stop. Position size in shares is risk amount divided by stop distance (floored to a whole share in this model). Reward assumes the same share count reaches your take-profit. Risk/reward compares take-profit distance to stop distance. The tool also shows total position value and what percent of the account that notional represents. Keeping risk percent fixed forces you to cut size when stops are wide and allows more size only when invalidation is close — the core idea behind percentage-based position sizing used in many discretionary and algorithmic playbooks.

Risk amount = Account size × (Risk % ÷ 100)
Shares = floor(Risk amount ÷ |Entry − Stop|)
Reward = Shares × |Take profit − Entry|
R:R = |Take profit − Entry| ÷ |Entry − Stop|

Worked example

Take a $25,000 account risking 2% per trade, entering at $150, stopping at $142, and targeting $168. Risk amount = $25,000 × 0.02 = $500. Stop distance = $8, so shares = floor($500 ÷ $8) = 62. Position value ≈ 62 × $150 = $9,300 (~37% of the account notionally, while cash risk stays about $500 if the stop is respected). Take-profit distance = $18, so reward ≈ 62 × $18 = $1,116 and R:R ≈ 2.25. Compare that with the same prices at 1% risk: risk amount drops to $250 and shares fall to 31 — half the loss if stopped, with a smaller notional. Risking 5% for the same stop balloons share count and dollar loss if the stop hits. A second asset-style check: if entry were $50 and stop $47 (still a $3 risk per share) at 2% on $25,000, shares = floor($500 ÷ $3) = 166 — same dollar risk, different share count. Widen the stop without cutting size and you silently risk more than your intended percent — the most common sizing error.

What your results mean

Position size
How many shares (units) to buy so that a move from entry to stop loses about your chosen risk amount, assuming the stop fills at that price.
Risk amount
Dollars you plan to lose if the stop is hit: account size times risk percent.
Reward amount / Risk-reward ratio
Potential gain to the take-profit on the same size, and how that gain compares to the stop distance. Higher R:R is not automatically a good trade — edge and probability still matter.
Total position value / % of account
Notional exposure. You can risk 2% of equity while controlling a much larger notional if the stop is tight; watch leverage, margin, and concentration.

Common mistakes

  • Picking share count first and only checking risk afterward — which often oversizes the trade.
  • Moving the stop farther away without reducing size, so dollar risk exceeds the intended percent.
  • Using 5%+ risk per trade and calling it “aggressive” when it can compound into large drawdowns.
  • Ignoring slippage and gaps: stops are not guaranteed fills at the stop price.
  • Treating a favorable R:R as a reason to take a low-quality setup.

Frequently Asked Questions

What is a position size calculator in trading?
It converts your account risk rules into a concrete order size. You choose how much of the account you can lose on one idea; the calculator solves for units given entry and stop distance.
What is the 2% rule in position sizing?
A common guideline is to risk no more than about 1–2% of account equity on a single trade (some use less). The “rule” is a risk budget, not a profit guarantee. This tool lets you set that percent and see the resulting size.
Does this work for forex or futures?
The same risk-amount ÷ stop-distance logic applies, but contract multipliers and pip/tick values differ. This UI is framed in share-style prices; adapt units carefully for other markets or use a product-specific sizer.
How do algo traders use position sizing?
Systematic strategies often fix risk per trade or per day, then size each signal from volatility or stop distance so no single loss dominates the equity curve. Consistent sizing is part of risk management, not a signal generator.
Why is my position a large percent of my account if I only risk 2%?
Because notional exposure and dollar risk are different. A tight stop can justify a larger position while still risking 2% if price hits the stop. Margin, liquidity, and correlation to other positions still matter.
Is this personalized investment or trading advice?
No. Outputs are educational estimates from the numbers you enter. Trading involves substantial risk of loss. Consult a qualified advisor and understand your broker’s margin rules before placing orders.
Should stop loss always sit below entry?
For the long example modeled here, yes — the stop is below entry. Short trades reverse that geometry. Always align stop placement with your direction and invalidation level.

Assumptions and methodology

Long-oriented example with whole-share flooring, fixed dollar prices, and fills exactly at entry, stop, and take-profit. No commissions, slippage, borrow fees, overnight financing, or partial fills. Risk percent applies to the account size you enter, not buying power after other open positions or unsettled cash. Correlation across simultaneous trades is ignored — five “2% risk” ideas can still stack into a much larger portfolio shock. Results are for education and practice sizing — not a recommendation to buy or sell any security.

Sources

Dig deeper with our algorithmic trading for beginners guide, or try Robo Advisor Fee Comparison and Portfolio Rebalancer.

Estimates only — not financial, lending, or investment advice. Decisions should be based on your full situation and professional guidance where appropriate.

Stay ahead of the market

Weekly finance research. No spam, no fluff.