Selling appreciated stock doesn’t have to mean paying the capital gains tax right away. Several established strategies let you defer that tax, sometimes for years, without giving up the option to sell eventually.

The main ways to defer capital gains tax on stock are contributing shares to an exchange fund, reinvesting the proceeds of a sale into a Qualified Opportunity Fund, or structuring a sale as an installment sale spread across multiple years. Each works differently. None of them eliminate the tax, but they allow you to postpone it under specific conditions.

Here’s how to defer capital gains tax on stock sales.

3 ways to defer capital gains tax on stocks

1. Contribute to an exchange fund

An exchange fund pools appreciated stock from many investors into a single diversified fund, in exchange for a stake in the pool rather than cash. Because you’re exchanging shares instead of selling them, the transaction doesn’t trigger a taxable sale under Section 721 of the tax code.

Your capital gains tax is deferred, not eliminated, until you redeem after a required holding period. And the shares you eventually receive back carry over your original cost basis. Glidepath is one example of an exchange fund: it requires accredited investor status and a $100,000 minimum contribution, and charges no management fee to members.

Of the strategies here, an exchange fund is the one built specifically for investors sitting on a large, appreciated, concentrated position who want full diversification without an immediate sale.

Ready to diversify without triggering the tax bill? See if you qualify.

2. Reinvest in a Qualified Opportunity Fund

The tax code also allows you to defer capital gains by reinvesting the realized gain, within a set window after the sale, into a Qualified Opportunity Fund. These funds invest in designated Opportunity Zones, and depending on how long you stay invested, the deferral can extend for several years.

This is a narrower tool than an exchange fund. It requires selling your original stock first, triggering the usual mechanics of a sale, and then redirecting the proceeds. It ties your capital to a specific set of Opportunity Zone investments rather than a diversified portfolio.

3. Structure the sale as an installment sale

Rather than selling a large position all at once, an installment sale spreads the sale and the resulting gain across multiple years. You still eventually pay tax on the full gain, but recognizing it in smaller pieces over time can keep you out of a higher tax bracket in any single year, compared to realizing it all at once.

What doesn’t defer the tax?

Two strategies that come up in the same conversation work differently, and it’s worth being precise about the difference. Tax-loss harvesting offsets gains with losses elsewhere in your portfolio. It reduces or cancels out the tax owed, but it isn’t a deferral. It’s an offset, and it only works if you have losses available to harvest. 

Donating appreciated shares to a donor-advised fund avoids the tax on the donated shares entirely, along with providing a charitable deduction, but you also give up the shares themselves. Neither one defers a tax bill the way an exchange fund, a Qualified Opportunity Fund, or an installment sale does.

How to defer capital gains tax on stocks — your options

Here’s how the three real deferral strategies compare:

Exchange fundQualified Opportunity FundInstallment sale
What you contributeAppreciated stock, in-kindRealized sale proceeds, in cashThe stock itself, sold over time
Typical commitmentAbout 7 years for full deferralMulti-year, tied to Opportunity Zone rulesSet by the terms of the sale agreement
What you get backA diversified basket of securities, original cost basis carries overAn interest in Opportunity Zone investmentsInstallment payments, taxed as received

Which of these fits your situation depends on the size of the position, how much diversification you want, and how comfortable you are with each strategy’s tradeoffs. 

Ready to find out if an exchange fund is right for you?

Get started