Calculating capital gains tax on rental property — what am I missing?

Sold a rental house this year that I bought back in 2016. I've been depreciating it every year on Schedule E, and now my broker sent a 1099-S showing the full sale proceeds. I ran the numbers myself on Schedule D and got a gain that seems way too high, then I read something about depreciation recapture being taxed differently and now I'm confused about how to actually split this out. I've looked at Form 4797 and Publication 550 but I can't figure out if the recapture piece goes there first and then the remainder goes to Schedule D, or if everything lands on Schedule D. Also unclear on what basis number to even use — do I use original purchase price, or do I subtract all the depreciation I've taken? What's the right order of steps here for calculating capital gains tax on rental property?

43 comments

Did you keep a record of the total depreciation you claimed over the years, or are you working from memory? That number matters a lot here and changes everything about where you land.

Chris K.

Author

I have all the Schedule E returns going back to 2016 so I can add up the depreciation from each year. I just wasn't sure if that was the right number to use or if there's an official figure I should be pulling from somewhere else.

The Schedule E totals are the right place. Add up the depreciation from line 18 each year — that's your accumulated depreciation and it's what reduces your adjusted basis.

The order of operations here tripped me up too. When I sold my rental I uploaded my closing statement, the old HUD-1 from purchase, and all my prior-year returns to taxr.ai. It read through every depreciation line, calculated my adjusted basis, and listed out the split between the section 1250 recapture piece and the remaining gain. I still reviewed the numbers before my CPA signed off, but it saved me hours of back-and-forth. For your situation: the sale goes on Form 4797 Part III first, then the whole gain flows to Schedule D as long-term gain, with the depreciation piece (unrecaptured section 1250 gain) taxed at up to 25%. That's the order.

Chris K.

Author

So Form 4797 is where the recapture actually gets reported, not Schedule D? I had been trying to put everything on Schedule D and that's probably why my number looked wrong.

Exactly. Form 4797 handles the sale, and the entire gain goes to Schedule D as long-term capital gain. The portion up to the total depreciation taken is unrecaptured section 1250 gain, taxed at a maximum of 25% rather than as ordinary income. This applies provided you held the property more than one year.

What was your original purchase price and what improvements did you make? Both affect your starting basis before you even subtract depreciation.

Chris K.

Author

I added a deck and replaced the roof while renting it out — both capitalized. I wasn't sure whether those get added to basis before or after I subtract depreciation.

Add them to basis first, then subtract the total accumulated depreciation (including depreciation on the improvements themselves). Your adjusted basis = purchase price + capitalized improvements − total depreciation claimed.

The section 1250 rule is the part most people miss. For residential rental property, the depreciation piece is the lesser of your total gain or your accumulated depreciation. It's unrecaptured section 1250 gain, still long-term capital gain but taxed at a maximum 25% rate, not as ordinary income. What's left beyond that gets the regular long-term rate if you held more than one year. The holding period rule is on the IRS capital gains topic page — for securities the trade date controls, but for real property the actual dates of acquisition and disposition are what count.

My recapture amount ended up being almost the entire gain because the property hadn't appreciated that much. So basically all of it was taxed at the 25% unrecaptured section 1250 rate. Not the news I wanted.

That's a pretty common outcome when appreciation is modest relative to years of depreciation. The unrecaptured section 1250 gain will never exceed your total accumulated depreciation, so if the gain is smaller than what you depreciated, the whole gain is unrecaptured section 1250 gain, taxed at a maximum 25% rate.

Are you using the right basis for the land? Land doesn't depreciate, so you need to separate it out from the building at purchase and only depreciate the building portion. If you depreciated the full purchase price including land that's a problem.

Chris K.

Author

I think I did separate it — I used the county assessor's allocation between land and building at the time of purchase. Is that the right method?

The assessor's ratio is one accepted method. Publication 551 covers basis of assets in detail if you want to verify your approach. The key is that you used a consistent, documented allocation at the time you placed it in service.

Went through a sale like this two years ago and the depreciation recapture calculation was the part I kept getting wrong. I pasted my Form 4797 draft and all my Schedule E history into Taxr and it checked each year's depreciation, flagged one year where I'd entered the wrong figure, and drafted a corrected summary for me to hand to my preparer. The preparer confirmed the corrected number was right. Worth doing before you finalize anything if you're not 100% sure your depreciation total is clean.

Chris K.

Author

That's actually really useful — I'm not 100% sure my depreciation total is clean because I did have one year where I think I entered the wrong building value. Good to know there's a way to check it before filing.

