How to calculate gain on sale of inherited rental when mortgage exceeded value at inheritance

My aunt passed away two years ago and I inherited her rental property. At the date of her death the house appraised at $112,000 but the remaining mortgage balance was around $128,000 — so the loan was underwater. I've been renting it out since then and just accepted an offer to sell. My tax software is asking me to enter my basis and I honestly don't know how to calculate gain on sale of inherited rental when mortgage exceeded value at inheritance. I always thought inherited property got a stepped-up basis to FMV on the date of death, but does the mortgage underwater situation change that number? I've already entered the FMV as my basis but now I'm second-guessing myself. Sale price is $141,000 and I've taken about $6,500 in depreciation since I started renting it out.

34 comments

Your basis is the fair market value at the date of death — $112,000 in your case. The mortgage balance doesn't change your basis at all. The IRS steps up inherited property to FMV regardless of what the decedent owed on it. The debt is a separate matter that the estate handled. So your starting basis is $112,000, then you reduce it by the depreciation you've claimed ($6,500), giving you an adjusted basis of $105,500. Subtract that from your $141,000 sale price and your realized gain is $35,500. The $6,500 of depreciation is unrecaptured Section 1250 gain, taxed at a maximum 25% rate rather than as ordinary income, and the remaining $29,000 is long-term capital gain since inherited property is automatically treated as held long-term.

Monica D.

Author

Stepping back — so I confirm: debt doesn't touch basis at all. That makes sense now that I see it written out. I was confusing the estate's liability with my cost basis. Thank you.

Worth adding: the stepped-up basis rule applies to the date-of-death value, but if the estate elected the alternate valuation date (six months after death) and that was used on the estate return, your basis would be the value on that alternate date instead. Worth confirming with whoever handled the estate.

The mortgage exceeding value is what's called being "underwater" and it's really common in inherited situations. It has zero effect on your basis calculation. What matters for your gain calc is FMV at DOD minus accumulated depreciation equals your adjusted basis, then sale price minus adjusted basis equals gain. Where people go wrong is thinking the debt assumption somehow reduces their basis — it doesn't.

Agreed. The confusion usually comes from non-inherited purchases where you include assumed debt in your basis. Inherited property just doesn't work that way.

Monica D.

Author

Next step I'm on: tracking down the estate appraisal to confirm the exact FMV figure used. My number was approximate.

Don't forget Form 4797 is what you use here — since this was rental property you held after inheriting it, you report the sale on Form 4797 Part III as Section 1250 property, and the gain then flows to Schedule D. Actually for residential rental it's straight-line depreciation so there's no additional Section 1250 recapture beyond the unrecaptured 25% rate — but the $6,500 is still labeled unrecaptured Section 1250 gain on your Schedule D worksheet.

Slight clarification: residential rental sold at a gain goes on Form 4797 Part III first to check for ordinary income recapture (zero here, since it was straight-line), then the remaining gain flows to Schedule D. The software usually handles the routing automatically but it's good to verify those two forms are both populating.

You're right, I oversimplified. The 4797 does the recapture math and sends the remainder to Schedule D. Good catch.

Last year I had nearly this identical setup — an inherited duplex with an underwater mortgage. Spent way too long worried the negative equity would somehow create phantom income. It doesn't. My basis was simply the appraised FMV at the date of my grandmother's passing. I uploaded all my documents to taxr.ai and had Taxr pull together a step-by-step list of every number the IRS would need to see — adjusted basis, depreciation taken each year, sale proceeds, recapture amount — laid out in the order Schedule D and Form 4797 expect them. I checked the numbers myself against my records before filing. Really helped me see how it all connected.

Monica D.

Author

Next step I'm on: pulling together my depreciation records year by year. I only have two years of depreciation but I want to make sure the total matches what I reported on Schedule E.

One thing that matters a lot here is whether you got a formal appraisal or just an estimate at the date of death. If you used a rough number and the IRS questions the basis, you need documentation to support it. An estate appraisal or a certified appraisal dated close to DOD is what holds up. If you don't have one, a qualified appraiser can sometimes do a retroactive appraisal looking at comparable sales around that date.

Monica D.

Author

My aunt's estate did hire an appraiser — I just need to track down the actual report. Good reminder that I can't just use a Zillow number for this.

Retroactive appraisals are accepted but scrutinized more. The closer to the date of death the original appraisal was done, the stronger your position.

Worth being clear on the long-term holding period point. For inherited property the IRS automatically treats the holding period as long-term regardless of how long you personally held it. So even if you sold within the first year of inheriting, you'd get long-term capital gain rates. That said you've had it two years so this doesn't change your situation, just good to know for the rate calculation.

