Skip to main content
Abacvia

Investing

Portfolio Rebalancing Calculator

Left alone, every portfolio drifts: winners swell past their target weight and quietly change your risk. Rebalancing reverses it — trim what grew, feed what lagged — but the hard part is never the arithmetic. It is the decisions around it: should you trade now or wait out the drift? Which account do you sell in? What will the taxman take? This calculator answers all of it. Enter each holding with its target weight, cost basis, and account type: you get every asset’s drift, which holdings breach your rebalancing band, the exact buy/sell list that lands you back on target — and two alternatives priced out alongside: what the sells would cost in tax, and how many months of contributions would restore the band with zero sells and zero tax instead.

Customize client report

Portfolio Rebalancing Calculator

Advisor or educator?

Embed this calculator on your own website — no signup.

Embed this calculator

How to use this calculator

  1. List each asset with its current market value — combine accounts if they hold the same fund, or keep them separate to mirror how you actually trade.

  2. Enter the target weight of each asset (they must add up to 100% — the running total keeps you honest, and Normalize rescales in one tap).

  3. Add the cost basis and account type for holdings you might sell. Sells inside tax-deferred or tax-free accounts realize nothing; taxable sells realize their pro-rata share of the gain.

  4. Set your rebalancing band (5 percentage points is the classic default) and pick a trade depth: all the way to target, halfway, or just to the band edge for the smallest honest trade list.

  5. Enter your contribution flow — one-time and monthly. The one-time cash goes to underweights before any selling; the monthly figure powers the no-sell timeline.

  6. Compare the three paths: trade today (with its tax bill), trade to the band edge, or ride contributions for N months at zero tax — then execute the one that fits.

The standard formula

portfolio-rebalancing-calculator
target value of asset i = total portfolio value × target weight i

The textbook rebalancing formula (Bogleheads wiki, Vanguard): each asset’s target dollar value is the portfolio total times its target weight. The rebalancing trade is simply the gap between that target value and the current value.

How the calculation works

portfolio-rebalancing-calculator
investable = current total + new contribution
drift i = current weight i − target weight i
trade i = target value i − (value i + contribution allocated to i)
realized gain i = sell amount i × (value i − basis i) / value i   (taxable rows)
est. tax = capital-gains rate × max(0, Σ realized gains)

Current drift is measured in percentage points against your current portfolio total, while target dollar values and post-rebalance weights include any one-time contribution (investable = current total + new contribution). Contributions are water-filled into underweight assets first (proportionally to their shortfall), which mathematically cannot overshoot. A taxable sell realizes its pro-rata share of the holding’s unrealized gain at your average basis; losses net against gains, exactly as they do on a tax return. The no-sell timeline replays the same water-fill month after month with prices frozen — a cash-flow plan, not a forecast.

Site-wide conventions and all calculator formulas — rounding policy, period conventions, and how every formula is verified.

Worked example

Input

A $200,000 portfolio that ran with stocks: US stocks $124,000 (62%, target 55%, $96,000 basis, taxable), international $40,000 (20%, target 20%, taxable), bonds $28,000 (14%, target 22%, in a 401(k)), REITs $8,000 (4%, target 3%, in a Roth) — with a ±5pp band, $500/month of new savings, and a 15% long-term rate.

Result

US stocks (+7.00pp) and bonds (−8.00pp) are outside the band, so rebalancing is due. The trade list: sell $14,000 of US stocks and $2,000 of REITs, buy $16,000 of bonds. The taxable stock sell realizes $3,161.29 of gains — about $474 of tax — while the Roth REIT sell and the 401(k) buy cost nothing. The alternative: 16 months of the $500 contribution, directed at underweights, restores the band with zero sells and zero tax.

Rebalancing methods compared

MethodWhen you tradeTypical cost profileChief drawback
Calendar (e.g. annual)On a fixed date, regardless of driftPredictable; easy to automateTrades when nothing is wrong, and skips big moves that happen mid-year
Threshold band (this tool)Only when an asset drifts past the band (±5pp default)Trades rarely, and only with a reasonRequires knowing current weights — which this calculator provides
Cash-flowContributions buy underweights; withdrawals trim overweightsOften zero sells — the cheapest in taxable accountsToo slow alone after large market moves; small contributions take years to fix big drift
Hybrid (recommended)Check on a calendar, trade only on band breaches; spend cash firstBest cost/benefit mix in practiceNeeds a tool to compute drift and the cash-first trade list — that is this page

Vanguard’s study of 1926–2018 US markets found monthly, quarterly, and annual monitoring all produced similar risk/return outcomes once a 5pp band was applied — the band matters more than the calendar. Within any method, the trade-depth choice (to target, halfway, or band edge) sets how much you pay in spreads and realized gains.

