Free Tool

Position Size Calculator for Day Trading

Work out how many shares your risk rule actually allows. Enter your account size, the percentage you are willing to risk, your entry, and your stop — the share count, dollar risk, and R-multiple targets update as you type. Nothing is sent anywhere; the math runs in your browser.

Your inputs

Presets are shortcuts. Type any value you use.
Below entry for a long, above entry for a short.

Position Long

Position size 238 shares — floor of $50.00 risk ÷ $0.21 per share
Dollar risk per trade $50.00
Per-share risk $0.21
Total position value $999.60
% of account deployed 20.0%
1R target$4.41
2R target$4.62
3R target$4.83

R-multiple targets are the entry price extended by one, two, and three times the per-share stop distance. They describe reward relative to the risk you defined — they are not predictions, and reaching them is not implied.

The formula, in plain English

Risk-based sizing runs in one direction: you decide the loss you are prepared to take, you measure how far the stop sits from the entry, and the share count falls out of those two numbers. You never choose the share count directly.

dollar risk = account size × risk %
per-share risk = | entry price − stop price |
position size = floor( dollar risk ÷ per-share risk )

Run the default values through it. On a $5,000 account risking 1%, the dollar risk is $50.00. With a $4.20 entry and a $3.99 stop, the per-share risk is $0.21. Fifty dollars divided by twenty-one cents is 238.09, and since fractional shares are not being assumed here, that floors to 238 shares. Those 238 shares cost $999.60, which is 20.0% of the account — a fifth of the balance deployed to risk one percent of it.

That last pair of numbers is the point most sizing guides skip. Deploying 20% of an account and risking 1% of it are not in conflict; they are two different measurements. The capital deployed is set by the share price. The capital at risk is set by the stop distance. Conflating them is what leads traders to think a large position is inherently reckless, or that a small one is inherently safe.

Why this beats guessing a share count

The intuitive approach is to pick a round number — a hundred shares, five hundred shares — and set a stop afterwards. The problem is that a fixed share count produces a different loss on every trade, because the stop distance changes with every setup. A hundred shares with a ten-cent stop risks $10. The same hundred shares with an eighty-cent stop risks $80. The position looks identical and the exposure is eight times larger.

Inverting the calculation fixes the loss and lets the share count absorb the difference. Tight stop, larger position. Wide stop, smaller position. The dollar amount at risk stays constant across every trade you take, which is the only way a win rate and an average R-multiple mean anything when you review them later. If each loss is a different size, your expectancy math is measuring noise.

It also puts a hard floor under the worst case. A sequence of losses is arithmetic rather than an open question: five consecutive full stops at 1% is roughly 5% of the account, not a number you discover afterwards.

Where the stop actually comes from

This calculator takes the stop as an input, which quietly assumes the harder question is already answered. It is not. A stop placed to produce a convenient share count is not a stop — it is a rationalisation, and price has no obligation to respect it.

The stop belongs at the level that invalidates your reason for being in the trade: under the structure you are trading against, outside the noise band of the instrument, wherever the setup is demonstrably wrong. Then you size to it. If the resulting position is uncomfortably small, the honest readings are that the stop is too wide for the account, or the setup is not worth taking — not that the stop should be tightened to fit.

Once entry, stop, and target are decided, they can be submitted together so the exits are already resting at the broker rather than depending on your reaction. We wrote up how that order structure works in bracket orders explained: how stops and targets automate your risk.

Turning sizing into a rule you cannot skip

Knowing the formula and applying it under pressure are different skills. Sizing tends to fail in the moment it matters — after two losses, on a setup that looks too good to size normally, at the end of a flat week. A calculator cannot stop that, because a calculator is something you choose to open.

What survives that pressure is a written rule that runs the same way every session: the risk percentage, where the stop comes from, the maximum position value, what happens after consecutive losses. Writing it down is the first step, and the XeanVI playbook covers how to structure those rules so they are specific enough to follow.

The step after that is removing the discretion entirely, by having the sizing and the protective exits computed and submitted by software rather than typed in by hand. That is the workflow behind our automated trading bot for Alpaca accounts, where the position size is derived from the same arithmetic on this page and the stop is attached to the order at submission.

Common questions

What is position sizing?
Position sizing is the decision of how many shares to buy or short, derived from how much money you are willing to lose if the trade fails. Instead of picking a share count first, you fix the loss you will accept, measure the distance from your entry to your stop, and let those two numbers determine the size. The share count becomes an output of your risk rule rather than a guess.
How is position size calculated?
Multiply your account size by your risk percentage to get the dollar amount you are risking on the trade. Divide that dollar risk by the per-share risk, which is the absolute distance between your entry price and your stop-loss price. Round down to a whole number of shares. On a 5,000 dollar account risking 1 percent, with a 4.20 entry and a 3.99 stop, that is 50 dollars of risk divided by 0.21 per share, which floors to 238 shares.
What percentage should beginners risk per trade?
Commonly cited ranges in trading education sit between 0.5 and 2 percent of account equity per trade, with smaller figures more often discussed for newer traders. This is educational information, not a recommendation, and the appropriate figure depends on your circumstances, strategy, and risk tolerance. Position sizing controls the size of a loss; it does not make a losing strategy profitable or prevent losses from occurring.

This calculator is educational software, not financial, investment, or tax advice, and nothing on this page is a recommendation to buy or sell any security. Outputs are arithmetic based on the values you enter and do not account for commissions, fees, slippage, gaps, partial fills, borrow availability, or margin requirements, any of which can make a realised loss larger than the figure shown. Stop orders are not guaranteed to fill at the stop price. Trading involves risk, including the risk of losing more than your initial investment when leverage is used, and most day traders lose money. XeanVI is a workflow automation platform and is not a broker-dealer or investment adviser.