Skip to content

Personal Finance

A $900,000 Index Fund Has Become More Tech-Weighted Than in 2000. Cashing Out $300,000 of Gains at 66 to Stay Conservative Could Make $34,000 of Social Security Taxable

Digilifetrends Published 4 min read

This article may include links from our sponsors and affiliates. Flywheel Publishing may receive compensation for actions made through them.

A businessman in white shirt and dark tie sitting at a desk reviewing documents, holding a pen to his chin
© Thinkstock

Imagine a hypothetical single retiree age 66 with $900,000 in an S&P 500 index fund, including roughly $300,000 in unrealized gains.

He receives $40,000 a year in Social Security and about $10,000 in interest income. A sharp market selloff would give him reason to worry: the S&P 500 and Dow closed in correction territory, the Nasdaq gave up its 2026 gain, and technology stocks fell about 7% in a single session.

His concern about concentration is supported by the numbers. TS Lombard strategist Dario Perkins says technology now accounts for more than 40% of the S&P 500, compared with 35% at the 2000 peak, or 46% if tech-related companies are included. Selling some gains and shifting into a more conservative mix can seem sensible. What many people in his position do not expect is that part of the cost shows up through Social Security.

How a Stock Sale Can Make Benefits Taxable

The IRS determines how much of a benefit is taxable by taking half of Social Security and adding nearly all other income, including capital gains. For a single filer, once that combined amount exceeds $25,000, up to 50% of benefits can be taxed. Above $34,000, as much as 85% can be taxed.

If he makes no sale, his total income is about $30,000, and only $2,500 of his benefits are taxable. Add the gains and the taxable portion rises to $34,000, the maximum amount.

That increase adds about $7,579 to his federal income tax bill. Taxable benefits are treated as ordinary income, and they are counted before capital gains. That uses up space in the 0% capital gains bracket, which ends at $49,450 of taxable income for a single person, and pushes more gains into the 15% bracket.

Why Small Sales Over Time Can Be Costly

The 85% figure is a ceiling. In this example, roughly the first $39,000 of gains is enough to max out the taxable share of his benefits. Any additional gain does nothing further to the Social Security side of the equation.

So selling $100,000 a year for three years means he absorbs the full 85% effect three separate times. Smaller annual sales are often the most expensive route for Social Security taxes. A larger one-time sale triggers that hit only once. Spreading sales out still has an advantage, though: each year creates fresh room in the 0% capital gains bracket. The real decision is whether that benefit outweighs the repeated Social Security tax cost, and it is one of nine tax rules that can quietly drain retirement accounts.

Medicare and an Extra Surtax Also Matter

A single $300,000 sale would push his modified adjusted gross income well above $200,000. That triggers the 3.8% net investment income tax on the excess, or about $5,472 in this case.

The new $6,000 senior deduction would also phase out, shrinking by 6% of income above $75,000.

Medicare hits later. Premium penalties are based on a tax return from two years earlier, so a sale this year would raise premiums later.

Using 2027 brackets, his Part B premium would rise from $209 to $670 a month, adding about $5,530 for that year.

Selling $100,000 a year keeps him below the surtax threshold. He would still face Medicare-related penalties, with a Part B premium of $419 a month on 2027 brackets, in three separate years. Either approach carries a cost; the difference is where that cost lands.

What to Consider Before Selling

First, treat diversification and taxes as separate issues. If some of his assets are in an IRA or 401(k), trades inside those accounts do not create any tax bill. Shifting some of the tech exposure there first could reduce concentration risk without adding taxable income. The Social Security tax rule applies only to sales in taxable accounts.

Second, timing matters. A sale in the next six weeks counts toward one tax year, while the same sale in early January counts toward the next. Before trading, it is worth comparing both paths: one large year or several smaller ones, with Social Security taxes, the surtax, and Medicare costs included. Once a trade is completed, its tax year is locked in.

Your own situation will differ. A different benefit amount, a spouse, or a few thousand dollars of additional income can change which approach is cheaper, so it is worth running your own numbers before selling.

More from Digilifetrends