Selling stock, mutual fund shares, or other long-held investments triggers a different set of tax rules than a paycheck or a pension check. When an asset is held for more than a year before it is sold, the profit is treated as a long-term capital gain, and the federal government taxes that gain at rates set apart from the graduated brackets that apply to wages, interest, and required retirement account withdrawals. For a large share of retirees living on Social Security, a pension, and modest investment income, that separate rate schedule can mean paying nothing at all on realized gains, or paying far less than the rate stamped on their last paycheck.
How the 0%, 15%, and 20% Brackets Work
Long-term capital gains and short-term capital gains are taxed under entirely different systems. A short-term gain, from an asset sold within a year of purchase, is folded into ordinary income and taxed at the same graduated rates applied to wages and traditional IRA withdrawals, rates that top out at 37 percent. A long-term gain, from an asset held longer than a year before sale, is instead taxed under its own three-tier schedule of 0 percent, 15 percent, or 20 percent, depending on total taxable income for the year.
Which bracket applies is determined by adding the net long-term gain on top of all other taxable income, including the taxable portion of Social Security benefits, pension payments, and required minimum distributions, then checking where that combined total lands on the capital-gains brackets rather than the ordinary-income brackets. The calculation runs through the Qualified Dividends and Capital Gain Tax Worksheet attached to Form 1040, using totals first reported on Form 8949 and summarized on Schedule D. For most retirees whose income consists of Social Security, a modest pension, and IRA distributions, the practical effect is that capital-gain dollars sit on top of ordinary income and get taxed at the lower schedule, rather than being blended into it.
Free retirement updates: Enrollment and claim windows come and go, and missing one can cost you real money. The free Retirement Shield newsletter keeps you ahead of the deadlines that matter. Sign up free.
The 0 Percent Bracket Reaches Further Than Most Retirees Expect
A retiree filing as single owes no federal tax on long-term capital gains as long as total taxable income stays at or below $48,350 for the 2025 tax year; for a married couple filing jointly, the ceiling is $96,700, and for a head-of-household filer it is $64,750. Because taxable income is calculated after the standard deduction, which is larger for filers age 65 and older, a retired couple can report six figures of gross income and still land inside the 0 percent bracket once the taxable share of Social Security, deductions, and exemptions are subtracted out.
The practical opening this creates is deliberate gain-harvesting. A retiree in a lower-income year, perhaps before Social Security or a pension begins or before required minimum distributions start at age 73, can sell appreciated shares up to the top of the 0 percent bracket and owe nothing on the profit, then repurchase the same position if it is still wanted, resetting the cost basis higher for the future. Waiting until income rises in later years, once RMDs and full Social Security are both in payment, risks pushing the identical sale into the 15 percent or 20 percent tier instead.
A large capital gain can also make more of Social Security income taxable in the year it is realized, since the formula that determines how much of a benefit check is subject to tax folds capital gains into the combined-income calculation used to test that threshold. Combined income above $25,000 for a single filer or $32,000 for a married couple filing jointly can subject up to 50 percent of benefits to tax, and combined income above $34,000 single or $44,000 joint can subject up to 85 percent, thresholds that have not been adjusted for inflation since they were set in 1983 and 1993. A retiree who normally owes little or no tax on Social Security can find that a single stock sale, even one taxed at 0 percent under the capital-gains schedule, pushes a portion of that year’s benefit into taxable territory.
Net Investment Income Tax and Medicare Premium Surcharges Can Erase the Savings
The favorable capital-gains rate is not the only tax that can attach to an investment sale. A retiree whose modified adjusted gross income exceeds $200,000 filing single or $250,000 filing jointly owes an additional 3.8 percent net investment income tax on the lesser of net investment income or the amount over that threshold, a surtax detailed under IRS Topic 559 that stacks on top of the 15 or 20 percent capital-gains rate rather than replacing it.
A large one-time gain can also raise modified adjusted gross income enough to trigger higher Medicare Part B and Part D premiums two years later, since Medicare’s income-related monthly adjustment amount is based on a tax return filed two years prior. Because neither the net investment income tax threshold nor the Medicare surcharge brackets move with a retiree’s cost of living the way Social Security’s annual adjustment does, a single large sale can quietly cost more than the capital-gains rate alone suggests, even when the transaction still qualifies for the 0 or 15 percent tier on paper.
Spreading Sales and Roth Conversions Across Tax Years
Financial planners who work with retired clients frequently recommend spreading large sales, such as unwinding a concentrated stock position inherited from an employer or liquidating part of a taxable brokerage account to fund a home renovation, across more than one tax year rather than selling everything at once. Realizing part of the gain in December and the remainder in January, for example, can keep each year’s total taxable income under the 15 percent or 20 percent threshold rather than pushing a single year’s return into the higher bracket.
The same stacking logic applies to Roth conversions, which add ordinary income on top of which capital gains are then taxed; converting a traditional IRA balance in the same year as a large stock sale can push both events into a higher combined rate than spacing them across separate years. Coordinating the timing of a sale with a tax preparer or fee-only planner before a 1099-B has already been issued, rather than after, remains the surest way to confirm which bracket a specific sale will land in before the transaction becomes irreversible.
This article was produced with AI assistance and reviewed by The Financial Wire editorial team.
More Financial Reading
- How many CDs can you park at 1 bank? FDIC rules you must know
- The ideal retirement withdrawal rate so your savings actually last



