Portfolio Rebalancing Calculator

Enter what each sleeve of your portfolio is worth and what you want it to be worth, and this calculator returns the exact dollar trade for every holding, the drift of each one against its target, and how many sleeves have broken your tolerance band. It also solves the harder question most tools skip: how much new cash you would need to restore the target allocation by buying only, so you never have to realise a taxable gain to fix an allocation.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
US equity valueCurrent market value of the first sleeve, from your latest statement.68000 $
US equity target weightThe policy weight you want this sleeve to hold.45 %
International equity valueCurrent market value of the second sleeve.22000 $
International equity target weightThe policy weight you want this sleeve to hold.20 %
Bond valueCurrent market value of the third sleeve.35000 $
Bond target weightThe policy weight you want this sleeve to hold.30 %
Cash & other valueCurrent market value of the fourth sleeve; set it to zero if you only hold three.5000 $
Cash & other target weightThe policy weight you want this sleeve to hold; the four weights should total 100%.5 %
New cash to investMoney you are adding now; it is included in the totals and used for the buy-only plan.0 $
Drift toleranceHow far a sleeve may stray from its target in percentage points before you act.5 pp

It returns

  • Total dollars to trade — The sum of every buy and every sell needed to restore the targets exactly.
  • Portfolio value after adding cash
  • Largest drift from target
  • Sleeves outside the tolerance band
  • Cash needed to rebalance without selling — Total new money that would bring every sleeve to target using purchases only.

The formula

Ti=wi(jVj+C)Vi
C*=maxiViwijVj

In plain text: Trade_i = w_i × (ΣV + C) − V_i; drift_i = V_i/ΣV − w_i

  • T_iDollar trade in sleeve i; negative is a sale ($)
  • w_iTarget weight of sleeve i, rescaled so the weights total 1 (decimal)
  • V_iCurrent market value of sleeve i ($)
  • CNew cash being added ($)
  • ΣVTotal current portfolio value before new cash ($)

Drift is measured before the new cash arrives, so it reflects market movement rather than the size of your deposit. Because the trades are defined against a common total, they always sum to exactly the new cash: ΣT_i = C.

Updated Category Contributions, SIPs & Portfolio Rebalancing Verified against published test cases Reading time 11 min

What rebalancing actually does to a portfolio

Rebalancing is the act of restoring your policy weights after markets have changed them for you. If you set 45% US equity and equities outrun bonds for two years, you now own more equity risk than you chose. Rebalancing sells a slice of what rose and buys what lagged, which returns the portfolio to the risk level your plan was built on.

The primary purpose is risk control, not return enhancement. A portfolio left alone for a long stretch of rising equity markets ends up dominated by equities, and the drawdown it experiences in the next bear market is the one you never agreed to. Whether rebalancing adds return depends entirely on whether asset classes mean-revert over your holding period, which is not something you can count on; whether it controls risk is arithmetic.

The calculator does three separate jobs. It measures drift, the gap in percentage points between each sleeve's current weight and its target. It computes the trades that close that gap exactly. And it solves the buy-only problem: the amount of new cash that would restore every target without a single sale, which matters enormously in a taxable account where a sale is a taxable event.

The three formulas, and why the trades always sum to your new cash

Current weight is each sleeve divided by the total: Vi ÷ ΣV. Drift is that weight minus the target weight, quoted in percentage points. A sleeve at 52.31% against a 45% target has drifted +7.31 pp. Percentage points are the right unit here; saying it has drifted “16%” (its relative overshoot) is a different measurement, and confusing the two is the most common error in rebalancing discussions.

The trade is the target value minus the current value: Ti = wi(ΣV + C) − Vi. Negative means sell, positive means buy. Because every target value is a share of the same total, the trades sum to Σwi(ΣV + C) − ΣVi = (ΣV + C) − ΣV = C. With no new cash they sum to zero, which is why the buys exactly fund themselves from the sells. That identity is the arithmetic check to run on any rebalancing plan.

The buy-only cash requirement is less obvious. If you may not sell, then no sleeve's value can fall, so the final portfolio total L must be large enough that every sleeve's current value already fits inside its target share: Vi ≤ wiL for all i. The smallest L that satisfies all four constraints is L = max(Vi ÷ wi), set by whichever sleeve is most overweight relative to its target. The cash you need is that L minus what you already have.

When your cash is less than that requirement, the calculator water-fills: it raises every underweight sleeve toward a common fill level until the cash runs out, so the most underweight sleeve is served first. That is the allocation that minimises the worst remaining shortfall, and it is what an advisor does by hand when a contribution lands mid-quarter.

Worked example: a $130,000 portfolio 7.3 points overweight in US equity

