Can I avoid capital gains on land sale by reinvesting the proceeds?

Closing on a parcel of bare land next month, and my realtor keeps telling me I can avoid capital gains on the land sale by reinvesting the proceeds into another property. I've owned this lot about 9 years so it's definitely long-term. The gain is going to be significant and I really don't want a huge bill in April. I tried reading about 1031 exchanges but honestly got confused fast — there are deadlines, rules about what qualifies, intermediaries, and I don't know if the new property has to be the same type. I'm not selling my house, just raw land I bought as an investment. Can I actually defer this by reinvesting, or is my realtor oversimplifying it? And does it matter what I reinvest into — stocks, a rental, another lot?

32 comments

Your realtor is describing a 1031 like-kind exchange, but oversimplifying it badly. Reinvesting the proceeds yourself into anything — stocks, a fund, another property you buy directly — does NOT defer the gain. The 1031 rules require a qualified intermediary to hold the proceeds; you can never touch the money. If you receive the cash at closing, the exchange is already blown and the full gain is taxable that year. The IRS is strict on this.

Wes S.

Author

So I literally cannot have the sale proceeds hit my bank account at all? That changes everything about how I was thinking about this.

Correct. The intermediary has to be in place before closing, and the exchange agreement has to be signed before the deed transfers. You cannot set it up after the fact.

I sold farmland two years ago and went through the 1031 process. Land absolutely qualifies as real property held for investment, so a like-kind exchange is available to you. The key thing people miss is the two deadlines: 45 days to identify the replacement property in writing, and to close on it by the earlier of 180 days or your return's due date, with extensions. That means a December closing needs an extension of your return to get the full 180 days. Both run from your relinquished property closing date, not from some other trigger. Miss either one and you owe the full gain.

I was in almost the same position last year — raw land, big long-term gain, wondering what I could actually defer. I uploaded my purchase documents, the draft closing disclosure and the tentative exchange agreement to taxr.ai and had Taxr map out exactly what basis I had, what the recognized gain would be, and which numbers on Form 8949 and Schedule D I'd be looking at under each scenario (full sale vs. partial exchange vs. full exchange). Seeing the actual line-by-line difference made the decision a lot clearer. The rule-checking I still ran by a CPA, but the document work saved a lot of time.

Wes S.

Author

That's actually really useful — I have a draft closing disclosure already and I've been staring at it not knowing what I'm looking at. Did Taxr handle the basis calculation if you had things like closing costs from the original purchase?

Yes — I had original closing costs, a survey I paid for, and a road-access easement I'd bought. It pulled all of it into the adjusted basis and showed me how each item affected the gain number before I ever talked to the CPA.

Worth knowing: even inside a successful 1031, if the intermediary sends you any cash at closing (called "boot"), that portion is taxable in the year of the exchange. So if the replacement property costs less than your net sale proceeds, you will owe capital gains on the difference. A full deferral requires trading equal or up in value and reinvesting all equity.

Boot also shows up if you take on less debt on the replacement property than you carried on the relinquished one. Debt relief counts as boot even if no cash changes hands.

Wes S.

Author

The land I'm selling has no mortgage at all, so I shouldn't have debt-relief boot — but I'll double-check with whoever I end up using as the intermediary.

One thing I want to push back on slightly: a 1031 exchange doesn't eliminate the capital gains, it defers them. When you eventually sell the replacement property without doing another 1031, the deferred gain from every exchange in the chain comes due. Your basis in the replacement property is reduced by the deferred gain, so the taxable gain on the final sale is larger. Some people exchange their whole lives and pass the property to heirs who get a stepped-up basis — that's one way it effectively disappears. But "avoid" isn't quite the right word.

I tried to do a delayed 1031 on a lot sale a few years back and blew the 45-day identification deadline by one week. The whole thing collapsed and I owed the gain that year. If you're doing this, track those calendar dates obsessively. Put them in your phone the minute the relinquished property closes.

The 45 days does NOT extend for weekends or holidays either. The IRS has refused extensions except in certain federally declared disasters. It is exactly 45 calendar days.

You mentioned stocks — just to be clear, a 1031 exchange cannot defer gain by reinvesting into stocks, bonds, funds, a business, or anything other than real property. The like-kind rule for real estate means real property for real property. Land for a rental building qualifies; land for an S-corp or ETF does not.

