Skip to content
Benefits & Credits

Selling Stock in 2027? Retired Couples Can Owe 0% Federal Tax on Gains Up to $102,100 of Taxable Income

by Author 2026.11.22

The IRS has moved the finish line for the 0% long-term capital gains rate. For 2027, a married couple filing jointly can have up to $102,100 of taxable income and still owe nothing at the federal level on long-term gains, qualified dividends and fund distributions that fit under that line. A single filer gets $51,050. Those numbers come from Revenue Procedure 2026-35, released on November 5, 2026.

For retirees, the key phrase is taxable income. After the standard deduction, the extra deduction for age 65 and older, and the temporary $6,000 senior deduction, a couple living on Social Security and a modest pension can often realize tens of thousands of dollars in gains before the 0% line is reached. This guide shows the official numbers, two worked examples with stated assumptions, and the side effects to check before you sell anything.

Retired couple reviewing investment statements at a kitchen table
Photo by Kampus Production (Pexels)

The 2027 Capital Gains Thresholds Compared With 2026

Long-term capital gains are profits on assets you held for more than one year. They are taxed at 0%, 15% or 20% depending on your taxable income. The rates themselves did not change. Only the dollar lines moved, and they moved up with inflation.

Filing status 0% rate up to (2026) 0% rate up to (2027) Increase 15% rate up to (2027)
Married filing jointly $98,900 $102,100 $3,200 $633,600
Single $49,450 $51,050 $1,600 $563,200
Head of household $66,200 $68,350 $2,150 $598,400
Married filing separately $49,450 $51,050 $1,600 $316,800

The 2027 figures are in section 3.03 of Revenue Procedure 2026-35, and the 2026 figures are in Revenue Procedure 2025-32. Income above the 15% line is taxed at 20%. Higher earners may also owe the 3.8% net investment income tax, which starts at $200,000 of modified adjusted gross income for single filers and $250,000 for joint filers. Those two amounts are set by statute and are not adjusted for inflation.

Why Taxable Income, Not Gross Income, Is the Test

The 0% line is measured against your taxable income, which is what is left after deductions. Your ordinary income (pension, IRA withdrawals, the taxable part of Social Security, interest) fills the lower brackets first. Long-term gains are then stacked on top. Whatever portion of the gain lands below the 0% line is taxed at 0%, and only the part above it is taxed at 15%.

That stacking is why deductions matter so much for retirees. For 2027 the base standard deduction is $33,200 for joint filers and $16,600 for single filers. Each person 65 or older adds $1,700 if married, or $2,100 if unmarried. On top of that, the senior deduction passed in 2025 gives each person 65 or older an extra $6,000 for tax years 2025 through 2028. It phases out at 6 cents per dollar of modified adjusted gross income above $75,000 for single filers and $150,000 for joint filers. You can read more in our guide to the $6,000 senior deduction, and the standard deduction figures are laid out in our 2027 standard deduction article.

Two Worked Examples for 2027

These examples are simplified on purpose. They assume everyone is 65 or older for all of 2027, nobody itemizes, the ordinary income figures stay fixed, and the senior deduction is claimed in full. Your own numbers will differ, so treat them as a model, not a forecast.

Step Married couple, both 65+ Single filer, 65+
Pension, IRA withdrawals and taxable Social Security $65,000 $38,000
Standard deduction plus age 65+ amounts $36,600 ($33,200 + 2 x $1,700) $18,700 ($16,600 + $2,100)
Senior deduction ($6,000 per person) $12,000 $6,000
Taxable ordinary income $16,400 $13,300
0% line for 2027 $102,100 $51,050
Room left under the 0% line $85,700 $37,750
Long-term gain realized in the example $80,000 $35,000
Modified AGI (income plus gain) $145,000 (under $150,000) $73,000 (under $75,000)
Federal tax on the gain $0 $0

Notice why the examples stop short of the full room. If the couple realized the full $85,700, their modified AGI would reach $150,700. That is $700 over the phase-out start, which would trim the senior deduction by about $42 and push a sliver of income back into taxable territory. Leaving a cushion avoids that circular math. Ordinary income of $16,400 and $13,300 is still taxed at the regular 10% and 12% brackets, so “0% on gains” does not mean “no tax return balance.”

