Financial AnalysisNov 29, 2026, 12:06 PM UTC

Tax-Gain Harvesting in 2026: How to Use the 0% Capital Gains Bracket Before December 31

Tax-gain harvesting guide for 2026: how the 0% capital gains bracket works, the 2026 and 2027 IRS limits, hidden costs and how to sell before December 31.

Jason Huang
Jason Huang16 min read
Tax-Gain Harvesting in 2026: How to Use the 0% Capital Gains Bracket Before December 31

Key Takeaway

Most year-end tax advice focuses on losses: sell the losers, bank the deduction, move on. But for millions of households, the more valuable December move runs the other way. Tax-gain harvesting means deliberately selling investments that have gone up, paying a 0% federal tax rate on the profit, and then buying the same investment back at a higher cost basis. Under IRS Revenue Procedure 2025-32, a married couple filing jointly pays 0% on long-term capital gains in 2026 as long as taxable income stays at or below $98,900. For single filers the ceiling is $49,450, and for heads of household it is $66,200.

The timing this year is unusually interesting. The S&P 500 closed at 7,297.49 on Friday, November 27, after its best week since April 2025, according to Motley Fool and Yahoo Finance market coverage. Even after a sharp autumn correction, the index sits about 6.6% above where it ended 2025 and far above its levels of 2023 and 2024, which means many long-held positions still carry large embedded gains. At the same time, the IRS has already published the 2027 figures, raising the joint-filer 0% ceiling to $102,100, so investors can plan two tax years at once.

This guide explains how the 0% bracket actually works, how to calculate the room you have before December 31, the hidden costs that can make a "free" gain expensive, and how to execute the trade without tripping over common mistakes. All figures are federal, as of November 29, 2026, and drawn from the IRS or named sources. Nothing here is personalized tax or investment advice, and anyone realizing a large gain should run the numbers with a tax professional first.

What Tax-Gain Harvesting Is and Why December 2026 Matters

The basic idea: reset your cost basis for free

Every share you own has a cost basis, which is roughly what you paid for it. When you sell, the difference between the sale price and that basis is your capital gain. If you sell a fund you bought for $40,000 at $60,000, you realize a $20,000 gain. Tax-gain harvesting takes advantage of the fact that, for lower and middle taxable incomes, the federal rate on long-term gains is zero. You sell, owe nothing to the IRS on that profit, and immediately repurchase the same holding. Your portfolio looks identical the next morning, but your cost basis is now $60,000 instead of $40,000.

That higher basis is the whole point. If you sell the position years later, perhaps when your income is higher and you are in the 15% bracket, the first $20,000 of appreciation has already been "taxed" at zero. Over a decade or more, resetting basis in low-income years can remove tens of thousands of dollars from future tax bills.

Why the correction makes this year's decision sharper

A falling market seems like an odd time to talk about gains, but the November sell-off clarified who has them. Investors who bought broad index funds before 2025 are mostly still sitting on profits, because the S&P 500 finished 2025 at 6,845.50 and remains above that level even after the October-to-November drawdown. Meanwhile, anyone who bought near the October record of 7,818.93 is holding losses. That split means many households now have both gains and losses in the same account, and the order in which they realize them matters a great deal.

The chart above shows the shape of the year: a long run higher, a sharp autumn slide, and a strong rebound in Thanksgiving week. What matters for harvesting is how far today's price sits above your original purchase price, not the peak.

Unused room does not carry forward

The most important behavioral fact about the 0% bracket is that it resets every January 1. If a retired couple has $30,000 of room below the ceiling in 2026 and does nothing, that room is simply gone. That is why tax-gain harvesting is fundamentally a year-end discipline. You only know your income with confidence late in the year, and the deadline is the last trading day, which falls on Thursday, December 31, 2026.

The 2026 and 2027 Numbers That Define the 0% Bracket

The thresholds side by side

