Most year-end investment advice is about selling losers to offset gains. The opposite move, tax-gain harvesting, gets less attention. In a year when your taxable income is modest, you may be able to sell appreciated investments and owe no federal income tax on the gain. Here is how it works for 2026 and what to check before December 31.
What tax-gain harvesting means
Tax-gain harvesting means deliberately selling investments with long-term gains in a year when those gains fall in the 0% federal capital gains bracket. If you still like the investment, you can buy it back. Your new cost basis is the higher repurchase price, so a future sale produces a smaller taxable gain.
Two rules matter here:
- Only long-term gains qualify. Under IRS Tax Topic 409, gains are long-term only if you held the asset more than one year. Short-term gains are taxed at ordinary income rates.
- The wash-sale rule is about losses. IRS Publication 550 says a wash sale occurs when you sell stock or securities at a loss and buy substantially identical ones within 30 days before or after the sale. Selling at a gain and buying back does not trigger it.
The 2026 0% thresholds
Revenue Procedure 2025-32 sets the 2026 maximum taxable income for the 0% rate:
- Married filing jointly or qualifying surviving spouse: $98,900
- Head of household: $66,200
- Single: $49,450
- Married filing separately: $49,450
These limits are measured against your total taxable income, including the gains. Under Internal Revenue Code section 1(h), your ordinary income fills the brackets first and long-term gains stack on top. Only the part of your gains that fits under the threshold gets the 0% rate. Gains above it are generally taxed at 15%, which for 2026 runs up to $613,700 of taxable income for joint filers and $545,500 for single filers.
The 2026 standard deduction ($32,200 joint, $24,150 head of household, $16,100 single) helps create room.
A simple example
Take a married couple, both 62, filing jointly for 2026. Their pension and part-time wages total $70,000, and they take the $32,200 standard deduction. Their ordinary taxable income is $37,800.
That leaves $61,100 of room under the $98,900 threshold ($98,900 minus $37,800). If they sell holdings with $61,100 of long-term gains, that gain would generally be taxed at 0% for federal purposes. If they realize $80,000 instead, $61,100 is taxed at 0% and the remaining $18,900 at 15%. Going over the line does not make the whole gain taxable at 15%, only the excess.
Who may benefit
- Early retirees living on savings before Social Security or required minimum distributions begin
- People with a gap year between jobs or a sabbatical
- Business owners with a low-income or loss year
- Anyone with large deductions in 2026 that pull taxable income down
Our post on how retirement income is taxed explains how pensions, IRA withdrawals and Social Security fit into the same calculation.
Watch the side effects
A gain taxed at 0% federally still raises your adjusted gross income, and that can ripple elsewhere:
- Alabama tax. The Alabama Department of Revenue lists gains from the sale of securities as income reportable on the Alabama return, so the federal 0% rate does not mean zero state tax.
- The new senior deduction. The One Big Beautiful Bill Act added a deduction of up to $6,000 for each person age 65 or older for 2025 through 2028. It phases out when modified adjusted gross income exceeds $75,000, or $150,000 for joint filers. Harvesting gains can push you into that phase-out.
- Net investment income tax. Larger sales can reach the 3.8% tax, which applies to modified adjusted gross income above $250,000 for joint filers and $200,000 for single and head of household filers.
- Other income-tested items. Higher income can also affect how much of your Social Security is taxable, Marketplace premium tax credits and Medicare premiums. Check these with us before you sell.
Timing: finish by Thursday, December 31, 2026
For securities traded on an established market, Publication 550 says the gain is reported in the year the trade date occurs, not the settlement date. A sale with a December 31, 2026 trade date counts for 2026. Brokerages may have earlier processing cutoffs, so do not wait until the last day.
The best first step is a year-end tax projection showing your expected taxable income and the room left in the 0% bracket. Our individual tax advisory work is built around this kind of planning.
Frequently asked questions
Is the 0% rate based on my gains alone or my total income?
Total taxable income, including the gains. Ordinary income fills the brackets first, and only the gains that fit under the 2026 threshold are taxed at 0%.
Can I buy the same investment back right away?
Generally, yes. The wash-sale rule applies to sales at a loss, not sales at a gain. Buying back resets your basis at the higher price.
Does Alabama tax the gain?
Alabama lists gains from the sale of securities as reportable income on the state return, so plan for possible Alabama tax.
What if I go slightly over the threshold?
Only the gain above the threshold is taxed at 15%. The gain that fits under it stays at 0%.
Talk with Peters Bandura, LLC
Peters Bandura, LLC helps individuals and families in Alabama plan investment sales, retirement income and year-end moves. Call us at (205) 547-0762 to run your numbers before December 31.
This article is general information, not tax or investment advice for your situation.
Sources
- IRS, Rev. Proc. 2025-32, sections 4.01, 4.03 and 4.14 (2026 inflation adjustments): https://www.irs.gov/pub/irs-drop/rp-25-32.pdf
- IRS, Topic No. 409, Capital Gains and Losses: https://www.irs.gov/taxtopics/tc409
- 26 U.S.C. section 1(h) (Cornell Legal Information Institute): https://www.law.cornell.edu/uscode/text/26/1
- IRS, Publication 550, Investment Income and Expenses (2025), Wash Sales and Trade date: https://www.irs.gov/publications/p550
- IRS, Topic No. 559, Net Investment Income Tax: https://www.irs.gov/taxtopics/tc559
- IRS, One Big Beautiful Bill Act: Tax deductions for working Americans and seniors: https://www.irs.gov/newsroom/one-big-beautiful-bill-act-tax-deductions-for-working-americans-and-seniors
- Alabama Department of Revenue, Income to Be Reported on the Alabama Income Tax Return: https://www.revenue.alabama.gov/individual-corporate/income-to-be-reported-on-the-alabama-income-tax-return/
