Bitcoin US$ 77,948Ethereum US$ 2,264EUR/USD 1.117GBP/USD 1.340USD/BRL 5.43Bitcoin US$ 77,948Ethereum US$ 2,264EUR/USD 1.117GBP/USD 1.340USD/BRL 5.43
Investing BasicsUpdated 2026-11-019 min read

Rebalance Index Funds Without a Surprise Tax Bill: 5 Ways

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
Quick answer: Do your rebalancing inside tax-advantaged accounts like a 401(k) or IRA first, because trades there do not create a tax bill. In a regular taxable account, steer new contributions and dividends toward the asset that fell behind instead of selling. If you must sell, pick shares held more than a year, use specific lot selection, and pair gains with losses.↗ Share on X

The easiest way to rebalance an index fund portfolio without triggering unnecessary tax bills is to do the selling inside accounts that are not taxed on trades, like a 401(k), traditional IRA, or Roth IRA, and to fix the imbalance in your regular brokerage account by adding new money instead of selling. When you truly must sell in a taxable account, sell shares you have held for more than a year, choose which specific shares go first, and use any investment losses to cancel out gains. Below are the five methods in the order most people should try them, plus a worked example.

*This article is general education, not personal tax or investment advice. Tax rules change and depend on your income, state, and accounts. For your own situation, talk with a tax professional or a fee-only financial planner.*

Why does rebalancing cause taxes in the first place?

READ ALSORetirement Savings Gap Before 40: The 4-Step Math to Check →First Brokerage Account: How to Open It and Skip Fees →Index Funds in a Roth IRA: How It Works and How to Start →

Say you want 70% stocks and 30% bonds. After a strong year for stocks, your mix drifts to 80/20. Rebalancing means getting back to 70/30.

The usual way is to sell some stock funds and buy bond funds. Here is the catch: in a regular taxable brokerage account, selling a fund for more than you paid creates a capital gain. That gain is income you report on your tax return.

So a sale is not always a big tax hit. But a careless sale, especially of shares bought recently, can cost you money you did not need to spend.

Clear money tips in your inbox. No hype.

Which accounts can I rebalance in tax-free?

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.

Trades inside these accounts do not create a tax bill at the time you make them:

Account typeTax on trades inside?Good place to rebalance?
401(k), 403(b), 457NoYes, often the best
Traditional IRANoYes
Roth IRANoYes
HSA (when invested)NoYes
Regular brokerage accountYes, on gains when you sellUse with care

Withdrawals from these accounts have their own rules, but buying and selling *inside* them is not a taxable event.

The key idea: look at all your accounts as one portfolio. You do not need every account to be 70/30. You need the total to be 70/30.

Method 1: Rebalance inside your retirement accounts

READ ALSOWhat Your Index Funds Really Cost: Expense Ratio Math →Why Your Index Fund Balance Changes Every Day (Simple Math) →How Much Should You Have Saved for Retirement by 30? →

This is the first move to try.

1. Add up the value of every investment account you have.

2. Calculate your current total stock and bond percentages.

3. Figure out how many dollars need to move to hit your target.

4. Make that move inside your 401(k) or IRA by exchanging one fund for another.

Example: your total portfolio is $100,000, split across a $60,000 401(k) and a $40,000 taxable account. You are at 80% stocks and want 70%. That means moving $10,000 from stocks to bonds. If your 401(k) holds at least $10,000 in a stock fund, you can switch $10,000 of it to a bond fund inside the 401(k). No sale in the taxable account. No capital gain.

Check two things first: that your 401(k) offers a decent bond or stable fund, and whether your plan limits how often you can trade.

Method 2: Point new money at the asset that fell behind

If you are still adding money, you may never need to sell at all.

This works slowly. It is best when the drift is small, say a few percentage points, or when you contribute regularly. A person adding $500 a month can close a $3,000 gap in about six months without a single sale.

Method 3: Sell the right shares, not just any shares

If you must sell in a taxable account, *which* shares you sell matters.

When you buy the same fund many times, each purchase is a separate tax lot with its own price and date. Most brokers let you pick which lots to sell, an option often called "specific identification" or "spec ID." Look in your account's cost basis settings.

