Can long-term capital losses from stocks offset depreciation recapture on property sale?

Sold a rental I'd held for 11 years this past spring. The depreciation recapture came out to a pretty significant number and my CPA mentioned it gets taxed at 25% as unrecaptured Section 1250 gain. Meanwhile I also had a rough year in my brokerage account and ended up with long-term capital losses from stocks that are larger than that recapture amount. I assumed the losses would just wipe out the recapture gain but now I'm second-guessing myself reading through the Schedule D instructions. Can long-term capital losses from stocks offset depreciation recapture on property sale, or does the 25% rate on recapture make it somehow protected from being offset by those losses?

31 comments

I sold a duplex two years ago and had a similar situation. The short answer is yes, your long-term capital losses from stocks do offset the unrecaptured Section 1250 gain. Capital losses offset capital gains without regard to the specific rate buckets — the netting happens on Schedule D and the Unrecaptured Section 1250 Gain Worksheet. The 25% rate applies to whatever unrecaptured gain survives after the netting, not before. If your long-term losses are bigger than your total net long-term gain (including that recapture piece), you could end up with no long-term gain taxed at all.

Lena M.

Author

That's what I was hoping but I couldn't tell from reading the instructions whether the 25% bucket was somehow separate. Good to know the netting happens first.

Exactly — the worksheet walks you through it. The 25% rate is basically a ceiling on whatever gain is left standing after losses, not a wall that keeps losses out.

Had stock losses one year and a building sale the same year. Watched them offset each other on Schedule D line by line. Long-term nets with long-term first, then whatever remains hits the Qualified Dividends and Capital Gain Tax Worksheet or the Schedule D Tax Worksheet. The 25% rate only applies to the portion of net long-term gain that is unrecaptured Section 1250 gain — losses reduce the pool before that rate kicks in.

I actually uploaded my Schedule D, the Unrecaptured Section 1250 Gain Worksheet, and my brokerage 1099-B into taxr.ai last spring when I was dealing with basically this question. Taxr read through all three documents and listed exactly where the stock losses were reducing the recapture gain on the worksheet, and what the remaining taxable amount at 25% would be before I filed. Gave me confidence the numbers were right. The offsetting definitely works — I ended up with a much smaller recapture amount taxed at 25% after the losses.

Lena M.

Author

Did it flag anything unexpected or just confirm the math? I have a few lots with different holding periods and I want to make sure I'm netting correctly.

Mostly confirmed the math but it did catch that one of my "long-term" lots was actually just under a year, so it was short-term and had to net against short-term first before anything crossed over. Worth double-checking your 1099-B dates.

Worth clarifying one thing: short-term capital losses and long-term capital losses don't offset each other in the same step. Short-term nets with short-term first, long-term nets with long-term first. Only after that netting does a net short-term loss offset a net long-term gain (or vice versa). So if your stock losses are truly long-term, they go directly against the long-term gain pool that includes the unrecaptured Section 1250 piece. But if some are short-term, the netting order matters.

Lena M.

Author

Mine are all long-term, held over two years in most cases. So they should net directly against the long-term gain from the sale including recapture.

Correct. Net long-term gain or loss lands on Schedule D line 15. Whatever survives there is what hits the worksheets that sort the 0%, 15%, 20%, and 25% buckets.

I keep seeing people confuse ordinary income recapture (Section 1245 on personal property) with Section 1250 unrecaptured gain on real property. For a residential rental, the recapture is Section 1250 unrecaptured gain, taxed at max 25%, and it stays in the capital gain world — so yes, capital losses offset it. If you had Section 1245 recapture instead (like on equipment), that portion is ordinary income and capital losses would not offset it. Make sure you know which type you're dealing with.

Lena M.

Author

My CPA said Section 1250 so I think I'm fine, but good distinction. Equipment and personal property would be a different story.

This tripped me up on a commercial property years ago — had some equipment in the sale that triggered 1245 recapture and I couldn't use my stock losses against that piece at all. The 1250 piece was fine.

Does the same logic apply if the losses are bigger than the total gain? Like if you have more long-term stock losses than the entire gain from the property sale including recapture, do you just end up at zero capital gain and carry the rest forward?

