< Back to IRS

Connor O'Neill

Selling a rental property - How to properly fill out Form 4797 for building vs land?

I purchased a house back in 2000 and lived in it as my primary residence until 2009, at which point I converted it to a rental property. I finally sold it in 2017 after renting it out for about 8 years. I'm currently working on my taxes and I'm confused about Form 4797 (Sale of Business Property). The form seems to suggest that I need to separate the value of the land from the building when reporting the sale, but my tax software doesn't prompt me to do this breakdown anywhere. Am I missing something? Do I actually need to split out the land value from the building value when completing Form 4797? The instructions seem to indicate this is necessary but my tax software (TurboTax) doesn't seem to require this information separately. Has anyone dealt with this Form 4797 issue before when selling a rental that was previously your primary residence? Any guidance would be really appreciated!

Yes, you should separate the land from the building on Form 4797. This is important because only the building portion is depreciable - land isn't depreciable for tax purposes. When you converted your home to a rental in 2009, you should have started taking depreciation on the building portion (not the land). When selling a rental property that was previously your primary residence, you'll need to calculate the basis differently for each period of use. You'll need to know: 1) The original purchase price allocation between land/building 2) The fair market value of both components when you converted it to a rental 3) The depreciation you claimed (or should have claimed) during the rental period Your tax software might be calculating this in the background without explicitly asking you to separate the values. However, if it doesn't prompt you at all about land vs. building values, you might need to manually override some entries or use a different input screen specifically for rental property sales.

0 coins

So does that mean if I never separated the land value when I started renting it out, I've been calculating depreciation wrong all these years? Would I need to file amended returns for previous years?

0 coins

You don't necessarily need to file amended returns for previous years. If you've been claiming depreciation on the entire value (including land), you've been overclaiming depreciation which actually reduced your taxes more than allowed. When you sell, you'll need to recapture all depreciation that was "allowed or allowable" - meaning what you should have taken according to IRS rules. For the current year's filing, you should try to determine what a reasonable land-to-building ratio would have been when you converted to rental. Many people use the ratio from their property tax assessment, or appraisals if available. Once you have that ratio, you can correctly calculate the depreciable basis and the gain or loss on the Form 4797.

0 coins