The long-term capital gains rates of 0%, 15% and 20% apply based on taxable income, not on the size of any single gain. The IRS adjusts the breakpoints for inflation each year. Here are the key 0% ceilings and the top of the 15% band, using Revenue Procedure 2025-32 for 2026 and Revenue Procedure 2026-35, issued November 5, 2026, for 2027, as summarized by Kiplinger:

  • Married filing jointly: 0% up to $98,900 in 2026 and $102,100 in 2027; 15% up to $613,700 in 2026 and $633,600 in 2027
  • Single: 0% up to $49,450 in 2026 and $51,050 in 2027; 15% up to $545,500 in 2026 and $563,200 in 2027
  • Head of household: 0% up to $66,200 in 2026 and $68,350 in 2027; 15% up to $579,600 in 2026

The 2027 increase gives a joint filer about $3,200 more room at 0%. A household with little other income that harvests to the ceiling in both years could step up basis on roughly $200,000 of gains without federal capital gains tax.

Taxable income, after deductions, is what counts

The ceilings refer to taxable income, which is income after the standard or itemized deduction. For 2026, the standard deduction is $16,100 for single filers, $32,200 for married couples filing jointly and $24,150 for heads of household under the IRS's inflation adjustments as amended by the 2025 tax law. A married couple with no itemized deductions can have roughly $131,100 of gross income in 2026 and still keep all of their long-term gains inside the 0% bracket.

Older taxpayers may have even more room. The 2025 tax law added a temporary deduction of up to $6,000 per person aged 65 or older for tax years 2025 through 2028, phasing out for modified adjusted gross income above $75,000 for single filers and $150,000 for joint filers. For a retired couple below the phase-out, that deduction expands the amount of gross income that fits under the 0% ceiling.

Gains stack on top of ordinary income

The rule that trips people up most is stacking. Wages, pension income, taxable IRA withdrawals, interest, short-term gains and the taxable portion of Social Security fill the brackets first. Long-term gains and qualified dividends sit on top of that pile. So the question is never "is my gain below $98,900?" The question is how much space remains between your ordinary taxable income and the ceiling. A joint filer with $85,000 of ordinary taxable income has only $13,900 of 0% room left, no matter how large the unrealized gain in the portfolio may be.

How to Calculate Your 0% Room Before December 31

Start with a realistic income projection

The math itself is simple subtraction, but the inputs require care. Begin with your expected adjusted gross income for 2026: salary, self-employment profit, pension payments, required minimum distributions, any Roth conversions, interest and dividends. Subtract your deduction to estimate taxable income. Then subtract that figure from the 0% ceiling for your filing status. What remains is your harvesting budget. For a retired couple with $60,000 of taxable ordinary income, the budget is $38,900 of long-term gains, which would otherwise cost about $5,835 in federal tax at the 15% rate.

The items people forget are often the ones that arrive late. Mutual funds and some ETFs pay capital gains distributions in December, and those distributions count toward your total even if you reinvest them. Year-end bonuses and money market interest can also push income higher, so a cushion of a few thousand dollars is sensible.

Going slightly over is not a cliff

A common myth holds that crossing the ceiling by one dollar makes the entire gain taxable at 15%. That is not how the brackets work. Only the gain dollars above the ceiling are taxed at 15%; everything below it stays at 0%. If a joint filer realizes $40,000 of gains when their room was $38,900, the extra $1,100 is taxed at 15%, costing about $165 in federal tax. Overshooting is a minor cost, not a disaster.

That said, the 0% bracket is not the only threshold in the tax code, and some of the others really are cliffs. The next section explains why "0% federal" can still mean real costs elsewhere.

Use lot-level data, not account totals

Your brokerage reports gains by tax lot, meaning each separate purchase. If you bought the same index fund in 2019, 2021 and 2024, each purchase has its own basis and its own holding period. To harvest efficiently, sell the lots with the largest gain per dollar first, and only lots held more than one year. IRS rules define a long-term holding as more than one year, and short-term gains are taxed as ordinary income, so selling a lot bought eleven months ago defeats the purpose entirely. Most brokers let you choose specific lots at the time of sale rather than defaulting to first-in, first-out.

Keeping all of this straight in the last weeks of December is where a little automation helps. With Alphio's Scheduled Task feature, you can set a recurring reminder for early and mid-December to review realized gains, upcoming fund distributions and how much 0% room remains, so the decision gets made on a calm Tuesday instead of on December 31.