Which Situation Sounds Like Yours?

  • You hold a large position with a low cost basis in a taxable account. A low-income year is a good time to sell part of it and, if you still like the investment, buy it back. Your cost basis resets higher, which can shrink a future gain.
  • You are living on savings and Social Security before required withdrawals begin. Your taxable income may be low enough to leave a lot of room under the 0% line.
  • You already take required minimum distributions. Those withdrawals fill the lower brackets first, so check how much room is really left before selling.
  • You expect higher income later. Selling now at 0% can be cheaper than selling in a year when the gain would be taxed at 15%.
  • You plan to leave the shares to heirs. Inherited assets generally get a stepped-up basis, so harvesting gains may not be worth the paperwork. Ask a tax professional about your situation.
Calculator, tax forms and a calendar laid out on a desk
Photo by RDNE Stock project (Pexels)

Timeline: When the Numbers Apply

  • Now through December 31, 2026: tax year 2026 rules still apply. The 0% line is $98,900 for joint filers and $49,450 for single filers, so you can use the same strategy this year with the smaller thresholds.
  • January 1 through December 31, 2027: the new $102,100 and $51,050 lines apply to sales made in this window. Check your year-to-date income before your last sale in the fall.
  • Early 2028: your broker sends Form 1099-B and Form 1099-DIV with the gains and dividends.
  • Mid-April 2028: your 2027 return is due. Long-term gains are reported on Form 8949 and Schedule D.

Side Effects to Check Before You Sell

A 0% federal rate does not mean the gain is invisible. It still counts as income in other calculations.

  • Social Security taxation. Gains raise your provisional income, which can make more of your benefit taxable, up to 85%. The Social Security thresholds are not indexed to inflation.
  • Medicare premiums. Part B and Part D surcharges (IRMAA) are based on modified AGI from two years earlier, so a large 2027 gain can show up in your 2029 premiums. Check the current brackets on Medicare.gov or SSA.gov.
  • ACA premium credits. If a spouse is under 65 and buys Marketplace coverage, higher income can reduce the credit.
  • State tax. Many states tax capital gains even when the federal rate is 0%. Check your state’s rules.
  • Other income-tested benefits. Property tax relief and some senior programs use income limits, and gains may count.

Common Mistakes

  1. Using gross income instead of taxable income. The $102,100 and $51,050 figures apply after deductions.
  2. Forgetting short-term gains. Assets held one year or less are taxed as ordinary income, not at 0%.
  3. Ignoring mutual fund distributions. Capital gain distributions from funds count toward your income even if you never sell a share.
  4. Overshooting the line. The portion of the gain above the 0% line is taxed at 15%, so stay below it with a cushion for year-end surprises.
  5. Skipping the senior deduction math. Gains increase modified AGI, which can shrink the deduction if you cross $75,000 (single) or $150,000 (joint).
  6. Treating the example as a guarantee. The worked numbers above assume fixed income, so rerun them with your actual figures.

Frequently Asked Questions

Does the 0% rate apply to qualified dividends too?

Yes. Qualified dividends use the same 0%, 15% and 20% thresholds as long-term capital gains, and both are stacked on top of your ordinary income.

Can I sell and immediately buy the same stock back?

For a gain, yes. The wash sale rule only disallows losses, so repurchasing after realizing a gain is allowed and raises your cost basis. Tax advisers call this gain harvesting.

Do the 2027 numbers affect my 2026 return?

No. The 2027 amounts apply to the return you file in 2028. Your 2026 return, filed in early 2027, uses the 2026 thresholds.

What if I am married but file separately?

The 0% line for married filing separately is $51,050 in 2027, half of the joint amount. Filing separately also changes other deductions, including the senior deduction, which requires a joint return for married couples.

Where can I read the official figures?

The IRS news release and Revenue Procedure 2026-35 on IRS.gov list every 2027 amount, including section 3.03 for capital gains and section 3.15 for the standard deduction.

Stock chart on a tablet next to a notebook and reading glasses
Photo by AlphaTradeZone (Pexels)

This article is general information, not tax advice. Confirm your own situation with the IRS instructions or a tax professional.

Leave a Comment

Your email address will not be published. Required fields are marked *