Taxes
Tax-gain harvesting at the 0% capital gains rate
In 2026 couples pay 0% on long-term gains up to $98,900 of taxable income. How to size a gain harvest, and why retirees on Social Security can still owe 8–10%.
For 2026, long-term capital gains are taxed at 0% as long as your total taxable income stays at or below $98,900 on a joint return, $66,200 as head of household or $49,450 as a single filer (IRS Revenue Procedure 2025-32). Tax-gain harvesting means selling winners in a taxable account to use that room, then buying back at once to lock in a higher cost basis. The wash-sale rule doesn't stop you, because it applies only to losses.
The hard part is sizing the sale. Most guides subtract your taxable income from the threshold and stop there. That works for a salaried household. It doesn't work for retirees on Social Security: each extra dollar of gain can make up to 85 cents of benefits taxable. In our worked case below, a retired couple who appear to have $82,550 of 0% room actually has $63,900, and the first $21,940 of gain costs about 9.4% in tax. Everything here is arithmetic on 2026 federal rules, not tax advice.
In short
- 0% applies to long-term gains (held more than one year) that fit under the threshold after your other taxable income is counted.
- Add your deductions to the threshold to get the most other income you can have: $131,100 for a couple under 65 using the standard deduction, $65,550 for a single filer.
- Gains and qualified dividends sit on top of ordinary income, so they never push your salary into a higher bracket. Gains above the threshold are taxed at 15%.
- If you get Social Security, the gain can make more of your benefits taxable. That's real tax, even when the gain itself is taxed at 0%.
- You can buy back immediately. The wash-sale rule covers losses only.
The 2026 thresholds and the gross-income ceiling
The IRS publishes the "maximum zero rate amount" each fall. For tax year 2026 (returns filed in 2027) the figures are below. The 2027 amounts are out too: $102,100 joint and $51,050 single (see our 2027 capital gains brackets report).
| Filing status | 0% up to (taxable income) | 15% up to, 20% above | Standard deduction |
|---|---|---|---|
| Married filing jointly | $98,900 | $613,700 | $32,200 |
| Head of household | $66,200 | $579,600 | $24,150 |
| Single | $49,450 | $545,500 | $16,100 |
| Married filing separately | $49,450 | $306,850 | $16,100 |
Source: Rev. Proc. 2025-32, sections .03 and .14. Taxable income is after deductions.
Because the threshold applies to taxable income, the standard deduction is extra room. If your only income is your gain, the deduction shelters the first slice and the 0% rate covers the rest. Add the two together and you get the most other income you can have and still realize gains at 0%. We call this the gross-income ceiling. Subtract your other income from it and you get the 0% room:
Gain you can realize at 0% = 0% threshold + your deductions − your other income
Here it is for 2026, assuming the standard deduction, no Social Security and no qualified dividends (dividends use up the same room):
| Other income (wages, IRA withdrawals, interest) | Married, both under 65 | Married, both 65+ | Single, under 65 | Single, 65+ |
|---|---|---|---|---|
| $0 | $131,100 | $146,400 | $65,550 | $73,600 |
| $25,000 | $106,100 | $121,400 | $40,550 | $48,600 |
| $50,000 | $81,100 | $96,400 | $15,550 | $23,600 |
| $75,000 | $56,100 | $71,400 | $0 | $0 |
| $100,000 | $31,100 | $46,400 | $0 | $0 |
| $125,000 | $6,100 | $21,400 | $0 | $0 |
The 65+ columns include the additional standard deduction ($1,650 per spouse on a joint return, $2,050 for a single filer) and the new $6,000-per-person senior deduction, which is available for 2025 through 2028. The senior deduction starts to phase out above $150,000 of modified AGI on a joint return ($75,000 single). At the ceilings in this table your AGI is $146,400 or $73,600, just below those lines. Push further and you start losing the deduction as well.
The Social Security trap: when "0%" costs 9%
Up to 85% of Social Security benefits become taxable once your other income plus half your benefits passes $32,000 on a joint return ($25,000 single). Capital gains count in that test: IRS Publication 915, Worksheet 1, line 3, includes the capital gain line of Form 1040. These base amounts are fixed in the law and are not among the inflation adjustments in Rev. Proc. 2025-32, so the same figures apply in 2026.
So for a retiree, harvesting a gain can make more benefits taxable. Those benefits are ordinary income, taxed at 10% or 12%, and they also take up 0% room. Here is our calculation for a couple, both 67, with $50,000 of Social Security and $40,000 of traditional IRA withdrawals, using the standard deduction:
| Step | No gain | Gain $21,941 | Gain $63,900 | Gain $82,550 (naive room) |
|---|---|---|---|---|
| Other income + ½ benefits | $65,000 | $86,941 | $128,900 | $147,550 |
| Taxable Social Security | $23,850 | $42,500 (85% cap) | $42,500 | $42,500 |
| AGI | $63,850 | $104,441 | $146,400 | $165,050 |
| Deductions (32,200 + 3,300 + 12,000) | $47,500 | $47,500 | $47,500 | $47,500 before phase-out |
| Ordinary taxable income | $16,350 | $35,000 | $35,000 | $35,000 or more |
| Gain taxed at 0% / 15% | — | $21,941 / $0 | $63,900 / $0 | $63,900 / $18,650 |
| Federal tax | $1,635 | $3,704 | $3,704 | at least $6,500 |
| Extra tax vs no gain | — | $2,069 | $2,069 | at least $4,865 |
How to read it:
- The naive estimate. Without a gain, their taxable income is $16,350, so $98,900 − $16,350 seems to leave $82,550 of 0% room.
- The first $21,941 of gain costs $2,069, about 9.4%. Each dollar of gain makes 85 cents of benefits taxable until 85% of benefits ($42,500) is taxable. That is 8.5% while their ordinary income is in the 10% bracket and 10.2% once it reaches 12%.
- The real 0% room is $63,900. The extra $18,650 of taxable benefits uses up threshold space, so the 0% zone ends at $35,000 + $63,900 = $98,900 of taxable income. From $21,941 to $63,900 the gain really is free.
- Selling the naive $82,550 puts $18,650 of gain at 15% ($2,798 more) and pushes AGI past $150,000, where the senior deduction starts to shrink. Their extra tax would be at least $4,865 instead of $2,069.
Whether paying about 3.2% on average ($2,069 on $63,900) is worth it depends on what you'd pay when you sell later. That might be 15% or more, or nothing if the shares are held for life. This is a calculation to run with your own numbers, not a recommendation. Households whose benefits are already 85% taxable, or whose income is too low for any benefits to be taxable even after the gain, don't face this slice.
How to harvest gains before December 31
- 1
Estimate this year's taxable income
Year-to-date wages or withdrawals, plus interest, ordinary and qualified dividends and mutual fund capital gain distributions still to come in December
- 2
Work out the room
0% threshold − ordinary taxable income − qualified dividends. With Social Security, recalculate taxable benefits with the gain included
- 3
Leave a buffer
A surprise December distribution or a bigger dividend can push part of the gain to 15%. Many people stop a few thousand dollars short
- 4
Pick long-term lots
Only shares held more than one year qualify. Use specific identification so the broker sells the lots you intend, not the oldest by default
- 5
Sell and buy back
The sale counts in the year of the trade date, so December 31, 2026 still counts for 2026. You can buy back the same security the same day
- 6
Check the 1099-B
In February, confirm the gain was reported as long-term and the new lot shows the higher basis and a new purchase date
The repurchased shares start a new holding period the day after the trade. Sell them within a year and any further gain is short-term, taxed as ordinary income. Our guide to cost basis methods explains how to choose lots at your broker.
Gain harvesting vs loss harvesting
Harvesting gains (0% bracket)
- The gain is never taxed if it stays within the 0% room
- No wash-sale rule: buy back the same fund immediately
- Higher basis means smaller taxable gains later, or larger losses if prices fall
- Offsets gains at any rate and up to $3,000 of ordinary income a year
- Most valuable in high-income years
Harvesting losses
- Only useful when taxable income is below the 0% threshold
- Raises AGI, which can affect Social Security taxation, ACA credits and state tax
- Usually defers tax rather than removing it, because the replacement has a lower basis
- The wash-sale rule blocks substantially identical repurchases within 30 days
The two fit different years. In a high-income year, tax-loss harvesting offsets gains taxed at 15% or more. In a low-income year (a sabbatical, early retirement before Social Security and required distributions, a year with a business loss), realizing gains at 0% does more. Using losses against gains that would have been taxed at 0% saves nothing.
Mistakes that turn 0% into 15%
- Using gross income instead of taxable income, or forgetting the deduction. Both cause errors. Using gross income understates your room by the deduction. Counting the deduction twice overstates it.
- Forgetting qualified dividends. They fill the same 0% room. A fund paying $3,000 of qualified dividends uses $3,000 of it. See qualified vs ordinary dividends.
- December mutual fund distributions. A capital gains distribution paid after you sized your harvest is long-term gain that takes up room too.
- Selling short-term lots. A gain on shares held one year or less is ordinary income, never 0%.
- Harvesting inside an IRA or Roth. Sales inside retirement accounts aren't taxed, so there is no basis to reset. This works only in a taxable account (see Roth IRA vs taxable account).
- Ignoring the high end. The 3.8% net investment income tax starts at $250,000 of modified AGI on a joint return ($200,000 single). It doesn't affect a 0% harvest, but it matters if a large sale takes you well past the 0% ceiling (see how the 3.8% NIIT works).
To size a harvest you need each lot's purchase date, cost and current value in one place, including the shares at your other brokers. GetHossa imports your broker history and shows realized gains and every closed position, matched to purchases first-in-first-out. It doesn't prepare your tax return, so check the final numbers against your 1099-B.
Methodology
Thresholds, tax brackets, standard deductions and the additional deduction for age 65+ are from IRS Revenue Procedure 2025-32 for tax year 2026. The senior deduction ($6,000 per qualifying person aged 65 or older, 2025–2028, phasing out above $75,000/$150,000 of modified AGI) is from the IRS fact sheet on the One, Big, Beautiful Bill. Taxable Social Security follows IRS Publication 915, Worksheet 1 (base amounts $32,000 and $44,000 for a joint return, 85% cap). The worked cases assume a joint return, the standard deduction, no other deductions or credits, no state tax and no qualified dividends, and use the 2026 ordinary brackets: 10% up to $24,800 and 12% up to $100,800. We stopped the retiree table at AGI below $150,000 for the exact figures. The last column says "at least" because the senior deduction starts to phase out above that line. Arithmetic: 0.85 × ($21,000 + G) = $36,500 gives G = $21,941, the gain at which 85% of benefits becomes taxable.
Frequently asked questions
How much capital gains can I realize at 0% in 2026?+
Long-term gains are taxed at 0% while total taxable income stays at or below $98,900 (married filing jointly), $66,200 (head of household) or $49,450 (single). Your room is that threshold minus your other taxable income. With the standard deduction, a couple under 65 with no other income can realize $131,100 of gains at 0%, and a single filer $65,550.
Does the wash-sale rule apply to tax-gain harvesting?+
No. IRS Publication 550 defines a wash sale as a sale at a loss with a substantially identical purchase within 30 days. A sale at a gain isn't covered, so you can buy the same security back immediately. The new shares get a new basis and a new holding period.
Can harvesting capital gains push my wages into a higher tax bracket?+
No. Long-term gains and qualified dividends are stacked on top of ordinary income, so your wages are taxed the same either way. The part of the gain above the 0% threshold is taxed at 15%. A gain can, however, make Social Security benefits taxable, and reduce ACA premium credits.
Why would a retiree pay tax on a 0% capital gain?+
Capital gains count when the IRS decides how much of your Social Security is taxable. Above the base amounts ($32,000 joint, $25,000 single), each dollar of gain can make up to 85 cents of benefits taxable at ordinary rates. In our example the first $21,941 of gain cost a retired couple $2,069, about 9.4%, until 85% of their benefits was taxable.
Is the last trading day of the year too late?+
No. For listed securities the gain belongs to the year of the trade date, not the settlement date, so a sale on December 31, 2026 counts for 2026. Leave a buffer for December dividends and fund distributions.
Sources
- IRS — Revenue Procedure 2025-32 (2026 inflation adjustments: capital gains thresholds, brackets, standard deduction)
- IRS — Publication 915, Social Security and Equivalent Railroad Retirement Benefits
- IRS — One, Big, Beautiful Bill Act: tax deductions for working Americans and seniors
- IRS — Publication 550, Investment Income and Expenses (wash sales, holding period, trade date)
- IRS — Topic no. 409, Capital gains and losses
- IRS — Net Investment Income Tax
- HealthCare.gov — What income to include for Marketplace savings
This article is for information and education only. It isn't investment or tax advice. Rules and broker practices change — check the current rules or talk to a tax advisor.
See your portfolio next to the S&P 500
Import your Interactive Brokers history or add trades by hand — GetHossa shows your real return, your TWR and your lead over the S&P 500.
Create account