Bitcoin US$ 82,953Ethereum US$ 2,487EUR/USD 1.119GBP/USD 1.325USD/BRL 5.02Bitcoin US$ 82,953Ethereum US$ 2,487EUR/USD 1.119GBP/USD 1.325USD/BRL 5.02
Investing BasicsUpdated 2026-10-148 min read

Rebalance Your Index Funds Without Creating a Tax Bill

Michael Chen
Michael Chen writes about personal finance fundamentals. Bay Area-based · finance enthusiast for 15 years.
Visual representation of the voice · not a photographic portrait
Share𝕏✆f
Rebalance inside your IRA or 401(k), steer new money and dividends to the lagging fund, and sell the right lots.…
Quick answer: Rebalancing is never penalized; the only cost is capital gains tax when you sell at a profit in a taxable account. Rebalance inside IRAs and 401(k)s first, send new money and dividends to the underweight fund, and if you must sell, choose high-cost-basis lots held over a year.↗ Share on X

You can rebalance an index fund portfolio without a tax bill in most cases by doing three things: rebalance inside your retirement accounts (IRA, 401(k)) where trades are not taxed, send new money and dividends to the fund that is underweight, and only sell in a taxable account when you are far off target, starting with shares that have little or no gain. Rebalancing itself never causes a "penalty." What it can cause is capital gains tax, and only when you sell at a profit in a regular brokerage account.

Below is the step-by-step order to follow, a table that shows which moves are taxed, and the mistakes that cost people money.

What does "rebalancing" actually mean?

READ ALSOSelling Index Funds? How Capital Gains Tax Is Calculated →Index Fund vs Mutual Fund: What a Beginner Should Compare →Move Stocks to a New Brokerage Without Selling: ACATS Steps →

Say you decided on a mix of 70% stocks and 30% bonds. After a good year for stocks, your mix drifts to 80% stocks and 20% bonds. You now hold more risk than you planned.

Rebalancing means moving the mix back to 70/30. The classic way is to sell some of the stock fund and buy more of the bond fund. That classic way is also the one that can trigger taxes.

The good news: selling is only one of several ways to rebalance, and usually not the best first move.

Clear money tips in your inbox. No hype.

When does rebalancing cost you taxes?

RECOMMENDEDUltimate Dynamic Personal Budget in Google Sheets (FinSavvyDesigns) → — A fully dynamic budget planner in Google Sheets to track income, expenses, and savings with an interactive dashboard.

Affiliate link. We may earn a commission on purchases, at no extra cost to you.

This content is informational and is not investment advice or financial consulting.

It depends on the type of account, not on the fund.

Where you rebalanceIs selling taxed?Notes
Traditional IRA or 401(k)NoTrades inside the account are not taxed. Tax comes later, when you withdraw.
Roth IRA or Roth 401(k)NoTrades inside are not taxed. Qualified withdrawals are tax-free.
HSA (invested)NoTrades inside are not taxed.
Regular (taxable) brokerageYes, if you sell at a gainGains are taxed as capital gains. Losses can lower your tax.

Two terms you need:

About the word "penalty": a 10% early-withdrawal penalty can apply when you take money out of a retirement account before age 59½, with some exceptions. Moving money between funds inside the account is not a withdrawal. So rebalancing inside an IRA or 401(k) does not trigger that penalty.

What order should you follow to avoid a tax bill?

READ ALSOAccumulating vs Distributing Index Funds: Which to Pick →How to Calculate Dividend Yield on Index Funds, Step by Step →Invest $100 a Month in Index Funds: A Stress-Free Setup →

Work through these steps in order. Stop as soon as your mix is back on target.

1. Rebalance inside tax-advantaged accounts first

Look at all your accounts as one portfolio. If you have stocks and bonds in both a 401(k) and a taxable account, do the selling and buying inside the 401(k) or IRA.

Example: your total portfolio is $100,000. You want $30,000 in bonds but have $20,000. Inside your 401(k), sell $10,000 of the stock index fund and buy $10,000 of the bond index fund. No tax. Your taxable account stays untouched.

2. Point new money at the underweight fund

