Direct answer: Investors with large unrealized capital gains have several alternatives to immediate recognition: holding until death (step-up eliminates the gain), using a 1031 exchange for real estate, investing realized gains into a Qualified Opportunity Zone fund, spreading gain recognition through an installment sale, donating appreciated stock to charity, and harvesting losses to offset gains. Each strategy defers or reduces the tax owed but introduces tradeoffs in liquidity, complexity, or asset control.

Capital Gains: Key Alternatives and Tradeoffs

By Swoopr Editorial Team

Published

AI-assisted content · Swoopr Investment is responsible for the final published article.

Holding Until Death: The Ultimate Deferral

The estate step-up rule (Internal Revenue Code Section 1014) provides the most complete form of capital gains deferral available to investors: holding appreciated assets until death eliminates the embedded gain entirely for heirs. When the original owner dies, the asset's cost basis is stepped up to its fair market value on the date of death. Any appreciation that accumulated during the owner's lifetime simply disappears from the tax perspective.

This strategy works best for investors who meet three conditions. First, they have no near-term liquidity need that would require selling the position. Second, the position is large enough that the tax savings justify the concentrated risk. Third, they have an estate plan that ensures the asset passes to heirs efficiently.

The main tradeoff is continued concentrated exposure. An investor holding a single large stock position waiting for the step-up carries idiosyncratic risk that diversification would eliminate. A position that falls 50% before the investor's death destroys wealth that the tax savings cannot recover. The step-up eliminates whatever gain remains at death, not the gain that existed at the time of the decision to hold.

An important limitation: the step-up applies only to assets held in taxable accounts. Assets in traditional IRAs, 401(k)s, and other tax-deferred accounts do not receive a step-up. Distributions from those accounts are taxed as ordinary income regardless of the investment's performance inside the account. Roth IRA assets pass tax-free to heirs but also without a step-up (since no capital gains tax applies inside a Roth in the first place).

The 1031 Exchange: Real Estate Only

IRC Section 1031 allows investors in real estate to defer capital gains taxes indefinitely by rolling proceeds from one property sale into a like-kind replacement property. The mechanism: sell a property, transfer the proceeds to a qualified intermediary (a third-party escrow holder), identify a replacement property within 45 days, and close on the replacement within 180 days of the original sale. The gain is deferred rather than eliminated: the deferred gain follows the replacement property by reducing its basis.

What qualifies: Real property held for investment or productive use in trade or business. This includes commercial real estate, rental residential property, raw land, and industrial property. It does not include primary residences, stock, bonds, partnership interests, or personal property (the 2017 Tax Cuts and Jobs Act eliminated like-kind exchanges for personal property).

Boot: Any cash or non-like-kind property received in the exchange is called boot and is taxable in the year of the exchange. If an investor sells a property for $1,000,000 and buys a replacement for $900,000, the $100,000 difference (received as cash) is taxable gain. To defer the entire gain, the replacement property must be of equal or greater value than the property sold, and all equity must be reinvested.

A chain of 1031 exchanges can defer gain through multiple property cycles over decades. Each exchange resets the timeline but transfers the deferred gain (in the form of reduced basis) to the new property. The accumulated deferred gain is ultimately either recognized upon a taxable sale, eliminated at death via the step-up rule, or reduced through depreciation recapture calculations. An investor who dies holding a 1031-exchanged property passes it to heirs with a stepped-up basis that eliminates all the accumulated deferred gain.

Opportunity Zone Investments: Defer and Potentially Reduce

IRC Section 1400Z-2 (the Qualified Opportunity Zone program, created by the 2017 Tax Cuts and Jobs Act) allows investors who have realized a capital gain to defer that gain by investing the gain amount into a Qualified Opportunity Fund (QOF) within 180 days of the sale.

How the deferral works: When you invest the realized gain into a QOF, you defer recognition of the original gain until the earlier of: (a) when you sell the QOZ investment, or (b) December 31, 2026. The 2026 date is a statutory deadline embedded in the original legislation and applies regardless of when the investor entered the program. At that point, the original gain is recognized and taxed at the applicable rate for the year of recognition.

The exclusion benefit: If you hold the QOZ investment for at least 10 years before selling, any appreciation that accrued on the QOZ investment itself (not the original deferred gain) is permanently excluded from federal capital gains tax. The QOZ investment's basis is stepped up to fair market value at the time of sale for the purpose of calculating gain on the QOZ investment. This is a meaningful benefit for investments that appreciate substantially during the 10-year hold period.

