Do You Pay Capital Gains Tax if You Reinvest in Another Property
Where the money goes next does not change the tax
Yes. Selling a property and reinvesting the money in another one on your own does not defer the capital gains tax. For a direct purchase of other real estate, the tax waits only when the sale is set up as a 1031 exchange before it closes, the proceeds go to an exchange account set up through a qualified intermediary so they never reach you, and both properties are real estate held for investment or business use.
The reinvestment plan checklist: 14 items. The first is free on this page.
Updated November 15, 2026 by Private Exchange Group. 4 minute read. Not tax or legal advice.
The short version
- A sale and a later purchase are 2 separate events for tax purposes, and the sale is taxed for the year it closes.
- The old rule that let homeowners roll gain into a new home was repealed in 1997 and never covered rental property.
- A 1031 exchange defers the gain only when it is arranged before closing and the proceeds go to a qualified intermediary.
- Deferring all of it means buying for at least your net sale price, using all the proceeds and replacing the debt paid off.
Reinvesting the money does not defer the tax
People ask this because it feels fair. The money went from one property into another and nobody spent it. The tax code does not see it that way. A sale is taxed for the year it closes, on the gain, and what you do with the proceeds afterward has no effect on that tax. The result is the same if you buy the next property a year later or the next morning.
The reason sits in the regulations on exchanges. A seller who receives the sale money before receiving the replacement property has made a sale, even if like-kind property is bought later. Receiving the money covers more than cashing a check. Funds that a closing agent credits to your account, sets aside in your name or holds for you to call on all count. For a rough idea of what a straight sale costs, use the capital gains estimator.
Where the reinvestment idea comes from
The belief is a leftover from an old rule about homes. For decades, section 1034 of the tax code let a homeowner roll the gain from the sale of a main home into the next one. Congress repealed it in 1997, for sales after May 6 of that year. It applied to a principal residence and nothing else. No version of it covered a rental or any other investment property.
What replaced it works differently. Section 121 lets a seller leave out of income up to $250,000 of gain on a main home, or $500,000 on a joint return, when the home was owned and lived in for at least 2 of the 5 years that end on the sale date. It does not ask you to buy another home, and it does not apply to a property that was only ever a rental. Owners who once lived in a rental should read primary residence and 1031.
Before closing or not at all
Three ways a sale stops being an exchange
Touch money. Pay tax.
If the proceeds are paid to you or to someone acting for you, the sale is taxable. The intermediary has to be in place before the closing.
Day 45 passes
You have 45 calendar days from the closing to name, in writing, the property you may buy. Weekends and holidays count.
You come out with cash
Cash you keep, or a loan you pay off and do not replace, is taxed up to the amount of your gain.
General rules, not tax or legal advice.
The one arrangement that makes the tax wait
Federal law has one arrangement for selling investment real estate, buying other real estate directly and deferring the gain: a 1031 exchange. It has to be set up before your sale closes. A qualified intermediary, and not you, receives the sale money under a written agreement and later sends it to the closing of the property you buy. If the money reaches you first, the sale is taxed.
Two deadlines start on the day your sale closes. You have 45 days to identify the replacement property in writing. You must close on it by the earlier of 180 days after the sale or the due date of your tax return for that year, extensions included. Weekends and holidays count toward both. The deadline calculator shows both dates for any closing date you enter.
The rule covers real estate held for investment or for use in a business, on both sides of the trade. The quick filter is that the property was not lived in and was not bought to flip. Inside that limit, like kind is broad: a rental house can be traded for an apartment building, a warehouse or land. The qualify check asks the questions an intermediary asks first.
Investing a gain in a qualified opportunity fund is a different rule that runs through a fund and has its own limits. It is compared on the page about opportunity zones and 1031 exchanges. It does not change the answer for an owner who sells one property and buys the next one in their own name.
Swipe the table sideways to see every column
General rules from 26 U.S.C. 1031, 26 CFR 1.1031(a)-3 and IRS Publication 544. Whether a particular property qualifies is a question for your own tax advisor.
What reinvest has to mean to defer all of it
Inside an exchange, reinvesting has a precise meaning. To defer the whole gain you generally buy replacement property for at least the net price of what you sold, put all of the proceeds into it, and replace the debt that was paid off at closing with new debt or with cash of your own. Fall short on any of the 3 and the shortfall is taxable, up to the amount of your gain.
The shortfall is called boot. Cash you take at closing is boot. So is a loan that was paid off and not replaced, unless you add your own cash to cover the difference. A partial exchange is allowed: you pay tax on the boot and the rest of the gain is still deferred. The page on boot in a 1031 exchange works through the arithmetic.
- Buy at or above net
- The replacement costs at least what you sold for after selling costs. Buying 2 or 3 properties works too, as long as the total reaches that figure.
- Spend all the proceeds
- Every dollar in your exchange account goes into the purchase. Money still in the exchange account when the exchange ends comes back to you as taxable boot.
- Replace the debt
- If a $200,000 loan was paid off at your sale, the purchase needs at least $200,000 of new borrowing, added cash or a mix of both.
- Same taxpayer on title
- The person or entity that sold is the one that buys. A change of name between the 2 closings should be cleared with your tax advisor first.
If your sale has already closed
If the sale closed and the proceeds were paid to you, that sale cannot be turned into an exchange. Buying another property now, even this week, will not defer the gain. Sending the money to an intermediary after the fact does not help, because you have already received it. The page on a 1031 exchange after closing explains the rule and what to do next.
What is left is planning for the return. Have your CPA estimate the tax now so the money is set aside, and ask whether losses you are carrying can reduce it. If you are under contract and have not closed, there is still time, and the call to an intermediary belongs today. The checklist at the end of this page lists what has to be true on closing day. To go through it for a sale that is still open, request a consultation.
Questions people ask
How long do I have to reinvest the money from a property sale to avoid capital gains?
No amount of time works once the money has come to you. The figure people quote is the outer limit of a 1031 exchange that was opened before the sale closed: 45 days to identify the replacement and up to 180 days to close on it, or until your tax return is due if that comes sooner. Inside an exchange those dates matter. Outside one, the sale is taxed no matter how fast you buy.
If I sell my house and buy a more expensive one do I still pay capital gains?
For a home you live in, the price of the next house has not mattered since 1997. The rule now is the home sale exclusion: up to $250,000 of gain, or $500,000 on a joint return, is left out of income if you owned and lived in the home for at least 2 of the 5 years before the sale. Gain above that is taxed whatever you buy next. For a rental, the next purchase matters only inside a 1031 exchange.
Can I sell a rental and put the money into stocks or a REIT without paying tax?
No. Moving sale money into stocks, mutual funds or REIT shares is a taxable sale followed by a new investment. A 1031 exchange, which some people call a tax free exchange, has to end in real property, and the regulations list stock and other securities among the assets that are not real property. The gain is taxed for the year of the sale, and the new holdings start fresh at what you paid for them.
Does 1031 money have to go into the same type of property I sold?
No. Real estate held for investment or business use is like kind to other real estate held the same way, whatever the type. The IRS describes like-kind properties as having the same nature or character even if they differ in grade or quality, so a rental condo can be traded for a warehouse, farmland or a leased store. U.S. property cannot be traded for property outside the United States, and neither side can be your home or a property bought to resell.


Know where you stand before you close
Tell us when the sale closes and what you own. You will hear where you stand and what has to happen first.
- Whether the property qualifies
- Your 2 deadlines on a calendar
- What your closing agent needs
Asking commits you to nothing. It keeps the option open.
Keep reading
Sources
- 26 U.S.C. 1031, Exchange of real property held for productive use or investment
- 26 CFR 1.1031(k)-1, Treatment of deferred exchanges
- 26 U.S.C. 1034, Repealed (rollover of gain on sale of principal residence)
- 26 U.S.C. 121, Exclusion of gain from sale of principal residence
- 26 CFR 1.1031(a)-3, Definition of real property
- IRS: Publication 544, Sales and Other Dispositions of Assets