Does the 1099-S amount match what you actually received at closing, or does it show gross proceeds before selling costs? Because you can reduce your gain by selling expenses like commissions and transfer taxes. For a rental sale those go on Form 4797, not Form 8949, added to your cost or other basis on line 21.

Chris K.

Author

The 1099-S shows gross proceeds. I have a closing disclosure showing the commission and transfer taxes. So I'd adjust basis or proceeds to account for those?

Selling costs reduce your amount realized, so you'd subtract them from proceeds effectively. On Form 4797 you enter the gross sales price on line 20 and add the selling costs to your cost or other basis on line 21. Keep the closing disclosure — that's your documentation.

Something I had to learn: if you ever used part of the property as your primary residence and part as rental, the calculation splits differently. Is this a straight rental the whole time you owned it?

Chris K.

Author

100% rental the entire time. Never lived there. So I don't need to worry about any home sale exclusion calculation.

Right, the section 121 exclusion doesn't apply to pure rental property. You're in straight Form 4797 / Schedule D territory.

The state tax piece can be a separate headache too — some states don't conform to federal capital gains treatment. Are you in a state with its own capital gains rate or add-back rules?

Chris K.

Author

I hadn't even started thinking about state. The property is in a different state than where I live. Does that mean I file in both states?

Generally yes — you'd file a nonresident return in the state where the property is located, and your home state return would typically give you a credit for taxes paid to the other state. The exact credit rules vary by state so you'd want to check the nonresident state's instructions.

How long did you hold it before selling? You said 2016 purchase but didn't say what month you sold.

Chris K.

Author

Bought in March 2016, sold in August this year. So well over a year — definitely long-term.

Good. The holding period for real property runs from the actual acquisition date to the actual disposition date. Well over a year means the whole gain is long-term on Schedule D, with the depreciation portion taxed at up to 25%.

I'd really recommend pulling Publication 544 (Sales and Other Dispositions of Assets) alongside the Form 4797 instructions. The 4797 instructions alone walk you through which part of the form handles which type of gain, and for a rental property that was depreciable real property held more than a year you're looking at Part III first, then potentially Part I.

Came here to say the same thing. Part III on Form 4797 is where the section 1245/1250 recapture gets figured, and the unrecaptured amount flows up to Part I if the total gain exceeds the recapture.

Did you make the property available for rent the entire time you owned it, or were there periods it sat vacant between tenants? Vacancy while listed for rent is still treated as rental use, but personal use days (even brief ones) can complicate the calculation.

Chris K.

Author

There were some vacancy gaps between tenants but I always had it listed. No personal use days at all.

Vacancy while actively listed counts as rental use, so you're fine. No mixed-use allocation needed.

One thing worth flagging: if your gain is large enough to trigger net investment income tax, that's a separate calculation on Form 8960. Rental income and gains from rental property are generally included in net investment income. Check the Form 8960 instructions to see if the threshold applies to your situation.

Are you working with a CPA or doing this yourself? The recapture and state nonresident filing combination is enough moving parts that an enrolled agent or CPA who handles real estate dispositions regularly would be worth it, especially for the first time through.

Chris K.

Author

I was planning to do it myself but the state nonresident filing piece might push me to a CPA. I at least want to understand the federal calculation before I hand it off so I can check the work.

Knowing the structure before you hand it off is smart. CPA can't miss the recapture if you already know to ask about it.

Wait — going back to the basis question. Did you receive any insurance reimbursements or casualty loss deductions during the rental years? Those also adjust basis and are easy to forget.

Chris K.

Author

No casualty losses or insurance payouts. Straightforward depreciation only. Good reminder though, I wouldn't have thought to check.

To recap the federal flow as I understand it from this thread: adjusted basis = cost + improvements − accumulated depreciation. Amount realized = gross proceeds − selling costs. Gain = amount realized − adjusted basis. That gain goes to Form 4797 Part III first. With straight-line depreciation there's no ordinary recapture, so the whole gain flows to Schedule D as long-term. The part up to total depreciation taken is unrecaptured section 1250 gain, taxed at up to 25%. Sound right to everyone?

That's close, but for residential rental property (section 1250) depreciated straight-line there's no ordinary-income recapture. The unrecaptured section 1250 gain goes to Schedule D and is taxed at a maximum 25% rate, different from other long-term gains. The Schedule D instructions and the unrecaptured section 1250 gain worksheet are where you work that out.

Chris K.

Author

This whole thread helped a lot. I'm going to build out the adjusted basis from my Schedule E history, run through Form 4797 Part III, and then see what's left for Schedule D. If the state piece gets complicated I'll bring in a CPA.