Calculate portfolio weight from asset and total values, then find target shares, rebalance trades, and risk-based position size by stop-loss.
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Portfolio weight | Finds the share of a portfolio held in one asset | Requires the asset value and the entire portfolio value |
| Asset value | Finds the dollar value an asset has at a given weight | Requires the entire portfolio value and the weight |
| Total portfolio value | Finds the portfolio size implied by one holding and its weight | Requires the asset value and the weight |
| Target position size | Finds the number of shares that brings an asset to a target weight | Requires the entire portfolio value, the target weight and the share price. Current shares are optional |
| Rebalance up to four assets and cash | Finds the change in shares that brings each holding back to its target weight | Requires current cash, the target cash weight, and the price, current shares and target weight of each asset included |
| Position size from stop distance | Finds the number of shares for which a move from the entry price to the stop price equals a set share of the portfolio | Requires the entire portfolio value, the loss budget as a percent of the portfolio, the position direction, the entry price and the stop trigger price. Current shares are optional |
Values are in US dollars at one valuation time, and a weight can be entered as a percent or as a decimal. When current shares are entered, Target position size and Position size from stop distance also show the difference from the current holding. Share counts are shown as fractions, with the whole-share figure beside them.
Portfolio Weight Formulas
| PW | Portfolio weight (%) |
| AV | Value of the asset ($) |
| P | Value of the entire portfolio ($) |
Portfolio weight
A $3,000 holding in a $30,000 portfolio has a weight of 3,000 รท 30,000 ร 100 = 10%. An asset value above the portfolio value is rejected, since the calculation is for a long-only portfolio with no borrowing.
Asset value
A 15% weight in a $50,000 portfolio is a $7,500 holding.
Total portfolio value
A $3,000 holding that makes up 10% of a portfolio implies a $30,000 portfolio. The asset value and the weight must both be above zero.
Target position size
price
The target value is the portfolio value times the target weight, and dividing by the share price gives shares. A 5% target in a $100,000 portfolio is $5,000, or 100 shares at $50. The whole-share figure rounds down, which leaves a little cash over.
Rebalance up to four assets and cash
current value) รท price
Rebalancing brings a portfolio back to its intended mix after some holdings have grown faster than others, by selling part of what has grown and adding to what has lagged [1]. The calculator adds cash and each price ร shares to get P, sets each target value from its weight, and divides the gap by the share price. With $1,000 cash, 50 shares at $100 and 80 shares at $50, P is $10,000. Targets of 60%, 30% and 10% cash mean buying 10 shares of the first asset and selling 20 of the second. The target weights, cash included, must total 100%.
Position size from stop distance
|entry โ stop|
r is the loss budget as a percent of the portfolio. Risking 1% of $100,000 with an entry at $50 and a stop at $45 gives 1,000 รท 5 = 200 shares. The stop must be below the entry for a long position and above it for a short one. This sizing rule is arithmetic on the prices entered and does not cap the loss: a stop order turns into a market order once the stop price is reached, and the trade can fill at a different price [2].
Limits of This Estimate
- Figures leave out trading fees, taxes and any price movement after the values were entered. Fractional shares are theoretical unless the broker supports them, and rounding each trade to whole shares shifts the final weights slightly.
- Portfolio weight, Asset value, Total portfolio value and Target position size assume a long-only portfolio with no leverage. Position size from stop distance applies no affordability check, so the position can be larger than the portfolio.
- The loss at a stop is not guaranteed. The fill price can differ from the stop price, especially in a fast-moving market [2].
- The results are arithmetic on the numbers entered. They are not a recommendation to hold any weight or make any trade.
Sources
- U.S. Securities and Exchange Commission, Investor.gov, Asset Allocation and Diversification: what rebalancing is and how it is done
- U.S. Securities and Exchange Commission, Investor.gov, Stop Order: a stop order becomes a market order and can fill at a price different from the stop price
