1031 exchange basis worksheet — how do I actually build one?

Closed a 1031 exchange last fall. Sold a fourplex I'd owned for 11 years, bought a larger apartment building as the replacement. I have Form 8824 filled out but I keep getting confused on how the basis carries over into the new property. My CPA did the original exchange but I'm handling this year's return myself and want to understand the actual 1031 exchange basis worksheet math — specifically how deferred gain and unrecognized gain reduce my starting basis in the replacement property. I've read through the Form 8824 instructions twice and I understand the individual lines but I can't see how those numbers then flow into the depreciation schedule for the new building. Can anyone walk me through how this connects?

39 comments

The carryover basis is the part that trips everyone up. Your basis in the replacement property is not what you paid for it — it's what you paid minus the deferred gain. So if you paid $900k for the new building but deferred $200k in gain, your starting basis for depreciation is $700k (less land). That's the core of the 1031 exchange basis worksheet: start with the FMV of replacement, subtract the deferred gain from line 24 of Form 8824, and that gives you adjusted basis (which should match line 25).

Maya J.

Author

That framing actually helps. So the number on line 24 of 8824 is literally what comes off the replacement property's basis? I was treating it as a separate calculation and confusing myself.

Exactly. Line 24 is the deferred gain, and it's the bridge between the two properties. That figure reduces your cost basis in the new one, and line 25 shows the result. Everything flows from there into your depreciation schedule on Form 4562.

Went through a 1031 last year on a commercial-to-residential swap and the basis worksheet was the most confusing part of the whole thing. I uploaded my closing statements and the completed Form 8824 to taxr.ai and it built out the full 1031 exchange basis worksheet for the replacement property, including how boot I received affected the recognized gain on line 20 and how that gain reduced what I had to subtract from basis. Worth doing before you set up your depreciation schedule.

Maya J.

Author

Did it handle the allocation between land and structure too? That's where I'm stuck next — figuring out what portion of the carryover basis applies to the building vs. land since only the building depreciates.

Yeah, it flagged that exact issue. It noted the land allocation comes from the replacement property's contract or an appraisal, not from the old property, and that only the building portion of the adjusted basis goes on Form 4562 for the 27.5-year MACRS schedule.