When I sold a commercial lot and was trying to figure out what a partial exchange would do to my actual tax bill, I had Taxr read through my 1099-S, my original HUD-1, and two potential replacement property term sheets. It drafted a comparison showing the Form 8949 entries, the Schedule D totals and the estimated net tax under each scenario. I took that document to my CPA and we worked through it in about half the time it usually takes. Good starting point before you spend money on professional hours.

Wes S.

Author

This is exactly the kind of prep work I need to do. I have my original HUD-1 from when I bought the land — I'll pull that together with the closing disclosure.

If you don't want to do a 1031, another angle people consider is an installment sale under Section 453. You spread the gain over the years you receive payments from the buyer rather than recognizing it all in year one. It's not a deferral of the same type — you are recognizing gain, just in pieces. It can help with rate planning in lower-income years. It doesn't work inside a 1031.

Installment sale is worth flagging: it doesn't eliminate gain either, just spreads recognition. And if Congress changes capital gains rates in a future year, you'd owe at whatever rate applies when you receive each payment — which could cut either way.

The replacement property in a 1031 also has to be "held for productive use in a trade or business or for investment." You can't exchange into a property you plan to immediately move into as a primary residence or immediately flip and sell. The IRS looks at intent at the time of the exchange.

There's a safe harbor some practitioners reference: hold the replacement property at least two years and rent it out before converting to personal use. But that's a planning conversation for a CPA or tax attorney familiar with 1031s, not something to assume applies automatically.

I sold land into a 1031 and used a Deferred Sales Trust instead of identifying replacement property. Some people go that route when they can't find a replacement in time. I won't pretend I fully understood it — I had a tax attorney walk me through it. If you're in that position, you need a professional, not a forum.

Deferred Sales Trust structures are complex and the IRS scrutinizes them. That's firmly in "hire a tax attorney" territory, not a DIY situation.

Just to get back to your specific question on what happens on the actual return if no exchange: you'd report the sale on Form 8949, with your adjusted basis in column (e) and proceeds in column (d). The gain flows to Schedule D. Since you've held more than a year it's long-term, reported in Part II. The applicable rate depends on your total income for the year — the Schedule D instructions walk through the Qualified Dividends and Capital Gain Tax Worksheet.

Wes S.

Author

Good to know the mechanical steps. My basis is basically what I paid plus closing costs plus a fence I put in — I'll need to document all of that.

Improvements like a fence do add to your basis under Publication 551. Keep the receipts. Original closing costs (title insurance, recording fees, survey costs you paid as buyer) also typically add to basis. The IRS pages on basis of assets have the full list.

My accountant made me aware that land doesn't qualify for depreciation the way a building does, so there's no depreciation recapture to worry about on a bare land sale. The entire gain is just capital gain. That's actually one cleaner aspect of selling raw land versus improved property.

Correct — no Section 1250 unrecaptured depreciation issue on bare land. All long-term gain, taxed at capital gains rates.

Something worth checking before you assume a full 1031: state tax treatment of like-kind exchanges varies. Some states fully conform to the federal deferral, others have clawback provisions if you exchange into an out-of-state property. If your replacement property is in a different state, ask a CPA about your specific states.

I'd strongly suggest getting a qualified intermediary lined up this week if closing is next month — most intermediaries want 5 to 10 business days at minimum to get the exchange agreement drafted and signed before closing. You are cutting it close just on logistics alone.

Wes S.

Author

This is the comment that actually got me moving. Called two intermediaries today. Closing is 24 days out and apparently that's tight but workable if I move now.

Get the exchange agreement signed and sent to your closing agent before closing day. The intermediary should also be on the settlement statement as the entity receiving the proceeds, not you.

To directly answer the original question: no, you cannot avoid capital gains on a land sale simply by reinvesting the proceeds on your own. The only federal mechanism that defers gain on investment real estate is a properly structured 1031 exchange with a qualified intermediary, exchange agreement in place before closing, and strict adherence to the 45-day identification and 180-day replacement windows. Everything else — reinvesting in stocks, buying a property yourself with the cash — is a taxable sale. See Topic no. 409 and Publication 550 at irs.gov for the capital gains rules, and the instructions for Form 8949 for how to report it if you don't exchange.