Tax-Efficient Portfolio Rebalancing: Lots, Losses, and Locations

The most tax-efficient portfolio rebalancing strategies share one goal: get your allocation back on target while realizing as little capital gain as possible. That usually means steering new money toward underweight holdings, doing your buying and selling inside retirement accounts where trades aren’t taxed, and, when a sale in a taxable account is unavoidable, picking the exact shares you sell and pairing the gain with a loss or a charitable gift. Depending on your income and holding period, a careless sale can be taxed anywhere from 0% to 23.8%, so the method matters as much as the trade itself.

Why the Tax Cost of a Sale Varies So Much

Every sale of an appreciated security in a taxable brokerage account produces a capital gain. Shares held one year or less are taxed at ordinary income rates. Shares held longer than a year qualify for long-term rates of 0%, 15%, or 20% depending on taxable income.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses

For 2026, single filers with taxable income up to $49,450 pay 0% on long-term gains. The 15% rate runs from $49,451 to $545,500, and 20% applies above that. Married couples filing jointly get roughly double those thresholds: 0% up to $98,900, 15% up to $613,700, and 20% above. A rebalancing sale sized to land inside the 0% bracket can carry no federal tax at all.

High earners face an additional 3.8% net investment income tax on capital gains once modified adjusted gross income exceeds $200,000 single or $250,000 married filing jointly.2Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax That’s what pushes the top effective rate on long-term gains to 23.8%.

Rebalance With New Money Before You Sell Anything

The cheapest rebalancing trade is the one you don’t make. When cash comes into the portfolio — payroll deferrals, bonus deposits, savings transfers — direct all of it into whichever asset classes have drifted below target. Your overweight positions stay untouched, no gain is realized, and the allocation drifts back on its own.

Dividends and interest work the same way. Most brokerages default to automatic reinvestment into the same fund that paid the distribution, which quietly reinforces existing drift. Turning that off frees the cash to be redeployed where you actually need it. On a $500,000 portfolio yielding 2%, that’s roughly $10,000 a year of redirection with no taxable sale.

This approach handles routine maintenance well. It won’t correct a portfolio that’s 15 percentage points off target, but it can keep drift from ever getting that far.

Do the Selling Inside a Retirement Account

Trades inside a 401(k), 403(b), or IRA don’t generate a taxable capital gain when they happen. The trust holding the assets is exempt from income tax under federal law, so buying and selling within the account is invisible to the IRS until you take a distribution.3Office of the Law Revision Counsel. 26 USC 501 – Exemption From Tax on Corporations, Certain Trusts, Etc. That makes retirement accounts the natural place to do the actual trading.

If you hold both taxable and tax-advantaged accounts, treat them as one combined allocation rather than trying to hit the target in each one separately. Say your goal is 60% stocks and 40% bonds overall. You can overweight bonds inside the IRA and overweight stocks in the taxable account, then handle almost all rebalancing trades inside the IRA. The combined allocation still lands where you want it, but the turnover happens where it costs nothing.

Asset Location Cuts Every Future Rebalance

The same idea extends to where you hold each type of investment in the first place. Tax-inefficient holdings — bonds, REITs, actively managed funds that distribute short-term gains — belong in tax-advantaged accounts, where those annual distributions aren’t taxed. Broad index funds and long-term stock positions, which produce fewer taxable events on their own, belong in taxable accounts. Getting placement right at the start makes every rebalance afterward cheaper.

Pick the Exact Shares You Sell

When a sale in a taxable account is unavoidable, the shares you sell drive the tax bill. If you don’t tell your broker which specific shares to sell, the default is first-in, first-out — your oldest shares go first.4Internal Revenue Service. Publication 551, Basis of Assets In a market that has generally risen, those oldest shares carry the largest gains, which makes FIFO the worst default for anyone trying to minimize taxes.

Better options are available if you elect specific identification with your broker before the trade:

  • Highest-cost first (HIFO) sells shares with the largest purchase price first, producing the smallest gain or the biggest loss. It’s usually the most tax-efficient method for reducing a current-year bill.
  • Last-in, first-out sells the most recently purchased shares first. In a rising market that typically means a smaller gain than FIFO, but if the shares are less than a year old you’ll pay short-term rates, which can wipe out the savings.
  • Specific lot selection lets you handpick which shares to sell. You can choose a high-basis lot to minimize gain, a lot held over a year to qualify for long-term rates, or a losing lot to harvest the loss.

