Finance 100 #34 · Investing View source on GitHub

Portfolio Rebalancer

Exact buy and sell orders to hit your target allocation, or a no-sell plan using new cash only.

Your holdings

Units and price as of today, and the share of the portfolio you want in each fund. Targets should add up to 100%.

The plan

Results

Trades

Weight now and after trades

How it works

The total is your current holdings plus new cash. Each holding's target value is target % x total. The gap is that target minus the current value: a positive gap means underweight, a negative gap means overweight.

Full rebalance sells overweight holdings first, then uses the cash from those sales and any new cash to buy underweight holdings, starting with the largest drift.

New cash only never sells. New cash goes to the most underweight holding first, then the next, until the cash runs out. It is slower to correct large drifts but triggers no sales.

With whole units on, sells round up, so the proceeds cover the buys, and buys round down. Each holding lands within one unit of its target, and any cash left over is shown separately.

Limits: prices are the figures you enter, not live quotes. Trades ignore commissions, bid-ask spreads and tax on gains in non-registered accounts. Selling inside a taxable account may trigger capital gains, so check the ACB before you sell.