Yes, that's exactly how it works. Net long-term capital loss after all the netting: up to $3,000 ($1,500 if married filing separately) of that net loss can offset ordinary income in the current year, and the remainder carries forward to the next tax year as a long-term capital loss. Schedule D has the carryover worksheet so you can track it. The unrecaptured Section 1250 gain just goes to zero once it's fully offset.

That's what I figured but I didn't want to assume. So the carryforward keeps its long-term character going into next year?

It carries forward as long-term and you use it the same way the following year. The character doesn't reset.

I had a similar question last year and before I sat down with my accountant I ran my documents through Taxr. I gave it my prior-year capital loss carryover worksheet, the closing disclosure from the sale, and my depreciation schedule, and it pulled together a summary showing how the carryover losses stacked against the new gain and what I'd still owe at the 25% rate. Really helped me walk into that meeting already knowing the right questions to ask rather than starting from scratch.

Lena M.

Author

That prior-year carryover piece is something I need to check too. I had a small loss carryover from 2023 that I haven't thought about in this context.

One thing that can complicate the picture: if you have both a net long-term capital gain AND a net short-term capital loss after all the within-category netting, the short-term loss then offsets the long-term gain. That reduces the total long-term gain bucket, which shrinks the 25% piece. So short-term losses can indirectly reduce your recapture exposure too, just through an extra step.

I sold a rental and had stock losses the same year and my tax software handled all the netting automatically. I just watched the Schedule D populate. The Unrecaptured Section 1250 Gain Worksheet fed its result into Schedule D line 19, and the losses had already reduced everything before the worksheet calculated the 25% amount. The form sequencing makes it hard to see at first but it flows in the right order.

Lena M.

Author

Seeing it described like that actually helps. I've been trying to understand it from the instructions alone and the worksheets reference each other in a way that's hard to follow manually.

Just to make sure nobody walks away with a wrong impression: depreciation recapture for real property is unrecaptured Section 1250 gain only up to the amount of depreciation you actually took (or were allowed to take). If your property appreciated way beyond that, the rest of the gain is regular long-term capital gain taxed at 0/15/20% rates. The losses offset all of it in the same netting, the rate buckets just sort whatever survives.

I had stock losses one year and no property sale, carried them forward, then had a property sale two years later with significant unrecaptured 1250 gain. Used the carryover losses from the stock losses to fully offset the recapture. Ended up with zero capital gain that year. The losses don't expire just because you had them before the property sale year.

Lena M.

Author

That's good to know — so the timing of the sale and the losses doesn't have to be the same year as long as I track the carryforward properly.

Right, the carryforward goes with you until you use it up. Just keep the carryover worksheet in your records each year so you can track it — it isn't filed, and the carryover stays alive regardless.

My situation: sold a rental and had stock losses in the same tax year, but my CPA pointed out I also had depreciation I'd taken on the property I gave up in a 1031 exchange I did years earlier, which carried over into this property's basis. That added to my unrecaptured 1250 total in a way I hadn't expected. If you did any 1031 exchanges along the way, make sure all the deferred gain and accumulated depreciation from prior properties is factored into your recapture number before you count on the stock losses to cover it.

Lena M.

Author

I didn't do any 1031 so I think I'm clear on that, but that's a wrinkle I wouldn't have thought of.

For what it's worth, Form 8824 and the depreciation carryover numbers from a 1031 are what your preparer would use to verify the full recapture basis. If anyone reading this did a prior exchange and isn't sure how much recapture was deferred, those forms from the year of the exchange are the place to start. Publication 527 and the Form 4797 instructions also cover how the gain flows.

The original question is answered well above but I'll add: once you confirm your net long-term capital gain after all losses is positive, run the Schedule D Tax Worksheet (or the Qualified Dividends and Capital Gain Tax Worksheet, whichever applies). Those worksheets are where the 25% rate on the surviving unrecaptured 1250 gain actually gets calculated. The worksheets are in the Schedule D instructions and they handle the multi-rate math in order.

Lena M.

Author

I've been dreading those worksheets but I'll work through them. At least now I understand what they're doing before I start filling them in.