Position Size Calculator screenshot

Position Size Calculator

Work out the number of shares a risk budget buys from account size, risk per trade (%), entry price, stop price. Shares = floor((account × risk%) ÷ |entry − stop|), and the page prints the substitution so the result can be checked by hand.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
No sign-up, no upload
Formula printed with the answer

Position Size Calculator

Work out the number of shares a risk budget buys from account size, risk per trade (%), entry price, stop price. Shares = floor((account × risk%) ÷ |entry − stop|), and the page prints the substitution so the result can be checked by hand.

How this page computes

Shares = floor((account × risk%) ÷ |entry − stop|)

A fractional share is not a position in most accounts, and rounding up would exceed the risk budget. The page prints the risk actually taken at the stop, which is at or below the budget.

A stop above the entry is a short position, and the loss per share is still the entry-to-stop distance.

The calculation runs entirely in this browser tab; nothing is uploaded.

Position Size Calculator computes the number of shares a risk budget buys. Shares = floor((account × risk%) ÷ |entry − stop|). The page prints the rule, the numbers substituted into it and the result, so the arithmetic can be checked by hand.

A fractional share is not a position in most accounts, and rounding up would exceed the risk budget. The page prints the risk actually taken at the stop, which is at or below the budget. Pressed with account size 25000, risk per trade 1, entry price 50, stop price 47, it answers: Position size = 83 shares

How to use Position Size Calculator

Enter account size 25000, risk per trade 1, entry price 50, stop price 47, then press Run: the page evaluates the number of shares a risk budget buys and prints every line of the working. Typed input is read exactly as written, and a blank field is refused with its name.

Read the first line as the answer and the lines below it as the substitution. If a value is out of range the page refuses it by field and reason instead of printing a number.

With account size 25000, risk per trade 1, entry price 50, stop price 47, the answer is Position size = 83 shares.

Rounding down is deliberate

A fractional share is not a position in most accounts, and rounding up would exceed the risk budget. The page prints the risk actually taken at the stop, which is at or below the budget.

A stop above the entry is a short position, and the loss per share is still the entry-to-stop distance.

What to Expect

Best for

  • Working out the number of shares a risk budget buys without a spreadsheet
  • Checking a figure someone else quoted
  • Seeing the formula behind an answer

Not ideal for

  • An entry equal to the stop is refused, because the risk per share is zero and the size is unbounded.
  • A quantity the page cannot compute, which it refuses instead of estimating
  • Rounding an answer that has an exact form

What this tool keeps

  • Shares = floor((account × risk%) ÷ |entry − stop|)
  • Every input exactly as typed

What may need cleanup

  • Nothing: the printed answer is the final output
  • A unit conversion, if the inputs were entered in different units

Common errors

  • An entry equal to the stop is refused, because the risk per share is zero and the size is unbounded.
  • An empty field is refused with the field's name

Example use cases

  • Work out the number of shares a risk budget buys for one set of inputs
  • Check the result against the formula by hand
  • See which input the answer is most sensitive to

Sample input

Position Size Calculator: account size 25000, risk per trade 1, entry price 50, stop price 47

Sample output

Position size = 83 shares — Risk budget = 25000.00 × 1% = 250.00

Who this is for

  • Students checking a formula
  • Anyone who needs the number and the working

Frequently asked questions

What formula does this page use?

Shares = floor((account × risk%) ÷ |entry − stop|). The page prints the substitution as well, so the answer can be checked against the rule.

What does Position Size Calculator refuse?

An entry equal to the stop is refused, because the risk per share is zero and the size is unbounded.

What does the default example give?

Account size 25000, risk per trade 1, entry price 50, stop price 47 gives Position size = 83 shares. Every line below that restates the same arithmetic.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.