Scheduled Task

The Hidden Costs: When 0% Federal Is Not Actually Free

Medicare premiums and the two-year lookback

For anyone near or on Medicare, the most important ripple effect is IRMAA, the income-related monthly adjustment amount that raises Part B and Part D premiums. According to the Social Security Administration, IRMAA is based on the modified adjusted gross income reported on your tax return from two years earlier, so 2026 income determines 2028 premiums. Realized gains count toward that income even when they are taxed at 0%. Unlike the capital gains brackets, IRMAA tiers are cliffs: one dollar over a threshold can raise premiums for the entire year. Retirees aged 63 and older should check their projected income against the tiers before harvesting.

Social Security taxation and other income tests

Capital gains also count in the formula that determines how much of your Social Security benefit is taxable. The provisional income thresholds of $25,000 for single filers and $32,000 for joint filers have never been indexed for inflation, so many retirees are already near them. Harvesting a gain can cause more of your benefit to become taxable, which in turn raises ordinary taxable income and eats into your 0% room. That interaction can turn a seemingly free gain into a real tax bill.

Other programs that test income can be affected too, including marketplace health insurance premium credits, college financial aid formulas and the phase-out of the new senior deduction itself. Higher up the income scale, the 3.8% net investment income tax applies above modified adjusted gross income of $200,000 for single filers and $250,000 for joint filers, according to the IRS, and those thresholds are fixed by statute rather than indexed.

State income taxes do not follow the federal 0% rate

Federal law gives long-term gains their own low brackets, but most states that levy an income tax treat capital gains as ordinary income. A California or New York resident who harvests $38,900 of gains at 0% federally may still owe several thousand dollars in state tax. Before you harvest, estimate the state cost and compare it to the future federal tax you expect to save.

Gain Harvesting vs. Loss Harvesting in a Volatile Year

Losses can waste your 0% room

In a year like 2026, many portfolios contain both winners and losers, and the instinct is to harvest losses. But capital losses first offset capital gains before any rate is applied. If you are in the 0% bracket, using a loss to cancel a gain that would have been taxed at zero anyway wastes the loss. It is often better to leave losers alone in a low-income year, or harvest them only to the extent that they reduce ordinary income by the $3,000 annual limit the IRS allows, and save the remainder as a carryforward for a future year when gains will be taxed at 15% or 20%.

The reverse is true for higher earners. If your taxable income puts you firmly in the 15% bracket, gain harvesting does not help, and conventional loss harvesting becomes the more valuable move.

Concentrated tech winners deserve a separate look

The AI rally of 2023 through 2025 left many investors with outsized positions in a handful of mega-cap names, and the autumn chip sell-off did not erase most of those long-term gains. For a holding like Nvidia bought several years ago, the cost basis may be a small fraction of today's price, so even a modest sale can consume the entire 0% budget.

That creates a useful opportunity. If a single stock has grown into an uncomfortable share of your portfolio, harvesting gains up to the 0% ceiling each December lets you trim concentration gradually at no federal cost, rather than either holding everything or selling all at once and pushing yourself into higher brackets. Valuation work helps decide whether to repurchase the shares or redirect the proceeds into a broader fund. The Nasdaq Composite closed at 24,129.50 on November 27 as chip stocks rebounded, and further gains would fill a 0% budget faster per share sold, so staging sales through December can help.

Executing the Trade: Wash Sales, Lots and Timing

The wash-sale rule only applies to losses

Investors familiar with loss harvesting often worry about the 30-day wash-sale rule. It does not apply here. Under the Internal Revenue Code and IRS Publication 550, the wash-sale rule disallows losses on securities repurchased within 30 days, but it has no effect on gains. You can sell a fund at a gain and buy it back the same afternoon. Your new basis is the repurchase price, and your holding period restarts from the purchase date, which matters only if you later sell within a year.

Trade date, not settlement date, sets the tax year

For publicly traded stocks and funds, a gain is generally recognized on the trade date. That means a sale executed on Thursday, December 31, counts in 2026 even though it settles in January. Waiting for the final session is still risky, so planning sales for mid-December leaves room to correct errors.