Tradeoffs and risks:

Donating Appreciated Stock: Avoid the Gain Entirely

Donating appreciated securities directly to a qualified 501(c)(3) charity produces two simultaneous tax benefits: a charitable deduction equal to the full fair market value of the donated shares, and complete avoidance of the capital gains tax on the embedded appreciation. Neither the donor nor the charity pays capital gains tax on the appreciation when the charity sells the shares.

Consider a comparison. An investor holds stock worth $100,000 with a cost basis of $20,000 (an $80,000 embedded gain). They want to give $100,000 to charity and have enough income to itemize deductions.

Option B is clearly superior: the investor avoids $12,000 in taxes and the charity receives $12,000 more. The deduction limit for appreciated property donated to public charities is 30% of adjusted gross income in most cases (versus 60% for cash). Excess contributions carry forward for five years.

Donor-Advised Funds (DAFs): A DAF allows an investor to donate appreciated securities in a single year (claiming the full deduction in that year), then recommend grants to specific charities over multiple years. This is particularly useful for investors who want to time a large deduction to a high-income year but distribute the giving over time.

Tax-Loss Harvesting as an Offset

Tax-loss harvesting is the practice of selling securities at a loss to generate a capital loss that offsets realized capital gains, reducing net taxable gain for the year. It does not eliminate gains permanently; it defers them by resetting the cost basis of the replacement investment to a lower level.

How losses are applied: Capital losses first offset gains of the same type. Short-term losses offset short-term gains; long-term losses offset long-term gains. After netting within each category, remaining net losses of one type can offset net gains of the other type. If total losses exceed total gains, up to $3,000 of net capital losses per year can offset ordinary income. Any excess carries forward indefinitely to future years.

Example: An investor has $15,000 of long-term capital gains and $8,000 of long-term capital losses. Net long-term gain: $7,000. Federal tax at 15% rate: $1,050 instead of $2,250 without harvesting. The $8,000 of harvested losses saved $1,200 in federal capital gains tax.

The wash-sale rule: Selling a security at a loss and buying back the same or a substantially identical security within 30 days before or after the sale disallows the loss for tax purposes. The disallowed loss is not permanently lost; it is added to the basis of the repurchased security. Working around the rule requires purchasing a similar but not substantially identical security (for example, a different index fund tracking a different index) to maintain market exposure without triggering the rule.

Tax-loss harvesting is most powerful in volatile markets where many positions have fallen below their cost basis. It is a routine element of tax-aware portfolio management, not a one-time strategy.

Frequently Asked Questions

What is a 1031 exchange and who can use it?

A 1031 exchange is a provision of the Internal Revenue Code that allows a real estate investor to defer capital gains taxes by selling a property and using the proceeds to purchase a like-kind replacement property. The replacement property must be identified within 45 days of the sale and the purchase must close within 180 days. Only real estate used for investment or business purposes qualifies; primary residences and stocks do not. Any proceeds not reinvested in the replacement property are treated as boot and are taxable in the year of the exchange.

How does donating appreciated stock reduce capital gains tax?

When you donate appreciated stock directly to a qualified charity, you receive a charitable deduction equal to the full fair market value of the stock on the date of donation, and you pay zero capital gains tax on the embedded appreciation. If you had sold the stock first and donated the cash, you would have reduced your donation by the tax owed on the gain. The charity pays no tax when it sells the shares, so donating stock is generally more tax-efficient than selling and donating cash for any investor who itemizes deductions. A Donor-Advised Fund allows you to take the full deduction in a high-income year while distributing grants over multiple years.

What is an Opportunity Zone investment and what are the tax benefits?

Qualified Opportunity Zone (QOZ) investments allow investors who have realized a capital gain to defer that gain by investing it into a Qualified Opportunity Fund within 180 days. The original deferred gain is recognized in the earlier of when the QOZ investment is sold or December 31, 2026. If the QOZ investment is held for at least 10 years, any appreciation on the investment itself is permanently excluded from capital gains tax. The tradeoff is a minimum 10-year illiquidity commitment and concentration in designated opportunity zones, which are often lower-income geographic areas with higher development risk.

References