Dealing with this myself right now on an inherited house from my father's estate. I pasted my closing disclosure, the estate appraisal, and my two years of Schedule E depreciation schedules into Taxr and had it cross-check whether my adjusted basis was being calculated correctly and flag any depreciation I might have missed. It flagged that I hadn't reduced basis for one year's depreciation in my worksheet — caught it before I entered the wrong number into the software.

Monica D.

Author

The depreciation adjustment is exactly what I'm worried about. I want to make sure I haven't under-reported depreciation on Schedule E either, because that affects both my past returns and my current basis.

Under-reported depreciation is a real trap. Even if you didn't claim it, the IRS calculates recapture based on depreciation "allowed or allowable" — meaning what you should have taken. If you missed deductions you still owe recapture on them when you sell. Publication 527 at irs.gov covers this.

Skipped depreciation is where people get bitten, thanks to the "allowed or allowable" rule mentioned above. It doesn't matter if you forgot to claim depreciation on Schedule E in a given year. When you sell, your adjusted basis is reduced by what you were allowed to deduct whether you took it or not. So dig up all your Schedule E filings and make sure the cumulative depreciation matches what you should have taken at the 27.5-year rate on the building value.

Monica D.

Author

Next step I'm on: recalculating annual depreciation at the 27.5-year rate on the building portion of the $112,000 FMV (land excluded) to verify my two years of deductions match what's allowable. If there's a gap I'll need to address it.

If there is a gap from prior years where you underreported, you can file Form 3115 to catch up the missed depreciation through an automatic accounting method change — that's usually better than filing amended returns for each year.

Nobody mentioned state taxes yet. Some states tax inherited property gains differently or have their own depreciation recapture rules. Worth checking your state's treatment separately from the federal calculation, especially if your state has a capital gains rate different from ordinary income.

To bring it back to the mortgage question since the title is specifically about that — a mortgage exceeding value at inheritance creates no income at inheritance and no basis complication for the heir. If the estate was insolvent it may have been a problem for the estate, but once you receive the property your basis is FMV period. The only way the mortgage touches your numbers is if you eventually had a forgiveness-of-debt situation, which from your facts doesn't sound like the case since you sold above the loan balance.

Monica D.

Author

Sold at $141k so the mortgage got paid off at closing with proceeds left over. No forgiveness of debt involved. This clarifies everything.

Just to be precise on the tax forms: Sale price goes on Form 4797 Part III line 20, your FMV basis on line 21, accumulated depreciation on line 22 and the resulting adjusted basis on line 23; the gain flows through the form, any ordinary income recapture (zero for straight-line residential rental) goes from line 31 to line 13, and Part II ordinary gain on line 18b is what carries to Schedule 1 line 4. The remaining unrecaptured 1250 gain amount gets picked up on the Schedule D Unrecaptured Section 1250 Gain Worksheet. Your software should do all of this automatically but those are the lines to verify.

With the line numbers corrected (adjusted basis on line 23, line 31 to line 13), this is the roadmap. If the software is doing it right those lines will all populate without manual entry once you enter the asset sale in the rental section.

Something worth confirming: when you say the property appraised at $112,000 at the date of death, was that a full estate appraisal of the real property only, or did it include personal property inside the house? Your basis should be for the real property structure and land only. And remember land isn't depreciable — you should have been depreciating only the building portion of that $112,000, not the full amount.

Monica D.

Author

Next step I'm on: checking how the appraiser broke out land versus building value. I think I may have been depreciating the full $112,000 which could be wrong.

If you depreciated the full FMV including land value, you'd want to correct that going forward and possibly look at whether prior returns need adjustment. A CPA or enrolled agent could help you sort that out cleanly before filing this year's return.

The land vs. building split is a real issue and comes up constantly with inherited rentals. The estate appraisal should have a breakdown. If not, county tax assessment ratios are sometimes used as a reasonable proxy for the land-to-building split, though that's not guaranteed to hold up under IRS scrutiny.

For the actual gain reporting — once you have your confirmed adjusted basis, make sure the date acquired on your Form 4797 or Schedule D shows the date of death, not the date the estate transferred the deed to you. The holding period and basis both trace back to that date.

Monica D.

Author

Good point — I know the date of death exactly. I'll use that as the acquisition date in the software entry.

If the numbers are significant or the land-building split issue turns out to be a real discrepancy, this might be worth a session with an enrolled agent or CPA who handles real estate before you file. The recapture rules, the allowed-or-allowable trap, and a potential prior-year depreciation correction on Form 3115 all at once is a lot to get right on your own.

Monica D.

Author

Agreed. I'm going to get the estate appraisal, do the land-building split correctly, verify my depreciation schedule, then decide if I need a CPA to review before I file. At least now I know the mortgage issue doesn't complicate my basis — that was the core question.