< Back to IRS

Giovanni Mancini

Section 121 Exclusion on Sale of Primary Residence - Capital Gains Question

Hey fellow tax folks, I need some advice about selling our home and using the Section 121 exclusion. We bought our house back in June 2019, and my husband and I have been living there as our primary residence the whole time. We're planning to sell within the next month or so and are expecting to make around $125,000 profit. I've been doing some research and found that married couples filing jointly can exclude up to $500,000 in capital gains from the sale of a primary residence. Since our expected gain is well under that threshold, I thought we'd be good to go. But I have two questions that are confusing me: First, regarding the residency/use test - from what I understand, we need to have owned and used the home as our main residence for at least 2 years out of the 5 years before selling. But then it mentions a 5-year period, and we haven't owned the home for 5 years yet (only about 3.5 years). Does this mean we have to wait until we've owned it for a full 5 years to qualify for the Section 121 exclusion? Second, there's something about a 45-day exchange rule I saw mentioned. We might need to rent for a while after selling since the housing market is crazy right now. I read something about needing to identify a replacement property within 45 days of selling and completing the transaction within 180 days. Does this apply to primary residences? Will we lose the Section 121 exclusion if we don't buy a new home within 45 days? I'm pretty sure the 45-day rule is for investment properties, but I wanted to make sure before we sell. Thanks for any help!

You've got a couple of good questions there, and I can clear these up for you. For your first question about the Section 121 exclusion, you're misunderstanding the time requirements. The rule states you need to have owned AND used the home as your main residence for at least 2 years out of the 5-year period ending on the date of sale. Since you've owned and lived in the home for 3.5 years already, you easily meet this requirement. The 5-year period is just the lookback window - it doesn't mean you need to have owned the home for 5 years total. Regarding your second question about the 45-day rule, you're absolutely right - that's referring to a 1031 exchange, which is completely different and only applies to investment properties, not primary residences. The Section 121 exclusion for your primary residence doesn't have any requirement to purchase another home within a specific timeframe. You can sell your house, pocket the gains (tax-free up to the $500,000 for married filing jointly), and rent for as long as you want before buying another property. So based on what you've shared, you should qualify for the full Section 121 exclusion and won't have to pay capital gains tax on your $125,000 profit. And you're free to rent as long as you need until you find your next home.

0 coins

Dylan Cooper

•

What if they lived in the house for only 18 months? Would they still qualify for a partial exclusion? And does the exclusion reset when they buy a new house, or is there a waiting period?

0 coins

If they lived in the house for only 18 months, they wouldn't meet the 2-year requirement for the full exclusion. However, they might qualify for a partial exclusion if the reason for selling early is due to a change in employment, health issues, or unforeseen circumstances as defined by the IRS. The exclusion doesn't need to "reset" in the traditional sense. The rule is that you can only claim the Section 121 exclusion once every two years. So if they use it now, they would need to wait at least two years before claiming it again on a different property. But there's no requirement about how quickly they need to buy the next property - they just can't claim another exclusion within that two-year timeframe.

0 coins

Sofia Morales

•