One thing to be clear on: if you received any boot (cash out or mortgage relief that wasn't offset), you recognize some gain in the exchange year and that recognized gain goes on line 20 of 8824. The deferred gain is line 20 subtracted from total realized gain on line 19. Only the deferred portion reduces your replacement property basis, not the full realized gain. People mix those two lines up constantly.

Received boot on mine — got some cash back at closing. Had to recognize that portion as gain in the exchange year and still got the deferral on the rest. The 8824 instructions walk through the boot calculation but it's not obvious at first read.

My exchange also had existing depreciation on the relinquished property that factored in. The adjusted basis of the old property going into line 18 of 8824 was my original cost minus all accumulated depreciation taken over the years. If you haven't kept a solid depreciation schedule from the old property, that's the first thing to reconstruct before you can build the basis worksheet correctly.

Maya J.

Author

I have all 11 years of Schedule E returns so I can pull the depreciation from each one. Good reminder that the adjusted basis on line 18 needs to reflect all of that.

Right. And when you eventually sell the replacement property in a taxable sale, that accumulated depreciation on the old property comes back into the picture through depreciation recapture. The deferred gain never actually disappears, it just waits.

For the actual worksheet mechanics: line 18 of 8824 is your adjusted basis in the relinquished property. Add any exchange expenses you paid. That gets you to your tentative basis. Then you adjust upward for any boot paid and recognized gain, and downward for boot received. The result is your basis in the replacement property. The Form 8824 instructions have a worked example but they present it vertically and it's hard to follow without laying it out horizontally yourself.

Laid mine out in a spreadsheet with each line of 8824 as a row. Made the flow from relinquished basis to replacement basis visible in one place. That's the only way I could actually verify the numbers.

Spreadsheet approach is the way. It also makes it easy to check your work when you set up the depreciation on Form 4562 — the building portion of your replacement basis should tie directly back to the worksheet.

Had a delayed exchange with two properties and the basis worksheet got complicated fast. I ran my 8824 and both closing disclosures through Taxr and it mapped each line to the right form, flagged that my qualified intermediary fees were an exchange expense that added to basis rather than a deduction, and showed me how the deferred gain split across the two replacement properties. Really helped me not make an error on the depreciation basis for each building separately.

Maya J.

Author

I didn't know QI fees were a basis addition rather than a deductible expense — that's something I would have missed entirely. Mine was a single property exchange but I'll double check how I classified those fees.

Worth confirming with a CPA either way since the treatment can depend on how the fees are structured in your exchange agreement. But typically they go into basis rather than Schedule E expenses for the exchange year.

The land allocation question your raising is real and the IRS doesn't specify an exact method in Pub 527 — it says to use a reasonable method, usually the ratio from the purchase contract or a certified appraisal. If your replacement property's contract says 20% land, apply that to your total adjusted basis to get the non-depreciable portion. The rest is your building basis for the 27.5-year MACRS GDS schedule.

Maya J.

Author

My contract has a land/building allocation in it so I'll use that ratio. And residential rental over 27.5 years applies to the new building the same way it did the old one right?

Correct. The 27.5-year MACRS GDS recovery period applies to the replacement residential rental building regardless of how it was acquired, and your depreciation starts when the new property is ready and available for rent, not when the exchange closed.

Worth noting: the holding period for the replacement property in a 1031 includes the holding period of the relinquished property, but the depreciation basis does not carry over directly — only the adjusted tax basis does. So on Form 4562, by default, you keep depreciating the carryover basis over the old property's remaining recovery period, and only any excess basis starts a fresh 27.5-year period from the placed-in-service date, unless you elect to treat the whole basis as new property.

This is an important distinction. The holding period tacks for capital gain purposes, and by default the depreciation clock doesn't fully reset — the carryover basis continues the old remaining schedule and only excess basis starts fresh, unless you elect out.

Had a situation where the replacement property had a higher FMV than the relinquished property. The realized gain was still deferred but my basis in the new property ended up being higher because I added cash to complete the exchange. The additional cash paid goes into basis, so the worksheet shows a larger depreciable base than if I'd done an even swap. More depreciation going forward.

Maya J.

Author

That's a helpful scenario to understand. So cash you put in increases your basis in the replacement, while cash you take out (boot received) triggers recognized gain and effectively keeps your basis lower.

That's the right way to think about it. Boot paid in raises basis, boot received gets recognized as gain and lowers the deferred amount, which means less basis reduction on the replacement side.

Didn't realize until I was setting up my depreciation schedule that improvements on the relinquished property that I'd been depreciating separately still need to be accounted for in the adjusted basis calculation. Each improvement with its own depreciable life reduces your adjusted basis by its own accumulated depreciation, all of which flows into line 18 of 8824.

Had a roof replacement and an HVAC upgrade both on separate depreciation schedules. Had to calculate accumulated depreciation on each of those separately and fold it all into the adjusted basis. It adds up fast on an older property.

Used Taxr on my own exchange last spring — gave it the Form 8824 draft and my prior-year Form 4562 and it went through the 1031 exchange basis worksheet calculation line by line, caught that I had the wrong adjusted basis on line 18 because I'd missed two years of bonus depreciation on a capital improvement, and showed me the corrected basis figure before I filed. That error would have propagated into the replacement property's depreciation for every future year.

Maya J.

Author

Catching a wrong line 18 before filing is exactly the kind of thing I'm worried about. I've had the fourplex long enough that there are multiple improvement schedules and I could easily have the accumulated depreciation wrong.

That's exactly the scenario where it's worth going through the worksheet slowly. If line 18 is off, every downstream number is off — deferred gain, replacement basis, depreciation going forward. Better to catch it now than on a future audit.

If your exchange was a mixed-use situation — part of the relinquished property used personally — the basis worksheet gets more involved because only the portion used for rental is eligible for 1031 treatment. Worth flagging if any of the fourplex units were personally used at any point.

Maya J.

Author

The fourplex was fully rented the whole time, no personal use. But good flag for anyone reading who had a vacation property or partial personal use situation.

My accountant told me to keep the 1031 exchange basis worksheet as a permanent file attachment to the tax return, not just a workpaper. The reasoning was that when you eventually sell the replacement property, you need to reconstruct the deferred gain and adjusted basis from scratch if you get audited years later. Having it documented with the return saves a lot of pain.

Keeping it with the return is smart. I also keep copies of both closing disclosures, the exchange agreement, and the QI correspondence all in one folder tied to the year of the exchange.

Same. The Form 8824 itself only tells part of the story. The backup showing how you got to each line is what actually protects you.

The basis worksheet also matters for state returns if your state doesn't conform to federal 1031 rules. Some states require you to recognize the gain in the year of the exchange at the state level even when it's deferred federally. If your old and new properties are in different states it gets complicated — worth checking the state rules separately before assuming the federal deferral carries through everywhere.

My exchange crossed state lines and I had to file a nonresident return in the relinquished property's state for the exchange year. The state did not conform so there was a state-level gain even though the federal gain was fully deferred. Definitely not obvious.

To keep it practical: once you have the adjusted basis from the 8824 worksheet, you allocate it between land and improvements using your contract allocation, then on Form 4562 the building portion of the carryover basis by default continues over the old property's remaining recovery period, while any excess basis is a new asset placed in service on the date the replacement property was available for rent with a fresh 27.5-year MACRS GDS period, unless you elect to treat it all as new. That number then flows to Schedule E for the annual depreciation deduction.

Maya J.

Author

This is the step-by-step I was missing — I was overthinking the connection between 8824 and 4562. The adjusted basis from the worksheet is the input, the land/building split is the allocation, and 4562 picks up from there, with the carryover part continuing the old schedule and only excess basis starting fresh unless I elect out. Clear now, thank you.