How Long Do You Have to Reinvest Home Sale Money?

You do not have to reinvest the money from a home sale within any time frame, because federal tax law no longer requires reinvestment at all. Under Internal Revenue Code Section 121, a single filer can exclude up to $250,000 of gain from the sale of a primary residence, and married couples filing jointly can exclude up to $500,000, without buying another home or doing anything else with the proceeds.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The money is yours to spend, save, or invest as you wish. The only requirement is that you meet the ownership and use tests before you sell.

Where the Reinvestment Idea Comes From

The two-year reinvestment window people remember was a real rule, and it’s the source of nearly all the confusion. Before 1997, IRC Section 1034 required homeowners to buy a replacement residence of equal or greater value within two years to defer capital gains from a home sale.2Office of the Law Revision Counsel. 26 USC 1034 – Repealed Congress repealed that section in 1997 and replaced it with the current Section 121 exclusion.

The difference is significant. Under the old rule, the gain was only deferred, and the tax bill followed the seller from house to house. Under Section 121, qualifying gain is excluded permanently. You owe nothing on the excluded portion regardless of whether you buy another home, rent, move in with family, or park the cash in a brokerage account.

Who Qualifies for the Exclusion

The exclusion depends on two tests, both measured during the five-year period ending on the date you close the sale.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

  • Ownership test: you must have owned the home for at least two years during that five-year window. The two years do not need to be consecutive.
  • Use test: you must have lived in the home as your primary residence for at least two years during the same five-year window.

The ownership and use periods can overlap, but they don’t have to. Someone who rents a house for three years, buys it, and then lives in it for two more would meet both tests. Utility bills, voter registration, and mailing addresses can help establish primary residence status if the question ever comes up.

There’s also a frequency limit. You cannot have claimed the Section 121 exclusion on another home sale within the two years before the current sale.3Internal Revenue Service. Topic No. 701, Sale of Your Home This prevents anyone from flipping through primary residences repeatedly to shield gain over and over.

Married Couples

The $500,000 joint exclusion requires three things at once: at least one spouse meets the ownership test, both spouses meet the use test, and neither spouse claimed the exclusion on a different home in the prior two years.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence If only one spouse meets the use test, the couple is capped at the $250,000 single-filer amount.

Surviving Spouses

A surviving spouse who sells the home within two years of the other spouse’s death can still claim the full $500,000 exclusion, provided the surviving spouse has not remarried and the ownership and use requirements were met at the time of death. After that two-year window closes, the survivor filing as single is limited to $250,000. A stepped-up basis on the deceased spouse’s share of the property also applies, and in community property states the entire property typically receives a full step-up to fair market value on the date of death.4Internal Revenue Service. Basis of Assets

Divorce

When a home is transferred between spouses in a divorce, the receiving spouse can count the time the other spouse owned it toward the ownership test.5Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence And if the divorce decree grants the home to one spouse, the spouse who moves out is still treated as using the home as a principal residence for the use test. These rules keep a divorce from accidentally disqualifying someone who otherwise earned the exclusion.

Selling Before Two Years

If you sell before meeting the full two-year requirements, a partial exclusion is available when the sale is triggered by a change in employment, a health condition, or certain unforeseen circumstances.5Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

The partial exclusion is proportional. Divide the time you actually met the requirements by 24 months, then multiply by $250,000 (or $500,000 for joint filers).6Internal Revenue Service. Publication 523, Selling Your Home Eighteen months of qualifying ownership and use before a job relocation would produce an exclusion of 18/24 × $250,000, or $187,500.

For a work move to qualify, the new workplace must be at least 50 miles farther from the home than the old workplace was.6Internal Revenue Service. Publication 523, Selling Your Home Health-related moves qualify when a doctor recommends the change of residence for diagnosis, treatment, or recovery. The IRS also recognizes automatic safe harbors: involuntary conversion of the home (fire, natural disaster), divorce or legal separation, death of a qualifying occupant, loss of employment that makes the homeowner eligible for unemployment compensation, and multiple births from the same pregnancy.

Military and Foreign Service

Members of the uniformed services, Foreign Service, or intelligence community on qualified official extended duty can elect to suspend the five-year lookback period for up to ten years.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The duty station must be at least 50 miles from the property, or the member must be residing in government quarters under orders. That suspension effectively gives a service member up to 15 years to meet the two-out-of-five-year requirement.

