A single $200,000 long-term stock sale in retirement does not reduce Social Security benefit checks, but it can push up to 85% of those benefits into the taxable income bracket for that year. The distinction hinges on two separate government mechanisms: the retirement earnings test and the tax calculation for Social Security benefits.

The context for such gains is a bull market that began with the S&P 500’s closing low on October 12, 2022. Over the subsequent four years, the index gained 117%, a performance Reuters ranks as the sixth-best since World War II, driven largely by spending on artificial intelligence. A 64-year-old single retiree who participated in this rally in a taxable brokerage account illustrates how a large gain interacts with federal rules. This individual receives $2,000 a month in Social Security benefits and withdraws $20,000 annually from an IRA.

Because this retiree claimed benefits before full retirement age, the retirement earnings test applies. For 2026, Social Security withholds $1 for every $2 earned above $24,480. However, this test only counts wages and net self-employment earnings. Investment gains, pensions, and IRA withdrawals are excluded. Consequently, the $200,000 stock sale triggers no withholding from his monthly benefit checks, which continue to arrive on time. Had he earned the same amount as a consultant, withholding would have applied.

The financial impact emerges in the tax calculation for Social Security benefits, which relies on combined income. This figure includes adjusted gross income before Social Security, tax-exempt interest, and half of the benefits. For a single taxpayer, combined income above $25,000 makes part of the benefit taxable, while income above $34,000 allows up to 85% to be taxed. Without the stock sale, the retiree’s combined income is $32,000, resulting in only $3,500 of taxable benefits. The $200,000 gain jumps combined income to $232,000, hitting the ceiling where $20,400 of his benefits becomes taxable. This creates $16,900 in additional taxable income due solely to the sale.

This tax spike is temporary. Because the benefit tax caps at 85%, a large one-time sale only maxes out the rate for that specific year. The following year, as combined income drops back near $32,000, the amount of taxable benefits decreases. Spreading gains across multiple years can sometimes trigger the 85% ceiling in each of those years, whereas bundling a gain into one year may limit this particular cost to a single tax return.

Medicare premiums also factor into the decision. Higher-income participants pay a surcharge based on their tax return from two years prior. A large gain at age 64 could raise premiums at age 66 when signing up. A one-time stock gain does not qualify an individual for relief from this surcharge; Social Security requires another qualifying reason, such as retirement or divorce that lowers income, to use more recent income data for calculations.

To manage these effects, investors can review their cost basis before selling. Selling shares with a higher purchase price locks in a smaller gain while generating the same cash flow, leaving less income to feed into the Social Security tax calculation. Additionally, because the trade date determines the tax year for ordinary stock sales, a December sale belongs on that year’s return even if it settles in January. State taxes and filing status can further shift these numbers.