How to calculate capital gains and depreciation recapture on rental property sale

Sold a rental house this year that I bought back in 2014. Held it as a rental the whole time, never moved in. I got my 1099-S from the closing and I'm trying to figure out how to calculate capital gains and depreciation recapture on rental property sale before I hand everything to my preparer. I pulled my depreciation schedules from prior returns and I have the total accumulated depreciation. I know there are two different tax rates involved but I'm fuzzy on which amount goes where and which form it ends up on. Do I put the recapture piece on Form 4797 and the rest on Schedule D? And does the basis I report on Form 8949 get reduced by all that depreciation I already took?

36 comments

Yes, you've got the right instinct. The depreciation recapture on residential rental property goes on Form 4797, Part III (Section 1250 property held more than a year). The IRS taxes that recaptured depreciation at a maximum rate of 25% as unrecaptured Section 1250 gain — it doesn't get the lower long-term capital gains rate. The remaining gain above your original cost basis flows to Schedule D as a long-term capital gain. Your adjusted basis is your original purchase price plus improvements minus all accumulated depreciation allowed or allowable, so yes, basis is reduced by every year of depreciation whether you claimed it or not.

Amara M.

Author

The "allowed or allowable" part is what I was afraid of. I may have missed a year of depreciation on an older return. Does that mean my basis is still reduced even for the year I didn't claim it?

Correct. The IRS reduces your basis by depreciation allowable whether or not you actually took the deduction. If you missed a year, you can file Form 3115 to catch up, but either way the sale calculation treats the depreciation as taken. Worth discussing with your preparer before the return goes in.

To add the actual form flow: sale price minus selling costs equals amount realized. Amount realized minus adjusted basis equals total gain. Of that total gain, the portion equal to accumulated depreciation is Section 1250 unrecaptured gain (Form 4797, Part III line 22 feeds into the Unrecaptured Section 1250 Gain Worksheet in the Schedule D instructions). Any gain above original cost goes to Schedule D as regular long-term capital gain. Land is not depreciable so you have to separate out the land value from the structure when you do this.

Amara M.

Author

I never actually split out land vs structure on my records. The county assessment has a breakdown — is that an acceptable way to do it?

County assessment ratios are commonly used and generally accepted as a reasonable method, though the IRS can challenge any allocation. Some people use an independent appraisal from the purchase date if the stakes are high. The ratio from the original closing HUD/settlement statement works too if it listed them separately.

Don't forget selling costs reduce your amount realized. Commissions, title fees, transfer taxes you paid as the seller — those come off the top before you calculate any gain. Easy to leave them out if you're just looking at the 1099-S number, which is usually gross proceeds.

Had the same issue — my 1099-S showed the full contract price and I nearly used that raw number before I caught it.

I ran into this exact situation last year with a rental condo. I uploaded my closing disclosure, all my prior Schedule E pages, and the depreciation schedule to taxr.ai and had it walk through the gain computation line by line, separating the recapture piece from the long-term gain. It drafted the Form 4797 Part III numbers and the Schedule D entry side by side so I could see exactly where each dollar landed. Saved me from an error where I had the land value included in the depreciable basis. Still had my CPA review before filing, but walking in with that worksheet made the meeting a lot faster.

Amara M.

Author

That's useful — I have all those documents but I keep second-guessing whether I'm putting the right numbers in the right boxes.

Bonus depreciation or Section 179 taken on any personal property inside the rental (appliances, etc.) gets recaptured differently — it's Section 1245 property, ordinary income rate, also on Form 4797 but Part III lines work differently. Most residential rental landlords don't have much of this but if you replaced appliances and expensed them it matters.

Amara M.

Author

I did replace a water heater a few years ago and expensed it. So that portion recaptures at ordinary rates, not the 25% rate?

Right. Section 1245 recapture on the water heater is ordinary income. Only the structural depreciation on the building itself is Section 1250 unrecaptured gain taxed at the 25% maximum rate. Keep those separate on Form 4797.

The Schedule D piece versus Form 4797 split confused me for a long time. Short version: Form 4797 handles the recapture math and spits out numbers that flow into Schedule D and Form 1040. You don't report the sale twice — Form 4797 feeds the gain into the right buckets. Publication 544 (Sales and Other Dispositions of Assets) has the full walkthrough if you want to read the IRS version.

