The tax implications of portfolio rebalancing come down to a single rule: every sale you make in a taxable account is a separate taxable event, even if you immediately reinvest the proceeds to hit your target allocation. The IRS calculates a gain or loss on each trade based on how long you held the position and what you paid for it, and it expects you to report the result that year.1Office of the Law Revision Counsel. 26 U.S. Code 1001 – Determination of Amount of and Recognition of Gain or Loss There is no “rebalancing exemption.” But several choices — which lots you sell, whether you pair gains with losses, which accounts you trade in — can meaningfully cut the bill.
Why Every Rebalancing Trade Is Taxed
Federal tax law treats each sale of an investment as a realization event. Sell a fund or stock that has gained value and the difference between your sale price and your original cost is a realized capital gain, taxable that year regardless of what you do with the money afterward. A sale at a loss works in reverse and can offset gains elsewhere on your return.
This is the core tension of rebalancing in a taxable account. Your portfolio drifted because some holdings outperformed, which means selling back to target usually means selling winners and locking in gains. Each trade stands on its own.
Short-Term vs. Long-Term Rates
The rate on your gains depends on how long you held each position before selling. Federal law draws a hard line at one year.2Office of the Law Revision Counsel. 26 U.S. Code 1222 – Other Terms Relating to Capital Gains and Losses
- Positions held one year or less generate short-term gains, taxed at your ordinary income rate — anywhere from 10% to 37%.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses
- Positions held more than one year generate long-term gains, taxed at 0%, 15%, or 20% depending on your income and filing status.
For 2026, the long-term brackets break down as follows:4Tax Foundation. 2026 Tax Brackets and Federal Income Tax Rates
- 0% rate: taxable income up to $49,450 (single), $98,900 (married filing jointly), or $66,200 (head of household).
- 15% rate: taxable income above those thresholds up to $545,500 (single), $613,700 (married filing jointly), or $579,600 (head of household).
- 20% rate: taxable income above the 15% ceilings.
If you can avoid selling positions held less than a year, you cut the rate on those gains roughly in half for most filers. When rebalancing, start with the longest-held lots.
The 3.8% Net Investment Income Tax
Higher earners face an extra layer. The Net Investment Income Tax adds 3.8% on top of regular capital gains rates once your modified adjusted gross income crosses a fixed statutory threshold that does not adjust for inflation:5Office of the Law Revision Counsel. 26 U.S.C. 1411 – Imposition of Tax
- Single or head of household: $200,000
- Married filing jointly: $250,000
- Married filing separately: $125,000
The tax applies to the lesser of your net investment income or the amount by which your income exceeds the threshold. A large rebalance can push you across the line, especially if you were already close. For someone in the 20% long-term bracket who also owes the NIIT, the effective federal rate on long-term gains reaches 23.8%. You report it on Form 8960.6Internal Revenue Service. Instructions for Form 8960
Pair Sales With Losses
The most effective way to reduce the tax cost of rebalancing is to sell losers at the same time you sell winners. Realized losses offset realized gains dollar-for-dollar in a set order: short-term losses cancel short-term gains first, then long-term losses cancel long-term gains, and any excess of one type spills over to the other.
Prioritizing short-term losses tends to save the most, because those losses absorb gains that would otherwise be taxed at ordinary income rates. If total losses exceed total gains for the year, you can deduct up to $3,000 of the excess against ordinary income ($1,500 if married filing separately). Anything beyond that carries forward to future years indefinitely.
A well-timed rebalance can leave you neutral. If your portfolio contains both appreciated and depreciated positions, selling both simultaneously realigns your allocation while the losses absorb some or all of the gains. The net tax hit could be zero.
The Wash Sale Rule
Harvesting losses during a rebalance runs into one of the trickiest rules in the code. Sell a security at a loss and buy a “substantially identical” security within 30 days before or after the sale — a 61-day window — and the IRS disallows the loss.7Office of the Law Revision Counsel. 26 U.S.C. 1091 – Loss From Wash Sales of Stock or Securities This trips up rebalancers constantly, because maintaining your allocation often means buying back something very similar to what you just sold.
When a wash sale triggers, the disallowed loss is added to the cost basis of the replacement shares. The loss isn’t gone forever; it’s deferred until you sell those replacement shares. A deferred loss is worth less than an immediate one, so the timing still matters.
The IRA Trap
The rule gets much worse when an IRA is involved. Under Revenue Ruling 2008-5, if you sell a security at a loss in a taxable account and buy the same or substantially identical security in your IRA within the 61-day window, the loss is disallowed permanently.8Internal Revenue Service. Revenue Ruling 2008-5 – Section 1091, Loss From Wash Sales of Stock or Securities Your IRA basis does not increase to absorb it. The deduction simply disappears.
Cross-Account and Spousal Purchases
The wash sale rule applies across all your accounts — every brokerage, every platform, every account under your tax ID. Brokers only report wash sales within a single account on Form 1099-B, so you are responsible for identifying and reporting violations that span multiple accounts on Form 8949. Purchases by your spouse also trigger the rule, so household coordination matters.
Working Around It
The common workaround is to replace a sold position with a similar but not “substantially identical” security. Selling one S&P 500 index fund and buying a different total-market index fund from another provider maintains broad equity exposure without triggering a wash sale. The IRS has never published a bright-line definition of “substantially identical,” so the further apart two securities are in structure and holdings, the safer you are.
Rebalance Inside Retirement Accounts
The simplest way to avoid rebalancing taxes altogether is to do the trades inside a tax-advantaged retirement account. Sales within a traditional 401(k) or traditional IRA create no taxable event at the time of the trade. The account is exempt at the trust level, and gains are not recognized until you take distributions, at which point everything comes out as ordinary income.9Office of the Law Revision Counsel. 26 U.S.C. 402 – Taxability of Beneficiary of Employees Trust
Roth IRAs go further. Rebalancing inside a Roth is tax-free, and qualified distributions — generally those taken after age 59½ and at least five years after your first Roth contribution — are excluded from gross income entirely.10Office of the Law Revision Counsel. 26 U.S.C. 408A – Roth IRAs If you hold assets in both taxable and tax-advantaged accounts, concentrating your rebalancing trades in the retirement accounts is the single easiest tax-reduction move available.
Mutual Funds Add a Hidden Tax
Holding mutual funds in a taxable account creates a tax issue that individual stocks and ETFs don’t have: the fund itself can generate capital gains distributions even if you never sell a share. When a fund manager sells holdings inside the fund to rebalance the portfolio or meet redemptions, the realized gains pass through to shareholders as taxable distributions. The IRS treats these as long-term capital gains regardless of how long you personally held the fund shares.11Internal Revenue Service. Mutual Funds (Costs, Distributions, etc.) 4
ETFs largely avoid this. Their structure allows shares to be created and redeemed “in kind,” swapping baskets of securities rather than selling them, so the fund rarely triggers internal gains. For taxable-account investors who rebalance regularly, using ETFs instead of equivalent mutual funds reduces the annual tax drag, and the difference compounds over time.
Pick Your Cost Basis Method Before You Sell
When you sell only part of a position, the cost basis method determines which specific shares are treated as sold, and that directly changes your gain or loss. The default at most brokerages is first-in, first-out.12Internal Revenue Service. Publication 551, Basis of Assets In a rising market, the oldest shares usually carry the largest gains, so FIFO tends to maximize the tax bill.
You generally have the option to use specific identification instead, choosing exactly which tax lots to sell. That lets you pick higher-cost lots to shrink the gain, or select lots held longer than a year to lock in the lower long-term rate. For mutual fund shares, you can also elect an average cost method.
You must choose your method before the trade settles and keep consistent records. On any meaningful rebalance in a taxable account, switching from FIFO to specific identification can produce real savings on a single trade.
Estimated Tax on a Large Gain
A big rebalance can create a tax bill that catches you off guard in April. If the gains are large enough, you may need to make estimated payments during the year to avoid an underpayment penalty. The IRS generally expects estimated payments if you’ll owe $1,000 or more after subtracting withholding and refundable credits.13Internal Revenue Service. Topic No. 306, Penalty for Underpayment of Estimated Tax
You avoid the penalty if your total withholding and estimated payments cover at least 90% of your current-year tax or 100% of last year’s tax (110% if your AGI exceeded $150,000).14Internal Revenue Service. Large Gains, Lump Sum Distributions, Etc. For a one-time spike in income, the IRS allows you to annualize your income and make a larger estimated payment only in the quarter you realized the gain rather than spreading payments evenly. Use the Annualized Estimated Tax Worksheet in Publication 505 and attach Form 2210 with Schedule AI when you file.
Another option is to bump up your W-2 withholding for the rest of the year. The IRS treats withholding as paid evenly throughout the year even if it all lands in December, which is a convenient way to cover a mid-year gain without filing quarterly vouchers.
Reporting the Trades
Your brokerage sends Form 1099-B summarizing every sale in your taxable accounts, including acquisition date, sale date, proceeds, and cost basis.15Internal Revenue Service. About Form 1099-B, Proceeds From Broker and Barter Exchange Transactions If you used specific identification or need to record adjustments the broker doesn’t see, such as wash sales across accounts, the 1099-B figures may not match what you report.
You list each transaction on Form 8949, separating short-term and long-term sales into different sections. That’s where you reconcile the 1099-B numbers with any adjustments, including disallowed wash sale losses or corrected basis.16Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets Form 8949 totals flow to Schedule D of Form 1040, which produces your net capital gain or loss for the year.17Internal Revenue Service. About Schedule D (Form 1040), Capital Gains and Losses
If a rebalance generated dozens of transactions, the volume alone raises the odds of an error. The IRS matches your return against the 1099-B data from your broker and issues a notice when the numbers don’t line up. Keep every trade confirmation and every cost basis record, especially for cross-account wash sale adjustments, because brokers do not track those for you.