Free portfolio rebalancing calculator

Portfolio Rebalancing Calculator: The Trades That Get You Back on Target

To rebalance, work out what each holding should be worth at your target mix and trade the difference. A $100,000 portfolio that has drifted to 70% stocks and 30% bonds against a 60/40 target needs $10,000 moved from stocks to bonds. If you'd rather not sell, $16,667 of new money into bonds gets you to the same 60/40.

Buy and sell, or new cash only 5-point and 5/25 band check 23 years of 60/40 rebalancing tested

Your holdings

Targets add up to 100%
New cash
How to get there
Lands exactly on target.
Holdings outside the band get a dot in the table.
To get back on target
Sell $9,000, buy $9,000
Total stays at $100,000.
    Biggest drift+8.0 ptsUS stocks, 68.0% against 60%
    Furthest after0.0 ptsfrom target, once the trades are done

    Your mix now and after the trades

    Each bar is the whole portfolio. The ticks mark your targets.

    HoldingNowTargetDriftTradeAfter

    How the trades are worked out

    The same $100,000 at 70% stocks and 30% bonds, brought back to 60/40 two ways.

    Buy and sell

    Trade each holding to its target value

    Target value = target % × (total + new cash)
    Trade = target value − value now
    Stocks: 60% × $100,000 − $70,000 = −$10,000
    Bonds: 40% × $100,000 − $30,000 = +$10,000
    Now
    70%30%
    After
    60%40%

    Every holding lands exactly on target and the total doesn't change. The cost is a sale: in a taxable account, the $10,000 of stocks you sell can carry a capital gain.

    Buy only

    Grow what's under target until the mix fits

    Stocks stay at $70,000 = 60% of the new total
    New total = $70,000 / 0.6 = $116,667
    Bonds: 40% × $116,667 − $30,000 = +$16,667
    Now
    70%30%
    +$16,667
    60%$30,000new

    Nothing is sold, so there is no gain to tax. With less cash than that, the calculator puts it where the mix is furthest below target: $5,000 into bonds here gets you to 66.7/33.3, part of the way back.

    What 23 years of rebalancing did to a 60/40 portfolio

    $100,000 put 60% into an S&P 500 fund and 40% into a US bond fund on 3 October 2003, dividends reinvested, followed week by week to 16 October 2026. Left alone, then rebalanced on four different rules.

    Share in stocks, 2003 to 2026

    • Left alone
    • Rebalanced once a year
    • 5-point band
    • 55% to 65%
    RuleWorth on 16 Oct 2026A yearWorst fallStocks rangedRebalancesSold to rebalance
    Left aloneNever rebalanced$752,8959.16%-34.4%47.0% to 89.8%0$0
    Once a yearBack to 60/40 every 52 weeks$594,0118.04%-32.4%45.3% to 67.4%23$188,650
    Every quarterEvery 13 weeks$595,0068.05%-34.1%50.0% to 63.3%92$310,497
    Every monthEvery 4 weeks$600,8678.10%-34.4%52.7% to 63.0%300$578,762
    5-point bandOnly when stocks leave 55% to 65%; the 5/25 rule gives the same here$621,7038.26%-34.4%52.7% to 65.4%16$220,286

    Leaving it alone made the most money, $158,884 more than rebalancing once a year, because stocks beat bonds by a wide margin over these 23 years. It also stopped being a 60/40 portfolio: by October 2026 it was 89.6% stocks. The four rebalancing rules ended within 0.22 points a year of each other, and the band got there with 16 rebalances against the monthly rule's 300.

    The 2008 fall, run on today's mix

    Why the extra $158,884 is less than it looks

    From the week of 12 October 2007 to the week of 6 March 2009, the S&P 500 fund fell 54.6% with dividends and the bond fund gained 8.1%. The same moves applied to both portfolios as they stand now:

    Left alone, 89.6% stocks-48.1%$752,895 would fall to $390,933
    Yearly, 60.2% stocks-29.6%$594,011 would fall to $417,989

    One bad stretch and the portfolio that was never rebalanced ends up with less. That's what rebalancing buys: the risk you chose when you picked 60/40, not a higher return.

    Why the rules ended so close

    Frequency barely changed the result

    Yearly, quarterly and monthly rebalancing ended within $6,856 of each other on $100,000. What changed was the work: 300 rebalances and $578,762 sold (and bought back in the other fund) for the monthly rule, against 23 and $188,650 for the yearly one.

    The band made 16 trips, each one only after the mix had really moved. Four bought stocks after a fall: October and November 2008, the week of the March 2009 low and March 2020. The other twelve trimmed stocks as they climbed back to 65%.

    When to rebalance: three rules that work

    Pick one you'll follow. Check the mix on a set date and trade only when it's outside your band, and you get most of the benefit with the fewest trades.

    On a calendar

    Back to target on the same date every year, whatever has happened. Easy to remember and to put in a diary. It trades even when the mix has barely moved, and it can let a big move sit for months.

    Yearly on the 60/40: 23 rebalances, stocks between 45.3% and 67.4%

    On a band

    Trade only when a holding is more than a set distance from target, usually 5 percentage points. A 60% target trades at 55% or 65%. It needs a look at the mix now and then, monthly or quarterly is enough.

    5-point band on the 60/40: 16 rebalances, stocks between 52.7% and 65.4%

    The 5/25 rule

    A band that scales with the holding: trade at 5 points or 25% of the target, whichever comes first. A 10% gold slice trades at 7.5% or 12.5%, a 60% stock slice at 55% or 65%. Useful when you hold a few small slices.

    On a 60/40 it's the same as the 5-point band

    Rebalancing without selling: new money, dividends and withdrawals

    Every deposit, dividend and withdrawal is a trade you were going to make anyway. Point it at the right holding and the mix corrects itself without any extra trades.

    Monthly contributions

    About 17 months of $1,000

    The 70/30 portfolio above needs $16,667 into bonds to get back to 60/40 without a sale. Adding $1,000 a month, all of it to bonds, that's about 17 months if prices stood still. Prices don't stand still, so run the calculator in buy-only mode each time you add money: it shows where this month's cash should go.

    Dividends and bond interest work the same way. Taking them as cash and putting them where the mix is short, instead of reinvesting each in the fund that paid it, nudges the mix back every quarter.

    Withdrawals

    Sell what's over target first

    When you take money out, choose Withdraw and Sell only in the calculator. It sells anything with a 0% target first, then the holdings furthest over in percent of their own target, so the withdrawal itself does the rebalancing; a withdrawal bigger than the overweight part trims the rest in line with your targets. Taking $10,000 from the 70/30 portfolio, all of it from stocks, leaves $60,000 and $30,000: 66.7/33.3, closer to 60/40 without a single buy.

    In retirement this is often the only rebalancing you need. Spend from whatever has grown the most.

    Taxes when you sell to rebalance

    A sale at a gain in a taxable account is a taxable event. Inside a tax-sheltered account it isn't, which is why that's the place to make the trades when you can.

    United StatesNo tax on trades inside an IRA, Roth IRA or 401(k). In a taxable account, gains on holdings kept more than a year get the lower long-term rates.
    United KingdomNo capital gains tax inside an ISA or SIPP. Outside, a sale and a buy-back of the same shares within 30 days are matched together.
    CanadaNo tax on trades inside a TFSA or RRSP. In a taxable account, the gain is the price less your adjusted cost base.

    Which lots go. In a US taxable account you can choose the lots you sell, so start with those showing a loss or the smallest gain. Canada uses your average cost, and the UK uses its matching rules, so there you don't get to pick.

    Losses. A loss taken while rebalancing can offset gains elsewhere. In the US the wash sale rule cancels it if you buy the same or a substantially identical security within 30 days before or after the sale. Canada's superficial loss rule is similar: it applies when you, or someone affiliated with you, buy the same property in the 30 days either side and still own it 30 days after the sale.

    Where you hold the same mix across several accounts, place the sells in the sheltered ones and the buys wherever there's cash.

    The realized gains calculator shows what a sale would realize, lot by lot, and the tax-loss harvesting guide covers selling at a loss on purpose.

    For the portfolio you actually hold

    Your real drift and the trades to fix it, across every account

    Set a target for each asset class, or for the subcategories inside it, and AllInvestView shows how far each one has drifted from live prices. Ask for a rebalance and it lists the buys and sells, with or without selling, for a deposit or a withdrawal, and can estimate the tax on each sell from your own capital gains rules. Combine portfolios from several brokers and one set of targets covers them all.

    Open rebalancing
    AllInvestView AllInvestView rebalancing page for a four-ETF demo portfolio. Allocation breakdown: US Stocks 68.0% against a 60% target, Bonds 16.0% against 15%, International Stocks 12.0% against 20%, Real Estate 4.0% against 5%. Recommendations: sell 8,038.87 USD of US Stocks, buy 8,011.73 USD of International Stocks, buy 1,033.12 USD of Real Estate and sell 1,005.97 USD of Bonds, each landing on its target, with an estimated tax of about 528.59 USD and 5.26 USD on the two sells at a 15% long-term rate AllInvestView rebalancing page for a four-ETF demo portfolio. Allocation breakdown: US Stocks 68.0% against a 60% target, Bonds 16.0% against 15%, International Stocks 12.0% against 20%, Real Estate 4.0% against 5%. Recommendations: sell 8,038.87 USD of US Stocks, buy 8,011.73 USD of International Stocks, buy 1,033.12 USD of Real Estate and sell 1,005.97 USD of Bonds, each landing on its target, with an estimated tax of about 528.59 USD and 5.26 USD on the two sells at a 15% long-term rate
    A four-ETF portfolio that drifted to 68/16/12/4 against targets of 60/15/20/5: the drift on each asset class, then four trades that put every one back on target, with the estimated tax on the two sells. Demo portfolio; the allocation and recommendation cards of the same page stacked into one image.View full-size View full-size
    Rebalancing the portfolio you have

    Skip the typing next time

    This calculator works on the numbers you type in. AllInvestView already has them: the holdings from every broker you sync or import, the drift from your targets, and the trades whenever you ask.

    Targets by asset class or subcategory Every account in one allocation Free for up to 10 holdings

    Portfolio rebalancing questions

    How often should you rebalance your portfolio?

    Once a year, or when a holding drifts about 5 percentage points from its target, is plenty for most people. A 60/40 mix of an S&P 500 fund and a US bond fund from October 2003 to October 2026 made 8.04% a year rebalanced yearly, 8.05% quarterly, 8.10% monthly and 8.26% with a 5-point band. The returns were close; the work wasn't: 23 rebalances a year apart, 92 quarterly, 300 monthly and 16 with the band.

    Does rebalancing improve returns?

    Not when one asset keeps winning. The same 60/40 left alone made 9.16% a year against 8.04% rebalanced yearly, but by October 2026 it was 89.6% stocks, a much riskier portfolio than the one chosen. Run the 2008 fall on both today and the drifted one would drop about 48% and the 60/40 about 30%, ending with less money than the rebalanced one. Rebalancing keeps the risk you picked; it isn't a way to earn more.

    What is the 5/25 rule for rebalancing?

    Rebalance when a holding drifts 5 percentage points from its target, or 25% of its target, whichever comes first. A 60% target triggers at 55% or 65%. A 10% target triggers at 7.5% or 12.5%, because 25% of 10 is 2.5 points. The rule keeps small holdings from doubling before you notice. Pick it in the calculator's band setting to see which holdings are outside.

    How do I rebalance without selling?

    Put new money and dividends into whatever is below target. Taking a $100,000 portfolio from 70/30 back to 60/40 this way takes $16,667 of new money, all of it in bonds: about 17 months of $1,000 contributions if prices stood still. The calculator's buy-only mode works out where each dollar should go, starting with the holding furthest short in percent of its own target.

    Does rebalancing trigger taxes?

    Selling at a gain in a taxable account does; trades inside a tax-sheltered account such as a US IRA or 401(k), a UK ISA or SIPP, or a Canadian TFSA or RRSP don't. In a taxable account, rebalance with new money where you can. In the US you can also pick which lots to sell, starting with losses or the smallest gains; a gain on something held over a year is taxed at the lower long-term rates, and the wash sale rule disallows a loss if you buy a substantially identical holding in the 30 days either side of the sale.

    Should I rebalance by asset class or by individual fund?

    By asset class for most people: stocks, bonds, cash and anything else you hold, with each fund counted in its class. Set targets for single funds only when each fund is its own slice, as in a three-fund portfolio. Count every account together too. A household with an IRA, a taxable account and a 401(k) has one allocation, and you can place the trades in whichever account costs the least tax.

    Sources and how the numbers were worked out

    The study uses weekly closing prices in US dollars of SPY (S&P 500) and AGG (US bonds) from 3 October 2003, AGG's first full week, to 16 October 2026, with dividends reinvested at the close of the week they went ex-dividend, before tax, and no trading costs. The fund prices include each fund's own fees. Calendar rules rebalance in the first week after 52, 13 or 4 weeks have passed since the last rebalance; the band rule checks every week. Worst fall is the largest drop from a weekly high. The 2008 run applies the two funds' returns over that stretch to each portfolio's mix on 16 October 2026. The calculator rounds trades to whole units of your currency. Checked on 23 October 2026; past returns don't tell you future ones.