When Some of the Gain Is Still Taxable

“No reinvestment required” only fully applies to gain that fits within the exclusion. Several situations leave part of the gain taxable no matter what you do with the money.

Gain Above the Cap

Any gain above $250,000 or $500,000 is taxable at long-term capital gains rates, assuming you owned the home for more than one year. For 2026, those rates are 0%, 15%, or 20% depending on taxable income. The 20% rate applies only above $545,500 for single filers or $613,700 for married couples filing jointly.

The 3.8% net investment income tax can add another layer. It applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 (single), $250,000 (married filing jointly), or $125,000 (married filing separately).7Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax Gain excluded under Section 121 does not count as net investment income, but taxable gain above the exclusion does.8Internal Revenue Service. Questions and Answers on the Net Investment Income Tax

Depreciation Recapture

If you claimed depreciation on the property (typically because you rented it out or used part of it for business), depreciation taken after May 6, 1997, cannot be excluded under Section 121.6Internal Revenue Service. Publication 523, Selling Your Home That amount is recaptured as unrecaptured Section 1250 gain, taxed at a maximum rate of 25%. It’s reported on Form 4797.9Internal Revenue Service. Instructions for Form 4797

A home office inside the living space of the dwelling itself does not force you to split the gain between business and personal portions at sale.6Internal Revenue Service. Publication 523, Selling Your Home The Section 121 exclusion applies to the full gain, but the depreciation still has to be recaptured. A separate structure used for business (a detached office, a converted garage with its own entrance) is treated differently: gain allocable to that structure is not eligible for the exclusion.

Non-Qualified Use

If the home spent time as a rental or vacation property before you moved in, the gain allocable to that period is not eligible for the exclusion.5Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence You divide the non-qualified period by the total ownership period, then apply that fraction to the gain. Ten years of ownership with two years of prior rental use before moving in would make 20% of the gain taxable and 80% eligible for the exclusion.

Not every absence counts as non-qualified use. Temporary absences of up to two years total for job changes, health conditions, or unforeseen circumstances are excluded, as are up to ten years of qualified official extended duty. And any period after the home was last used as a primary residence is not treated as non-qualified use; the rule only captures non-residential use that occurred before you moved in.5Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

What About a 1031 Exchange?

People asking about reinvestment deadlines sometimes have a Section 1031 like-kind exchange in mind. That’s where the strict timing comes from: 45 days to identify a replacement property and 180 days to close. But Section 1031 does not apply to a primary residence. Both properties in a 1031 exchange must be held for business or investment use.

There is a narrow overlap for people who convert a primary residence into a rental property, hold it long enough to establish genuine investment use, and then exchange it. The reverse path exists too: if you acquired an investment property through a 1031 exchange and later converted it to your primary residence, the Section 121 exclusion is available, but you must own the property for at least five years after the exchange before selling.5Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence These conversion strategies involve real timing risk and are not something to attempt without professional guidance.

Reporting the Sale

You may not need to report the sale at all if your entire gain falls within the exclusion and you did not receive a Form 1099-S from the closing agent.3Internal Revenue Service. Topic No. 701, Sale of Your Home The closing agent can skip issuing the 1099-S if the seller provides a written certification that the home is a principal residence and the full gain is excludable.10Internal Revenue Service. Instructions for Form 1099-S, Proceeds From Real Estate Transactions

You must report the sale when any of these apply:

  • Your gain exceeds the $250,000 or $500,000 exclusion limit
  • You received a Form 1099-S
  • You’re claiming a partial exclusion due to unforeseen circumstances
  • The home had periods of non-qualified use or depreciation that reduce the excludable amount

When reporting is required, use Form 8949 to detail the transaction and carry the result to Schedule D of Form 1040.11Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets If depreciation recapture applies, also file Form 4797.

State Taxes Are Separate

The Section 121 exclusion is a federal benefit. Many states impose their own income tax on capital gains from home sales, and not all of them follow the federal exclusion. A handful tax the gain even when the federal government does not. Rules vary, so checking with your state’s tax authority before closing is worth the effort, especially on a sale large enough that state treatment could shift your net proceeds meaningfully.