Position Sizing Calculator · Calculation guide

Estimate trade quantity within your cash and risk limits.

Calculation guide

For investors reviewing holdings, income and trading assumptions.

Include only the costs you enter. Purchase averages use quantity weights; portfolio-return weights use beginning values over the same period. Reinvestment retains residual cash and states whether fractional shares are allowed. Rebalancing conserves cash after entered fees. Position size is an illustrative risk budget with no leverage or execution guarantee. Taxes and broker rules are not inferred.

q=⌊min(RiskBudget/(|Entry−Stop|+F_unit),Portfolio/(Entry+F_unit))/Lot⌋·Lot

Inputs

Portfolio value

Total cash-funded portfolio amount used for the trade's cash and risk limits.

Risk percent

Share of the portfolio you are willing to lose under the entered stop-price assumption.

Entry price

Assumed trade entry price per unit.

Stop price

Assumed exit price if the trade moves against you. Actual execution can differ.

Cost per unit

Transaction cost per unit included in both cash use and modeled risk.

Lot size

Minimum trading block; the calculated quantity is rounded down to a multiple of this size.

Position direction

Long expects prices to rise; short expects a fall. The stop must be on the loss side.

Worked example

InputValue
Portfolio value100,000
Risk percent1%
Entry price100
Stop price95
Cost per unit0
Lot size1
Position directionLong / buy

Formula:

q=⌊min(RiskBudget/(|Entry−Stop|+F_unit),Portfolio/(Entry+F_unit))/Lot⌋·Lot

Position quantity = 200.000000000000

ResultValue
Position quantity200
Capital used20,000
Modeled risk1,000
Risk budget1,000

Interpreting the result

Trade quantity rounded down to whole lots and limited by both cash and modeled risk.

Trade quantity multiplied by entry price plus per-unit cost.

How each input affects this example

Each row starts from the worked example and changes one input.

InputOriginal inputNew inputAffected resultOriginal resultNew result
Portfolio value100,000110,000Position quantity200220
Risk percent1%2%Position quantity200400
Entry price100110Position quantity20066
Stop price9585Position quantity20066
Cost per unit01Position quantity200166
Position Sizing Calculator →