How to reduce taxes on dividends and capital gains selling fully depreciated rental property 1031 exchange

Trying to figure out how to reduce taxes on dividends and capital gains selling fully depreciated rental property 1031 exchange is sending me in circles. Situation: I have a rental I bought in 2011, fully depreciated, basis is basically zero. Ready to sell. I know I'm looking at the depreciation portion taxed as unrecaptured section 1250 gain at up to 25% plus capital gains on top of that. A friend mentioned a 1031 exchange could defer everything, but I also have dividend income from my brokerage that's pushing my AGI up. I've been reading Publication 550 and Topic 409 but haven't found a clear path that handles both issues at once. Is the 1031 the main lever here, or are there other moves that actually work alongside it for someone with higher dividend income?

41 comments

Sold a fully depreciated rental two years ago. The depreciation recapture piece hit harder than expected because it gets taxed as unrecaptured Section 1250 gain, which has its own rate separate from your regular long-term capital gain rate. The 1031 defers both the recapture and the capital gain, but only if you follow the exchange rules precisely — qualified intermediary must hold the proceeds, you can't touch the money.

Lena L.

Author

So the intermediary has to be in place before closing? I assumed I could set it up after the sale contract was signed but before actual closing.

I went through almost this exact situation last year. Before I did anything I uploaded my depreciation schedule and the draft closing statement to taxr.ai and had it walk through every layer — recapture, long-term gain, net investment income tax exposure given my dividend income. It showed me exactly which numbers fed into which lines on Schedule D and Form 4797 so I understood what I was actually deferring with the exchange versus what I still owed regardless. The short answer from everything I learned: a 1031 defers the gain and the recapture, but your qualified dividends sitting in the brokerage are a separate issue. The 1031 doesn't touch those. If your AGI from dividends is already high, look at whether that tips you into net investment income tax territory on the gain if the exchange falls through.

Lena L.

Author

That breakdown of what the exchange actually defers versus what stays on the table is exactly what I needed to hear. I didn't realize the dividends were completely outside the 1031 equation.

Where does the net investment income tax show up on the return? Is it on Schedule D or somewhere else?

It's on Form 8960, not Schedule D. Schedule D feeds into your overall income picture but the NIIT calculation lives on 8960. Your dividend income and net capital gains both count toward it if your modified AGI clears the threshold — the instructions to Form 8960 have the thresholds by filing status.

The qualified intermediary timing question matters a lot. The agreement with the QI must be in place before you receive or have constructive receipt of sale proceeds. If the closing happens and funds hit your account first, the exchange is blown. Set up the QI before the sale closes, not after.

Lena L.

Author

Got it, so the QI arrangement is a prerequisite, not an afterthought. I'll talk to a 1031 exchange company before I even list the property.

Correct. And the identification and exchange periods are fixed — the IRS doesn't extend them for missed deadlines in ordinary circumstances. The instructions for Form 8824 lay out what you need to report the exchange.

Depreciation recapture on a fully depreciated rental is not deferred the same way people think. The 1031 defers the tax, but the accumulated depreciation carries over to your replacement property's basis. So you're not erasing the recapture, you're pushing it forward to whenever you eventually sell the replacement — unless you do another 1031 at that point.

Does that mean the replacement property starts with a lower basis from day one because of the carryover?

Yes. You take the basis of the relinquished property, adjust it for boot and other items, and that becomes the starting basis of the replacement. Publication 551 covers basis of property received in a like-kind exchange if you want the detail.

On the dividend side separately — if your dividends are qualified dividends, their rate depends on your taxable income bracket. One approach some people use is harvesting capital losses in a year with a big gain event to offset the gains, and with a fully depreciated rental building the depreciation piece is unrecaptured section 1250 gain, not ordinary income, so losses from Schedule D offset that too.

Lena L.

Author

So capital loss harvesting helps with both the capital gain portion and the depreciation portion? I hadn't put those two together mentally.

Exactly right. The sale goes on Form 4797 and the depreciation portion flows to Schedule D as unrecaptured section 1250 gain taxed at up to 25%. Capital losses on Form 8949 and Schedule D sit on the same track. They can offset capital gains including the unrecaptured section 1250 gain itself.

Had a similar layered situation — depreciation recapture, capital gain, and a brokerage account throwing off dividends every quarter. I pasted my prior year return and my broker's year-end summary into Taxr and asked it to flag every place where the dividend income interacted with the gain from the property sale. It drafted a summary showing how my AGI was affected step by step across the forms. Then I took that to my CPA to decide on the 1031 versus installment sale question. Installment sale is worth at least asking about if a 1031 doesn't come together. It spreads the gain recognition over the payment years, though recapture is still recognized in the year of sale. That's the part that stings either way.

Lena L.

Author

Wait — with an installment sale the recapture is still all in year one even if the payments come later?