Take the calculator's defaults: US equity $68,000, international equity $22,000, bonds $35,000, cash $5,000, against targets of 45/20/30/5.

  1. Total the portfolio. 68,000 + 22,000 + 35,000 + 5,000 = $130,000.
  2. Find the current weights. 68,000 ÷ 130,000 = 52.3077%; 22,000 ÷ 130,000 = 16.9231%; 35,000 ÷ 130,000 = 26.9231%; 5,000 ÷ 130,000 = 3.8462%.
  3. Measure the drift. 52.3077 − 45 = +7.3077 pp; 16.9231 − 20 = −3.0769; 26.9231 − 30 = −3.0769; 3.8462 − 5 = −1.1538. The four drifts sum to zero, as they must.
  4. Compute the target values. 0.45 × 130,000 = $58,500; 0.20 × 130,000 = $26,000; 0.30 × 130,000 = $39,000; 0.05 × 130,000 = $6,500.
  5. Take the differences. Sell $9,500 of US equity; buy $4,000 international, $4,000 bonds and $1,500 cash. The three buys total $9,500, matching the sale exactly.
  6. Total the turnover. 9,500 + 4,000 + 4,000 + 1,500 = $19,000 changes hands, 14.6% of the portfolio.
  7. Price the buy-only alternative. The binding constraint is US equity: 68,000 ÷ 0.45 = $151,111.11. Subtract the current $130,000 and you need $21,111.11 of new money to reach every target without selling anything.

That last figure is the one worth staring at. Fixing a 7.31 point drift with trades costs $19,000 of turnover and, in a taxable account, a realised gain on the $9,500 sale. Fixing it with contributions costs no tax at all but requires $21,111.11 — 16.2% of the portfolio — which is why buy-only rebalancing works well early in an accumulation phase and stops being practical once the portfolio is large relative to your annual savings.

How wide should your tolerance band be?

Two policies are in common use and both are defensible. Calendar rebalancing means trading on a fixed schedule — annually is the usual choice — regardless of drift. It is simple, it is easy to automate, and it guarantees you will sometimes trade when nothing needed fixing.

Band rebalancing means trading only when a sleeve breaches a tolerance. The widely used version is the 5/25 rule: act when a sleeve moves 5 absolute percentage points from target, or 25% of its own target weight, whichever is smaller. The two triggers cross over at a 20% target weight, because 25% of 20 is exactly 5. Above 20% the absolute rule binds; below it the relative rule binds, which is what stops a 5% satellite position from being allowed to double before anyone notices.

A narrow band controls risk more tightly and costs more in trading and tax. A wide band does the reverse. In a tax-deferred account where trades are free, a tight band is close to costless and there is little reason not to use one. In a taxable account, every sale of an appreciated position triggers a bill, so the sensible order of operations is: direct new contributions to the underweight sleeves first, then use dividends and interest, then let the band do its work, and only sell when nothing else closes the gap. Feed any sale you do make through the capital gains tax calculator before you place it.

Read the drift signs together rather than one at a time. Because the four weights must sum to 100%, an overweight in one sleeve is necessarily an underweight somewhere else. In the worked example a single +7.31 point overweight is spread across three underweights of 3.08, 3.08 and 1.15 points, none of which breaches a 5-point band on its own. A band policy applied sleeve by sleeve therefore fires on the overweight and stays silent on the underweights, which is the correct behaviour: fixing the one triggers the others automatically.

Where the 5/25 rule triggers, by target weight

The 5/25 rule fires at whichever threshold is smaller: 5 absolute percentage points, or 25% of the sleeve's own target weight.
Target weightAbsolute triggerRelative trigger (25%)Which one bindsActs at a weight of
5%5.00 pp1.25 ppRelative3.75% or 6.25%
10%5.00 pp2.50 ppRelative7.50% or 12.50%
15%5.00 pp3.75 ppRelative11.25% or 18.75%
20%5.00 pp5.00 ppIdentical15.00% or 25.00%
30%5.00 pp7.50 ppAbsolute25.00% or 35.00%
45%5.00 pp11.25 ppAbsolute40.00% or 50.00%
60%5.00 pp15.00 ppAbsolute55.00% or 65.00%

The crossover sits at a 20% target because 0.25 × 20 = 5. This calculator applies a single absolute band; set it to 0.25 × your smallest target weight if you want the relative rule to govern a small satellite sleeve.