Assumptions and important notes

  • Weights are computed on the values you enter; the tool never estimates market movement between rebalances.
  • The band is absolute percentage points against target (the “5-point” half of the classic 5/25 rule); relative bands are not modeled.
  • One-time and monthly contributions are allocated to underweight assets in proportion to their dollar shortfall, capped at the shortfall — never into an overweight.
  • Band-edge mode trades each out-of-band asset only to its band boundary; when buys would exceed sells, buys are capped at what sells fund and the shortfall is reported for your next contribution.
  • The tax estimate uses average basis (not specific lots), a single long-term rate, no state tax, and no wash-sale adjustment; losses offset gains. Sells inside tax-deferred or tax-free accounts realize nothing.
  • The no-sell timeline freezes prices: it counts months of contributions until weights re-enter the band, making no return assumptions at all.
  • Trades under $1 are skipped as dust; the largest trade absorbs the rounding residual so total buys equal total sells exactly (in target and halfway modes).

Common mistakes

  • Reading a rebalance as a return boost — it is a risk-control move. Vanguard’s research finds rebalanced and never-rebalanced portfolios earn similar long-run returns; the difference is that one keeps its risk profile and the other does not.
  • Rebalancing every wiggle. An asset 1–2pp from target is noise; trading it just pays spreads and, in taxable accounts, realizes gains. The band exists precisely to keep you inactive until inactivity gets expensive.
  • Selling in a taxable account without checking the basis first. The same $14,000 sell can realize $3,161 of gains or harvest a loss depending on what you paid — and the same trade inside an IRA or Roth realizes nothing at all.
  • Ignoring the contribution path. If $500/month can restore your band in a year or two, the “cost” of not rebalancing is mostly patience — this tool prices that trade-off instead of assuming you must trade.
  • Forgetting the targets must sum to 100%. A policy that totals 97% silently parks 3% in cash — the running total under the asset table keeps you honest.

Frequently asked questions

How often should I rebalance my portfolio?

Check on a regular calendar — annually is the common default, quarterly at the most — but only trade when an asset has actually drifted past your band (5 percentage points is standard). Research on nearly a century of US markets (Vanguard, 1926–2018) found the monitoring frequency barely matters once a threshold is in place: annual checks with a ±5pp band capture nearly all the risk control at minimal cost.

Does rebalancing increase returns?

Not reliably, and that is not its job. Rebalancing mechanically trims winners and buys laggards, which helps in choppy, mean-reverting markets and drags in long bull markets. Its real, well-documented effect is holding your risk steady: a 60/40 portfolio left alone for a strong decade becomes an 80/20 portfolio with a stock-crash temperament. Treat it as risk control that happens to be disciplined, and you will not be disappointed by the return.

How is the tax estimate computed?

Each taxable sell is assumed to realize its pro-rata share of that holding’s unrealized gain: sell amount × (market value − cost basis) / market value. Gains are summed across taxable sells — losses offset gains, exactly like a tax return — and the positive remainder is taxed at your entered long-term rate. It is an estimate, not a filing: average basis rather than specific lots, no state tax, no wash-sale adjustment. Sells inside tax-deferred or tax-free accounts realize nothing.

What is the no-sell path?

Instead of trading, you direct every contribution to underweight assets and wait. The timeline replays that plan month by month with prices frozen — no return forecast, pure cash-flow arithmetic — and reports how many months until every weight re-enters the band. If the answer is a year or two, the honest comparison is: trade today and pay the estimated tax, or wait and pay nothing. Large drift after a big market move may still warrant trading; small drift rarely does.

What rebalancing band should I use?

5 percentage points absolute is the standard default for major asset classes. The classic refinement is the “5/25 rule”: rebalance when an asset drifts 5pp absolute (for large allocations) or 25% relative (for small ones — a 4% target triggers at 3% or 5%). Tighter bands trade more and cost more; wider bands let risk build. This tool uses an absolute band you set.

Why did an asset inside my band still get a trade?

In “all the way to target” mode, once any breach triggers a rebalance the standard practice restores every asset to its exact target, including small drifters, because you are already paying attention. Prefer minimal trades? Band-edge mode touches only what breached the band, and halfway mode corrects half of each drift — both are one click away.

How do I rebalance without triggering taxes?

Spend cash before you sell, and mind the account. Direct new contributions and dividends to underweight assets (enter them here to see that plan), take rebalancing withdrawals from overweights, and do any remaining selling inside tax-advantaged accounts like a 401(k) or IRA — the account column shows which of your sells realize nothing. In taxable accounts, selling overweights realizes gains; halfway or band-edge modes cut how much you realize.

Does this calculator store my portfolio?

No. All arithmetic runs in your browser on every keystroke; nothing you type is uploaded. Saved scenarios and reports stay in your browser’s local storage unless you explicitly sync them from a signed-in device.

Sources

The claims on this page are backed by these official sources:

  1. Vanguard — Best practices for portfolio rebalancing — the risk-control (not return-boosting) framing, the annual/±5pp band findings from 1926–2018 US market data, and the tax-aware trading guidance.
  2. Fidelity — A guide to portfolio rebalancing — the calendar vs. threshold vs. cash-flow method comparison and the contribution-first practice in taxable accounts.