A retiree whose taxable income stays low enough can sell appreciated stocks, funds, or other investments and owe nothing in federal capital-gains tax. The zero-percent long-term rate applies to taxable income up to $48,350 for a single filer and $96,700 for a married couple filing jointly in 2025, and long-term gains that fit under those ceilings are taxed at nothing at all. The break is one of the most overlooked in the tax code, in part because it seems too generous to be real. For households living on modest retirement income, it can turn a portfolio’s paper gains into cash without a tax bill.
How the 0% long-term rate works
Long-term capital gains apply to assets held longer than a year, and they are taxed on a separate, lower schedule than wages or retirement-account withdrawals. The rate runs 0%, 15%, or 20% depending on total taxable income, and qualified dividends follow the same brackets. The zero bracket is not a loophole but a written feature of the rate structure, available to anyone whose income lands beneath the threshold.
The key detail is that the gain itself counts as income when measuring which bracket applies. A long-term gain stacks on top of ordinary income, and only the portion that fits beneath the threshold qualifies for the zero rate, according to the IRS capital-gains rules. A retiree with $30,000 of other taxable income and a $20,000 long-term gain, for example, would see part of that gain taxed at 0% and the rest at 15% once the combined total crosses the line.
The thresholds move with inflation each year, which quietly widens the opportunity over time. For 2025 the ceilings sit at $48,350 for single filers and $96,700 for joint filers, and they have climbed steadily as prices rise. Because the figures are measured against taxable income rather than gross income, deductions and adjustments pull many retirees under the line even when their total cash flow looks higher on paper, expanding the group that can reach the zero rate.
Free retirement updates: One number can cost or save hundreds a month in retirement. The free Retirement Shield newsletter surfaces the ones worth knowing. Sign up free.
Tax-gain harvesting and the reset in basis
The strategy built around the zero bracket is often called tax-gain harvesting. A retiree deliberately sells a winning position in a low-income year, pays no tax on the long-term gain, then immediately repurchases the same investment. The move resets the cost basis to the higher price, which shrinks the taxable gain on a future sale, all without running into the wash-sale rule that limits loss harvesting.
Standard deductions widen the runway. Because the standard deduction reduces taxable income before the brackets apply, a filer can earn more than the raw threshold and still land in the zero bracket. In 2025 a single filer’s standard deduction is $15,000, and those 65 and older receive an additional amount, effectively lifting the income a retiree can report while keeping long-term gains untaxed.
Qualified dividends benefit from the same treatment. Dividends that meet holding-period rules are taxed at the long-term capital-gains rates rather than as ordinary income, as the IRS explains in its guidance on dividends, so a retiree in the zero bracket can also collect qualifying dividends free of federal tax. State taxes may still apply, since many states tax capital gains and dividends as regular income regardless of the federal rate.
Timing the sale within a single tax year takes care. The zero rate is measured against a full year of income, so a gain realized in January counts the same as one booked in December, but pairing it with a genuinely low-earning year is what unlocks the rate. Retirees who expect a temporary dip in income, in the stretch between leaving work and claiming benefits, often find that window is narrower than it first appears and closes once required withdrawals begin.
Where the 0% bracket helps most
The window matters most in the years between retiring and starting Social Security or required minimum distributions, when taxable income often dips to its lowest. A retiree who has stopped working but not yet claimed benefits may have several low-income years to harvest gains at 0%, permanently raising the basis of a portfolio before larger required withdrawals push income higher.
The approach has limits. Realizing a large gain can raise modified adjusted gross income enough to affect Medicare premium surcharges or the share of Social Security benefits that becomes taxable, even when the gain itself is taxed at zero. Coordinating the sale with those other thresholds is what separates a clean tax-free harvest from an unexpected ripple in other costs.
Record-keeping matters as much as timing. A retiree who repurchases a harvested position must track the new, higher cost basis so a future sale is measured against it rather than the original purchase price. Brokerages report basis to the IRS for most holdings bought in recent years, but older lots or transferred accounts can carry gaps, leaving the burden on the investor to document what was paid and reset after each harvest.
The zero bracket rewards planning more than wealth. It favors retirees who can control the timing of their income, selling in lean years and holding in flush ones, and it quietly erodes for anyone who realizes gains without watching the threshold. The dollar amounts are indexed each year, so the ceiling rises with inflation, but the underlying logic does not change.
For a retiree sitting on years of market appreciation, the unresolved question is timing rather than eligibility. Every low-income year that passes without harvesting is a year of tax-free gains left on the table, yet realizing too much at once can spill into higher brackets and adjacent costs. The bracket is generous, but it rewards those who measure the gain against the ceiling before deciding to sell.
This article was produced with AI assistance and reviewed against primary sources by The Money Overview editorial team.
More Financial Reading