Tax gain harvesting is the practice of intentionally selling appreciated investments to realize a long-term capital gain while your taxable income is low enough to tax that gain at the 0% federal long-term rate, then repurchasing the same security to reset your cost basis higher. It is the mirror image of tax-loss harvesting, and for 2026 the 0% long-term rate applies to taxable income up to $98,900 for married-filing-jointly filers (Source: IRS Rev. Proc. 2025-32).
Tax gain harvesting means selling appreciated assets held longer than one year to realize gains at the 0% long-term capital gains rate, which for tax year 2026 covers taxable income up to $98,900 (married filing jointly) or $49,450 (single) (Source: IRS Rev. Proc. 2025-32). Because the wash-sale rule applies only to losses, the security can be repurchased immediately to step up basis.
What tax gain harvesting is
Tax gain harvesting is the deliberate sale of an appreciated, long-term holding to realize a capital gain in a year when that gain can be taxed at a 0% or otherwise low federal long-term rate. The investor then typically buys the same security back, resetting the cost basis to the higher current price. It is the inverse of tax-loss harvesting, which realizes losses to offset gains (Source: IRS Topic 409; IRS Pub 550).
Talk With Craig Wear's Team
Craig has helped IRA millionaires save over $1 million each in unnecessary taxes. Find out if a Roth conversion strategy fits your retirement, with no sales pressure and no product pitch.
The strategy only reaches its full benefit on long-term gains. The IRS treats a gain as long-term when the asset was held more than one year before disposal, and only long-term gains qualify for the preferential 0%/15%/20% rates (Source: IRS Topic 409, 2025). Short-term gains are taxed at ordinary income rates, so harvesting them offers no rate advantage.
Tax gain harvesting is a recognized use of the ordinary rules that govern capital gains and cost basis; it uses no special election or loophole, only the timing of a sale (Source: IRS Topic 409; IRS Pub 550).
How tax gain harvesting works mechanically
The mechanics are short: sell an appreciated long-term holding, realize the gain in a low-income year so it is taxed at 0% or 15%, and repurchase the identical security the same day if you want to stay invested. The repurchase resets cost basis to the new, higher price, which permanently lowers the gain that could later be taxed at 15% or 20% (Source: IRS Pub 550).
- Confirm the lot has been held more than one year, so the gain is long-term (Source: IRS Topic 409).
- Estimate your full-year taxable income, ideally late in the year (October to December) once income is known.
- Sell enough of the appreciated position to fill the room remaining in the 0% bracket without spilling into the 15% band.
- Repurchase the same security immediately if continued exposure is desired; there is no waiting period on gains.
- Report the sale on Form 8949 and Schedule D for that tax year.
Why the wash-sale rule does not apply
The wash-sale rule does not restrict tax gain harvesting because it is triggered only by a sale “at a loss.” IRS Pub 550 defines a wash sale as selling “stock or securities at a loss” and buying substantially identical securities within 30 days before or after (Source: IRS Pub 550, 2025). There is no parallel rule for gains under IRC Sec. 1091, so an investor harvesting a gain can repurchase the same security instantly with no 30-day wait.
Where it can be used
Tax gain harvesting operates only in taxable brokerage accounts, because those are the accounts where realizing a gain is a taxable event and where cost basis matters. Tax-deferred and tax-free accounts (traditional 401(k), traditional IRA, Roth IRA, and similar) do not track capital gains at the lot level, so selling inside them produces no harvestable gain (Source: IRS Topic 409; IRS Pub 550).
The 2026 0% capital gains bracket, with sources
For tax year 2026 the 0% long-term capital gains rate applies to taxable income at or below $98,900 (married filing jointly and surviving spouses) and $49,450 (single and married filing separately), per IRS Rev. Proc. 2025-32. In that revenue procedure, single and head-of-household filers are grouped as “All Other Individuals” at the same $49,450 zero-rate ceiling. Because 2025 head-of-household guidance listed a higher figure, the final 2026 head-of-household treatment should be confirmed against updated IRS Topic 409 (Source: IRS Rev. Proc. 2025-32; IRS Topic 409, 2025).
| Filing status (2026) | 0% rate ceiling (taxable income) | Top of 15% rate |
|---|---|---|
| Married filing jointly / surviving spouse | $98,900 | $613,700 |
| Single | $49,450 | $545,500 |
| Married filing separately | $49,450 | $306,850 |
| Head of household | $49,450 (per Rev. Proc.; confirm vs. Topic 409) | $545,500 |
| Estates and trusts | $3,300 | $16,250 |
Source: IRS Rev. Proc. 2025-32, 2026 maximum capital gains rate amounts. Rates above the 15% ceiling are taxed at 20%.
The standard deduction stacks on top
Those ceilings are measured in taxable income, which is gross income after deductions, so the standard deduction effectively raises the gross income that can still fit the 0% bracket. For 2026 the standard deduction is $32,200 (married filing jointly), $16,100 (single and married filing separately), and $24,150 (head of household) (Source: IRS Rev. Proc. 2025-32; IRS 2026 inflation-adjustment release).
As an illustration, a married couple taking the $32,200 standard deduction could have roughly $131,100 of gross income before capital gains begin to leave the 0% bracket ($98,900 ceiling plus $32,200). This combined figure is a derived example for explanation, not an IRS-published number, and it changes with any other income or deductions.
How the stacking math actually works
Ordinary income fills the bracket first, and long-term capital gains stack on top of it. That ordering means a single harvest can be partly 0% and partly 15%: gains fill the space between your ordinary taxable income and the zero-rate ceiling at 0%, and any excess above the ceiling is taxed at 15% (Source: IRS Topic 409).
Consider a married couple in 2026 with $60,000 of ordinary taxable income after their standard deduction. The 0% ceiling is $98,900, so about $38,900 of long-term gain can stack on top at 0%. If they realize $50,000 of gain, roughly $38,900 is taxed at 0% and about $11,100 crosses into the 15% band (Source: IRS Rev. Proc. 2025-32; IRS Topic 409). This is why partial harvests are common near the ceiling.
A subtle trap sits at the edge: if extra income also raises ordinary taxable income (for example a bonus or a Roth conversion), each added dollar of ordinary income both fills bracket space and pushes gains upward, so a dollar of new ordinary income can cause a dollar of previously 0% gain to be taxed at 15%. This “bump zone” is a reason harvesting decisions are often made after year-end income is largely known.
When tax gain harvesting can make sense
Tax gain harvesting tends to be discussed for years when taxable income is temporarily low, so gains can be realized at 0% or 15% rather than a higher future rate. Commonly cited scenarios include the gap years between retirement and the start of required minimum distributions, a sabbatical or job change, a low-income business year, or an expectation of higher income or higher rates later (Source: IRS Topic 409; general planning literature).
The benefit is framed as lifetime tax minimization rather than current-year savings. Resetting basis higher can permanently reduce a gain otherwise taxed at 15% or 20%, and low-basis lots can also feed charitable-gift and step-up-at-death planning (Source: IRS Pub 550). Harvested gains may also be paired against realized capital losses and loss carryforwards, though only up to $3,000 of net capital loss can offset ordinary income in a year (Source: IRS Pub 550).
Coordinating with Roth conversions
Both a Roth conversion and gain harvesting compete for the same scarce resource: taxable income below a chosen ceiling in low-income years. A Roth conversion adds fully to ordinary income, filling the ordinary brackets first and reducing the room left for 0%-rate gains, so the two are often modeled together against one bracket ceiling (Source: IRS Pub 590-B; IRS Topic 409). See our Roth conversion research for context.
The costs competitors leave out
A gain taxed at 0% federally is not always free. Four second-order costs frequently go unmodeled, and any of them can turn a “tax-free” harvest into a net cost depending on circumstances.
State capital gains tax. The federal 0% bracket does not exempt state income tax. Many states tax capital gains as ordinary income, so a harvest that costs $0 federally can still trigger a state bill in a high-tax state. State treatment varies widely and should be checked against your own state’s rules.
MAGI cliffs. Realized gains raise modified adjusted gross income, which can push a household across hard thresholds. Medicare’s income-related monthly adjustment amount (IRMAA) is a cliff: one dollar over a tier jumps the whole surcharge. For 2026, joint filers at or below $218,000 MAGI pay the base Part B premium, while $218,001 to $274,000 adds $284.10 per month per person (Source: SSA POMS HI 01101.020, 2026). See our 2026 IRMAA guide.
Stacked drag. A large harvest can simultaneously add to net investment income (raising exposure to the net investment income tax), increase the share of Social Security benefits that is taxable (the Social Security tax torpedo), and raise MAGI enough to reduce ACA premium subsidies. These can overlap in the same year, which is the practical reason harvests near income thresholds warrant modeling.
Work with Q3 Advisors
Q3 Advisors is a registered investment adviser focused on retirement tax planning. This article is educational and is not advice; for guidance on your own circumstances, consult a qualified tax or financial professional.
Frequently asked questions
What is tax-gain harvesting?
Tax-gain harvesting is intentionally selling appreciated assets held more than one year to realize a long-term capital gain at a low or 0% federal rate, then optionally repurchasing the same security to reset cost basis higher. It is the inverse of tax-loss harvesting. For 2026 the 0% rate covers taxable income up to $98,900 (married filing jointly) (Source: IRS Rev. Proc. 2025-32).
How does tax-gain harvesting work?
An investor sells an appreciated long-term holding in a low-income year so the gain is taxed at 0% or 15%, then can repurchase the identical security immediately because no wash-sale rule applies to gains. The repurchase resets cost basis to the current price, lowering future taxable gain. The sale is reported on Form 8949 and Schedule D (Source: IRS Pub 550; IRS Topic 409).
Does the wash sale rule apply to tax-gain harvesting?
No. The wash-sale rule is triggered only by selling “at a loss,” per IRS Pub 550 and IRC Sec. 1091. Because tax-gain harvesting realizes a gain rather than a loss, there is no 30-day repurchase restriction, so the same security can be bought back the same day (Source: IRS Pub 550, 2025).
Is tax-gain harvesting allowed by the IRS?
Tax-gain harvesting uses ordinary rules for capital gains, cost basis, and the preferential long-term rate schedule, with no special election required. The IRS taxes long-term gains at 0%/15%/20% by taxable income, and choosing when to realize a gain is permitted (Source: IRS Topic 409; IRS Pub 550). It is educational information, not a recommendation.
What is the 0% capital gains tax bracket for 2026?
For tax year 2026, the 0% long-term capital gains rate applies to taxable income at or below $98,900 (married filing jointly and surviving spouses), $49,450 (single and married filing separately), and $3,300 (estates and trusts), per IRS Rev. Proc. 2025-32. Single and head-of-household filers are grouped at $49,450 in that table; head-of-household treatment should be confirmed against final IRS Topic 409 (Source: IRS Rev. Proc. 2025-32).
What is the difference between tax-loss and tax-gain harvesting?
Tax-loss harvesting sells holdings at a loss to offset gains and up to $3,000 of ordinary income, and it must respect the 30-day wash-sale rule. Tax-gain harvesting sells appreciated holdings to realize gains at a 0% or low rate and reset basis, with no wash-sale restriction because that rule applies only to losses (Source: IRS Pub 550, 2025).
What factors besides taxes should I consider before harvesting gains?
Beyond the federal rate, harvested gains can raise modified adjusted gross income and trigger state capital gains tax, Medicare IRMAA surcharges, the net investment income tax, higher taxation of Social Security benefits, and reduced ACA subsidies. Effects depend on filing status, state, and total income, and may warrant year-end modeling (Source: SSA POMS HI 01101.020, 2026; IRS Topic 409).
Sources
IRS Rev. Proc. 2025-32 (2026 capital gains and standard deduction amounts): https://www.irs.gov/pub/irs-drop/rp-25-32.pdf
IRS Topic 409, Capital Gains and Losses: https://www.irs.gov/taxtopics/tc409
IRS Publication 550, Investment Income and Expenses (wash sales): https://www.irs.gov/publications/p550
IRS 2026 inflation adjustments release: https://www.irs.gov/newsroom/irs-releases-tax-inflation-adjustments-for-tax-year-2026-including-amendments-from-the-one-big-beautiful-bill
IRS Publication 590-B and Topic 558 (Roth conversions and distributions): https://www.irs.gov/taxtopics/tc558
SSA POMS HI 01101.020 (2026 Medicare IRMAA): https://secure.ssa.gov/poms.nsf/lnx/0601101020