Federal capital gains tax bills can be legally reduced in two ways: deferral, which pushes the tax into a later year and keeps more capital working now, and exclusion, which removes the gain from taxation entirely. Both approaches are built into the tax code, and the main capital gains tax deferral and exclusion strategies fall into a short list: the primary residence exclusion, the step-up in basis at death, Section 1031 like-kind exchanges, installment sale reporting, tax-loss harvesting, Qualified Opportunity Funds, and charitable remainder trusts. Which one fits depends on the asset, the timing, and what you want to do with the proceeds.
Why the Rates Make These Strategies Worth Using
Long-term capital gains, on assets held more than a year, are taxed at 0%, 15%, or 20% depending on taxable income. For 2026, the 0% rate runs up to $49,450 for single filers, $98,900 for married filing jointly, and $66,200 for heads of household. The 15% rate covers income up to $545,500 single, $613,700 joint, and $579,600 head of household. Above those levels, the rate is 20%. Short-term gains, on assets held a year or less, are taxed as ordinary income.
A separate 3.8% Net Investment Income Tax applies when modified adjusted gross income exceeds $200,000 (single), $250,000 (joint), or $125,000 (married filing separately). The surtax hits the lesser of your net investment income or the amount by which income exceeds the threshold.1Internal Revenue Service. Topic No. 559, Net Investment Income Tax Gain excluded under the primary residence rules is also excluded from NIIT.2Internal Revenue Service. Net Investment Income Tax Every strategy below addresses the federal bill; most states impose their own tax on top.
Excluding Gain on the Sale of a Primary Residence
Selling your home is where most people encounter a large gain, and it comes with the code’s most generous exclusion. Single filers can exclude up to $250,000 of profit; married couples filing jointly can exclude up to $500,000. You must have owned and used the home as your main residence for at least two of the five years before the sale, and the two years need not be consecutive. For joint filers, both spouses must meet the use test and at least one must meet the ownership test.3Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The exclusion is generally available only once every two years.
Your taxable gain is the sale price minus adjusted basis and selling expenses. Adjusted basis starts with what you paid and grows with capital improvements such as a new roof, kitchen renovation, or addition. Routine maintenance does not count.
Partial Exclusion for Early Sales
If you sell before meeting the two-year test, a prorated exclusion may still apply when the move is driven by work, health, or an unforeseeable event. A qualifying work move places your new job at least 50 miles farther from the home than your old job was. Health moves cover a doctor’s recommendation or a move to care for a family member with a serious condition. Unforeseeable events include natural disasters, divorce, job loss, and death of a spouse or co-owner.4Internal Revenue Service. Publication 523, Selling Your Home The partial exclusion is scaled to the fraction of 24 months you actually met. Twelve months of use gets you half the maximum.
Rental Periods and Nonqualified Use
If you rented the home or used it as investment property during your ownership, part of the gain may not qualify for the exclusion. A ratio compares the time the home was not your primary residence to your total ownership period, and that fraction of the gain is taxable regardless of the exclusion. Periods before January 1, 2009, do not count as nonqualified use. Temporary absences of up to two years for health, employment changes, or unforeseen circumstances are also excluded, and time after your last day of personal use does not count against you as long as the sale falls within five years of that day.
Step-Up in Basis for Inherited Property
When someone dies, the cost basis of the assets their heirs receive resets to fair market value on the date of death.5Office of the Law Revision Counsel. 26 US Code 1014 – Basis of Property Acquired From a Decedent All unrealized appreciation that built up during the decedent’s lifetime disappears for tax purposes. Stock a parent bought for $20,000 and left behind worth $500,000 has a $500,000 basis in the heir’s hands. Sold the next day at that price, the tax is zero.
The rule applies to inheritances, to property held in a revocable trust, and to other transfers that take effect at death.5Office of the Law Revision Counsel. 26 US Code 1014 – Basis of Property Acquired From a Decedent Basis cannot exceed the value used for federal estate tax purposes, and assets that represent a right to future income (unpaid salary, IRA distributions) do not get a step-up. This is why many families hold highly appreciated assets until death rather than sell during life, and why stacking a 1031 exchange chain with an eventual step-up can wipe out decades of deferred gain.
Deferring Real Estate Gain With a 1031 Exchange
An investor who sells one piece of investment or business real estate and buys another can defer the entire capital gain by structuring the transaction under Section 1031.6Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Property Held for Productive Use or Investment The property must be held for investment or business use, not personal use and not inventory. Like-kind is broad: an apartment building can be swapped for raw land, a warehouse, or a retail space. The deferral is indefinite and can be repeated over a lifetime.
Two deadlines are absolute. From the day the sold property closes, you have 45 days to identify replacement property in writing and 180 days to close on the purchase. Miss either one and the full gain becomes taxable that year.6Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Property Held for Productive Use or Investment The 180-day window can be shortened if the tax return is due earlier, though filing an extension avoids that problem.
You cannot touch the proceeds. A qualified intermediary holds the funds between sale and purchase, and even temporary possession, or use of the money as collateral, kills the exchange. Intermediary fees typically run from several hundred to a couple thousand dollars for a straightforward deal.
Depreciation Recapture
A 1031 exchange also defers depreciation recapture, which would otherwise be taxed at a flat 25%. That is where much of the real savings sits for landlords who have claimed years of depreciation. The deferred recapture carries over to the replacement property’s basis. Chain exchanges long enough and pass the property to heirs, and the step-up eliminates both the deferred gain and the accumulated recapture.
Spreading Tax Over Time With an Installment Sale
When you sell an asset and receive payments in more than one tax year, you can spread the capital gains tax across those same years.7Office of the Law Revision Counsel. 26 USC 453 – Installment Method The method is common in seller-financed real estate and private business sales, letting the seller avoid a single-year tax spike.
Each payment breaks into three parts: return of basis (tax-free), capital gain, and interest income. The gain portion is set by a gross profit ratio: total profit divided by total contract price. If the ratio is 40%, then $4,000 of every $10,000 principal payment is taxable gain. Interest is taxed separately at ordinary rates. Selling the note, gifting it, or pledging it as collateral can accelerate the remaining deferred gain into a single year.
If the note charges little or no interest, the IRS imputes interest at the applicable federal rate, shifting some of each payment out of capital gain and into ordinary income. For land sales between family members, the imputed rate is capped at 6% as long as total sales between the parties stay under $500,000 in a calendar year.8Office of the Law Revision Counsel. 26 US Code 483 – Interest on Certain Deferred Payments
Offsetting Gains With Tax-Loss Harvesting
Selling losing investments to offset winners is the most flexible tool available because it needs no special structure or holding period. Losses first offset gains dollar for dollar. If losses exceed gains, up to $3,000 of the excess offsets ordinary income ($1,500 if married filing separately).9Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses Anything left over carries forward indefinitely.10Internal Revenue Service. Topic No. 409, Capital Gains and Losses
The wash sale rule is the trap. Buy a substantially identical security within 30 days before or after selling at a loss, and the loss is disallowed.11Internal Revenue Service. Wash Sales The disallowed amount is added to the basis of the replacement shares, so it survives, but it can’t offset current gains. Waiting 31 days to repurchase avoids the rule, and so does buying a similar but not identical investment. Selling one large-cap index fund and buying a different fund tracking a separate index keeps market exposure without triggering it.
The strategy compounds when it runs all year rather than in a December scramble. Losses booked in one quarter can offset gains taken in another, and unused losses stay available for future years.
Qualified Opportunity Zones in 2026
The Qualified Opportunity Zone program allows taxpayers to reinvest capital gains into designated low-income communities through a Qualified Opportunity Fund, with the reinvestment made within 180 days of realizing the gain.12Office of the Law Revision Counsel. 26 USC 1400Z-2 – Special Rules for Capital Gains Invested in Opportunity Zones The key date is December 31, 2026: all deferred gains must be recognized by then, regardless of when the fund investment was made.13Internal Revenue Service. Opportunity Zones Frequently Asked Questions
Investors already in a fund may benefit from basis adjustments that shrink the taxable portion of the deferred gain. A 10% basis increase applies to investments made by December 31, 2021, and a 15% increase to those made by December 31, 2019.12Office of the Law Revision Counsel. 26 USC 1400Z-2 – Special Rules for Capital Gains Invested in Opportunity Zones Any event that reduces or terminates the investment before December 31, 2026, such as fund liquidation, gifting, or distributions exceeding basis, triggers earlier recognition.13Internal Revenue Service. Opportunity Zones Frequently Asked Questions
The most durable benefit is separate from the original deferral. If you hold the fund interest for at least ten years, you can elect to step up the basis to fair market value on the sale date, excluding all appreciation on the fund itself from tax.12Office of the Law Revision Counsel. 26 USC 1400Z-2 – Special Rules for Capital Gains Invested in Opportunity Zones Someone investing new eligible gains in 2026 will still owe tax on the original gain almost immediately, since the deferral ends this year, but could exclude all future fund appreciation by holding until 2036. In 2026, the deferral half of the program is winding down and the basis step-ups on the original gain are gone for new money. The ten-year exclusion is what remains.
Charitable Remainder Trusts for Large Concentrated Gains
A Charitable Remainder Trust turns a highly appreciated asset into a stream of income while deferring capital gains and generating a charitable deduction. The donor transfers the asset into an irrevocable trust, which is itself tax-exempt.14Office of the Law Revision Counsel. 26 USC 664 – Charitable Remainder Trusts When the trust sells the asset, no immediate tax is due, and the full proceeds are reinvested.
The trust then pays annual distributions to the donor or other named beneficiaries for a fixed term or for life.15eCFR. 26 CFR 1.664-1 – Charitable Remainder Trusts Payments can be a fixed annuity or a percentage of the trust value recalculated annually. Distributions are taxable to the beneficiary, but the capital gains tax gets spread across years of payments instead of hitting at once. When the term ends, whatever remains passes to qualified charities.
The donor gets a charitable income tax deduction in the funding year based on the present value of the remainder interest. For appreciated property held long-term, the deduction is generally capped at 30% of adjusted gross income, with a five-year carryforward. The strategy fits assets with enormous unrealized gain and limited current income, like a concentrated stock position or undeveloped land the owner wants to diversify without triggering a six- or seven-figure tax bill.
Estimated Taxes and Reporting for the Year You Use Any of These
Realizing a large gain creates a quarterly estimated tax obligation many taxpayers miss. If you expect to owe at least $1,000 after withholding and credits, and withholding will not cover 90% of this year’s tax or 100% of last year’s (110% if your prior-year income exceeded $150,000), you need to make quarterly payments.16Internal Revenue Service. Estimated Tax Skipping them triggers underpayment penalties even if the full balance is paid by April.
The deadlines are April 15, June 15, September 15, and January 15 of the following year. If the gain was concentrated in one quarter, the annualized income installment method matches payments to the quarter the income arrived and avoids penalties for the earlier quarters.16Internal Revenue Service. Estimated Tax
Capital asset sales are reported on Form 8949, which feeds Schedule D. Each transaction needs acquisition date, sale date, proceeds, cost basis, and any adjustments.17Internal Revenue Service. Instructions for Form 8949 Brokerages supply most of it on Form 1099-B, but private sales, real estate transactions, and installment payments have to be tracked by the seller. Reporting errors don’t change what you owe, but they invite IRS letters and penalties that clean records prevent.