Retirement Living takes an unbiased approach to our reviews. We may earn money when you click a partner link. Learn More

Here’s how you may be able to sell stock at a profit next year and pay no federal tax

The law may be especially beneficial to retirees

valery-fedotov-unsplash

Some retired investors will be able to sell stock at a profit in 2027 without paying federal income tax on the gain. 

For married couples filing jointly, the IRS puts the top of the 0% long-term capital gains bracket at $102,100 in taxable income. Add the $33,200 basic standard deduction, and that works out to $135,300 in adjusted gross income for a couple claiming that deduction alone.

That $135,300 includes the profit from the stock sale and the couple’s other income. A couple whose only income is $135,300 in qualifying long-term stock gains could owe no federal income tax. A couple with wages or pension income could still owe federal income tax on that income even if its stock gain qualifies for the 0% rate.


What it looks like on a tax return

Suppose a married couple earns $85,000 in wages in 2027 and has no other income besides a stock sale. 

They sell shares in a taxable brokerage account for $90,300. If the shares’ adjusted cost basis is $40,000 and they’ve held them for more than a year, their long-term gain is $50,300. Their adjusted gross income is $135,300. After the $33,200 standard deduction, they have $102,100 in taxable income, and the entire $50,300 gain qualifies for the 0% federal rate.

If the same couple realizes a $60,300 gain instead, the first $50,300 still qualifies for 0%. The extra $10,000 falls into the 15% bracket, resulting in $1,500 in federal tax on the gain. Qualified dividends also use room in the 0% bracket.


What retirees and year-end sellers should watch

A stock sale can make more of a retiree’s Social Security benefits taxable because the IRS considers other income when calculating how much of those benefits to tax. That can raise the federal tax bill even when some or all of the gain itself falls in the 0% bracket. Eligible filers age 65 and older may also qualify for additional deductions that change the calculation.

For a sale in 2026, the comparable figure for joint filers taking only the basic standard deduction is $131,100. For a single filer in 2027, it’s $67,650, based on a $51,050 taxable-income cutoff and a $16,600 basic standard deduction. Investors generally must report the sale on their federal return even when the gain is taxed at 0%.