Before you submit the order, it helps to talk through the plan out loud. Alphio's Conversational Trading interface lets you ask plain-English questions about a position, check how much it has moved and place the sell and repurchase as a structured, reviewable instruction rather than rushing two separate orders.

Conversational Trading

Repurchase, rebalance or redeploy

The textbook version of gain harvesting buys the same security back immediately. That is not the only option. Because the sale is tax-free at the federal level, it is also a natural moment to rebalance. If stocks have grown well above your target allocation, you could keep part of the proceeds in bonds or Treasury bills. With the Federal Reserve's target range at 3.75% to 4.00% after its September hike and the 10-year Treasury yield trading above 5% in mid-November, according to CNBC, cash and short bonds pay a real return while you decide. The Fed meets again on December 8 and 9, and futures pricing cited by CNBC in mid-November pointed to a high probability of another quarter-point increase.

Who Benefits Most, and Who Should Skip It

The ideal candidates

The strategy works best for households in a temporarily low-income year with a taxable brokerage account full of long-term gains. Early retirees living on cash or savings before Social Security and required distributions begin are the classic case, since they may have a decade of low-income years ahead. Workers between jobs, people on sabbatical and small business owners in a slow year can also benefit.

When to leave it alone

Gain harvesting is pointless inside IRAs, 401(k)s and Roth accounts, which are already sheltered from capital gains tax. It also offers little to investors who plan to hold appreciated assets until death, since heirs generally receive a step-up in basis under current law. Anyone facing an IRMAA tier, a large state tax bill, or a loss of income-based benefits should weigh those costs first. Finally, if you plan to do a Roth conversion this year, remember that conversions and gains compete for the same low-bracket space, and conversions often deserve priority because they move money out of a fully taxable account for good.

Conclusion

Tax-gain harvesting is one of the quietest wins in personal finance. It does not depend on market forecasts, it does not change your portfolio's exposure if you repurchase immediately, and when it works, it permanently removes future capital gains tax on the stepped-up amount. In 2026, a joint filer can realize long-term gains at a 0% federal rate up to $98,900 of taxable income, and the 2027 ceiling rises to $102,100. The deadline for this year is the close on Thursday, December 31.

The catch is that the trade only works with accurate inputs. Project your full-year income, account for December fund distributions, check Medicare, Social Security and state tax effects, and select long-term lots deliberately. Avoid wasting harvested losses against gains that would have been taxed at zero, and remember that the room you leave unused this year disappears on January 1.

If you want to make the process repeatable, set up an Alphio Scheduled Task that reminds you to review gains and 0% room every December, and use Conversational Trading to plan and place the sell-and-repurchase trade with a clear record of what you did.

FAQs

What is tax-gain harvesting?

Tax-gain harvesting means selling investments held more than one year at a profit while your taxable income is low enough for the 0% federal long-term capital gains rate, then repurchasing them. You owe no federal capital gains tax on the sale, and your cost basis resets higher, which reduces taxable gains when you sell in the future.

What is the 0% capital gains bracket for 2026?

Under IRS Revenue Procedure 2025-32, the 0% rate applies to long-term gains when taxable income is at or below $98,900 for married couples filing jointly, $49,450 for single filers and $66,200 for heads of household in 2026. For 2027, Revenue Procedure 2026-35 raises those ceilings to $102,100, $51,050 and $68,350.

Does the wash-sale rule apply when I sell at a gain and buy back?

No. The wash-sale rule only disallows losses on securities repurchased within 30 days, so it does not affect sales at a gain. You can sell and repurchase the same fund on the same day, and your new cost basis becomes the repurchase price.

What happens if my gains push me slightly over the 0% limit?

Only the portion of gains above the ceiling is taxed at 15%; the rest stays at 0%. However, the extra income can still affect other items such as Medicare IRMAA premiums, the taxable share of Social Security benefits and state income tax, so check those effects before selling.

What is the deadline for tax-gain harvesting in 2026?

For publicly traded stocks and funds, gains are generally recognized on the trade date, so a sale on the last trading day, Thursday, December 31, 2026, counts for 2026. Many investors prefer to act earlier in December to leave room for errors and to account for year-end fund distributions.

Related articles

Start trading