After spending hours trying to figure out my own capital gains situation, I found this amazing tool that saved me tons of stress. I was in a similar position with confusion about Section 121 exclusion rules, and taxr.ai (https://taxr.ai) actually reviewed my closing documents and purchase/sale agreements to calculate my exact exclusion amount. It specifically helped me understand the primary residence rules and capital gains calculations that were confusing me. Might be worth checking out since their system seems to handle these Section 121 exclusion questions really well - they even explained the 2-out-of-5 year rule in a way that finally made sense to me.

0 coins

StarSailor

•

Does it work if I had rental income from the property for a year before moving in? My situation is complicated because I bought a duplex, rented half, lived in half, then converted to fully owner-occupied. Wondering if this can handle mixed-use property sales.

0 coins

Dmitry Ivanov

•

I'm skeptical about these online tools. How accurate is it compared to talking with an actual CPA? I've been burned before by tax software that missed important nuances for my situation.

0 coins

Sofia Morales

•

It absolutely works with rental situations. I actually had a similar scenario - I rented out a room in my house for two years, and the tool correctly calculated the proportion that qualified for the exclusion versus what needed to be reported as income. As for accuracy compared to a CPA, I was impressed because it referenced specific tax code sections and IRS rulings. It's actually designed to review your specific documents rather than just using a generic calculator. It gave me the same answers my accountant did, but with more detailed explanations of why certain rules applied to my situation.

0 coins

StarSailor

•

Just wanted to update after trying taxr.ai that was mentioned earlier. I was hesitant since my Section 121 situation was complicated with the mixed-use property I mentioned, but it actually sorted through my documents and identified exactly what portion qualified for the exclusion. It even flagged that I needed to recapture some depreciation I'd taken on the rental portion (which I totally forgot about). Really glad I checked it out - saved me from potentially incorrect reporting on my capital gains. Definitely recommend for anyone with primary residence sale questions.

0 coins

Ava Garcia

•

If you're having trouble getting answers directly from the IRS about your Section 121 exclusion situation, I'd recommend Claimyr (https://claimyr.com). I was in the exact same boat - confused about capital gains on my primary residence sale and couldn't get through to an IRS agent for weeks. Claimyr got me connected to an actual IRS representative in about 15 minutes who confirmed my understanding of the Section 121 exclusion and clarified that the 45-day rule definitely doesn't apply to primary residences. They have a demo video at https://youtu.be/_kiP6q8DX5c showing how it works. Seriously saved me weeks of stress trying to get official confirmation.

0 coins

Miguel Silva

•

How exactly does this work? Do they just call the IRS for you? Couldn't I just do that myself? I've been trying to get through to ask about partial Section 121 exclusions since we've only owned our home for a year.

0 coins

Dmitry Ivanov

•

This sounds too good to be true. The IRS wait times are legendary - no way you got through in 15 minutes when everyone else waits hours or days. Did you actually get definitive answers on Section 121, or just general info you could find online?

0 coins

Ava Garcia

•

They use a system that navigates the IRS phone tree and waits on hold for you. Once an agent picks up, you get a call back to connect with them. So yes, theoretically you could do it yourself, but you'd be the one waiting on hold for potentially hours instead of doing other things. I got very specific answers about my situation. The agent walked me through exactly how the Section 121 exclusion would apply in my case, including some nuances about improvements I'd made to the property and how those affected my cost basis. It wasn't just general info - it was personalized to my specific questions about primary residence exclusions.

0 coins

Dmitry Ivanov

•

I'm eating my words about Claimyr. After my skeptical comment, I decided to try it since I was getting nowhere with the IRS phone lines trying to confirm my Section 121 exclusion eligibility. Got connected to an IRS agent in about 20 minutes (not quite the 15 minutes advertised, but WAY better than my previous attempts). The agent confirmed everything about my primary residence exclusion questions and even helped me understand how to properly document my home improvements to increase my cost basis. For anyone struggling with capital gains questions on their primary residence, getting direct answers from the IRS was actually really helpful. They clarified that I can absolutely rent after selling without affecting my Section 121 exclusion.

0 coins

Zainab Ismail

•

Just wanted to add something that hasn't been mentioned yet about Section 121 exclusions. If you make any significant improvements to your home while you own it, make sure you keep those receipts! You can add those costs to your basis, which reduces your capital gain. So if you bought at $300k, sell at $425k, but put $30k into a new roof, kitchen upgrade, etc., your gain would be $95k instead of $125k. Probably won't matter for the original poster since they're well under the $500k married exclusion, but good to know for bigger gains!

0 coins

Thank you for mentioning this! We actually did renovate our kitchen about 2 years ago for around $35k and I wasn't sure if that counted. Does replacing an HVAC system count too? We did that last summer for about $8k when our old one died.

0 coins

Zainab Ismail

•

Yes, a kitchen renovation absolutely counts toward your basis! That's a capital improvement that adds value to your home. HVAC replacement also counts as a capital improvement that increases your basis. Repairs maintain your home's condition, but replacements and upgrades like a new HVAC system add to your basis. Make sure you have documentation for both projects - receipts, contracts, proof of payment, etc. The IRS doesn't usually ask for this with the Section 121 exclusion, but it's good to have if you're ever questioned.

0 coins

Quick heads up about something related to Section 121 primary residence exclusions - be careful if you've been working from home and taking home office deductions! My accountant told me if you've been deducting part of your home as a business expense, that portion might not be eligible for the full exclusion. Does anyone know if this is accurate? I've been taking home office deductions for the past year due to covid.

0 coins

Yes, this is technically true but probably won't impact most people significantly. If you take the simplified home office deduction, it doesn't affect your basis or exclusion. If you take the regular method (Form 8829), then you're right - the business percentage of your home wouldn't qualify for the exclusion, but only on the depreciation you've taken. For most people using a home office for a year or two, it's a very small amount compared to the $250k/$500k exclusion limits.

0 coins

Thanks for confirming! I've been using the simplified method ($5 per square foot) for my home office, so sounds like I don't need to worry about it affecting my Section 121 exclusion. That's a relief!

0 coins

This is such a helpful thread! I'm in a similar situation but with a twist - we're military and have been stationed overseas for the past year while still owning our primary residence. We rented it out during our deployment but are planning to move back in for at least 6 months before selling. From what I understand, the Section 121 exclusion has special provisions for military personnel that can suspend the 5-year testing period during qualified official extended duty. Does anyone know if this means we can still qualify for the full exclusion even though we haven't physically lived in the house for the past year? We originally lived in it for about 18 months after purchase before the deployment, so we're hoping the military exception will help us meet the 2-year use requirement when combined with the time we'll live there after returning.

0 coins

Sophie Duck

•

Yes, you're absolutely right about the military exception! Under Section 121(d)(9), qualified military personnel can suspend the 5-year testing period for up to 10 years while on qualified official extended duty. This means your deployment time doesn't count against you for the residency requirement. Since you lived in the home for 18 months before deployment and plan to live there for 6 months after returning, that gives you 24 months total - exactly meeting the 2-year use requirement for the full Section 121 exclusion. The fact that you rented it out during deployment shouldn't disqualify you from the exclusion as long as you meet the ownership and use tests with the military suspension applied. Just make sure you have documentation of your military orders and deployment dates in case the IRS ever questions the exclusion. This is a great example of why the military provisions exist - to prevent service members from being penalized for serving their country overseas.

0 coins

This is a great discussion! I wanted to add one more consideration that might be relevant for some folks dealing with Section 121 exclusions - if you've converted part of your primary residence to rental property at any point, you'll need to be careful about depreciation recapture. Even if the overall gain qualifies for the Section 121 exclusion, any depreciation you claimed on the rental portion has to be "recaptured" and taxed at up to 25%. This is separate from the capital gains exclusion. For example, if you rented out a basement apartment for two years and claimed $5,000 in depreciation, that $5,000 would be subject to depreciation recapture tax even if your overall gain is excluded under Section 121. It's not a huge issue for most people, but definitely something to plan for if you've had any rental income from your primary residence. The good news is this only applies to the depreciation you actually claimed - if you were eligible to claim depreciation but didn't, you're generally not required to recapture it (though there are some exceptions).

0 coins

IRS AI

Expert Assistant
Secure

Powered by Claimyr AI

T
I
+
20,087 users helped today