Mistakes that make a rebalancing plan wrong

  • Rebalancing account by account instead of across the whole portfolio. Your asset allocation is a property of everything you own. Rebalance at the household level and place each asset class in whichever account taxes it most lightly.
  • Confusing percentage points with percent. A sleeve at 52.31% against a 45% target has drifted 7.31 percentage points, which is a 16.2% relative overshoot. Bands are quoted in different units by different sources, so check which one you are reading.
  • Selling appreciated positions in a taxable account first. Exhaust new cash, dividends and interest before you sell. The buy-only figure above tells you how far that route can take you.
  • Rebalancing too often. Every trade has a cost, and drift within your band is not a problem — it is the tolerance working as designed.
  • Ignoring wash-sale rules when harvesting losses at the same time. Buying a substantially identical security within the 30-day window on either side of a loss sale disallows the loss.
  • Treating a target weight as a forecast. The weights encode the risk you chose, not a view about which asset class will win next year. Changing them because one sleeve is doing well is not rebalancing; it is a strategy change wearing a rebalancing costume.

Rebalancing inside a larger plan

Rebalancing sits between two other decisions. Above it is the allocation itself — the target weights, which should come from your horizon and your capacity to tolerate a drawdown, not from recent performance. Below it is the mechanics of getting money in, which for most people is a monthly contribution: if that contribution is directed at whichever sleeve is furthest below target, the portfolio largely rebalances itself for years. The SIP calculator and the dollar-cost averaging calculator model the contribution side.

As a portfolio grows, the balance of power shifts. Early on, contributions dwarf drift and buy-only rebalancing handles everything. Later, a single year's market move can be larger than a year's savings, and trading becomes unavoidable. The buy-only cash figure above is the exact point at which that transition happens for your portfolio: when it exceeds what you can realistically add, you are in the trading regime.

In retirement the same machinery runs in reverse. Withdrawals are the natural rebalancing tool: take the money from whichever sleeve is most overweight and the allocation is maintained at zero extra cost. That is a free improvement over selling proportionally, and it pairs directly with the spending framework in the safe withdrawal rate calculator and the target set by the FIRE number calculator. If you are adding to a single position rather than an asset class, the average down calculator handles the cost-basis side of the same problem.

Frequently asked questions

How often should I rebalance?

Once a year is enough for most portfolios, checked against a tolerance band so that a quiet year needs no trade at all. Checking more often than quarterly rarely changes the risk profile materially and does add cost. What matters far more than the frequency is having a written rule you actually follow, because the moment rebalancing becomes discretionary it stops happening precisely when it is most needed.

Does rebalancing improve returns?

Not reliably. Its dependable benefit is risk control: it keeps the portfolio at the volatility you signed up for instead of drifting toward whichever asset class has run hardest. Any return benefit depends on asset classes mean-reverting over your holding period, and over a long stretch of equities outperforming bonds, rebalancing will have cost you return while it was reducing your risk. Judge it on the risk side.

Can I rebalance without selling anything?

Yes, if you have enough new money. The requirement is max(Vi ÷ wi) − ΣV, set by whichever sleeve is furthest overweight relative to its target. In the default example that is $21,111.11 against a $130,000 portfolio. If your cash falls short, the calculator's buy-only column allocates what you have to the most underweight sleeves first, which shrinks the drift without triggering any tax.

What tolerance band should I use?

The 5/25 rule is a sound default: act at 5 absolute percentage points, or 25% of the sleeve's own target weight, whichever is smaller. That means 5 points for a 30% bond sleeve but only 1.25 points for a 5% satellite. This calculator applies one absolute band to all four sleeves, so if you hold a small position, set the band to 0.25 times that sleeve's target weight to reproduce the relative rule.

Why do my drift figures sum to zero?

Because current weights sum to 100% and target weights sum to 100%, so their differences must cancel. This is a useful check on your inputs: if the drift column does not sum to zero, either a holding value is missing or the target weights do not total 100%. When they do not, the calculator rescales them proportionally and says so, so the plan still adds up.

Should I include my emergency fund in the allocation?

Only if you genuinely treat it as part of the invested portfolio. Most people are better off keeping it outside, because otherwise a market fall makes the cash sleeve look overweight and the rebalancing rule tells you to invest your emergency reserve at exactly the wrong moment. Decide once, write it down, and be consistent between the numerator and denominator of every weight you calculate.

What about tax when I rebalance a taxable account?

Every sale of an appreciated position realises a gain, and the holding period determines the rate. The order that minimises the bill is: new contributions first, then dividends and interest redirected rather than reinvested in place, then sales of positions with losses or minimal gains, and only then appreciated shares. Rebalancing inside a tax-deferred account costs nothing, so do as much of the work there as your allocation allows.

How much turnover is normal for an annual rebalance?

In the worked example, $19,000 on a $130,000 portfolio is 14.6% turnover, which is on the high side because the equity sleeve had drifted more than seven points. A portfolio rebalanced annually with a 5-point band typically trades a low single-digit percentage of its value in most years and nothing at all in quiet ones. If yours needs double-digit turnover every year, the band is probably too tight for the volatility of your allocation.

References