Every new deposit is a chance to rebalance for free. If bonds are below target, send your next contributions to the bond fund until the gap closes.

This works best for people still adding money every month. A $500 monthly contribution sent entirely to the underweight fund can close a small gap over several months without a single sale.

3. Turn off automatic dividend reinvestment

By default, many brokers reinvest dividends back into the same fund. Instead, set dividends to land as cash. Then use that cash to buy the underweight fund.

Note: dividends are taxed in the year you receive them whether you reinvest them or not. This step does not reduce that tax. It just stops you from buying more of what you already have too much of.

4. Use a band instead of a calendar

Many people rebalance on a fixed date. A calmer approach is a band: only act when a fund drifts more than a set amount from target, such as 5 percentage points.

With a 70/30 target and a 5-point band, you would act only if stocks rise above 75% or fall below 65%. Small drifts get fixed by new money and dividends. You sell less often, so you trigger fewer taxable gains.

5. If you must sell, pick the right shares

When you bought a fund at different times, each purchase is a "lot" with its own price. The price you paid is your cost basis. Your gain is the sale price minus the cost basis.

Most brokers let you choose which lots to sell. Look for the setting called "specific identification" or a lot-selection option such as "highest cost first."

6. Use losses carefully

Selling a fund at a loss is called tax-loss harvesting. The loss can cancel out gains. If losses are bigger than gains, up to $3,000 per year can reduce your ordinary income, and the rest carries forward to future years.

Watch the wash sale rule: if you buy the same or a "substantially identical" investment during the 30 days before or the 30 days after the sale, the loss is disallowed for now. Buying a similar but not identical fund is a common workaround, but whether two funds count as "substantially identical" is a question to confirm with a tax professional.

What does a full example look like?

Maria has $200,000 and a 60/40 target (60% stocks, 40% bonds).

AccountStock fundBond fundTotal
401(k)$70,000$30,000$100,000
Taxable brokerage$72,000$28,000$100,000
Total$142,000 (71%)$58,000 (29%)$200,000

Target: $120,000 stocks and $80,000 bonds. She needs to move $22,000 from stocks to bonds.

1. Inside the 401(k), she sells $22,000 of the stock fund and buys $22,000 of the bond fund.

2. New totals: $120,000 stocks (60%) and $80,000 bonds (40%).

3. Taxable account: no trades. Tax bill from rebalancing: $0.

If her 401(k) had been too small to absorb the whole move, she would have filled the rest with new contributions and dividends first, and only then sold high-basis lots in the taxable account.

What mistakes create surprise tax bills?

1. Rebalancing each account separately. Treating every account as its own 70/30 forces sales in the taxable one. Look at the total.

2. Letting the broker pick lots. The default is often "first in, first out," which sells your oldest shares. Those often carry the biggest gains.

3. Selling shares held one year or less. Short-term gains are taxed at higher rates. Check the purchase date before you sell.

4. Ignoring year-end fund distributions. Some funds pay out capital gains near the end of the year. Buying right before that payout means you owe tax on a distribution you barely benefited from. Check the fund's posted distribution dates.

5. Rebalancing too often. Frequent trades in a taxable account mean frequent taxable events.

When should you talk to a professional?

Talk to a CPA, enrolled agent or fee-only financial planner if:

Tax rules change, and your income, state and account mix all affect the answer. Nobody can promise a specific tax result.

*Disclaimer: this article is for general information only and does not replace advice from a licensed tax or financial professional.*

Your next step this week

1. List every account you own and the dollar value of each fund in it.

2. Add the totals and compare your real mix with your target mix.

3. If you are within 5 points of target, do nothing except send new money to the underweight side.

4. If you are further off, make the trades inside your IRA or 401(k) first.

5. Log in to your taxable broker and switch the lot-selection method from the default to specific identification, so you are ready the day you do need to sell.

Write down the date you checked and your current mix. Next time, you will only need to compare two numbers.

FAQ

Clear money tips in your inbox. No hype.

Share𝕏✆f

Educational content, not personalized financial advice. Sources cited where applicable.

Clear money tips in your inbox. No hype.