That's correct. Section 1245 and 1250 recapture is recognized in full in the year of sale under the installment sale rules. Only the remaining gain (above recapture) can be spread over the payment schedule. So the installment sale helps with the capital gain piece but not the recapture hit.

Is Form 6252 what you use to report the installment sale?

Yes, Form 6252 for the installment sale itself. Form 4797 handles the recapture piece in year of sale. They work together.

Something people miss with the 1031: boot. If you receive any cash or non-like-kind property in the exchange — say the replacement property is worth less than the relinquished — that boot is taxable in the year of exchange. With zero basis on the relinquished property almost everything is gain, so even small boot creates a tax event.

Lena L.

Author

So I'd need to trade into equal or greater value to avoid any boot at all?

Equal or greater value and all the equity has to be reinvested. If you pay down debt on the new side that doesn't replace the old side, that delta can also be treated as boot. Form 8824 instructions explain the calculation.

Worth mentioning that your dividend income itself isn't reduced by a 1031. Some people conflate tax deferral on the sale with somehow sheltering their investment income going forward. The dividends keep getting taxed each year on Schedule B regardless of what you do with the property.

I've seen people try to dodge recapture by gifting the property before the sale. That just shifts the problem — the recipient takes a carryover basis and the recapture follows the property. And if you sell to a related party after a 1031 there are additional rules that can unwind the exchange.

Lena L.

Author

Didn't know the related party rule could unwind it. How long does that exposure last?

Two years. If either party disposes of their property within two years of the exchange, the deferred gain generally becomes taxable. Publication 550 touches on this and the Form 8824 instructions go deeper.

Another angle: if you're charitably inclined, donating appreciated property avoids the capital gain and recapture entirely on the donated portion. Fully depreciated rental is a bit trickier because of the recapture rules for charitable contributions of ordinary income property, but a qualified opportunity zone investment is another deferral vehicle some people look at after a sale. These are complex enough that you'd want a CPA or tax attorney involved, not just a forum.

Went through the fully depreciated rental sale last spring, did a 1031 into a commercial property. Before closing I loaded the depreciation schedule, the exchange agreement, and the settlement statements into Taxr and had it compare the numbers across all three documents to make sure the basis carryover math was consistent. It caught a mismatch in how the QI had calculated the adjusted basis — I brought that to my CPA before we filed Form 8824 and it saved a real headache. The one thing I'd emphasize: the interaction between recapture, the NIIT, and your dividend income means the total effective rate on the gain can be higher than people expect. Run the numbers before you commit to a price on the replacement property.

Lena L.

Author

That basis mismatch catch sounds like it could have been ugly on the return. Good reminder to reconcile those numbers before filing 8824.

On dividends specifically: if any of your dividend income is from a real estate investment trust, REIT dividends often don't qualify for the lower qualified dividend rate — they're usually ordinary dividends. So your effective rate on that piece may already be higher than you think before you add the sale.

Lena L.

Author

Mine are mostly from index funds, not REITs, so hopefully most qualify. But I'll check the 1099-DIV box breakdown.

Box 1a is total ordinary dividends, box 1b is the qualified portion. The difference between the two is what's taxed at ordinary rates. Your broker's 1099-DIV breaks it out.

One practical step before you do anything else: figure out your actual adjusted basis. If the property is fully depreciated the depreciable basis is zero, but land was never depreciated. The land portion still has its original cost basis. That reduces your total gain, which matters for sizing the replacement property in a 1031.

This is a point a lot of people overlook. The 1099-S will show gross proceeds and your basis calculation has to separate land from structure. Get that number right before you sign anything.

Has anyone done a partial 1031 where only part of the proceeds go into the exchange? I'm wondering if you can defer the capital gain piece through the exchange and just pay the recapture in year of sale.

You can receive boot intentionally and recognize gain up to the boot amount. But with a fully depreciated property recapture comes first in the gain ordering, so the first dollars of recognized gain are the depreciation portion — unrecaptured section 1250 gain taxed at up to 25%. You'd need to think carefully about how much boot you're willing to take and what the tax cost is.

So I can't choose to recognize only the capital gain part and defer the recapture — the recapture is always first in line?

Correct. The character ordering isn't optional. Recapture is recognized before capital gain in the tax calculation. You can decide how much total gain to recognize by controlling how much boot you take, but you can't skip the recapture and go straight to capital gain.

If the exchange falls apart — say you can't identify a replacement property in time — make sure you understand what that means for estimated tax payments. A large gain recognized in one year can create an underpayment situation if you haven't been making quarterly payments sized for it. The Form 2210 instructions are worth a look if that happens.

Lena L.

Author

Good point. If the exchange fails mid-year I'd have a big gain drop in that tax year with no withholding to cover it. I'd need to make an estimated payment fast.