The choice can swing the tax on a single rebalancing trade by thousands of dollars. Set your preferred method with your broker before you need it; changing it after a sale is generally not allowed for that transaction.5Office of the Law Revision Counsel. 26 USC 1012 – Basis of Property-Cost

Pair Gains With Harvested Losses

Before selling an appreciated position in a taxable account, scan the rest of the portfolio for holdings trading below your cost basis. Capital losses offset capital gains dollar for dollar. A $10,000 gain on one fund and a $10,000 loss on another in the same year nets to zero taxable gain.6Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses

If losses exceed gains, you can deduct up to $3,000 of the excess against ordinary income ($1,500 if married filing separately). Anything unused carries forward indefinitely, keeping its short-term or long-term character.7Office of the Law Revision Counsel. 26 USC 1212 – Capital Loss Carrybacks and Carryovers Carried-forward losses become a bank of future offsets, available the next time you need to rebalance.

The Wash Sale Rule

The main constraint on loss harvesting is the wash sale rule. If you sell a security at a loss and buy back a “substantially identical” security within 30 days before or after the sale, the loss is disallowed.8Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The disallowed amount is added to the basis of the replacement shares, so it’s deferred rather than lost, but it doesn’t help the current year’s return.

To stay invested in the same asset class while harvesting a loss, replace the sold fund with a similar but not substantially identical alternative. Selling an S&P 500 index fund and buying a total stock market fund is a common approach, since they track different benchmarks and hold different numbers of stocks. The IRS hasn’t drawn a bright line for mutual funds, but funds tracking the same index are generally treated as substantially identical, while funds with different benchmarks and different managers generally are not.

Donate Appreciated Shares Instead of Selling Them

For the charitably inclined, an overweight position can be trimmed without a sale at all. Donating appreciated shares directly to a qualified charity skips the capital gains tax you’d owe on a sale and lets you deduct the full fair market value, up to 30% of adjusted gross income for the year, with a five-year carryforward for anything above that limit.9Office of the Law Revision Counsel. 26 USC 170 – Charitable, Etc., Contributions and Gifts The shares must have been held longer than one year to qualify for the full fair market value deduction.

Starting in 2026, the One Big Beautiful Bill Act introduced a 0.5% AGI floor on charitable deductions for itemizers. Only the portion of total charitable contributions exceeding 0.5% of AGI is deductible. For someone with $500,000 in AGI, the first $2,500 of donations produces no tax benefit. The strategy still works — donating a $50,000 block of appreciated stock avoids the capital gains tax and generates a substantial deduction — but the net benefit on smaller gifts is slightly reduced.

Qualified Charitable Distributions From IRAs

If you’re 70½ or older and your traditional IRA has grown overweight relative to your other accounts, a qualified charitable distribution can move up to $111,000 in 2026 directly from the IRA to a qualified charity. The transfer satisfies your required minimum distribution, shrinks the IRA balance, and is excluded from taxable income entirely. QCDs are unaffected by the OBBBA floor and work whether or not you itemize.

Reporting the Sales You Do Make

Every sale in a taxable account has to be reported, gain or loss. Your broker sends Form 1099-B listing the proceeds, cost basis, and holding period for each transaction.10Internal Revenue Service. About Form 1099-B, Proceeds From Broker and Barter Exchange Transactions That information moves to Form 8949, which reconciles your records against what the IRS received, and the totals flow to Schedule D on your Form 1040.11Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets

Check the cost basis column on the 1099-B carefully. Brokers are only required to report basis for shares purchased after specific dates (2011 for most stocks, 2012 for mutual funds), so older positions may show no basis at all. If you don’t correct that on your return, the IRS treats the entire sale as gain. Keep your own records of purchase dates and prices for anything acquired before those cutoffs.

Failing to report capital gains can trigger the accuracy-related penalty of 20% of the underpaid tax, on top of the tax itself and interest.12Internal Revenue Service. Accuracy-Related Penalty The penalty applies when the understatement exceeds the greater of 10% of the correct tax liability or $5,000. Since the IRS receives a copy of every 1099-B your broker files, unreported sales are among the easiest discrepancies to catch. Report everything, including wash sale adjustments and lot-level basis differences.