Pick lots in this order, generally:

1. Lots that are at a loss (these reduce your taxes).

2. Lots held more than one year with the highest purchase price (smallest long-term gain).

3. Avoid lots held one year or less that have big gains.

Simple example: you own a stock index fund bought in three batches.

LotBoughtPrice per shareToday's priceGain per shareHolding
A4 years ago$60$100$40Long-term
B2 years ago$90$100$10Long-term
C6 months ago$95$100$5Short-term

Selling 100 shares from Lot A creates a $4,000 gain. Selling 100 shares from Lot B creates a $1,000 gain. Lot C has the smallest gain, but it is short-term, so it is taxed at your regular rate. Lot B is often the best choice here. If you just click "sell" and your broker uses "first in, first out," it may sell Lot A without asking.

Also, if you can wait a few weeks for a short-term lot to cross the one-year mark, the tax rate on that gain may drop.

Method 4: Use losses to cancel gains (tax-loss harvesting)

When a fund in your taxable account is worth less than you paid, selling it creates a capital loss. Losses offset gains. If losses are bigger than gains, you can generally use up to $3,000 per year against regular income and carry the rest to future years.

How it fits into rebalancing:

1. Find a fund in your taxable account that is down from your purchase price.

2. Sell it to lock in the loss.

3. Buy a similar but not "substantially identical" fund right away so you stay invested. For example, swap one total-market index fund for a fund that tracks a different but similar index.

4. Use that loss to cancel the gain from the sale you need for rebalancing.

Watch the wash sale rule. If you buy the same or a substantially identical investment within 30 days before or after selling at a loss, the loss is disallowed for now. This includes purchases in your IRA and automatic dividend reinvestments. What counts as "substantially identical" is not always clear, so ask a tax pro if you are unsure.

Method 5: Rebalance less often, with a rule

Many people rebalance too much. Every unnecessary sale in a taxable account is a chance for a tax bill and extra work.

Two common rules:

Many investors combine them: check once a year, act only if the band is broken. This keeps costs and taxes down while still controlling risk.

What about funds that rebalance themselves?

Target-date funds and balanced funds hold stocks and bonds in one fund and rebalance internally. You do not have to do anything. They fit very well inside a 401(k) or IRA.

In a taxable account, be careful: these funds may pass taxable distributions to you each year, and selling one to switch can trigger gains. Check the fund's past distributions before buying one in a taxable account.

Quick tax-smart rebalancing checklist

1. List every account and its value.

2. Calculate your total mix versus your target.

3. Is the drift bigger than your band? If not, stop here.

4. Move money inside 401(k), IRA, Roth, or HSA first.

5. Still off? Direct new contributions and dividends to the underweight fund.

6. Still off? Sell in taxable using specific lots: losses first, then long-term lots with the smallest gains.

7. Check for wash sale problems across all your accounts.

8. Save a record of what you sold and why.

When should I get professional help?

Talk to a tax professional or fee-only planner if any of these apply: you are close to a tax bracket edge, you have large unrealized gains, you receive income-based benefits or health insurance subsidies that a gain could affect, you hold company stock, or you are near retirement and planning withdrawals. A short paid consultation can cost less than one avoidable mistake.

Your next step

Log in to every investment account this week and write down three numbers for each: total value, dollars in stock funds, and dollars in bond funds. Add them up and compare to your target. Then, before selling anything in your taxable account, open your broker's cost basis settings and switch the default to specific lot identification so you control which shares go first.

FAQ

Does rebalancing in an IRA or 401(k) create taxes?

No. Buying and selling inside a 401(k), traditional IRA, Roth IRA, or invested HSA does not create a tax bill at the time of the trade. Withdrawals have their own rules.

How often should I rebalance my index funds?

Many investors check once a year and only act if an asset class drifts more than about 5 percentage points from target. Rebalancing too often adds work and, in taxable accounts, more chances for tax bills.

What is the wash sale rule?

If you sell an investment at a loss and buy the same or a substantially identical one within 30 days before or after, the loss is disallowed for now. Purchases in your IRA and automatic dividend reinvestments can count too.

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.