MoneyFinancial Math

Portfolio
rebalancer.

Rebalancing a portfolio means trading back to the mix you chose, ideally at low cost.

Before you rely on this result.This is an estimate for planning. Banks, lenders and other providers apply their own rules, fees and rounding, so confirm figures with them before you commit to a financial decision. The trade list is arithmetic for the targets you enter, not advice about which investments or allocation suit you. Sources used on this page.

How it's worked out

The SEC's guide to asset allocation lists three ways to rebalance: sell what is overweight and buy what is underweight, add new money to what is underweight, or steer your regular contributions there. These trades use the first two. Drift comes first, because it tells you whether to act at all.

drifti\displaystyle \text{drift}_i=vi∑v×100−ti\displaystyle {}= \frac{v_i}{\sum v} \times 100 - t_i

Here v is the value of a holding and t is its target percentage, so drift is in percentage points. It uses what you hold now, without any new cash. A deposit therefore cannot make every holding look underweight.

A full rebalance puts every holding on its target share of the new total, where C is any new cash:

tradei\displaystyle \text{trade}_i=ti100×(∑v+C)−vi\displaystyle {}= \frac{t_i}{100} \times \left(\sum v + C\right) - v_i

A cash-only plan sells nothing. It lifts the underweight holdings to the same fraction of their targets, using all of the cash, so the biggest gaps fill first. If you ask how much cash would finish the job, the most overweight holding sets the answer, because nothing can be sold:

Cneeded\displaystyle C_{\text{needed}}=maxi⁡100viti−∑v\displaystyle {}= \max_i \frac{100\,v_i}{t_i} - \sum v

Your band decides whether a full rebalance runs. If no holding is outside it, the plan leaves the holdings alone and only invests any new cash.

Worked examples

Ana after a strong year for stocks

Ana chose 60% stocks and 40% bonds. With $70,000 and $30,000, she sits at 70.0% and 30.0%, which is 10 points over on stocks. A full rebalance sells $10,000 of stocks and buys the same amount of bonds.

That sale could cost her tax if it is in a taxable account. Her stocks cost $40,000 in total, so $4,285.71 of the sale is gain at average cost. At a 15% rate, the tax is $642.86.

New money avoids the sale. Getting all the way back takes $16,666.67, because $70,000 of stocks must become 60% of a larger total. Less cash still helps, as the table shows.

New cash only, all of it going to bonds
New cashStocks afterBonds after
$070.0%30.0%
$5,00066.7%33.3%
$10,00063.6%36.4%
$16,66760.0%40.0%
$20,00060.0%40.0%

Open this example in the tool

Ben checks a three-fund portfolio

Ben holds $25,000, $12,000, $8,000 against targets of 50%, 30%, 20%. His US fund is 5.56 points over target, so a 5-point band says to act. The trades sell $2,500 of it and buy $1,500 of the international fund and $1,000 of bonds.

A wider band of 6 points gives no trades at all, which shows how much the choice matters. His next $2,000 deposit, sent with no sale, adds $1,200 and $800 to the two lagging funds. Closing every gap with cash alone takes $5,000.

Open this example in the tool

Chloe has a small holding far from target

Chloe holds four funds worth $200,000. Her largest drift is only 3 points, so a 5-point band calls for no trades. Yet her small-cap fund is at 13.0% against a 10% target, which is 30% above where she meant it to be.

A relative test catches that. Under the 5/25 rule, the band for this fund is 2.5 points, from 7.5% to 12.5%. Her $26,000 is outside it, while the other three funds are inside theirs. A full rebalance at that tighter band sells $6,000 of the small-cap fund and buys $2,000 of US stocks and $4,000 of international stocks.

Open this example in the tool

Reading your result

Largest drift tells you the size of the problem. Ana's 10 points means $10,000 is in the wrong place on a $100,000 portfolio. In her case, that extra stock is the risk she never meant to take.

Pick your trigger before you look. The SEC describes two: a calendar, such as every six or twelve months, or a percentage you set in advance. It also says that rebalancing generally works best when done infrequently. A band suits you if you can check it often; a calendar is easier to keep. A narrow band means more trades, and a wide one lets the risk drift further.

Look at relative drift on small holdings. Larry Swedroe's 5/25 rule acts only when a holding moves more than 5 points or 25% of its target, whichever is less. A 10% target has a range of 7.5% to 12.5%. It is one investor's rule of thumb and not a standard.

Compare the tax to the risk you are fixing. Trades inside a traditional IRA are not taxed, since amounts in the account are generally not taxed until you withdraw them. In a taxable account, IRS Topic 409 sets long-term gains at 0%, 15% or 20% for tax year 2025. The 0% rate runs to $48,350 of taxable income for a single filer and $96,700 for joint filers. Selling something held one year or less is a short-term gain instead.

Common mistakes

  • Treating each account as its own portfolio. Your target applies to everything together. You can often rebalance by trading inside a retirement account and leaving a taxable one alone. Add up your holdings across accounts before you decide.
  • Measuring drift after adding the deposit. A deposit is not yet invested, so counting it makes every holding look underweight. Drift here uses current holdings only.
  • Confusing points with percent. A fund 2 points off a 50% target is 4% off, while 2 points off a 5% target is 40% off. Use relative drift for small positions.
  • Selling before you check the holding period. A sale at one year or less counts as short term. A short wait can change the tax, so look at the purchase dates first.
  • Forgetting costs. The SEC warns that a method can trigger transaction fees or tax. A very small trade can cost more than the drift it fixes. These trade amounts include no costs, and they assume you can buy fractional shares, so round to whole shares if your broker needs that.

Questions people ask

Send new money and dividends to what is low before you sell anything, and do any selling inside tax-advantaged accounts. On Ana's portfolio that takes $16,666.67 of new cash to replace a $10,000 sale. If you must sell, sell the shares with the smallest gain or any at a loss. IRS Topic 409 lets losses offset gains, plus up to $3,000 of other income in tax year 2025, or $1,500 if married filing separately.

Sources