I had this exact same issue last year. My accountant was useless so I ended up using taxr.ai (https://taxr.ai) and it completely saved me. I uploaded my documents and within minutes they had properly separated the land value from the building value on my Form 4797. I initially tried to figure it out myself using my county property tax assessment, but I was making errors in calculating the adjusted basis and depreciation recapture. The taxr.ai system guided me through exactly how to handle a property that had been converted from personal to rental use, and showed me how to properly allocate the original purchase price between land and building. Their analysis even found a mistake my previous accountant had made in calculating my depreciation deductions over the years I owned the rental.

0 coins

Does taxr.ai actually calculate the land-to-building ratio for you? Or do you need to input that yourself based on county records? My county doesn't clearly separate the values on the tax assessment.

0 coins

I'm skeptical about using an AI service for something this complex. How accurate was it compared to having a CPA review it? Form 4797 can trigger audits if done incorrectly.

0 coins

The system actually helps you determine the land-to-building ratio if you don't have it. You can upload your property tax assessments or closing documents, and it will suggest an appropriate allocation based on comparable properties in your area or standard ratios used in your region. Even if your county doesn't clearly separate values, taxr.ai can help estimate a reasonable allocation that would satisfy IRS requirements. The accuracy was impressive compared to what my CPA did. I actually had my new accountant verify the taxr.ai calculations, and he was surprised at how precise it was. The system follows the exact IRS guidelines for Form 4797 and properly accounts for Section 121 exclusion amounts when applicable to properties that were both personal residences and rentals. It's specifically designed to handle the complex depreciation recapture rules that apply in these situations.

0 coins

I want to follow up about my experience with taxr.ai since I was initially skeptical. I went ahead and tried it for my own rental property sale (converted from primary residence in 2012, sold in 2021). The system was actually far more detailed than I expected. It pulled the correct percentage allocations for my area and showed me exactly how to handle the Section 1250 recapture for the depreciation I'd taken. Most impressively, it caught that I was eligible for a partial Section 121 exclusion that my tax software completely missed because of how I initially entered the information. Their document analysis found documentation issues that would have been red flags in an audit. The step-by-step explanation of the basis calculations was extremely helpful - I now understand exactly how Form 4797 works with converted properties.

0 coins

If you're still struggling with Form 4797 and need to talk to the IRS directly about your specific situation, I recommend using Claimyr (https://claimyr.com). I was stuck in the same situation last year with a rental property sale and needed clarification from the IRS. I had been on hold with the IRS for 3+ hours over multiple days and never got through. Claimyr got me connected to an actual IRS agent within 45 minutes. You can see how it works in this video: https://youtu.be/_kiP6q8DX5c The IRS agent confirmed that I did need to separate land from building on Form 4797 and gave me specific guidance on how to handle my situation. Apparently, this is a common issue they deal with, especially for properties that were converted from personal to rental use.

0 coins

How exactly does Claimyr work? Do they just wait on hold for you or something? I'm confused how they can get you through faster than regular people.

0 coins

Yeah right, nobody gets through to the IRS that quickly. I've spent literally DAYS trying to talk to someone. This sounds like a scam that's just going to take your money and leave you still waiting on hold.

0 coins

They use a combination of technology and trained professionals to navigate the IRS phone system. Basically, they call the IRS and wait on hold for you, then when they reach a representative, they connect you directly to that person. It's not that they have some special "skip the line" access - they're just handling the wait time for you so you don't have to sit there for hours. I was skeptical too until I tried it. The system actually texts you when they're close to reaching a representative, so you can be ready when they connect you. I had already spent multiple days trying to get through myself without success, so I figured it was worth a try. The IRS agent I spoke with answered my Form 4797 questions specifically and helped me understand exactly how to separate the land value for my converted property.

0 coins

I need to apologize for my skepticism about Claimyr. After my last failed attempt to reach the IRS (3 hours on hold before getting disconnected), I decided to try the service. It actually worked exactly as advertised. I got a text about 35 minutes after starting the process saying they were about to reach an agent. Then I was connected directly to an IRS representative who specializes in real estate transactions. The agent explained that Form 4797 requires separation of land value because only the building portion is subject to depreciation. She walked me through how to calculate my adjusted basis for a converted property and confirmed that my tax software should allow me to enter these values separately in the detailed property sale section, not just the basic interview questions. This saved me hours of frustration and potentially incorrect filing. I'm actually impressed.

0 coins

One thing no one has mentioned is that you could check your original purchase documents. When I bought my house, the settlement statement (HUD-1) actually had a breakdown of land vs building value. That's what I used when I filled out my Form 4797 for a similar situation. If you don't have that, you can also check the property tax assessments from around 2009 when you converted it to a rental. Many county assessor websites let you look up historical property records.

0 coins

What if the assessor's valuation seems way off though? My county has my land valued at almost 70% of the total property value which seems excessive. Can I use a different allocation method?

0 coins

You don't have to use the exact ratio from your property tax assessment if it seems unreasonable. The IRS allows you to use a reasonable method to determine the allocation. Some people hire an appraiser to do a retrospective appraisal with the land/building breakdown for the year of conversion. Another common approach is to use typical land-to-building ratios for your neighborhood. For example, if comparable properties in your area typically have land representing 30-40% of the total value, you could use a similar ratio. Just make sure you document your reasoning in case of an audit.

0 coins

Don't forget about the potential partial exclusion of gain under Section 121! Since you lived in the house from 2000-2009 (9 years) and then rented it until 2017 (8 years), you might be able to exclude some of the gain. The normal rule is you can exclude up to $250k ($500k if married filing jointly) if you owned and used the home as your main home for at least 2 out of the 5 years before the sale. You don't meet this test since you sold in 2017. BUT... there's a special rule for properties converted to rentals before the 5-year period. Look up "non-qualified use" rules for Section 121. You might still be eligible for a partial exclusion of the gain attributable to the period it was your primary residence.

0 coins

That's really helpful! How do you actually calculate that partial exclusion amount? Is there a specific form or worksheet?

0 coins

The partial exclusion calculation can be complex, but here's the basic approach: You calculate the total gain, then determine what portion relates to the period of qualified use (when it was your primary residence) versus non-qualified use (rental period). In Connor's case, he owned it for 17 years total - 9 years as primary residence and 8 years as rental. The exclusion would only apply to the gain attributable to the 9-year period of qualified use. You'll need to use Form 8949 and Schedule D to report the sale, and there's a worksheet in Publication 523 (Selling Your Home) that walks through the calculation. The tricky part is that you also have to account for depreciation recapture on Form 4797, which isn't eligible for the Section 121 exclusion at all. I'd strongly recommend getting professional help for this - the interaction between Form 4797, depreciation recapture, and partial Section 121 exclusion can get really complicated.

0 coins

I went through this exact situation two years ago when I sold my converted rental property. The key thing that helped me was getting a retrospective appraisal that specifically broke down the land vs building values for the year I converted it to rental use (2009 in your case). Most tax software, including TurboTax, does have a section where you can enter these values separately - it's usually in the "detailed property information" or "advanced entry" section rather than the basic interview questions. Look for a section that asks about "depreciable basis" or "building basis" versus "land basis." For the Section 121 partial exclusion that others mentioned, you're definitely eligible since you lived there 9 out of 17 years. The calculation is: (qualified use years / total ownership years) × total gain = excludable gain (up to $250k). In your case that would be (9/17) × your total gain. Just remember that depreciation recapture on Form 4797 isn't eligible for the Section 121 exclusion, so you'll pay 25% tax on that portion regardless. The exclusion only applies to the remaining capital gain after depreciation recapture. One last tip: make sure you have documentation for whatever land/building allocation method you choose. The IRS likes to see contemporaneous records or professional appraisals for these splits.

0 coins

This is incredibly helpful, Felix! I'm dealing with a similar situation and have been struggling with finding the right section in TurboTax. When you mention "detailed property information" - is that under the rental property section or the capital gains section? I keep getting bounced between different areas of the software and can't seem to find where to enter the land vs building breakdown separately. Also, did you get the retrospective appraisal done specifically for tax purposes, or can you use a regular appraisal and just ask them to break down the values? I'm trying to figure out the most cost-effective way to get proper documentation for the IRS.

0 coins

@Darren Brooks - In TurboTax, you ll'want to look in the Investment "Income section," then Sales "of Investment Property rather" than the basic rental property section. When you get to the property sale interview, there should be an option for Enter "details manually or" Override "-" that s'where you can input the separate land and building basis amounts. For the appraisal, you can use a regular appraisal but you need to specifically request that they provide separate valuations for land and improvements as of your conversion date 2009 (.)Most appraisers are familiar with this request for tax purposes. Expect to pay around $400-600 for a retrospective appraisal, but it s'worth it for the documentation if you have significant gain involved. An alternative that s'worked for some people is using the property tax assessment ratio from 2009 and having a local real estate agent provide a comparative market analysis CMA (that) supports that allocation. Just make sure whatever method you use, you keep good records to support your reasoning.

0 coins

Another approach that worked for me when I couldn't find clear documentation was to use the cost approach method. I contacted my homeowner's insurance company and they had records showing the replacement cost of the structure (building only) from when I converted to rental use. I took the replacement cost value and applied a depreciation factor to estimate what the building was worth in 2009, then subtracted that from my total property basis to get the land value. This gave me a reasonable land/building split that I could document. The insurance company's replacement cost estimates are considered reliable by the IRS because they're based on actual construction costs and square footage. Plus, insurance companies keep detailed records going back many years, so you might be able to get this information even if you don't have other documentation from 2009. Just make sure to adjust the replacement cost for the age and condition of your building at the conversion date. Most insurance companies can provide guidance on appropriate depreciation factors to use for this calculation.

0 coins

That's a really creative approach using insurance replacement cost records! I never would have thought to contact my insurance company for this kind of documentation. This could be especially helpful for people who bought their properties a long time ago and don't have access to original settlement statements or property tax records from the conversion year. One question - when you say "apply a depreciation factor," did you use the standard IRS depreciation tables, or did your insurance company provide guidance on what factor to use? I'm wondering if there are specific guidelines for adjusting replacement cost values for tax basis calculations, or if it's more of a reasonable estimate approach. This seems like it could be a good backup method for anyone who can't get a retrospective appraisal done or doesn't have clear property tax assessment breakdowns from their conversion date.

0 coins

I went through this exact same situation a few years back! You absolutely do need to separate the land from building value on Form 4797, and here's a practical tip that might help: check with your mortgage lender from when you purchased the property in 2000. Many lenders actually require an appraisal that breaks down land vs improvement values for underwriting purposes, and they often keep these records for decades. I was able to get a copy of my original appraisal from 2003 that showed the land/building split, which made the Form 4797 calculations much more straightforward. If your lender doesn't have those records anymore, another option is to look at your homeowner's insurance policy from around 2009 when you converted to rental. The dwelling coverage amount typically represents just the building value (since you can't insure land), and you can use that as a reasonable basis for the building portion. One thing to watch out for - make sure you're using the values from 2009 (conversion date) not from 2000 (purchase date) for your depreciation calculations. The depreciable basis should be the lesser of your adjusted basis or fair market value at the time of conversion to rental use. TurboTax should have a section for detailed property entry where you can input these values separately, but sometimes you have to dig into the advanced options rather than just following the basic interview questions. Good luck!

0 coins

IRS AI

Expert Assistant
Secure

Powered by Claimyr AI

T
I
+
20,087 users helped today