Sub topic 8
Turning Weights into Buy and Sell Amounts
This chapter assumes you understand asset classes, portfolio weights, and basic percentage arithmetic. The goal is to turn measured drift into specific dollar trades. A rebalancing trade changes the portfolio’s holdings so that their values match a chosen allocation.
From weights to dollar targets
Start with the current value of each asset class. Add those values to find the portfolio total:
\text{total value} = \sum \text{current asset values}Then calculate the desired dollar value for each asset class:
\text{target dollar value} = \text{total value} \times \text{target weight}The trade amount is:
\text{trade amount} = \text{target dollar value} - \text{current dollar value}A positive amount means buy. A negative amount means sell.
Suppose a portfolio has a 60% stock target and a 40% bond target:
| Asset class | Current value | Target weight | Target value | Trade |
|---|---|---|---|---|
| Stocks | $72,000 | 60% | $66,000 | −$6,000 |
| Bonds | $38,000 | 40% | $44,000 | +$6,000 |
The current total is $110,000. Stocks currently represent 65.45% of the portfolio, while bonds represent 34.55%. To return fully to target, sell $6,000 of stocks and buy $6,000 of bonds.
def rebalance_trades(values, targets):
"""Positive means buy, negative means sell."""
total = sum(values.values())
trades = {
asset: targets[asset] * total - values[asset]
for asset in targets
}
if abs(sum(trades.values())) > 0.01:
raise ValueError("Trades must sum to approximately zero")
return trades
targets = {"stocks": 0.60, "bonds": 0.40}
values = {"stocks": 72000.0, "bonds": 38000.0}
print(rebalance_trades(values, targets))The result is {'stocks': -6000.0, 'bonds': 6000.0}. The trades sum to zero because this example uses exchanges within the portfolio and does not add or remove cash.
Trading to the band edge
A threshold rule does not always require returning to the exact target. It may require moving only to the edge of the permitted band.
Assume the stock target is 60% with an absolute band of 5 percentage points. The permitted stock range is 55% to 65%. With a portfolio value of $110,000, the upper edge equals:
110{,}000 \times 65\% = \$71{,}500The current stock value is $72,000, so selling $500 moves stocks to the upper edge. The $500 goes to bonds. This uses fewer trades than returning to the 60/40 target, but the portfolio remains at the edge of its allowed risk range.
A relative band is calculated differently. A 25% relative band around a 60% target allows drift of 15 percentage points, because \(25\% \times 60\% = 15\%\). The permitted range is therefore 45% to 75%. Always state whether a band is absolute or relative.
Cash flows and practical constraints
New contributions can reduce the need to sell. If bonds are underweight, direct a contribution toward bonds first. Withdrawals can come from an overweight asset class. This approach may reduce transaction costs and taxable sales.
However, cash flows do not always eliminate trading. A contribution might be too small to restore the target, or an account might contain restrictions, minimum trade sizes, or unavailable funds.
Before trading, account for:
- commissions, bid-ask spreads, and fund trading costs;
- taxes on realized capital gains in taxable accounts;
- settlement timing and available cash;
- whether the trade changes the portfolio’s overall risk;
- whether the chosen destination is the exact target or a band edge.
Exercise
A $50,000 portfolio has a target of 70% stocks and 30% bonds. Its current values are $38,000 in stocks and $12,000 in bonds. What trades return it to target?
Show answer
The target values are $35,000 in stocks and $15,000 in bonds. Sell $3,000 of stocks and buy $3,000 of bonds.