Sold a fourplex two years ago and had a big recapture number. Before I met with my enrolled agent I fed the closing disclosure and twelve years of depreciation schedules into Taxr and asked it to flag anywhere my basis calculation might be off. It caught that I had been depreciating the land value for the first three years — previous preparer error — and laid out what the corrected accumulated depreciation should be. That changed my recapture number meaningfully. The EA confirmed the correction and we filed with the right figures.

Amara M.

Author

Depreciating land is a surprisingly easy mistake to make if the original basis was never broken out properly.

It really is. And the IRS will catch it on audit because land depreciation is always wrong — there's no grey area there.

Also worth flagging: if you have a loss carryforward from prior years on this property (passive activity losses suspended under Form 8582), those release in the year of sale and offset the gain. Pull your prior 8582 carryover amounts. They reduce taxable income in the year of sale but they don't change the character of the gain — the recapture piece is still recapture.

Amara M.

Author

I do have some suspended passive losses from two years when the property ran at a loss. Good to know those free up in the sale year.

They free up against any income in the year of sale once it's a full disposition, not just against passive income. That's the key — a full sale unlocks all of them.

Your holding period determines whether the gain above recapture is long-term or short-term. For securities the IRS counts trade dates but for real property it's the actual closing dates. You bought in 2014 and sold now, so the non-recapture gain is long-term without question. Just make sure the dates on your Form 4797 entry match the actual settlement dates from the HUD statements.

If you used any part of the home as a home office and took depreciation on that, the same recapture rules apply to that portion. Many people forget they had a home office on a property they later converted to full rental or vice versa.

Amara M.

Author

This was always a straight rental — bought it as one, never lived there — so I don't think home office applies here.

The Unrecaptured Section 1250 Gain Worksheet inside the Schedule D instructions is what figures the amount of the 25% portion for Schedule D line 19, and the Schedule D Tax Worksheet then computes the tax on it. Your tax software fills them in automatically but if you're checking by hand that's the place to look. The tax worksheet compares your regular tax bracket against the 25% rate and uses whichever produces the right result.

Depreciation recapture can push you into a higher bracket for the year of sale even if your ordinary income is usually low, and plenty of sellers get caught off guard by it. The recapture is ordinary-income-flavored gain so it stacks on top of your other income before the remaining long-term gain is calculated. Worth modeling the full-year income picture before closing if you have any timing flexibility, though for most people the sale date isn't really negotiable.

Amara M.

Author

I already closed so the timing ship has sailed, but good to know for the planning side of things.

In that case just make sure your estimated tax payments for the year covered the sale — recapture plus a large long-term gain can produce a significant amount owed in April if nothing was withheld.

For the Form 8949 question specifically: a rental property sale typically doesn't go on Form 8949 at all if the entire gain is handled through Form 4797. Form 8949 is for capital assets — stocks, that kind of thing. Depreciable property used in a rental activity is a Section 1231 asset. Net Section 1231 gains flow to Schedule D line 11 from Form 4797 line 9, not through individual Form 8949 entries.

Amara M.

Author

That clears up a lot of confusion. I was trying to figure out which box to check on Form 8949 and it sounds like that's not even the right form for this.

Exactly. The 1099-S goes into Form 4797, not 8949. Some software asks you to enter it in a sale of rental property worksheet that then populates 4797 automatically, but the destination is 4797, not 8949.

Worth getting an enrolled agent or CPA who handles real estate to review this before filing. When depreciation recapture, suspended passive losses, and Section 1231 lookback rules all hit the same return in the same year, the interactions get complicated fast. The Section 1231 lookback in particular — if you had net Section 1231 losses in the five prior years, some of your current gain recharacterizes as ordinary income — is easy to miss.

Amara M.

Author

Didn't know about the 1231 lookback at all. I'll ask my preparer specifically about that.

The IRS page on Publication 550 has investment income basics but for a rental sale you really want Publication 544 and the Form 4797 instructions directly. Those two together cover the full depreciation recapture and Section 1231 treatment in detail.

To bring it home on the basis question from earlier: adjusted basis = original purchase price + capital improvements + closing costs at purchase (that you didn't deduct) − total depreciation allowed or allowable. Write that down and work through it line by line with your depreciation schedules before you hand anything to your preparer. The cleaner that number is when you walk in, the less time you spend in that meeting.

Amara M.

Author

I've got a solid checklist out of all this now. Going in with the closing disclosure, all prior Schedule E and 4562 pages, the depreciation total, and the suspended loss carryover from Form 8582. That should cover everything.

That's the right stack of documents. If you have improvements, bring receipts or records showing the dates and amounts — those increase basis and reduce your gain directly.