The capital gains tax on real estate when you sell your house is generally 15-20% of the capital gain from the home sale. That’s a lot.
Ever wonder how to avoid paying taxes when selling a house?
If you do things right, you can actually avoid capital gains tax on the proceeds from the sale of your house by taking advantage of the capital gains tax exclusion for primary residence home sales.
This is a huge tax break for home sellers: you can exclude up to $250,000 in gain from taxes if you’re single; $500,000 if married filing joint.
This article explains exactly how the tax rules for selling a home work. The rules are tricky so pay attention to make sure you don’t accidentally disqualify yourself.
All homeowners thinking of selling their house — and even home buyers who just want to learn how to be tax-efficient — can get a LOT of value from understanding how the home sale exclusion works.
I structured this post as an FAQ. But I’ll use a bunch of examples to show you how the nuances, exceptions, and limitations work.
Click any of the links below to jump to each question.
What part of the tax code is this?
Who qualifies for the exclusion?
What type of home qualifies?
How much can you exclude?
When can you claim the exclusion?
What does the exclusion mean for tax purposes?
How many times can the exclusion on capital gains taxes be claimed?
What special rules apply to married taxpayers?
Sometimes, married couples are treated as if they were not married…
Changes to the law back in 2009
No exclusion for “periods of nonqualified use”
What is “nonqualified use”?
But some exceptions…
What happens for “periods of nonqualified use”?
Example #1: Simple case…
Example #2: Unhappy simple case…
Example #3: More complexity…
Example #4: Straddling the border
What happens when you fail to meet some of the requirements?
Examples of change in employment
Examples of change in health
Examples of other unforeseen circumstances
Great, you’re eligible for a partial exclusion! How is it actually calculated?
Two final notes about job changes, health, and other unforeseen circumstances
Depreciation recapture
Let’s start with the basics….
What part of the tax code is this?
The statute that governs the $250k / $500k exclusion on home sale gains is:
26 U.S. Code § 121 – Exclusion of gain from sale of principal residence
This is from the Internal Revenue Code. Feel free to click and read and compare my explanations to the statute if you’re unclear about anything.
Who qualifies for the exclusion?
People who satisfy the “2 out of 5 year rule.” What is the 2 out of 5 year rule?
It is a test that the IRS uses that says: people who own and use a home as a primary residence for at least 2 of the 5 years immediately prior to selling their home can qualify for the capital gains tax exclusion.
There are some exceptions to the 2 out of 5-year rule explained later in this article. The exceptions allow you to claim a partial home sale tax exclusion even when you sell your house within (or less than) 2 years of buying it. For example, if you sell your house after 1 year, you can still get a partial capital gains exclusion if you meet a few other conditions (explained below).
What type of home qualifies?
Basically, any home that is your primary residence. Doesn’t matter if it’s a single family home, condo, townhouse, whatever.
What determines whether a home is your primary residence is whether you are physically living in the home.
This means you cannot avoid capital gains tax on the sale of a second home. You also cannot avoid capital gains tax on rental property. For rental property, you can use Section 1031 to do a 1031 exchange and defer tax liability, but the capital gains exclusion provided by Section 121 does not apply to rental property.
Can you avoid capital gains tax by buying another house? No, you cannot – at least at the federal level. Some states or municipalities may have exceptions for state or local tax liability, (e.g. special property tax basis rules when you sell a house and buy another one), but not for federal tax liability which is where you’ll pay the most in capital gains taxes anyway.
So, whether you buy another house after selling your current primary residence doesn’t impact your federal capital gains tax liability: your eligibility for the capital gains exclusion is only based on whether the home you are selling is your primary residence.
There is also a common question re: at what age can you sell a house and not pay capital gains taxes. This is based on an outdated rule that no longer applies that previously provided a special capital gains home sale exemption for over-55 seniors who are home sellers. The over-55 home sale exemption was repealed following the passage of the Taxpayer Relief Act of 1997. It was replaced by the modern Section 121 home sale tax exclusion.
How much can you exclude?
The capital gains exemption allows you to exclude up to a maximum of $250k gain if you’re single, or $500k if you’re married filing jointly.
If you sell your home for LESS gain than these amounts, the amount you can exclude will obviously be less. It’s limited to your actual gain.
For you capitalists out there, you might be thinking: “What if I sell my house to my child or a family member for $1 or below market value?”
The tax implications of selling your house below market value don’t allow you to avoid taxes. If you sell your house to a family member for $1, you won’t have to pay capital gains taxes on the sale, but you will have to pay federal gift taxes, which are imputed as the difference between the sale amount and the fair market value of the property.
Federal gift tax rates are higher than home sale capital gains tax rates, so it’s a worse deal to try to avoid home sale capital gains taxes by selling your home below market value.
When can you claim the exclusion?
Upon the sale, exchange, or involuntary conversion of your primary residence. We’ll talk more later about what “exchange” and “involuntary conversion” mean.
What does the exclusion mean for tax purposes?
It means the capital gain from the sale of your home, up to $250k for single filers and $500k for married joint filers, is excluded from your income.
How many times can the exclusion on capital gains taxes be claimed?
You can only claim this exclusion once every TWO years.
What special rules apply to married taxpayers?
In order to get double the exclusion amount, i.e., $500k:
- At least ONE spouse must own the home for 2 of the 5 years prior to sale
- BOTH spouses must actually live in the home as their primary residence for 2 of the 5 years prior to sale
- NEITHER spouse can be in a “time out” because of the “once every 2 years” limit noted above
If you and your spouse satisfy all these criteria, hooray — you get a $500k exclusion!
Sometimes, married couples are treated as if they were not married…
But what happens when you or your spouse fail one of the criteria above?
Well, you don’t get knocked out entirely.
What happens is, the IRS grants you an exclusion AS IF you were not married.
What that means is, the IRS will evaluate each of you independently to see what your own personal exclusion WOULD have been had you been a single tax filer.
Furthermore, for purposes of that analysis, the IRS will treat BOTH spouses as having owned the property whenever EITHER owned the property.
In other words, if only ONE spouse actually held title, the IRS will fictionally assume BOTH spouses held title at the same time…but just for this one analysis.
However much exclusion each of you would be entitled to via this analysis, the IRS will take the sum of both amounts and declare that as the total exclusion you are jointly entitled to.
This may sound complicated, but you can get a feel for how it works by considering the case where, say, a woman owns and lives in a home for 3 years before marriage, then marries, and then 1 month after her wedding decides to sell her house because the couple moves to a new city for new jobs.
In that case, the husband will fail the 2-year residency requirement, so the IRS will evaluate them separately, but will fictionally assume the husband owned the house for the same time the wife owned the house — 3 years.
Then the IRS will take whatever partial exclusion the husband is entitled to, add it to whatever exclusion the wife is entitled to, and then declare the SUM to be the actual exclusion the couple is jointly entitled to.
We’ll see some detailed examples of this in a moment.
Changes to the law back in 2009
In the simple days before 2009, the rules were uncomplicated.
As long as you satisfied the 2-year residency requirement, you could claim a nice fat exclusion.
But starting in 2009, Congress decided it needed to raise more tax revenue. So it amended the rules to make home sale capital gains tax exclusion more restrictive.
Now, you have to meet the 2-year residency requirement PLUS check a few other boxes to get the full exclusion.
A lot of people will get caught by these changes, so let’s examine what they are….
No exclusion for “periods of nonqualified use”
Basically, the IRS now says, assuming you first meet the 2-year residency requirement, you will only be allowed to claim the tax exclusion for “periods of qualified use.”
You can no longer get it for “periods of nonqualified use” even when you meet the residency requirement.
What’s considered qualified vs. nonqualified use?
What is “nonqualified use”?
First, the IRS says the term “period of nonqualified use” means any period starting January 1, 2009, when the home is not used as a primary residence of the taxpayer or taxpayer’s spouse.
So, anything before 2009 still counts under the old law. The new restrictions only apply starting January 1, 2009.
That means if you bought your home before 2009 and sold it during or after 2009, then you’ll use the old law to determine your tax liability for the part before 2009, and then use the amended law to determine your tax liability for the period afterward.
I hope that doesn’t make your head want to explode.
Since the test for primary residence is whether you are physically living in the home, then any time you are NOT physically living in the home, the home is NOT considered your primary residence.
If you rent your home out, it’s not your primary residence. (However, if you just rent out 1 room, you’re still safe, but fractional depreciation rules will apply to that room.)
If you live somewhere else for part of the year, like a vacation home, then your regular home is not your primary residence while you’re away.
I don’t think the IRS will check too carefully if you are just going on vacation for 2 weeks and living in hotels, even though I think that technically means your home is not your primary residence while you’re away.
But some exceptions…
Even though the new rules around “nonqualified use” mean the $250k / $500k tax exclusion is no longer simply determined by the 2-year residency requirement, there are a few exceptions where not living in the home is nevertheless recognized by the IRS as permissible for tax exclusion purposes.
There are 2 exceptions I want to point out in particular.
First, the period between the LAST date the home is used as a primary residence and the date the home is sold is NOT considered nonqualified use.
To be clear, it’s not considered qualified use, either; it’s just not NONqualified use. Our examples later will show the significance of this distinction.
Second, any temporary absence, not exceeding 2 years, due to a change of employment, health condition, or other unforeseen circumstances also is not considered nonqualified use.
We’ll define these terms: “employment,” “health condition,” and “other unforeseen circumstances” in a moment.
What happens for “periods of nonqualified use”?
If part of your ownership period consists of nonqualified use, you won’t get the full tax exclusion, even if you satisfy the 2-year residency requirement.
But you might still get a partial tax exclusion…and if the gain is large enough you might even still be able to get the full exclusion.
And remember: all this nonqualified use stuff only applies to 2009 or later. Before that, there is no such concept and therefore no restrictions on the tax exclusion.
We’ll show how all this works in our examples below.
So…if you can only claim part of the tax exclusion, exactly how much CAN you claim?
It’ll be a percentage. The way the IRS determines that percentage is by creating a fraction.
The numerator of the fraction is the total days of nonqualified use while you owned the home SINCE January 1, 2009.
The denominator is the total days you owned the home, even before 2009.
That percentage is what you CANNOT exclude from taxes. You can exclude the rest. (The percentage is applied against your actual gain amount, not the max $250k/$500k threshold.)
Okay, enough theory.
Let’s look at examples…
Example #1: Simple case…
Let’s say Victor and Victoria, a married couple, purchase a home for $1 million and sell it for $1.6 million.
Victor and Victoria buy their home January 1, 2019. They live there as their primary residence for 2 years plus 1 day, moving out January 1, 2021.
The next day, they rent out the house to a tenant, who leases it for 2 years plus 364 days — just shy of 3 years. They sell the house December 31, 2023, exactly 5 years after buying it.
What are the tax consequences?
Since their entire ownership period occurs after 2009, only the post-2009 regime applies.
In this case, Victor and Victoria will get the full tax exclusion of $500k.
They satisfied the 2-year residency requirement because they lived in the house for 2 years and a day.
They also have a valid exception to nonqualified use because the period after the LAST date the home was used as a primary residence (January 1, 2021) is NOT considered nonqualified use.
That’s true even though they rented out the home for nearly 3 years.
So, Victor and Victoria get the first $500k gain excluded from taxes. They’ll pay long-term capital gains taxes on the final $100k of gain.
Example #2: Unhappy simple case…
Let’s look at a similar example. Same facts as above, except here Victor and Victoria move out 1 year plus 364 days after buying and occupying the house — just shy of 2 years.
They rent out the house for the remainder of the time until they sell at the 5-year mark.
Now, our unhappy couple fails to satisfy the 2-year residency requirement.
Even though the period after they move out is still validly excepted from nonqualified use, they cannot claim any tax exclusion because they failed the 2-year residency requirement.
So they must pay long-term capital gains taxes on the entire gain of $600k. Bummer.
Example #3: More complexity…
Getting a little more complicated, let’s say Victor and Victoria buy their home for $1 million on January 1, 2018.
They live there 1 year and move out December 31, 2018, so Victoria can accept a 1-year job rotation to a foreign branch office of her company. During their year abroad, they rent out their house.
The day after the tenant’s lease ends on December 31, 2019, they move back in. They live there for 2 more years and then move out again December 31, 2021.
They find a new tenant and start renting the house out the following day until they sell exactly 2 years later on December 31, 2023, for $1.6 million.
In this scenario, Victor and Victoria own the house for a total of 6 years.
4 discrete use periods:
- Primary residency #1 (1 year from 1/1/18 – 12/31/18)
- Move out for job rotation (1 year from 1/1/19 – 12/31/19)
- Primary residency #2 (2 years from 1/1/20 – 12/31/21)
- Move out to change things up (2 years from 1/1/22 – 12/31/23)
What are the tax consequences?
Victor and Victoria still get the full tax exclusion of $500k.
First, the IRS looks back 5 years from the sale to evaluate the 2-year residency requirement. In this case, it was satisfied.
Next, we determine that the earliest year of the lookback period, 2019, does not count as “nonqualified use,” even though Victor and Victoria weren’t living in the house, because they moved due to a job rotation which is a valid exception.
Finally, the last 2 rental years also don’t count as “nonqualified use” because of the exception after the LAST date the home is used as a primary residence. So, 2022 and 2023 will not count as “nonqualified use.”
That means, even though half the 6-year period was spent renting the house to tenants, Victor and Victoria can still claim the full exclusion because there are no periods of nonqualified use!
Victor and Victoria happily exclude the first $500k gain and then pay regular capital gains taxes on the last $100k.
Example #4: Straddling the border
What about when the house is purchased before 2009 and sold after 2009?
Same facts: Victor and Victoria buy for $1 million and sell for $1.6 million.
They buy and move in January 1, 2006. They move out 1 year later and rent out the home for the next 4 years: 2007, 2008, 2009, and 2010.
They move back in 2011 and live there exactly 1 year before accepting a job rotation overseas. For that year abroad (2012), they rent out the house.
When they return, they move back in New Year’s Day 2013 and live there for 3 years before selling at the end of 2015.
What are the tax consequences?
They’ll be able to claim 80% of the $600k tax exclusion (not 80% of the $500k max), but they’ll have to pay regular capital gains taxes on the other 20%.
First, we analyze whether they meet the residency requirement: they do. They lived in the home for 4 years: 2011, 2013, 2014, and 2015.
Next, we know their job rotation year (2012) is a valid exception to “nonqualified use” even though they rented the house out.
Since they owned the home before 2009, we ignore all rental years before then, because there is no such concept as nonqualified use before 2009.
We only analyze rental years starting 2009 — in this case 2009 and 2010.
We take the ratio of nonqualified use to the full ownership duration to compute how much gain CANNOT be excluded from taxes.
Here, the numerator is 2 years for the rental period of 2009 and 2010. (Remember, the job rotation year 2012 is a valid exception.)
The denominator is 10 years, the entire period of ownership from 2006 – 2015.
So, that tells us we cannot claim the tax exclusion on 20% of the gain, which means we can claim it on the other 80%.
Victor and Victoria can claim $480k in gain tax-free — that’s 80% of $600k. They’ll pay regular capital gains taxes on $120k, or 20% (remember, they bought at $1 million and sold at $1.6 million).
Nice!
What happens when you fail to meet some of the requirements?
We’ve seen that satisfying the requirements lets you exclude up to $250k / $500k from taxes.
And when you have some nonqualified use, you can still exclude some gain, as long as you meet the other requirements.
But if you fail the other requirements, you generally cannot exclude any gain from taxes.
But there is an important exception: If you sell your home but don’t meet the residency requirement, or you sell within 2 years of selling another home, you MAY still be eligible for a partial exclusion IF the sale is due to a change in employment, health, or “other unforeseen circumstances.”
What qualifies as a “change in employment, health, or other unforeseen circumstances”?
The IRS has helpfully published regulations providing guidance and examples describing these scenarios. (See: “IRS Treasury Regulations Section 1.121–3.”)
Let’s take a quick look…
Examples of change in employment
The IRS says a home sale counts as “due to a change in employment” if the main reason for the sale is because your employment LOCATION changed.
The regulations use something called a “safe harbor.”
A safe harbor is a simple test you use to analyze your situation; “passing” the test means the IRS automatically grants you a partial tax exclusion.
Failing the test does not mean you lose the partial exclusion. It just means the IRS doesn’t automatically grant it to you.
Maybe they’ll need more info before deciding. Or maybe they won’t and they’ll grant it to you anyway. Passing the safe harbor just “fast tracks” their analysis. But failing it doesn’t preclude you from a partial exclusion.
For job changes, the safe harbor is 50 miles.
That is, your home sale is automatically deemed to be caused by a job change if your new job location is at least 50 miles farther from your house than your old job. If you didn’t have an old job, then it’s if your new job location is at least 50 miles away from your house.
Important: That job change must occur during the time you own AND use your home as your primary residence.
It doesn’t matter if you start a brand new job, continue an old job, or are self-employed. The only thing that matters is location, the change in your commute distance.
Let’s see how it works.
Example 1: Alex is unemployed and owns a townhouse that she has owned and used as her principal residence since 2022. In 2023, before satisfying the 2-year residency requirement, Alex obtains a job that is 54 miles from her townhouse, and she sells the townhouse. Because the distance between Alex’s new place of employment and the townhouse is at least 50 miles, the sale is within the safe harbor and Alex can claim a partial exclusion.
Example 2: Bill is an Air Force officer stationed in Florida. Bill purchases a house in Florida in 2022. In May 2023, before satisfying the residency requirement, Bill moves out to take a 3-year assignment in Germany. Bill sells his house in January 2024. Because Bill’s new job in Germany is at least 50 miles farther from his house than his old Florida job was, the sale is within the safe harbor and Bill can claim a partial exclusion.
Example 3: Crystal works in her firm’s Philadelphia office. Crystal purchases a house in February 2021 that is 35 miles away from her office. In May 2022, before satisfying the residency requirement, Crystal begins an assignment in her company’s Wilmington office 72 miles away from her house, so she moves out of the house. In June 2023, Crystal is assigned to work in her firm’s London office. She sells her house in August 2023 as a result of the London assignment. The sale is not within the safe harbor because her job change from Philly to Wilmington did not increase her commute distance by 50 miles (72 – 35 = 37). It’s also not protected by the safe harbor because of the London assignment because Crystal was not living in her house as her primary residence when she moved to London. However, Crystal is STILL entitled to a partial exclusion because, under her facts and circumstances, the main reason she sold her home WAS her change in job location.
Example 4: In July 2022 Donna, who works as an emergency medicine physician, buys a condo 5 miles from her hospital and lives in it as her primary residence. In February 2023, Donna gets a job at a new hospital that is 51 miles away from her condo. Donna may be called in to work unscheduled hours and, when called, must be able to arrive at work quickly. Because of the demands of her new job, Donna sells her condo and buys a townhouse 4 miles away from her new hospital. Because Donna’s new job is only 46 miles farther from her condo than her old job, the sale is not protected by the safe harbor. However, Donna can still claim a partial exclusion because, under her facts and circumstances, the main reason she sold her condo was her job change.
As you can see, the safe harbor guarantees the partial exclusion, but its absence does not preclude the exclusion. It just means you have to look at the facts and circumstances.
Examples of change in health
What about changes in health?
Basically, you get a partial tax exclusion even when you don’t satisfy the residency requirement if the main reason you sold your home was to get medical care for an actual illness or injury that you or a family member have.
Actually, it’s whenever ANY “qualified individual” has an illness or injury, but if you read the rules that usually just means you and your family. (See Treasury Regulations Section 1.121–3(f) for the full run-down.)
Remember, it has to be an ACTUAL illness or injury. If it’s simply beneficial for your family’s health and well-being, you can’t claim the tax exclusion.
Just like with job changes, the health exception also has a “safe harbor” test.
It’s a physician’s recommendation.
That is, a home sale is automatically deemed to be caused by a health condition if a licensed physician recommends that you move to get medical care. You should get your doctor’s recommendation in WRITING to avoid any surprises.
Let’s look at some examples.
Example 1: In 2022, April buys a house and uses it as her primary residence. Then April is injured in an accident and unable to care for herself. April sells her house in 2023 and moves in with her daughter so that her daughter can care for her due to her injury. Under the facts and circumstances, the main reason for selling April’s home is her health, so April is entitled to claim a partial exclusion.
Example 2: Hank’s father has a chronic disease. In 2022, Hank and Wendy purchase a house together and use it as their primary residence. In 2023 they sell the house to move in with Hank’s father so they can care for him as a result of his disease. Since the primary reason for selling their home is for the health of Hank’s father, they are entitled to claim a partial tax exclusion.
Example 3: John and Linda purchase a house in 2022 and use it as their primary residence. Their son suffers from a chronic illness requiring regular medical care. Later that year their son begins a new treatment that is available at a hospital 100 miles away from home. In 2023, John and Linda sell their house in order to be closer to the hospital treating their son. Since the main reason for the sale is to treat their son’s illness, they are entitled to claim a partial tax exclusion.
Example 4: Ben, who has chronic asthma, purchases a house in Minnesota in 2022 that he uses as his primary residence. Ben’s doctor tells Ben that moving to a warm, dry climate would mitigate his asthma symptoms. In 2023, Ben sells his house and moves to Arizona to relieve his asthma symptoms. The sale is protected by the safe harbor so Ben is entitled to a partial tax exclusion.
Example 5: In 2022 Jill and Robert purchase a house in Michigan which they use as their primary residence. Robert’s doctor tells Robert he should get more outdoor exercise, but Robert is not suffering from any disease that can be treated or mitigated by outdoor exercise. In 2023 Jill and Robert sell their house and move to Florida so that Robert can increase his general level of exercise by playing golf year-round. Because the home sale is merely beneficial to Robert’s health, it is not a valid exception and Jill and Robert cannot claim a partial tax exclusion.
Examples of other unforeseen circumstances
All right, what’s the deal with “other unforeseen circumstances”?
Unforeseen circumstances are situations where your house is sold or exchanged due to something not reasonably anticipated and not in your control.
If the main reason for selling your house is simply due to “buyer’s remorse” or due to an unexpected improvement in your financial situation, it won’t qualify for a partial exclusion.
Just as with job changes and health conditions, “other unforeseen circumstances” also has a “safe harbor” test.
The safe harbor kicks in if ANY of the following happens while you own and live in your home:
- Involuntary conversion
- Natural or man-made disaster, war, or terrorism causing damage or destruction to your home
- Death of you or a family member
- Job loss making you or a family member eligible for unemployment benefits
- Change in employment status (e.g., reduced hours or pay) that makes you unable to pay housing costs and basic expenses (e.g., food, clothes, medical, taxes, transportation)
- Divorce or legal separation
- Multiple births resulting from the same pregnancy
The IRS may define other events as “unforeseen circumstances” as well, but they’ll do that case by case, and when that happens they’ll publish written announcements explaining whether those events are generally applicable to everyone.
Let’s walk through some examples.
Example 1: In 2022 Alice buys a house in California and moves in. Shortly afterward, an earthquake causes damage to her house. Alice sells the house in 2023. The sale is protected by the safe harbor and Alice can claim a partial tax exclusion.
Example 2: Henry works as a teacher and Whitney works as a pilot. In 2022 they buy a house to live in as their primary residence. Later that year Whitney is furloughed from her job for 6 months. The couple is unable to pay their mortgage and basic living expenses while Whitney is furloughed. They sell their house in 2023. The sale is within the safe harbor and they can claim a partial exclusion.
Example 3: In 2022, Howard and Winnie buy a 2-bed condo to use as their primary residence. In 2023 Winnie gives birth to twins and the couple sells their condo to buy a 4-bed house. The sale is protected by the safe harbor and Howard and Winnie may claim a partial tax exclusion.
Example 4: In 2022 Bruce buys a high-rise condo unit and uses it as his primary residence. His monthly condo fee is $400. But 3 months after moving in, Bruce’s condo association replaces the building’s roof and heating system. Six months later, Bruce’s condo fee doubles as a result of the repairs. Bruce sells the condo in 2023 because he can’t afford both the new condo fee and his monthly mortgage. The safe harbor does NOT apply, even though Bruce can no longer afford his housing costs. However, under the facts and circumstances, the main reason for his sale, i.e., doubling the condo fee, is an unforeseen circumstance because Bruce could not reasonably have anticipated the fee would double when he bought the unit. Consequently, the sale is due to unforeseen circumstances and Bruce may claim a partial exclusion.
Example 5: In 2022 Chris buys a house as his primary residence. The house is located on a heavily traveled road. Chris sells the house in 2023 because he is bothered by the traffic noise. The safe harbor does not apply. Because the main reason for the sale is traffic noise it is not an unforeseen circumstance and Chris cannot claim a partial exclusion.
Example 6: In 2022 Diana and her fiance Eliot buy a house to live in as their primary residence. In 2023 they cancel their wedding plans and Eliot moves out. Diana cannot afford the monthly mortgage by herself, so they sell the house in 2023. The safe harbor does not apply. However, under the facts and circumstances, the main reason for the sale, the broken engagement, is an unforeseen circumstance because Diana and Eliot could not reasonably have anticipated it when they bought the house. Therefore, they are each entitled to a partial tax exclusion.
Example 7: In 2022 Frances buys a small condo as her primary residence. In 2023 she gets a promotion and a large salary increase. She sells her condo and buys a house because now she can afford it. The safe harbor does not apply. The main reason for the sale, the salary increase, is an improvement in Frances’s financial circumstances. An financial improvement, even if due to unforeseen circumstances, does not qualify for partial tax exclusion.
Example 8: In April 2022 George buys a house to use as his primary residence. He sells the house in October 2023 because it has greatly appreciated in value, mortgage rates have declined, and he can now afford a bigger house. The safe harbor does not apply. The main reasons for the sale, the change in house value and mortgage rates, are a financial improvement, so George does not qualify for a partial exclusion due to unforeseen circumstances.
Example 9: Hudson works as a police officer. In 2022 he buys a condo to use as his primary residence. In 2023 he is assigned to the city’s K–9 unit and is required to care for his police service dog at his home. Because Hudson’s condo association does not permit dog ownership, Hudson sells the condo in 2023 and buys a house. The safe harbor does not apply. However, under the facts and circumstances, the reason for the sale, Hudson’s assignment to the K–9 unit, is an unforeseen circumstance because Hudson could not reasonably have anticipated this at the time he purchased the condo. Consequently, Hudson may claim a partial exclusion.
Example 10: In 2022, Jennifer buys a small house to use as her primary residence. Jennifer wins the lottery in 2023 and sells her house to buy a bigger, more expensive house. The safe harbor does not apply. The main reason for the sale is a financial improvement and does not qualify for a partial tax exclusion.
Great, you’re eligible for a partial exclusion! How is it actually calculated?
It’s a percentage.
Here, the IRS will multiply the maximum allowed exclusion (i.e., $250k / $500k) by a fraction.
The numerator is the lower of EITHER…
- (a) the duration the home was owned AND used as the taxpayer’s primary residence (looking back 5 years from the sale), OR
- (b) the duration from the taxpayer’s most recent prior sale for which capital gain was excluded under Section 121 to the date of the current sale
The denominator is: 2 years.
The numerator and denominator must use the same unit of time, so if you’re using days for one you also have to use days for the other; if you use months for one, you must use months for the other.
Let’s look at some examples.
Example 1: On January 1, 2021, Monica buys a home for use as her primary residence. 18 months later on July 1, 2022, she sells the home because her job gets transferred to another state. Monica may exclude up to $187,500 of gain from taxes: that’s $250k * 18 months / 24 months.
Example 2: On January 1, 2020, Jordan buys a house as his primary residence. On January 1, 2022, Jordan marries Holly and she moves in. On January 1, 2023 (12 months after Holly moves in), they sell the house due to a valid job change. Because only Jordan has satisfied the 2-year residency requirement, the couple cannot get the full $500k tax exclusion. Instead, their exclusion will be determined by calculating what each person would get had they not been married. Jordan can exclude his full $250k gain because he satisfies the residency requirement. Although Holly does not satisfy the residency requirement, but she can claim a partial exclusion due to the job change. She can exclude up to $125k, which is $250k * 12 months / 24 months. Therefore, the couple can claim a combined exclusion of $375k.
Notice one VERY important detail: Partial exclusions when you FAIL to meet the residency requirements are calculated by multiplying the appropriate fraction by the MAXIMUM permitted exclusion of $250k / $500k, and NOT by the ACTUAL realized gain.
In reality, then, getting a partial exclusion when you FAIL the residency requirement quite often means you can still end up excluding the ACTUAL entire gain from your home sale! That is true if your actual gain falls short of the maximum permitted exclusion.
In fact, if your actual gain is as shown below, you’ll still be able to exclude the full amount if you FAIL the residency requirement as long as your partial exclusion percentage is the corresponding amount:
By contrast, getting a partial exclusion when you PASS the residency requirement means you will definitely exclude LESS than your ACTUAL gain. That’s because the fraction (1 – post-2009 nonqualified use / total ownership duration) is applied against your ACTUAL gain, not the MAXIMUM permitted gain of $250k / $500k.
So if your actual gain is, say, $100k when you PASS the residency requirement, you’ll only get to exclude a fraction of that if you have ANY nonqualified use. Whereas if your actual gain is $100k when you FAIL the residency requirement, you can still exclude all of it as long as your applicable fraction is at least 40% if you’re a single filer ($100k / $250k) and 20% if you’re a joint married filer ($100k / $500k).
Is your mind blown yet?
What the IRS is incentivizing with this is maneuvers to AVOID the residency requirement while creating a valid exception to still get a partial exclusion.
One last thing on calculating the partial exclusion amount.
If the taxpayer acquires a replacement home following a home conversion qualifying for a partial exclusion, the ownership and residency period carries over to that replacement home if the replacement home’s cost basis is determined using the involuntary conversion rules of Section 1033(b) of the Internal Revenue Code.
Example: On January 1, 2013, Sean buys a house as his primary residence that costs $200k. On January 1, 2023, a tornado destroys his house. Sean gets $550k from his insurance company. The destruction of his house qualifies for gain exclusion under both Section 121 and Section 1033.
Sean then buys a new house for $280k. Because he can exclude up to $250k of gain from taxes, for purposes of Section 1033, the amount realized is “adjusted” to $300k ($550k insurance proceeds less $250k exclusion) and the taxable portion of that is $100k ($300k “adjusted” amount realized less $200k original home cost basis).
Since Sean bought a replacement home for $280k, he recognizes gain of $20k and pays taxes on it now ($300k “adjusted” amount realized less $280k replacement home cost). The remaining $80k is tax-deferred ($100k taxable gain less $20k already taxed). The cost basis of the replacement home is $200k ($280k cost less $80k deferred gain). And Sean’s 10-year ownership and residency period from the original house carries over to his replacement house.
Two final notes about job changes, health, and other unforeseen circumstances
There’s a couple issues open to interpretation about the exceptions for job changes, health, and unforeseen circumstances.
One is whether the same safe harbor tests that apply to partial exclusions when you FAIL the residency requirement also apply to the nonqualified use exceptions when you PASS the residency requirement.
It seems reasonable that they would, but the Treasury Regulations Section 1.121–3 don’t explicitly confirm this.
The regulations were written to address cases where you fail the residency requirement. But the nonqualified use exceptions came later and only went into effect in 2009 — years after the regulations were already published.
Absent explicit IRS guidance to the contrary, I recommend you assume the same safe harbor tests apply in both cases.
Second is the nonqualified use exception that grants leniency for temporary absences not exceeding 2 years due to job change, health condition, or other unforeseen circumstances.
It’s not entirely clear what happens when an absence due to one of these reasons lasts LONGER than 2 years.
If you have a health condition that requires you to live away for 2 years plus 1 day, does that mean the first 2 years are validly excepted from nonqualified use while the last 1 day counts as nonqualified use? Or does it mean zero days are now validly excepted and therefore you cannot claim this exception at ALL?
I haven’t seen clear IRS guidance on this, so it’s something to discuss with your tax advisor.
Depreciation recapture
One other thing you should know is how Section 121 interacts with depreciation recapture.
Depreciation recapture is where the IRS taxes you when you sell your home for any cost basis you depreciated while owning your home.
Typically, you’ll depreciate your cost basis (property value only, not land value) when you rent out the home to a tenant. This helps offset your rental income which in turn lowers your tax liability.
You’ll typically depreciate using a straight-line method over a 27.5-year horizon. Your cost basis declines correspondingly with each depreciation deduction.
Incidentally, you should ALWAYS take the depreciation deduction.
Don’t think you’ll “save your cost basis” and avoid depreciation recapture by simply forfeiting the depreciation deduction.
When you sell your home, the IRS automatically assumes you have taken the depreciation deduction to its maximum extent for the entire period you rented out the property.
So the IRS taxes you on depreciation recapture whether you actually took the depreciation deduction or not. There is no way to avoid this. So you should ALWAYS take the depreciation deduction and find income to offset it against.
Google any of this if it’s news to you.
Anyway, when you sell the home, the IRS will tax you on any amounts you depreciated if your sale price exceeds your depreciated cost basis.
The IRS will tax you a flat 25% on depreciation recapture, regardless of your ordinary income tax bracket.
Any capital gains above and beyond the depreciation recapture is taxed at normal capital gains rates, typically the long-term rate of 15% (or zero if you satisfy the requirements of Section 121).
What you have to know about how Section 121 interacts with depreciation recapture is that Section 121 exclusions and limitations never apply to depreciation recapture.
Section 121 simply ignores depreciation recapture and focuses solely on pure capital gains.
A quick example:
Say you buy a house for $100k. $40k is property value; $60k is land value.
You live there for 2 years. Then you rent it out for 2 years. You make no major improvements during that time. In each of those 2 rental years you should depreciate $1,454.55 of the $40k property value and deduct that from your rental income. $1,454.55 = $40k / 27.5 years.
At the end of 4 years you sell the house for $250k. Your cost basis now is $97,091 = $100k – ($1,454.55 * 2).
You will pay 25% tax on the difference between your original cost basis of $100k and your current cost basis of $97,091, so you’ll pay 25% tax on $2,909 REGARDLESS of what Section 121 says.
Then, having satisfied all the requirements of Section 121, you’ll pay zero taxes on the next $150k of gain, which is the difference between your original cost basis of $100k and the sale price of $250k.
Section 121 won’t help you with depreciation recapture even though you’re still well under the $250k exclusion cap.
All right, big post…and we’re curious what you have to say!
What other tips or strategies do you use to do tax planning for your home?
Let us know in the comments below!
Plus: Interested in building massive wealth with real estate?
Then be sure to check out my real estate house hacking posts, which explain step by step how we’re creating real estate wealth by having others pay our mortgage on multi-million dollar real estate.
Michael Daniel Carey says
Great article!
Do you have a similar article on the tax ramifications of sale of rental property?
Thanks, Mike
Andrew C. says
There is no similar tax break for rental property. The exclusion benefit described here only applies to primary residences. For rental property, your main tool is to defer gains with a 1031 exchange, or possible to sell on creative finance.
What city/town and state is your rental property located?
Michael Daniel Carey says
My wife and I have a fully-depreciated 3-unit rental property with one apartment that we have left vacant for our personal use. We spend most of our time at another house. Our current AGI is less than $50,000, so it looks as if our capital gains tax rate should be 0% . But, when we sell the rental property, will the $200,000 Depreciation Recapture increase our AGI and put us into a higher tax bracket that would be applied to the rest of our ordinary income?? And, will any net profit on the sale of the house be taxed at the higher bracket?
Gary Tackett says
My wife a d I bought a large lot to build our home in December, 2020. We moved into the house in January, 2022. We have now lived in the house for 18 months. We are thinking of moving out of state. Can we claim “ownership” since we bought the lot? Do we qualify for 75% of our gains ($150,000). We sold our last house in September of 2021 and will make sure escrow closes on our sake after two years. Thank you
Sara Joy says
My mom purchased a mobile home in California in a park in 2000. I’m on the title with her as joint tenants. This was done so I could sell it upon her death and devide proceeds with my siblings. She passed away in June of 2023. Am I responsible for all the capitol gains?
Andrew C. says
If you are joint tenants, I think you are responsible for half the gains (assuming there were only 2 people on title). Your mom’s half actually gets its basis stepped up to fair market value upon death, wiping away half the tax liability, i.e., if you sell it now, half of it would have no capital gain. If your mom had been the sole title holder, then all of it would have no capital gain, but if you are joint tenants then you technically own half.
Andrew C. says
Btw, what city/town is the mobile home park located in?
Lawrence says
Great Article – Wondering if im screwed! 🙂 Here is the background. Would love your opinion.
Im a UK citizen who bought a UK primary residence in 2007 for $200k. Moved to the
US for my job in 2004 and started renting my UK residence. Became US resident in 2009 – The property was rented for 3 of the last 5 years and empty for 2 as i tried to sell it. i sold the property for 600K last year. Am i going to get hit with the full Capital gains becsuse i wasnt living in it for 2 of the last 5 years?
thoughts?
Jimmy D. says
Andrew, thank you. I enjoyed reading your article. I have a situation which even causes my Enrolled Agent to scratch her head:
I bought a piece of land 04/25/2014 on which to eventually build a residence.
I built a residence in 2019 and on 12/27/2019 I acquired a Certificate of Occupancy for the residence.
I used the residence as a second/vacation home from 12/27/2019 until 07/23/2020.
I never rented the property or deducted depreciation, though I took a credit for solar improvements for the second residence.
I sold my house elsewhere and used the property as my primary residence from 07/24/2020 through 07/27/2022.
Since 07/28/2022, it is being used as a second/vacation home.
I am planning to sell the property and want to exclude the gain as a sale of my primary residence.
Possible? Factors? Time periods?
Supposedly, I have to take into consideration the time I owned the land before it was my principal residence, when it was only vacant land, into the gain equation.
Hopefully, my question and your answer, regarding conversion of land held for investment into a primary residence and then sold, will benefit others.
Thank you, Andrew!
Jimmy D.
Bob says
Sorry, I mistakenly posted the following as a reply under another comment. So I’m reposting here as a new comment.
Andrew, amazing article! So detailed and well-explained. I learned so much from it! My question is about multiple owners:
The house is jointly owned by me and my mother. Mother is filing single. I’m married MFJ, but my wife is not an owner. If my mother passes all tests and excludes $250k, I pass all tests, and my wife passes residency for us to exclude MFJ $500k, does this mean we can exclude a total of $750k among the 3 of us? And must each owner’s gain percentage match the ownership percentage written on the deed? (or match default 50/50 if not written)
Example: if total gain is $600k, can we arbitrarily say mother gained $200k and I gained $400k? And thus we both pay no tax. Or must the gain % be locked to 50/50 default % for joint ownership? That would mean $300k/300k gain each, and mother would pay tax on $50k ($300k-250k), and I pay nothing since MFJ $500k covers my $300k. Any flexibility on how total gain % is split up?
By the way, I keep reading from other sources that multiple owners must be “unmarried.” Do they mean “unmarried to each other” or “unmarried at all/cannot have a spouse?”
Thank you,
Bob
Andrew C. says
Hey Bob, good question. TBH I’m not 100% sure. I *think* each deeded owner will be able to claim at least $250k, but I don’t think you can creatively shift who recognizes the gain, and I’m not sure if your wife’s non-owner-but-residency status entitles an increased exemption amount for your portion up to $500k under these facts. Recommend consulting a real estate CPA for their advice on this!
rick alpert says
This is the most informative article i could find online. Thank you! My situation is my father transferred a house to me in 1995 for no consideration in Maryland. i plan to now sell for 450k. i know i have the settlement costs that lower my capital gains and hopefully some of the repairs i have done over the years. The question is my dad purchased the lot in 1979 for 11,500 he then built his house so he didn’t actually buy it because he built it. Am i only allowed to deduct the 11,500 that he purchased the lot at for the cost basis or can we estimate the value of the home in 1980 at the completion for the cost basis? i am trying to determine my highest cost of my basis and was hoping to not have it be the 11,500 and may actually be the value of the home when he built it. when i acquired the property in 1995 it was approx 187k value but i received for no consideration. Thank you for your reply!
T
JW says
My wife and I have a condo in Florida that we spend time at from time to time. I am considering changing my residency from high tax Minnesnowta to low tax Florida. IF I do that, when I sell my MN house, the clock starts ticking and I have to be aware of the “2 out of 5 rule” and basically have 3 years to sell my house and claim that $500K of capital gains exemption. I will likely spend 180 days per year in MN, but I can’t string non consecutive months together to meet the 2 year out of last 5 rule can I?
So my question is this: If I don’t want to HAVE to sell my house in 3 years, what if I instead choose to sell my house in a year when I have very little or no income? After retirement, I will have some deferred income to live on and won’t take Social Security until age 70 so my wife and I will have several years where we will be well within the range of $0 – $89K for income and be in 0% capital gains range. Is this a valid strategy to pay 0% in capital gains on the sale of a house?
I rarely see this option included in any discussion of capital gains when selling a house and I would think there are a lot of folks selling a residence they have lived in for a long time after retirement and this case would apply to them.
Thanks for any thoughts and help here,
JW
Andrew C. says
No that strategy is probably worse assuming you have hundreds of thousands of dollars in capital gain in your home. Sure, you may be in the 0% capital gain bucket during the first few retirement years, but if you sell your house one year and then suddenly realize hundreds of thousands of dollars of capital gain, you’re going to immediately bust that bucket and owe capital gains taxes on all the excess.
With a the 2 out of 5 year rule, you get $500k MFJ capital gains tax free on the sale of the home. You can string together any combination of 2 years out of the last 5, but as this blog post explains the rules are more complicated post-2009 for periods where you’re not living in the home as your primary residence.
JW says
I am not following your logic when you say that “you’re going to immediately bust that bucket and owe capital gains on all the excess”.
Today, when I sell an asset and then go to pay the taxes on the capital gains, the government asks what my income was for that year was and then uses that number to determine what rate of capital gains rate I pay. So for my 2022 taxes as a married filing jointly, if my income level was between $83,350 and $517,200 I would pay a capital gains tax of 15% on the gains of some stock I sold. If I had made more than $517,200 I would pay 20%. At present I am deferring income to stay in the 15% as I diversify out of my company stock.
So one day when I make very little (some deferred income each year over 10 years before I start taking SS, my income level will put me in the 0% category for capital gains. To my knowledge the capital gains categories do NOT operate like the Federal or State tax brackets where you “fill up buckets” and move up to the next income bucket to pay the higher tax rate.
A person’s given income level puts them in the capital gains percentage bucket as the tax on capital gains and that is the amount applied to all capital gains that year, correct?
I have not read anything on the interwebs to the contrary.
Thanks for your thoughts and comments.
JW
Andrew C. says
No that’s not right. You rightly point out that capital gains have their own tax brackets with 0%, 15%, and 20% rates, and your taxable income determines which rate applies to you for capital gains tax purposes. Taxable income = gross income less adjustments (AGI) less deductions. Gross income (if you’re a US citizen) = all income from all worldwide sources, and that includes capital gains. Your ordinary income gets “counted first” when filling up a capital gains bracket, and then capital gain income is layered on top of it. That means your capital gain dollars are “marginal dollars” and the capital gains tax rate that applies to each of those capital gain dollars depends on whether it falls above or below a capital gains tax rate threshold.
JW says
So this would be incorrect?
Note: The tax is only assessed on the profit itself. If you purchased a house five years ago for $150,000 and sold it today for $225,000, your profit would be $75,000. (This is a simplified example, since there are deductions you could take – qualifying home improvements, sale closing costs — that would effectively reduce your net profit.) You would need to report the home sale and potentially pay a capital gains tax on the $75,000 profit.
For the 2022 tax year, for example, if your taxable income is between $41,676 – $459,750 as a single filer, and $83,351 – $517,200 for married filing jointly, you would pay 15 percent on the $75,000 profit, or $11,250.
However, the IRS gives home sellers multiple ways to avoid or reduce their capital gains taxes, primarily if the property they’re selling is a primary residence. You can exempt a certain amount of the profit — up to $250,000 or $500,000, depending on your filing status — from the tax, if you meet certain conditions.
Andrew C. says
You’ve got it right now – you’d get the capital gains exemption because of the special rule for primary residences where you can exempt up to $500k in gain on the sale of your home (MFJ filing) when you meet the requisite conditions. In other words, capital gains taxes always apply if you exceed the 0% capital gains bracket, but you get a special shield for selling your primary residence…again, provided that you actually meet the residency requirements.
JW says
I am not following your logic when you say that “you’re going to immediately bust that bucket and owe capital gains on all the excess”.
Today, when I sell an asset and then go to pay the taxes on the capital gains, the government asks what my income was for that year was and then uses that number to determine what rate of capital gains rate I pay. So for my 2022 taxes as a married filing jointly, if my income level was between $83,350 and $517,200 I would pay a capital gains tax of 15% on the gains of some stock I sold. If I had made more than $517,200 I would pay 20%. At present I am deferring income to stay in the 15% as I diversify out of my company stock.
So one day when I make very little (some deferred income each year over 10 years before I start taking SS, my income level will put me in the 0% category for capital gains. To my knowledge the capital gains categories do NOT operate like the Federal or State tax brackets where you “fill up buckets” and move up to the next income bucket to pay the higher tax rate.
A person’s given income level puts them in the capital gains percentage bucket as the tax on capital gains and that is the amount applied to all capital gains that year, correct?
I have not read anything on the interwebs to the contrary.
Thanks for your thoughts and comments.
JW
John says
Are you still exempt if you own your home that meets the criteria as a primary residence, purchase a new home, take ownership of the deed for said new home, and then take 6-18 months to move and sell the first home? Does the exemption change if you have 2 residences that meet these primary residence criteria. Example: Let’s say you purchase a home and live in it for 2.5 years before purchasing a second home and living in that home for 2.5 years. Can you still sell the first home as a primary residence even if you could technically call the second home a primary residence as well?
Dan Vance says
Hi Andrew, we moved into our current home on 11/17/20 but didn’t sell our previous home until 3/11/21. We did not pay any capital gains from that home sale due to being there for 22 years and was within the 500k exclusion for long term capital gains. We are now possibly needing to move again due to work changes requiring us to relocate approx 750 miles away. We will meet the 2 years of ownership and residency in our current home before it sells but it will be less than 2 years from the sale of our previous home in March of 2021. What will be the tax implications of this? Will we qualify for the full exclusion or a partial? FYI the amount would still be less than the 500k exclusion amount of married couples.
Shirley Hagner says
Hi Andrew,
I bought a rental property in 2001 and have been renting it out since. I am moving to another country but will now be leaving this rental property vacant for use as my primary residence on visits back here. If I come back 1 month a year and sell this property in 10 years. Can I claim any exclusions on capital gains? For tax purposes this will be my primary residence. I do not own any other properties in the US.
Thank you,
Shirley
George W says
In 2006 my wife’s father died. There was a mortgage on the property with a baloon coming due, so in 2007 I moved in with her, and we covered the baloon. We lived in the house until we bought a house closer to my job in 2016. It took us 5 years to get everything moved to the new house, and now we want to sell the old house for $475k. The old house was never a rent house, it just took us a long time to move (and is still ongoing).
In addition, my wife’s brother was promised 20% of the proceeds, so of the $475k, he will get $95k, and we will get $380k that we want to buy a poor condition home and spend some time and money renovating it into our retirement home, and probably move in sometime before I reach retirement age, but around 2 to 5 years later. My wife may move sooner.
I think this means we must pay capital gains, but how do we calculate how much? Is there a simple way to navigate this to reduce capital gains?
Pat says
I own a house that was not my primary residence but I have to sell it to care for my sister who has dementia who lives in the house. Do I qualify for anything g to reduce the capital gains tax
Kathy says
Is a health related issue exclusion on top of a married filing jointly $500k or an alternative?
Shelly says
We bought a second house 3 years ago for my husband to live in for a new job. The house is approx 100 miles away from our first home. He is now retiring and we are selling the house he lived in for around $40000 more than we paid for it. Will we need to pay capital gains taxes?
Rob says
Is it possible to wait and sell a rental property once you retire and your combined income is less than $83,000 thus exempting us from all capital gains tax on the rental property we sell. That seems easier than moving into a rental property for 2 years after owning it for 10 years and only being exempt 20% of capital gains tax.
Jamie says
I bought a home for $304,000 purchase price but paid $314,000 in closing cost and VA fees in 7/17/2020 in a new town for a job. With covid and stress, I retired and sold the house on 6/30/2021 for $360,000. Realtor fees and closing cost brought it down to $341,500. I moved 150 miles to the town I previously lived in and now rent. Can I get an exemption? If not, what would I pay in capital gains. I made $$50,000 in income form the job and $22500 in pension for the year. Thank you for your help.
Kerin MATTHEWS says
Hi, thank you so much for all the info! We just recently moved back to Arizona from Wisconsin. We have a son that has Down syndrome and we thought that the area we were moving to would be good for him. We found out later that the school was not suited for a child with special needs. We did find a school for children with special needs about an hour away in Tucson and decided to sell our house and move to Tucson so he could attend there. Unfortunately it was only 14 months after we bought the house. We bought the house for $200,000 and sold it for $255,000. Do you think that would be considered an unforeseeable situation? Thank you so much!
Courtney B says
My boyfriend purchased the home 8 years ago, and it has been our primary residence since then. He added my name as co-owner (deed says single man/single woman) later on. 21 months after adding me as co-owner, we sold.
When we sold I had lived in the home as my primary residence for 8 years but only had co-ownership for 21 months before we sold.
I know a married couple would be considered joint ownership SINCE TIME OF ORIGINAL PURCHASE regardless of when spouse was added on, but this is not our case since we are not married.
Will IRS consider my ownership beginning at the time of adding my name OR beginning at the time of original purchase? I assume the latter.
Kate Gilson says
Hi there! We entered a lease to own contract and have been legal tenants of the home for past 2 years and are now purchasing the property. If we sell it within the next year, would we eligible for exemption?
We would not have technically owned it for 2+ years, but we have been in an active lease and resided in it for that amount of time.
Virginia R. Bramante says
Andrew,
We own two condos – side by side – that we use as one for primary residence. They are two separate legal entities – two mortgages, two property tax bills, two electrical bills, two condo fees. We plan to sell them together and take the home sale exclusion on both. We feel that a larger unit is more ‘sellable’ than a smaller unit. Can I take $250,000 on one and my husband take 250,000 on the other? Or do you have another suggestion?
Thank you,
Virginia
Andrew C. says
You cannot file MFJ but claim a single filer home sale exclusion. You’d have to make the case that the 2 units are really one. The separate mortgages, tax bills, electrical, and HOA fees push back against such a claim. Did you do anything else to indicate they are really one, such as punching a hole between them to connect them internally? If you did that, maybe you can see if you can refinance the mortgage from two to one. You probably can’t do anything about the tax bills, electrical, and HOA fees, but you can ask a tax advisor if a consolidated mortgage + physical connection between the units might be enough to demonstrate they are really one unit. But you definitely cannot each take 250k if you file MFJ.
Jim S. says
Hello. Great article, thank you. My situation is this…I sold my home in Indiana 3/31/2020 that was in my name only that was my primary residence for nearly five years and moved North Carolina for a job transfer with the Federal Government. My with and I purchased a home in NC on 6/1/2020 and have lived here since. My job has since been designated as remote. Now, my wife has been offered a job in Virginia and we are thus planning a move to VA. Assuming we sell our current home in NC and purchase a home in VA in February 2022, would we qualify for the partial exclusion? If my math is correct, applying the look back rule, it will have ~23 months since the sell of my previous home and the residency rule ~20 months since the sell of our NC home. This would mean I’d use the 20 months as my numerator…20/24=.83 x 250k=~208k.
Jim S. says
Hello. Great article, thank you. My situation is this…I sold my home in Indiana 3/31/2020 that was in my name only that was my primary residence for nearly five years and moved North Carolina for a job transfer with the Federal Government. My with and I purchased a home in NC on 6/1/2020 and have lived here since. My job has since been designated as remote. Now, my wife has been offered a job in Virginia and we are thus planning a move to VA. Assuming we sell our current home in NC and purchase a home in VA in February 2022, would we qualify for the partial exclusion? If my math is correct, applying the look back rule, it will have ~23 months since the sell of my previous home and the residency rule ~20 months since the sell of our NC home. This would mean I’d use the 20 months as my numerator…20/24=.83 x 250,000=~$208k allowed? Am I on the right track or way off?
Jessie says
Hi, I was hoping you could possibly clear some things up for me.
*I bought my home 6/10/16. My husband (boyfriend at the time) moved in with me same day (we married 5/21).
*Husband bought house under his name 11/21 while we are still living in my house.
*Contemplating selling vs renting out my house.
*I’ve owned the house since 6/10/16 and we’ve lived in it the entire time.
*If we move into my husband’s house and rent my house out for, let’s say, 2 years and 364 to different tenants during that time and then sell it before the 5-yr mark, would we be able to avoid capital gains on the house?
Katie C says
Thank you so very much for this very detailed amazing article. Capital gains, qualifying/nonqualifying use and partial exemptions are all sooooo confusing. I was hoping you can help clarify our situation.
1. Bought home 7/2014. Primary residence until 7/2015.
2. Rented 7/2015 – 7/2020.
3. Primary residence 7/2020 until expected sale date of 1/2022 due to change in job over 50 miles away.
If I understand correctly, since we FAIL the residency requirement will our partial exemption be 500k for a married couple filing jointly x 18 months/24 months? Total 375,000 exemption?
Or, do we also have to take into account the 33% of qualifying use and 67% of non-qualifying use?
Hoping you can help clarify and ease our worries of a large tax bill. Again thank you for your guidance and I hope to hear from you soon.
J Broderius says
All your health examples are of people who SELL their homes. Our situation is that my parents moved into assisted living (per a doctor’s order) 3 years ago but have NOT sold their house yet. They are now outside the 2 of the last 5 rule. Does this circumstance qualify for an exemption to the 2 of last 5 rule??
JB
Nat W says
Hi Andrew,
Fantastic article. I’m having a rough time trying to confirm if I qualify for a partial exclusion of capital gains. My wife and I purchased a house just over 5 years ago. We lived in the house for 1 year and 4 months and left the property suddenly after an attempted break in and harassment from a drug addicted neighbor. We got a restraining order against the neighbor and with all of the stress, separated briefly (but not legally). We have rented out the house for the last 3 years and 11 months and now want to sell. Can we claim the partial exclusion for the time we lived there out of the past 5 years based on us leaving due to unforeseen circumstances? It will likely be about 11 or 12 months. Thank you!
Liz says
Your website is wonderful. My situation is: I own a 3-family brownstone. My husband and I live in 40% of it (a duplex) and we rent the other 60% (3 floors — 1 one-floor apt. and 1 duplex apt.). Here’s the issue: we’re OLD and sick of being landlords! But we can’t afford to live in the whole building without the rental income. I would like to sell the building and move into a smaller place and say goodbye to tenants forevermore. But how can we minimize capital gains and state taxes? (we’re talking capital gains above the 500K exception for a married couple – the building has gone up in value ~8X since we bought it 25 years ago). Does the fact that we rent 60% of it mean there are any other issues we can use to help defer capital gains? (as I said, we’re old, and I basically have decided to hang onto the building for our offspring, who will benefit from the stepped-up cost basis when we are no longer of this mortal coil, but…is the best way to think about this? Should we rent the entire building out and hire a manager?) I know you are not our real estate attorney! just wondered if you had any thoughts since you are a creative thinker!. THANK YOU!!
Andrew C. says
You can do a 1031 exchange on the rental units and thereby avoid taxes on the sale of the rental portion of the building, but that wouldn’t solve the fact that it seems like you don’t want to be landlords anymore, because you’d have to buy another real estate asset to qualify for the tax deferral. You could also hire a property manager to deal with the day to day work of managing the property, thereby reducing the work you have to put into it, but you’ll sacrifice some rental income in exchange for this service. As you said, if you pass the property on to your heirs at death, then you’ll get a step-up to fair market value and avoid paying taxes on the 8x gain from over the years.
Matthew T says
Hello Andrew,
My wife and I sold our primary home 22 months after purchasing it. We made a profit of around $225k. We sold the home because I was let go from my job in late 2020 and on Unemploymemt for most of 2021. I was the primary breadwinner and my wife only worked part time, we could not afford the house and utilities on just her income of $35k a year without digging into savings. I have secured a new job but it doesn’t start until 2022. We live in GA and have been renting for 4 months until our new home is built in mid November.
Do you think we will qualify for a safe harbor due to job loss? Also can we claim a partial exemption since it was our primary residence for 22 months out of the 24 months required to completely avoid capital gains? If so, what is a rough calculation on what we might owe? Thanks!
Susan says
What if i was gifted (not inherited)real estate from my mother? Can i still get an exclusion if i live in the home for 2 of the 5 years? Trying to avoid the mistake of having to use the donors basis.
Thank you,
Susan
Lisa Lopez says
I’m so confused with this CA Form 593.
Bought a house with my ex husband in 2003. Lived there until 2008. We got divorced, and he stayed in the house all this time. I didn’t have any contact with him at all (he’s crazy, and I felt unsafe to have any contact).
He contacted me to sell the house Aug 2021 and split the equity.
We are in escrow.
Will I be assessed depreciation, even if I never claimed any?
I own my own house. I’ve never taken a capital gains exclusion. How do I avoid capital gains tax?
Help!!!!
Derwk says
My wife and I are relocating from NC to PA for her work. At the time of sale we will have been in our current residence about 12 mos. I’d like to sell our NC house prior to relocating to PA and rent short-term (~6 mos.) in NC until we move to PA. My question is…would we still be eligible for exemption if we rent in NC (less than 50 miles away) prior to relocating for work? I couldn’t find any limitations on when the relocation needed to be complete after the sale.
Joanna says
Hi Andrew – thanks for sharing such detailed information, these are super helpful. I was hoping to get advice on my situation. I purchased & closed on the property July 11, 2016. Lived in it, for 2 years and officially rented it out October 12, 2018. It is still currently being rented out (lease ends at the end of November), but I’m thinking of selling.
If I sell it this year, what would be my cutoff date to avoid the capital gains tax and do I still qualify for the 2 out of 5 year exclusion?
Justin says
Great article! Currently watching the video regarding Capital Gains. Wife and I are buying another property and would like to rent out our old one for another year or two before selling it, but would like to avoid Capital Gains if at all possible. We’ve lived in the property for 5 years and only plan to rent it for a year or two before selling. Would we still qualify for the exclusion? From what I read we would still qualify based off the examples given, but my concern is since we are buying a new home and that would be our “Primary Residence” we would no longer qualify for some reason. Thanks.
Andrew C. says
As I understand your specific scenario, you should qualify. You lived in the home as a primary residence before moving out. You have 3 years after move out to sell and still get the exclusion.
Kelly S Dickson says
My husband and I have owned House A since before 2009. We lived abroad for 11 years, during that time we rented House A. We moved back in in 2017 and lived in the house for 22 months before turning it into a vacation rental and moving into House B, which we bought in 2019. We had planned to live in House A the winter of 2020 but COVID hit and as House B is in a more remote location, we felt safer there. We now want to sell House A. If we go back and live in House A for two months, will we qualify under the 2 of 5 rule? And must we do this to qualify or does COVID count as an unforeseen circumstance?
Alex says
Excellent article! I have a complex situation and hope you can guide me. I purchased a condo in 2006 on Maui, Hawaii. I loved in the unit year round and moved to Mexico in September 2013. My 2014 taxes show income earned exclusively in Mexico as an expatriate. I never rented my condo on Maui but paid the mortgage from abroad.
I sold the condo in 2021. The purchase price was $440,000 and sold it for $602,500.
What exemptions would apply? All of my income has been abroad and under $105,000 so therefore the foreign income tax applies. Any advice would be helpful.
Lukasz K. says
Andrew,
Thank you for this very detailed article. I do have a question regarding unforeseen circumstances and if our scenario would apply.
My fiancé and I purchased our townhome December 2019 and will be selling sometime in August 2021. The main reason for our sale has to do with the HOA and neighbors that are part of this community. In the 18 months that we have been here we have had a very hard time communicating with any of the board members and still to this day do not know who is actually in charge of our HOA. The HOA company also changed property management companies without all residence knowing about this which was very inconvenient and has made living here very problematic due to the HOA and Property Management company. On top of that, the neighbors constantly call the police on each other for various violations and it has simply just gotten out of hand. We were told, while buying, that this is a very quiet and family friendly neighborhood but the exact opposite has become the reality of living here.
During COVID my fiancé was also furloughed for 6 Months which put a strain on our finances during that time so we will be selling to go rent an apartment somewhere else until we are financially back on our feet to purchase a home in the future.
Because we do not meet the 24-month minimum, we are at 18 months, do you believe we would qualify for the partial exemption of $250k since at the time of sale we will still not be married. The total gain I am estimating to be around $65-75,000 after all associated real estate fees and repairs that need to be done. Also, if you do think we would qualify how are these cases handled while filing taxes, do we fill out a specific document for the partial exemption or does our accountant have something she needs to do at the time of filing taxes?
Thank You,
Andrew C. says
Sounds unpleasant. IMHO you may have an easier time claiming unforeseen circumstances via the COVID furlough situation rather than the HOA, but I’m not sure. It would be wise to consult with a real estate tax advisor about the merits of both issues, as well as the mechanics of how to claim a partial exclusion.
Renee says
I purchased my home in 1993 and bought out my husband in 2006 for $190,000. If I marry this year in 2021 and sell my house ( he is not on the deed but lived here over 10 years) what will the capital gains be if I sell for $ 575,000?
Lauren says
Hi Andrew, thank you for this information. I have a unusual situation, but I thought you could help. My husband and I have been living in a home for a little over two years. This home was part of an inheritance in which he was left 1/4 of the property by the estate. This home was left to him and his three sisters after his grandmother passed away. My husband and I are the only ones in the area, so all the siblings decided that we should be the one to move into the house and renovate the home. Since we were going to be the ones living in the house we wanted to buy his sisters portion of the inheritance so that we were full owners. We have had a contract with the estate from the time we moved into the home until the time we were able to purchase his sisters out of the 3/4 of estate. We have finally become full owners recently after much paperwork. The time that we live in the house has been over two year. We did worked on many renovations and completely flipped the home. We are now moving out of state so we have to sell. We will make a profit on the home because of the renovations. We bought the home from his sisters for the property value and we are selling for about $100,000 more. We also used our own money for the renovations during the two years of living here even though we were not full owners yet. I have no idea how much capital gains we will need to pay. We have not been full owners of the house for two years but it has been our primary home for 2 years. How does this work, we obviously don’t want to have to pay a large tax on all our hard work. Thanks for any feedback!
David says
Hi Andrew,
My wife and I bought a condo in 2012 for 380k. It has been primary residence until sale in Nov 2020 where we sold it for 825k. We meet the eligibility test for residence and ownership and have nothing do disqualify us. We did rent out a room on Airbnb over the past few years except for the last year of ownership in 2020. On Pub 527 we meet the requirement for “space within the living area” and thus it should not effect our gain or loss. If that is the case, are we still required to file on 8949?
We didn’t receive a 1099-S and qualify to exclude all the gain and don’t wish to report as taxable gain. Are we still required to file on report on taxes? Either 8949 or other form?
We also purposely never took any deduction for depreciation on the home even though we did report income on property under schedule E.
Does it look like we have to file the sale on the return? Or is there something that would require us to report on the tax return?
Thanks!
Alyssa B says
Thanks Andrew, for this thorough article. I think I know the answer, but would appreciate your input.
I bought a condo and lived in it as my primary residence from 2016-2018, but for only 21 months. I got married and relocated, due to my husbands job. I rented my condo out for 2 1/2 years and am now selling it. I don’t qualify for the 2 out of 5 year residency rule, but is there any way I could qualify for a partial exclusion? Is marriage considered an unforeseen circumstance? I didn’t know I would get engaged and married when I bought the property…?
Andrew K. says
Thanks for the informative post. I wanted to double-check on when the clock starts for the application/use of the exclusion between the sale of one primary residence and a subsequent sale of another primary residence. For example…
I purchased a new primary residence (Property #2) on 12/13/2019 before selling my initial primary residence (Property #1) on 1/14/20. I have owned both properties with my spouse and we file our taxes jointly. We used this exclusion for our sale of Property #1 and are have yet to file our 2020 taxes. Does the two-year waiting period before the exclusion can be used for Property #2 begin on 1/14/20, when we sold Property #1 or when we file or 2020 taxes, or at a different time? On what date would we be eligible to sell Property #2 and apply the exclusion?
Based on the post, it is my impression that we could close on the property on 1/14/22 and apply the exclusion. Thanks, in advance, for the clarification.
Andrew C. says
If you didn’t sell another home during the 2-year period before the date of sale (or, if you did sell another home during this period, but didn’t take an exclusion of the gain earned from it), you meet the look-back requirement. You may take the exclusion only once during a 2-year period. See: https://www.irs.gov/publications/p523
Jennifer says
Hello, my husband and I are selling our 4000 sf home and 4.7 acres because we are downsizing. We have owned 3 acres and the home for over 15 years but the other 1.7 acres of the property that we are selling was purchased 18 months ago. Is there a way to get around paying short term capital gains on the sale of the house and the entire 4.7 acres because we’ve owned the 1.7 acres less than 2 years?
Bobbie says
I thought the non qualified use % is applied to the actual gain, not the $250,000/$500,000 maximum exclusion amount?
Andrew C. says
I think you’re right about that. Thanks for flagging! Updated the post.
Michelle Kay Bingaman says
Also we were trying to estimate how much we would owe in Capital Gains Tax. Do you have a good calculator for this? We did live in the home for over a year but less than the two year period. Can you let us know how this would be pro rated for us? Our combined income was about $160,000 before the profit of the sale of our home. I bought the home on January, 27th 2017 and turned it into a vacation rental on February, 4th 2018 so it was a primary residence for 373 days. I sold the property on May 1st 2020 as a rental property so it was a rental property for 817 days. I purchased the property pre marriage for $215,000 and sold the property for $260,000 with $10,074 in selling fees to reduce the Capital Gains Tax. We are filing married jointly. I did qualify for unemployment due to the pandemic back in March 2020 not sure if that helps? I sold the home in April because of the pandemic as it was a vacation rental and I was concerned there would be no bookings.
Scott C says
Great info. A fast and important question. We have lived in our home 20 years. The original purchase price was $350K. We have made substantial improvements. The sale price is $1,300,000. We owe $550K on our mortgage. We qualify for the $500K exemption. Is our tax on the $950 difference (sale price – original purchase price) or the $1.3M – the balance on the mortgage ($1.3M -$550K) or is it $950 – the value of the improvements made (say a value of $100K) so $850?
Joseph Patrick says
Hello:
Here’s our situation, hope you can offer some clarity. We bought our NY State home in 1998, lived there until 2018, when employment change caused a moved to CA. Couldn’t sell the home quickly so decided to rent out the home beginning in spring, 2018. It was our intention all along to sell within the three-yer window allowed for residency exemption (we had already lived their twenty years). Two years later our tenants expressed interest in buying, but then pandemic hit and crushed the real estate market, along with their job security. Our realtor advised us to sit tight as the house was basically unlovable at that time. Fast forward to spring 2021 and tenants have put in an offer on the home, market is coming back, and we have agreed to sell. Unfortunately, the closing date looks like it will be two months outside the window for residency exemption (38 months after we moved out). Are we on the hook for the entire capital gains tax (substantial, as the house was purchased in the nineties!)? Or might we be eligible for a partial or full exemption due to unforeseen circumstances (a once in a century pandemic that shut down the real estate market for a year pandemic) and employment requirement (we can’t move back into he house to satisfy residency requirement now because of job in CA)? It seems hard to believe we would owe full capital gains tax under tees circumstances. It was never our intent to rent the house long-term, and we certainly would have sold last year if not for the pandemic. would it make sense to petition for an exemption?
Any insight is appreciated.
JP in Socal
Andrew C. says
You could *try* to make an unforeseen circumstances argument to get a partial exclusion, but my hunch is it’ll be hard. Here, the “unforeseen circumstances” didn’t force you to sell in a hurry – prematurely – before you satisfied the 2 year residency requirement. Instead, I think the way the IRS will look at this is: “well, you had ample time to sell, but you held out for a higher price – therefore that was your decision.” i.e. You could have sold earlier despite the pandemic; you chose not to, I’m guessing, because the price would have been unattractive. (As for the job change exception, you similarly didn’t sell right away – you waited >3 years before selling presumably because the price wasn’t right.) But that’s just my initial reaction based on your high level facts. You should get a professional opinion from a licensed local tax advisor. You could also try to get your buyers to close faster, maybe by offering a sizeable credit back (effectively splitting the tax exclusion with them).
JP in SoCal says
Lived in our NY State home from 1998 to 2018. Moved to CA when my wife got a new job, decided to rent our NTY house after we were unable to sell quickly. Two years later our tenants expressed interest in buying, but Pandemic hit and crushed the real estate market along with their confidence that employment would continue. We were advised by our realtor not to put the house on the market. Fast forward to spring 2021 and tenants put in an offer, which we have tentatively accepted. Unfortunately, the closing date is likely to fall two months outside of the residency window — we will have rented the house for 38 months out of the last five years. Are we on the hook for total capital gains tax? (It’s substantial as this was purchased in 1998!) Or might we be eligible for a partial or full exemption based on unforeseen circumstances (the pandemic/inability to sell) and job requirements (we could not move back into our old house)? It seems hard to believe we would owe the entire capital gains on a house that was our primary residence for 20 years, and that we would have sold a year earlier if not for the pandemic.
Thanks!
Aykui DN says
Hello,
My husband and I bought and lived in our home in 2014 in California and moved out of state in 2016 due to his work (6 year term). We rented the house beginning 2016 and now want to sell it (we are still out of state). Do we qualify for any exemptions since we lived there 2 years prior to moving and if so how much? We haven’t been in the home for over 5 years (it’s been rented during this time).
Ralph baldassarre says
I bought a vacation home 6 years ago and sold it at a nice profit. The reason for the sale was medical, my wife went on dialysis and had significant problems with the facility near our vacation home. Am I allowed a partial exclusion on the capital gain for the second home sale due to medical issues.
Lauren says
My husband and I have lived in a condo that was owned by my grandfather. We moved in early 2016. Last year my grandfather quit claim deeded the condo to me as a gift. It was a tight squeeze when we moved in with 6 children and have had one more since then. We would like to move as it’s not enough bedrooms for 9 people (less than 2,000 sq. ft and only 3 bedrooms). So we meet the residency requirement time but not the ownership. Would we be able to possibly qualify for anything that would reduce our taxes owed? Thank you
Erica Hamilton says
My husband &I bought a house 1984 for $145k. He died 1995. I lived in house til 2014, leased it out for 6 years. Have now lived in it for 2 years. During those 2 years I Leased out 2 rooms downstairs for 1 year to help income while I lived upstairs. I’m 81 & wish to sell. Will I qualify for $250000 cap gains benefit
Michele Gamble says
I lived in my home for 20 years. I operated a B&B during those 20 years. 60% of the home was used for the B&B. Due to the Pandemic we had to close the business for good. We live in Hawaii and still have travel restrictions. We sold the home as a home – not a business. After 20 years in Hawaii the home appreciated in value. I’m married filing jointly and my gain is larger than the exclusion.
Because we had to pay off business debt from the B&B business we used the gain on the house. We are now homeless, living in a tent in a friends warehouse.needless to say we don’t have the money to pay capital gain on the home that is above the married filing jointly exclusion.
Has the IRS made any additional exclusion for people like us? I quite certain I am not the only person forced to sell their home to pay off their business debts due to closure caused by the pandemic.
Andrew C. says
I’m sad to hear this Michele. You probably have a good argument to make under the “unforeseen circumstances” exception, which I wrote about in this post. But note that you potentially might not be able to claim the exclusion for the 60% of the home you used for business purposes (B&B), though, since the exclusion only covers portions of real estate that is the primary residence. Would definitely encourage you to seek out a tax advisor if possible to get a formal opinion.
Gwen says
Hey Andrew,
Great article. I didn’t see one scenario though. What happens if you buy a new primary residence and hold on to the original primary residence (now the second home) for over 5 years before selling it? I lived in my first home for over 15 years before buying a new home in 2015. The first home has for the most part just sat vacant but I’m now considering selling it. Will I need to pay capital gains on the whole profit or will I get some percentage exclusion for having lived there as my primary residence for 15 years previously, just none of them in the 5 year look back period? Thanks for any clarity you can provide!
Denise says
Sold my mom’s house last year to move her into independent living. She bought the house in CA 65 years ago. The selling price was $600,000 over purchase price. Now how does the IRS and CA expect a 90 year old on poverty level income to pay capital gains tax on that???
Audrey says
Hi Andrew,
Thanks for this extremely helpful article! Wondering if you have any thoughts about this:
1) My husband and I purchased our home in December 2017- he is in the military, and had just signed a reenlistment contract for 5 years at Fort Bragg. (Which doesn’t truly mean much because you can always be moved against your will)
2) He was reassigned to another unit unexpectedly in October 2018.
3) We had to move out of state to the new base in January 2019. (So, we were only able to live in our house for 1 year)
4) We rented out the house from Feb 2019 to Feb 2021 to the same tenants. They moved out last month.
5) We are now going to sell rather than find a new tenant. We are getting offers that would be putting us at around a 40k gain.
Any chance that we may qualify for the partial exclusion? The only reason we are selling the home now is that we moved and don’t have any way to know if we will ever go back. Not sure if renting it for a few years to keep from being upside down on it will prevent this.
Thanks so much!! Obviously not the end of the world if we have to pay tax on the profit, but it would be nice to get max value out of our investment to put towards our next home if there is a way.
Danielle B says
I moved across the United States in 2018 and sold my house that was under 2 years. I did the exclusion because we were moving for a job.
That lasted 3 months and moved back. Bought another house and moved again across country. So I don’t know if I should use the exclusion again, as I am moving farther than 50 miles away again for a job. And it will only be 10 months in my new home I will be selling. So that would be 3 times in 4 years.
How many times can you use the exclusion of your doing it for moves? I can’t find that answer anywhere! So whatever answer hopefully it will help me. I don’t know if I should pay taxes on my last house and exclude the house I am in that o will be selling as I will be making more on this one.
Larry says
Andrew,
This is a great article! Appreciate any quick clarification you can offer… My wife and I bought our California home in Aug 2010 and lived in it as our primary residence until Aug 2014. I was then transferred to Florida by my company for a temporary assignment and we rented out our home from Aug 2014-Aug 2017 (taking 25K in depreciation expense). We then moved back into the house Aug 2017 and recently sold it in Aug 2020. We understand we pass the residency and use tests (also did not sell another primary home in the past two years) to qualify for the maximum $500K exclusion of capital gain. Our total gain was $325K (includes $25K depreciation recapture and $300K long-term capital gain).
So is 30% of the capital gain taxable (3 years non-qualified use/10 years ownership)–so that $90K is capital gain that can’t be excluded and $210K of the gain is excluded under section 121? We know the 25K of depreciation needs to be recaptured regardless. OR… can we say 2 of the 3 years of the temporary transfer period in Florida is NOT non-qualified use and therefore only 10% (1 year non-qualified use/10 years ownership) = $30K is the taxable portion of the capital gain? Thank you.
Andrew C. says
So, I’m assuming the Florida temporary assignment would otherwise qualify for the change in employment safe harbor. Assuming that is true, the answer is actually not clear cut. I mention in the article that it is unclear whether the same safe harbor tests that apply to partial exclusions when you FAIL the residency requirement also apply to the nonqualified use exceptions when you PASS the residency requirement.
It seems reasonable that they would, but the Treasury Regulations Section 1.121–3 don’t explicitly confirm this.
The regulations were written to address cases where you fail the residency requirement. But the nonqualified use exceptions came later and only went into effect in 2009 — years after the regulations were already published.
This is one I’d urge you to engage a tax advisor on to make sure you get it right.
Ximena says
Very interesting Andrew, thanks! I have a question… my husband and I have been living for almost 4 years in a family owned business rental. We have been offered to purchase it for a VERY low. We have already made a ton of improvements, but no receipts kept, cause it has been little by little as we’ve been needing it, but it has add more than 100K to the price we’ll purchase it. How can we sell ASAP without losing a huge amount in the tax?
Jessica says
I have a question regarding unforeseen circumstances. My partner bought a house in January of 2019 and sold it in September of 2020. The house was used as primary residence for 20 months and therefore he did not meet the residence requirement. However, we both resided there for the full 20 months with our now 2 year old son. My question is regarding the pandemic. We both were required to begin working from home which required us to have more space. Given the pandemic and needing more space due to the pandemic (My job requires me to follow HIPPA confidentiality guidelines so sharing and office is not an option) can I utilize the unforeseen circumstance to avoid paying capital gains on the sell? Thanks for any information and/or advice!
Andrew C. says
Hi Jessica, I think there is a very good chance you can utilize the unforeseen circumstance safe harbor due to the pandemic, but you should definitely consult a tax advisor before making any big moves.
Frank Dehn says
Hi Andrew, my fiancé and I will marry at some point this year. We will also sell our home and have met the 2 year residency requirement. Do we need to be married prior to the sale to qualify for the $500k?
Andrew C. says
Yes. Unless you both independently each qualify for the 250k exemption.
Frank Dehn says
Thanks Andrew, that’s a detail I hadn’t considered. My fiancé claimed a $250k exclusion less than two years ago. So getting married before the sale would paved the way to a $500k exclusion?
Frank Dehn says
Hi Andrew, I want to double back on this detail since I’m not clear on it. Will we qualify for the $500k exclusion if we marry before the sale even though my fiancé claimed a $250 exclusion 18 months ago?
Thanks for your help on this.
LilyD says
Hi, Andrew: thank you for this detailed article. My situation is that we purchased a house in 2001, lived there until 2012 and then moved out due to job relocation. We rented out the house for 7 years and then moved back in 2020. If we live in this house as primary residence until 2025 (after 5 years of primary residence) and then sell it, do we still need to pay capital gain for the $80k depreciation claimed during the 7-year rental? Will the 7-year rental still be considered as period of nonqualified use when calculating the gain exclusion? Thank you! I look forward to your response.
Treena says
Hi Andrew! My husband and I purchased our home 12/13/14, moved out and got renters around Nov, 2016. Renters have been different but we have been renting it out till now (Jan 2021) we currently would like to sell the home this year.. anyway around capital gain cost? Thank you!
Kylie DiPatri says
Hi Andrew,
I’m looking for some help in my unique situation. My ex fiance and I purchased a fixer upper home December of 2014. He financed the home through a VA loan in just his name at the time. There was a mistake with the title company and my name was not on the deed. Watson Realty actually cut a check to us to get this fixed but the bank required us to refinance the home to get my name put on the title. We opted to leave it just in my fiances name. Fast forward to 2019 and my fiance just left with no warning. He wanted to sell the home, however I did not want to uproot my son so I purchased the house from him. We purchased the house at 160k orginally we put somewhere in the neighborhood of 100k in the house. The house appraised at 340k. I purchased the home from him leaving my half of the equity, less realtor fees, in the home and purchased it at 238k. I just sold the house for 360k less than a year later. We received a school opportunity for my son and I had to act fast and was unable to find a suitable home in the new area quickly. I am currently renting (its been just over 2 months since the sale of my home) and I am concerned about capital gaines tax. What options do I have?
Michael C. says
Andrew,
What a fabulous site! Really happy to have come across HYW.
Here’s our scenario; I’d really appreciate your feedback:
–Purchased house in DC area in Aug 2012, lived in it as principal residence for 14 months until reassigned overseas as Foreign Service. Have been away on DoS orders ever since and converted the house into a rental property when we left. We have lived in government-provided housing and do not own any other residence. Started having some unexpected water damage at the house and need to sell the house now. We understand we will recapture depreciation from each year it was a rental.
Questions are – Will we be able to use the IRS Pub 523 exception to apply the 10 year suspension to the look back period?
If so, will we be able to pro-rate the 14 months of residency (14/24 x $500,000) and exclude capital gains taxes?
Thank you!
Chrissy says
This article was more helpful than my real estate textbooks.
Thank you!!!
Andrew C. says
Glad to hear it!
Kari says
Hello! We bought our house 6/2019 and have lived here full time for almost 18 months. My parents live in another state and due to Covid-19 my dad has lost his job on 8/2020. He is on unemployment and there are no jobs in his very narrow field of expertise. If he cannot find a job in the next month (end of 2020) they are going to have to come live with us. Our house is not big enough to hold 6 people so we would need to buy a bigger home to accommodate us all, but there is no way we can afford that big of a house in the state we live in now as housing prices have risen since we purchased. If we have to sell here before 2 years, to purchase in a cheaper state, does that qualify for us to use “unforeseen circumstances” to reduce our capital gains?
Coach says
Hey Andrew, hoping you can set us straight on our question. We are in the process of selling our house, and have actually got the offer we wanted. Fortunately, we will walk away with more than the $500k that is allowed tax free. After all the expenses we could deduct from the remaining amount, will be be taxed on the remaining amount even if we reinvest/purchase a new home/like property?
We thought that if we bought another home within 6 months we could avoid any long-term capital gains. True? Thanks in advance for your guidance!
Andrew C. says
That’s not true. You can only 1031 exchange an investment property, not primary residence. You will have to pay tax on the excess above the exclusion amount. But you are already walking away with $500k gain tax-free so consider yourself super lucky!
Sophia says
Husband and I (both US citizens) bought apartment in China 9/2004. Used it as primary residence for 10 years 3 months, 2004-2015. Due to work issues and health issues, moved to apartment in the same city 2/2015 (not 50 miles away). During 2015-2019, original apartment bought was used to help college students and recent graduates. Did not really receive rental income during that time. From July 2019-present, apartment has been empty. July 2020, husband and I divorced and apartment was granted to me. Apartment has estimated capital gains of $485,000. Apartment has leaking problems, and I have two autoimmune illnesses that make it difficult for me to live in the apartment. I would like to sell the apartment, but trying to understand what possible capital gains tax implications there are. I am currently living in a rental apartment nearby.
Andrew C. says
Depending on when you actually complete the sale of the property, you may end up being liable for the full capital gains tax on the sale. The reason is because, if you moved out in 2015, and now it’s already 2020, then the duration you lived in the apartment over the last 5 years is shrinking to zero (if it’s not already zero).
If it’s greater than zero and you can quickly execute a sale, then you may be able to claim a small portion of the capital gains exclusion. But that should be weighed carefully against the risk of selling in haste at an unduly depreciated price.
Lastly, you may owe taxes to the Chinese authorities upon sale of real property in China (you’d have to consult a local CPA to verify), but you’d likely be able to claim an offsetting US foreign tax credit so that you at least don’t have to pay taxes twice on the Chinese-taxed portion.
Sophia Chang says
Thank you Andrew for your reply. Really appreciate it.
Is there anything I can do to get some capital gains exclusion? If I could healthily live in the apartment, I would live in there for the two year requirement, but I got very sick in that apartment. When we bought the apartment, we did not foresee that the apartment would have this kind of effect on my health. It has been empty for the last 18 months.
Ib Larsen says
Thank you for the excellent article. I am still a little stumped about our situation though.
We bought our home in 1994 and lived there full time until Oct 9th 2017, when we lost the home in the California wildfires.
Dealing with the insurance Co.has taken almost three years, and now there will not be enough funds to re-build, so we have to sell the property.
On Oct 9th 2020 it will be 3 years that we have not lived on the property, but we meet the 2 out of five OK. The problem is it will take a longer that until Oct. 9th to get the property sold.
Are we going to loose our $500,000 deduction even though we lived here all these years ?
Andrew C. says
Hey Ib, you can definitely make a case for “unforeseen circumstances.” Check out the section of the article discussing this.
Ib Larsen says
Thank you Andrew, I read through it once and we definitely qualify, I just need to figure out how it applies in our case. I’ll re-read it a couple more times and hopefully get it.
Realtors say it could take more than a year to find buyers.
Lisa Wallace says
Why would you show rental income and depreciate it? Why not just rent it out to someone without taking depreciation?
Lisa Wallace says
My accountant at the time led me this direction, it is too late, I rented it out 16 years,
What is your recommendation for a home rented and depreciated over those years?
I am currently living in the home again, updated the home. I am disabled, on a fixed income now.
Thank you
Lisa Wallace says
Hi Andrew,
Great article,
Purchased my home in 1999 for 97,000, lived in it for 5 years, rental home for 16 yrs, depreciated 60,000 over the time. Moving back in 09.15.20 as main residence, if I sell 2 out of 5 years how much depreciation will I need to pay back & how much in taxes, live in Arizona. Would it be better if I remained in home for duration of 5 years?
MHH says
Purchased house in December 2010 and used it as primary residence until July 2017 when we purchased a new house. Moved ex husband into the original house and allow him and joint children (shared custody) to live there rent free. I pay the mortgage, all improvement expenses and deduct the mortgage interest. No depreciation is claimed and there is no income. I want to sell the house in the next 2 years. How do I avoid capital gains – current income hits max on CH chart.
Sheri says
Since you have not yet received a reply, here are my suggestions (mind you, I’m no accountant, but I do own rental propertues).
You could move ex and kids out and move back in for a year and them sell in 2021 or 2022. Depending on what month you actually moved out and what month you sell, you should avoid capital gains as you will then have completed the requirement of living there for 2/5 years (does not have to be consecutive or continuous… just needs to total 2 of last 5 years)
Option2 would be to start treaing it as a rental and then when you sell, buy another rental property with all of the proceeds snd then no capital gains are due (1031 exchange). IRS wil only recapture however many months/ years of depreciation from the start of the rental period. If you are letting him live there rent free in lieu of child support, an option would be to pay him child support snd let him then pay it back to you as rent.
Otherwise, I don’t think there is a way to avoid capital gains as you would not meet any of the requirements to avoid them. Paying on it and not treating it as a rental does not count in Irs eyes. Only actual residency or moving due to job change, armed forces service, etc.
Just food for thought. Hope these ideas help. Maybe someone else has any ideas to share?
Sheri
Katie says
Hello! Very helpful. Question for you:
Husband and I bought house 11/20/16, and it’s currently on the market w/ tenants in place. Our cap gains exposure is estimated around $130K. Our first rental contract was effective 7/31/18, which obviously is short of the 2 year residency. However, I took an expat assignment in Paris and left 7/1/18. Would this qualify under the safe harbor rule? I believe this equated to ~84% of cap gains.
If this qualifies, is there any proof the IRS needs in order to pass this test? Is there a duration of the expat role that needs to be met or proof of residency? I have my offer letter for this expat role however it was a shorter-term expat role. It was the reason we put the house on rental market when we did.
Bill W. says
Great article Andrew and lots of good information. Question regarding residency when splitting time between two homes. We are a married couple and are selling one home and stand to have a large capital gain (over $250K). We both own it and both have lived in it during the past 5 years for > 730 days (2 years). We use the home during the winter and summer months .
Per your notes, you state that we should consider this home our residence while we are physically here and away from our other home. We also change our mail to this home. Is that sufficient to consider it a principal residence even though we keep our voter registration and cars registered at the other home where we spend our spring and fall?
Thanks so much!
Andrew C. says
Theoretically yes, you should be able to exclude the gains (partially – see periods of nonqualified use). You’ll have to be able to prove it to the IRS if you are audited, so make sure you have good financial records given your voter and DMV reg are elsewhere. And definitely consult your tax advisor/CPA as you prepare the return containing the gain exclusion.
BAR says
Andrew, I could not find a way to comment other than to reply, so here goes…
My aunt has a home in Metro Houston that was destroyed in Harvey. She acquired the house in 1996 for $175k and lived there until the storm. She acquired another lifeboat home while the house is being rebuilt.
She had made prior improvements to the house of about $35k, and has had two insurance payouts that I am aware of… $15k from hurricane Ike for roof and interior damage and $175k for Harvey ($35k was for the demo and remediation and cleaning prior to rebuilding). The house is 1/3Rd through the rebuild due to delays of insurance settlement and other complications. She is now looking to sell as is to avoid possible capital gains, or should she complete the rebuild to sell for fair market value. The build requires another $70-$100k. Would she fall under the unforeseen circumstances? Other? She would consider returning to the house if it would help.
Thanks.
BAR
Jeffrey Brier says
A friend and his wife have a P&S on their home in Rhode Island which they have owned for 15 years. In 2016 they bought a condo in FL and became residents of FL and have been spending 7 months year in FL. Am I correct that they will need to pay capital gains on the sale of their RI home since it was their primary residence only 1 of the last 5 years?
Joe North says
My parents own a primary residence with an adjusted basis of $1,000,000 and a Fair Market Value of $700,000. If I purchase the house for $1,500,000 as a Related Party and have my parents gift the $800,000 excess amount over FMV to me, can they utilize the full $500,000 exclusion and avoid all capital gains on the sale? While they would need to report the $800,000 value of the cash gift to me, would the $800,000 that I pay above FMV also be considered a gift to them from me?
Bobby Chau says
Hello,
My parents qualify for the $500k tax exemption, but their total capital gains exceed $800k. They recently added my brother to the deed of the house, while intending to keep the house for an additional 2 years they think after that they can claim $750k tax exemption once they sell the house. My question is, what’s the maximum exemption can you have on one property. There are 3 people on deed. Does this may any sense or they fooling themselves?
Thanks
Andrew C. says
$500k max. If only such a loophole was allowed!
Sharon Thomas says
Does the 2 year primary residence requirement begin when you start building a house or once you move in? Thank you!
Andrew C. says
Move in
Kimberly says
We love your article! We have a complicated situation that doesn’t fit the examples and are wondering what you think. We are married and bought a house in 2005 for 130K as a rental before moving overseas for work (so we would have a home when we returned). It has been the only home we’ve owned for the past 15 years, but we have never lived in it as a primary residence. It is worth about 230K now (so only a 100K gain). We are getting ready to transfer back home to the US in the next year and are wondering if it would be worth it to live in the house for 2 years before selling it. How much capital gains would we owe if we don’t live in it versus if we live there 2 years before selling? Thanks!!
Sue Nickolas says
I have a slightly complicated situation that did not fit any scenario I could find reading your post. I bought my house 16 years ago (November 2004) and have lived in the primary residence until February 2012 (WA state) but continued living on the same land/property. I have a mother in law on my property that I moved into and rented out the main house. From 2012 to today, I have maintained this same situation due to family illness, going back to school, and needing to work in other states for brief periods (3-4 months at a time). I have maintained my property as my primary residence on my taxes for the past 16 years even though I did sign a lease to rent an apartment in NY early 2019 for 4 months due to a work contract. I have depreciated costs on my home during the time I rented the main residence. I am thinking of selling my home next June 2021 and wondered if I will have to pay on capital gains (not married). I feel I’m in a very gray area trying to figure this out. Would you know how this may play out when I sell? Thank you for any thoughts!
Henry Thomas says
Hi Andrew,
Very informative above. I own and reside in a multi family since 2014 as my primary residence with renting the second unit out. I am looking to purchase a new primary residence but don’t want to sell my current property as will use it 100% rentals.
If I sell the property into a single name LLC or dual name LLC with my name being the sole or one of the two names can I claim the tax exclusion? I guess I am trying to effectively bump up my cost base.
Any advise appreciated
Henry Thomas says
Hi Andrew wanted to follow up
Pat Regan says
Hello Andrew, I purchased a condo in Cocoa Beach Florida in 2017, knowing that we would be relocating when our youngest daughter graduated high school…it finally happened in June of 2019, unfortunately my knees began bothering me in October…after seeking medical attention I found out my left knee was bone on bone and that I have osteoarthritis in both knees…due to my condo being a second story unit without an elevator my physician wrote me a recommendation for a single story dwelling…does this make me eligible for a partial exclusion? Thank you
Andrew C. says
It sounds like you have a strong case (assuming you didn’t live in the condo for 2 years) given that you have a physician recommendation. You can try to claim a partial exclusion (hold on to your physician recommendation) and simply have to convince the IRS if you end up getting audited. You may want to consult a real estate CPA for a formal opinion.
Mike says
My wife and I bought our first house on 2/15/17 and lived in it until 11/15/18 (1 year 9 mos). We bought a second house and moved in on 11/15/18 and have been living there up until today. We started renting out our first house on 1/1/19, and our renters are moving out on 7/1/20.
On a side note, my wife got furloughed on 4/1/20 due to covid-19 and is currently collecting unemployment. We would like to sell both houses and move back to my home state either this year or next year, and would love and be extremely grateful for your advice on the best course of action to avoid having to pay capital gains tax.
The capital gains we would receive from our first house would be about 175k and the gains from the second house (primary residence) would be about 90k. From my limited understanding, it sounds like if we sell our first home in July/August, then we won’t have to pay any capital gains tax (e.g. 15%) because we should be able to qualify for a partial exclusion which would be 500k * 21 months / 24 months = 437.5k. However if we also want to sell our second house in the same year or even in the next year, we would have to pay 15% capital gains on the 90k since we already used our capital gains tax exclusion on our first house. Does that sound correct?
Am I correct in assuming that we wouldn’t be able to avoid paying capital gains tax on our second house by doing a 1031 exchange and placing an offer on a new house within 45 days of closing on our second (primary residence) house as this would only apply to investment properties?
Andrew C. says
My unofficial perspective (not to be taken as tax advice):
1. I’m not sure you can claim an exclsuion for your first house because you didn’t live there for 2 years (the most basic requirement), and it doesn’t sound like you qualify for any exception (at least just based on the facts you wrote)
2. You won’t get to use the exclusion rule a second time with your second residence because you can only use it once every 2 years.
3. You cannot 1031 a primary residence, only investment property.
Mike says
Thank you for your response Andrew. I may have to just bite the bullet and pay the capital gains on my first house. I’ll ask a CPA and see if having a utility bill in my name (and possibly having my mail sent there) for 3 months is enough to satisfy the primary residence requirement so that I don’t have to actually move back in. If I keep it vacant for 3 months, i’d still save more money than having to pay capital gains tax. Keep up the great work and thanks again!
Bob says
Thanks for the great article. Here is a twist that I don’s see covered in the article or comments/questions.
What happens if you buy and move into a new home before selling your prior home…and it simply takes a LONG time to sell the first home. Both homes were your primary residence but it just takes years to sell.
For example. you live in home A for many years (more then 5) and then buy a new home B. Move into home B but it takes 4 years to sell home A. The entire time it is listed and not rented. So essentially it was your primary residence for 1 of the prior 5 years but it was not occupied or rented.
Andrew C. says
Doesn’t sound like that would work since you could have simply lowered the price of the home.
Margaret breen says
My name went on the deed to my then boyfriends house in november of 2017. We broke up in January of 2019. I moved out and so did he. House basically sat vacant for the last 16 months or so. It is now about to sell. We have agreed to split the equity. Will I have to pay capital gains tax? And what other taxes will I have to pay. Thank you in advance
Johnathan Castle says
Hi Andrew,
So my wife and I bought a house back in 2003. We lived in it as our primary residence until 2007. From 2007 – Present Day it has been a rental property for us.
According to a section in your article: “Changes to law back in 2009” it sounds like anything rented before Jan. 1st 2009 is under the old law and new restrictions only apply to properties after 2009. So if I move back into my rental property for 2 years, will I be excluded from Capital Gains tax due to the house becoming a rental in 2007? Or will I only receive 2/5th of exclusion from the capital gains tax? I am really looking for some guidance here.
Thank you very much!
Andrew C. says
Neither. You’ll do a pro-rata calculation for the period after 2009 for the time you live in the unit / the time you did not live in the unit, and that’ll be the fraction you can exclude.
Tony says
I owned and lived in my condo for about 6 years and 4 months. I then purchased a new home and moved out of the condo. But I didn’t sell my condo until 5 months later. Would those 5 months be considered “non-qualified use” and therefore, require me to report because a portion of the gain cannot be exclude?
Ethan Moody says
Can you sell a house to yourself to avoid paying capital gains taxes in the future? Let’s say a married couple buys a house in 2013 for $1,000,000 and it goes up in value $400,000 by 2020. They live in the house all 7 years. Can the couple sell the house to the husband in 2020 for $1,400,000, pay not capital gains, and then sell the house back to themselves (the couple) in 2021 for $1,400,000, again for no capital gains. Then they continue living there for another 10 years until it goes up in value to say $1,900,000, and sell it to someone else and again pay no capital gains taxes on the $500,000 increase? Is there a rule against this? It seems like a good way to keep ahead of the capital gains, as long as you live there for at least 2 years after you sell to yourself.
Andrew C. says
No, it can’t be a “related party” transaction.
https://www.law.cornell.edu/uscode/text/26/121
https://www.law.cornell.edu/uscode/text/26/267#b
Jon says
I own two homes and plan on selling both to purchase a new, primary home. It is probable that my second home (about 25% of the value of my primary home.) will not be sold prior to closing on my new home. Is there a methodology that allows me to proactively earmark the proceeds from the second home to avoid capital gains tax.
Kathy Kuderer says
I have lived in my home for 42 years. I have had a small business and took office in home/depreciation for the past 25 years. I am thinking of closing my business in 2020 and I would remain living in my home for hopefully at least the next 10 years. Do I need to recapture all depreciation when I sell the home in 10 years?
Also, to complicate things… I am considering putting the home ( as part of a small farm) into a trust for our kids. In that case I would never sell the home. who or how does the recapture of depreciation taken work?
Andrew C. says
Hey Kathy, yes you need to recapture all depreciation when you sell; no you do not recapture if you never sell but simply place the property into a trust. If the trustee sells some time down the road, then the trust would face depreciation recapture.
Kathy Kuderer says
Thanks for clarifying that for me.
Lev Hartnup says
Hi Andrew. My wife and I purchased a home for $175k in July 2017. We then sold that home for $220k in May 2019 due to me having a new job over 250 miles away. Although we did not live in the home for two years, am I required to claim that I sold a home due to safe harbor? Also, I never received a 1099-S. Thank you.
Deborah says
I lived in a house for 20 years. I found a new home closer to family and purchased before the old house sold. I put it on the market and the realtor couldn’t sell. So it sat empty for 11 months. I rented to a couple that needed two years to get the financing. They lived there 2.5 before closing. Now I paid off by new house with the proceeds from my old house. Do I still have to pay capital gains since it was to change houses. I didn’t meet the two year because it was empty for a year. They lived there 2.5 / I lived there 18 months
Mark says
I thoroughly enjoyed learning what I could here. But I still don’t think I have a clear answer to my situation. My wife and I bought a new home in 2014 and lived there together until 2016 when I took a new job 200 miles away where we purchased a townhouse, which became my primary residence until 2019 when we sold both residences and relocated to a single home together.
We sold both home in the 2019 tax year but we resided in each in excess of of two years as primary residences. Can we use the exemption on both sales?
Andrew C. says
No because it’s only once every 2 years (as explained at the beginning of the post)
Mike says
I owned two houses both for over 5 years and used both as my personal homes. One due to my child’s school district and One due to location I just sold the one in June 2019 and capital gains was about 130,000 dollars. I am now looking at selling my other hone in 2020 to move in city. The capital gain estimate for this one would be about 80,000 dollars. Both total led are under the 250000 threshold as single. If I sell this house in 2020 will its capital gains be taxed since the other house was sold last year. I’ve never rented either house
Andrew C. says
Yes it will be taxed. You only get the exclusion once every 2 years.
Ann says
Great article! I read thru the examples and the questions and I don’t see anything that meets this scenario. Single man owns and lives in his home. He becomes terminally ill. He puts his brothers name on the deed to the house for ease of ownership transfer when he dies. His brother did not pay anything for the house, his name was just added to the deed. The brother who lived in the house died in the spring of 2019. The surviving brother spent the summer (and about $20,000) fixing up the house and then the house was sold about five months after the brother died. Would his basis be the stepped up value at date of death for half the house plus the $20,000 the surviving brother spent before selling? Or could he take stepped up value for the entire house since technically he wasn’t the owner, he was just on the deed for death transfer purposes? The surviving brother will be getting a Form 1099-S, so he is going to have to account for it on his tax return.
Nicole G says
My father deeded his house to me over two years ago. He lived in the home (of course, rent free) until his death. The home is not in the state in which I live. Will I have to pay capital gains on the sell of the house? Thank you.
maura says
Hi,
We bought our primary residence in 1990. Added an in law for the inlaws who lived there till they passed 2007. We periodically rented out the in law/ or main house depending on circumstances. Depreciated accordingly. We bought a much smaller home in 2018 and rented the first property out for 10 months until it sold.
Our agi will be under 40K. Gain will be approx 150K.
Tax consequences??
Greg a Chartrand says
My daughter and her husband lived in location A for five years then sold their house 1 and moved to location B (240 miles away) where they purchased house 2 which was more expensive than house 1 and they applied all their equity including gains of house 1 to the mortgage of house 2. The job at location B didn’t work out so they sold house 2 after 8 months and purchased house 3 at location C (260 miles away) and applied all of equity of house 2 to the mortgage of house 3 which was more expensive than house 2. They realized only a small profit on the sale of house 2 but the question is do they owe any capitol gains taxes related to the sale of house 2 because they only lived there 8 months? BTW, all of the houses were/are their only properties and primary residences.
I always thought that if you took the equity including profits of a house sale and applied it fully to the down payment of another house there were no tax liabilities even if the sale was less than 2 years. Please help us sort this out.
Heidi says
Hi,
I just wanted to see if my situation applies.
My ex husband and I purchased a home in 5/2013. We divorced 2017 and I refinanced 2018. I have occupied the house since day 1. I am selling my house so will I be taxed if I sell my home this Dec 2019 and finalize the build of my new home May 2020?
Heidi says
Hi Andrew,
I am trying to determine if I would be exempt under the partial exclusion for a gain on sale of home and upon researching I came across this nicely written blog and wanted to get a second opinion on someone familiar with the tax code.
We purchased a home in April of 2018 with the intent of living there long term and it was our primary residence for the year we owned it. We relocated from another state for my job and my husband selected a job in a different town with our home located in the middle. Both of us had a 10-15 mile commute in different directions. We were hoping he would get a job at this place and did not have intentions of leaving. However, he got an opportunity for a job with better hours (same pay) in the same town as me a few months later. My husband is a Registered Nurse, and the new job offered 8-4:30 M-F hours which is difficult to achieve in that field so he jumped at the chance.
The house we bought was small, but it offered a lot of potential with a large lot so our plan was to build a new house on the same property in a year or so. However now that we both work in the same town we started to wonder if it made sense to commute back and forth, especially factoring in that it would be a 40 minute drive from work to where our kids would attend school. We ended up purchasing a home much closer to where both of us work and decreasing the drive to school significantly in May 2019.
We ended up selling the home for a gain, it was just the market swinging in our favor not our intent to move. Would we still be exempt from paying the tax? If you have any follow up questions please let me know.
I look forward to hearing your thoughts!
Thanks,
Heidi
JC says
Hi Andrew. Would really appreciate some advice on my situation. Bought a home (property “A”) way back around 8/2003 for $190K. Lived in it for nearly 12 years straight, then we purchased a new home (property “B”) around 4/2015. We had kept property A and rented it out from 7/8/15 until around 1/10/18. And i sold property A on 7/5/18. This had a total gain on sale of ~$80K
The tough part is my trying to still dig up old paperwork for confirmation of when we actually moved OUT of Property “A” and into Property “B” in determining Primary Residence status. It’s hazy since we didn’t immediately move into property B on the 4/2015 closing date, as we had some pre-move-in work done on it, while also doing some pre-renting preparation work on property A. From recollection, we really didn’t move out of property “A” until we had it pretty much ready for rental.
Now to complicate things a bit more, we also just recently sold property “B” on 3/15/19. We lived in this home the entire time owned, from the ~mid 2015 until the 3/15/19 sale (well more than 2 years). This had a total gain on sale of ~$95K
So for property A, there was possibly a tiny period before the tenants moved into it 7/8/15 as well as the period between 1/10/18 (when the tenants moved out) through 7/5/18 (when we sold it) that the home was being prepped for sale/etc
Now…….. I’ve filed an extension for tax return filing of 10/15/19. I’m naturally trying to finish up these taxes today.
So my main questions………… if i can find proper paperwork to confirm that we DID cover the 2-of-5 year PRIMARY RESIDENCE rule on property A before we sold it, then it sounds like i should be able to exclude that entire gain on sale, correct?
HOWEVER, since i also sold property B within less than 1 year from the sale of property A, the IRS rules seem to dictate that i cannot exclude the gains from BOTH(??)………even though my property B was easily a primary residence for 2 of the last 5 years of owning IT.
If so, Do i effectively have to choose which one i will take the capital gains on? If so, then i’m also trying to determine if it’s as simple as choosing to take the tax on the one that has only the ~$80K gain instead of ~$95K gain, since it’s a lesser gain to be taxed……….OR……..if these various “partial exclusion” and/or “qualified vs non-qualified use” rules don’t make it that simple?
Any advice would be appreciate. I realized you are not a CPA…… thank you
Zee V says
Hi Andrew,
Great article! I’d like you advice on our situation. I’m getting conflicting information from different sources so I wanted to get your take on our situation…
We were living in our primary home since 2005 in Florida. In mid-2012, we noticed sinkhole-like activities and damages at our primary residence. (cracks, noises etc) Reported it to insurance company and engineers and insurance company investigated for a year.
In mid-2013, we received the final inspection report. While no sinkhole was found, serious settling issues were found which made us very uncomfortable to continue staying in that house with a 4-year old child. Due to the report findings, we decided to sell the house in 2013 but since we were seriously under water with the mortgage we could not and our only option was to rent it and move. We had the home rented from 8/1/2014 until 8/1/2018 and then finally sold it by 10/26/2018.
Looking back and using the 5/2 rule, ownership eligibility is ok, and use eligibility is 12 out of 24 months.
Do we qualify for partial gain exclusion?? One of the issues we seem to be having is the “sale or exchange are proximate in time” part of 1.121-3(b)(1). Do you have any possible ruling that you know of that would support partial gain exclusion?
I’d appreciate your thoughts.
Thank you, Zee V.
Andrew C. says
Hi Zee, ack just saw this. That’s a unique situation. I don’t have a ruling that’s directly on point for your case. The proximate in time issue may be problematic since you didn’t dispose of the property for 6 years. I would urge you to talk to a CPA who specializes in RE to get a firm opinion….
Marilyn S. says
We owned a condo and rented it out for apx. 20 years. We have never lived in it. We recently sold it. Is there any way for us to reduce our capital gaines tax? Thank you –
John/Charleston says
Hi Andrew, Great article! My question concerns how the IRS determines the dates for when a home is considered a primary residence. My daughter bought a property on 4/25/14 but I renovated it for her and she didn’t actually move in until Oct ’14. Which date is considered her occupancy date? Does the IRS look for purchase date? Utility bills?
It’s her only property and she moved to Mexico in Oct 2016 though didn’t rent her house out until Dec 2016 I believe. Will the IRS consider her last date as primary residence when she went to Mexico or when she first rented it out? She realizes that she needs to sell this year to lock in her tax free gains but we’re uncertain just when she needs to sell it by. Thanks!
Andrew C. says
Date she actually moved in, date she moved to Mexico. If you argue otherwise, you’d have to be able to show evidence to the IRS.
John Semanchuk says
Thanks. What evidence does the IRS look for in a situation like this? After talking with her I learned that she continued to pay the utility bills in her name and the first lease didn’t start until June 1st 2017. Wouldn’t both of those facts count as “evidence” with the IRS?
Eric villanueva says
Hello
I have owned my home since Sept of 2016 it’s been over two years but not quite 5 years. Do I have to wait until the 5 years? Or can I sale now and be exempted from taxes? It’s just not so clear when it says the last 5 years.
Thank you so much for your help.
Andrew C. says
You do not have to wait until 5 years. You can sell and claim the exclusion once you have lived in the unit as your primary residence for 2 years.
Ree says
Hi Andrew,
Great Article!…and thank you for responding to the comments. I’ve read the article and the comments, I somewhat got some of my answer but not quite there.
I closed/purchased a home 31Dec2014. Lived there until Sept 2016, rented it out Nov.2016 and moved out of state for a job (job offered Oct2016), I came back 9months later and continued to rent the property. Is this partial exclusion? If I decide to move back in Aug or Sep 2019 to fulfill the 2yrs marked, will I get the full exemption? Thank once again!
Ed says
I bought a house in April,10th, 2018 and don’t live in there. It is still under construction, new flooring, plumbing, electric, walls, kitchen, bathroom and painting. I cannot move in yet until is all done. Also has new furnace and water heater as well.
My question is: Do I still have to pay capital gains tax if I didn’t live in the house yet? but it is in my deed name. I own the property? Any advice would be great, thanks.
Nicole Casanova says
Getting divorced. Own the house since 2003. He will keep it and then stay or rent it. A tax attorney suggested selling it to an entity, LLC/S Corp, so he benefits from the married capital gains $500k tax benefit and then eventually buying it back personally so he’d have a new stepped-up basis for capital gains again. Was told that was better than him buying me out by refinancing in the divorce. Sell the house this way first, then divorce.
Also…
House had major construction. I moved out 2/2019. He stayed at a friend for months during the remodel. Does that affect us and do you know if that strategy makes sense.
Thank you,
Nicole
Alice says
Hi Andrew,
I’ve written to you before but now that I’m filing my taxes, I just want to make sure I understood this correctly.
I bought my house in 02/2011 and sold it in 02/2018. I lived in the house from 02/2011 to 02/2016. I got married and moved out of state in 02/2016 but my spouse never lived in the house. I never rented out my house after I moved away–my sister lived there rent-free from 02/2016 until 02/2018 when I sold the house. Under the ownership rule, I qualify for the capital gains exclusion but I think under the residency test, only I qualified for the exclusion, correct? Or since my spouse and I are filing jointly, I don’t get the residency test at all (and can not use the exclusion? I am just a little confused since my spouse never lived in the house and now we are filing our taxes jointly and I was wondering if I could use the $250,000 exclusion for the sale. Fate would have it that I gained $250,000 after fees/deductions from the sale.
I look forward to your response
Andrew says
Alice, please check out the section in the post re: married taxpayers.
Lynn M Cullom says
I have same question and am also confused. Waiting for reply.
Jenny Berg says
I am so glad to be coming across this site- My situation is different me and my husband bought this house in 2002 and lived there till June 2010, we bought a second house and let my my brothers family live in our old house up till we sold it oct 2018. Me and my husband we live in our other house the one we bought in 2010. How would my tax situation will be when filling here this year.
Jason says
Hi,
I lived in the house from 2003-2018, and will start renting it in 2019. It seems like I have to sell it within 3 years before capital gains taxes kick in. But how much of the equity is subject to capital gains if I sold after 3 years? All of it, or a portion since I lived in it for 15 years?
And would my starting amount be to determine any capital gains? I built the home, I didn’t buy it from anyone. The only sale ever recorded was when I bought the land 2 years prior. That was about 50k. My bank loan when I built the house was 240k. The house is probably worth 375k now, which was unfortunately isn’t much higher than it was worth in 2003 when the market’s were way up.
Any help would be appreciated!
– Jason
Andrew C. says
All of the gain is subject to capital gain, not all the equity. You have to determine how much capital gains tax exposure you have. You need not buy from someone to have capital gain. Your basis is the 50K for the land + any funds you spent to build + labor costs you incurred for the same (your own labor doesn’t get added in though).
Gary says
Hi Andrew, excellent blog.
My situation is that I missed the two year residency requirement by one month. The main thing that prompted us selling when we did was due to murder that literally occurred right outside our house, the perpetrator lived within the community, we wanted out of a place where such things occur right away, we have two small children to think of. Do you think there’s any chance of claiming the partial exclusion in this scenario?
Shane says
Hi. Thank you for this great article.
I am active duty Air Force and understand the home use provision is extended 10 years for service members.
But how does the new 2009 law affect that 10 year extension? I bought and lived in a house from 2001-2006, then moved due to military orders. I converted the property to a rental since 2006 and will sell this year in 2019.
Phoebe says
Andrew,
We have owned our house since 2011, but had to move in 2015 due to a change in my husband’s work. On December 1 we will officially have lived away for 3 of the last five years (and our 2 years will begin to erode), but we have the house rented until June 1, 2019. Your last comment (“Second is the nonqualified use exception that grants leniency for temporary absences not exceeding 2 years due to job change, health condition, or other unforeseen circumstances. It’s not entirely clear what happens when an absence due to one of these reasons lasts LONGER than 2 years”) has me thinking that there may be some wiggle room for us in there somewhere, but are we just SOL? I really need some guidance here and my tax guy doesn’t seem totally up to speed in this area.
Andrew C. says
Hello Phoebe, seems like you will be subject to capital gains taxes on the sale of your home and not really possible to avoid that. So it just depends on whether you want to lock in your appreciation now by selling vs. holding onto the property with the intention of moving back to WA someday. If you foresee moving back within a few years, it might not be worth the hassle of selling right now, only to have to potentially buy a new (more expensive) property in a few years when you move back.
Kevin says
Andrew, thank you for this detailed article. I came across this while trying to figure out my capital gains for a duplex sale. Can you offer any advice on the following scenario:
+ June 2009: Purchased “Duplex” (technically the building is split 2/3 and 1/3), but I’ll call it a “duplex” as that is the common keyword that will allow others to search/find this comment. The building has two separate dwelling units, each with its own separate entrances, utilities, kitchens, living spaces, etc.
+ Unit-2: Always rented from 2009-2017. All rental income and expenses (fractional expenses attributed only to Apt-2) declared in Schedule-E. Similarly, 1/3 of the original structure cost (calculated only for Apt-2) was depreciated, starting in 2009.
+ Unit-1: I lived here as my primary residence from June 2009 – Dec 2015. Rented from Dec 2015 – April 2017 (16 months). Starting with 2015 tax filings, I listed its income, expenses, and depreciation in Schedule-E, in separate column in Schedule-E (I always treated both units separately)
+ July 2017: Sold “Duplex”
My first assumption is that I will pay all of the capital gains tax attributed to Apt-2 (the full-time rental unit). My second assumption is that because I lived in my former primary residence for at least 24 months of the previous 5 years, I can exclude the first $250K of gain attributed solely to Unit-1.
I’m sure of the first assumption, but can you please confirm my second assumption? Are there any concerns or complications due to the fact that I receive rental income on Apt-1 in the year I sold the home? There are some statements at the top Pub-523 Page-11 that are confusing to me.
Thank you,
Kevin
Andrew C. says
Hey Kevin, based on these facts both assumptions should be true/correct. Receiving rental income in the year of the sale doesn’t alter one’s eligibility for the exclusion so long as the requirements are met. The rule doesn’t care about rental income; it cares whether you fulfilled the residency requirement. Best of luck!
Kevin says
Thank you for your reply. This is good news. I’m still a little confused about the comments at the top of Pub-523 Page-11. Do those instructions not apply in my case, because I wasn’t renting a “portion of your home for business”. Instead, Unit-1 was either fully a permanent residence, or fully rented. My scenario seems like a common occurrence for duplex owners, so I wish the IRS included this scenario in their own FAQs.
Colleen Stewart says
I own a commercial building and lease offices. I also have my residence in the building for 5 years. When I sell it will i have to pay sales tax on it since I it is also my home?
Charlene says
Andrew my husband and I and my brother and his wife bought a big house so we we could all live together and take care of my 94 year old Mom. We purchased house In Jan 2016. Unfortunately Mom was placed in nursing home shortly thereafter and husband and brother did not get along. We moved out in May 2017. Brother and sister In Law would not buy us out of house so we had to file a partition suit. They finally agreed to sell house it was listed in dec 2017 and finally sold In July 2018. My husband and I lived in house for 12 months but owned 50 percent of it for 2.5 years. Can we qualify for unforeseen circumstances. Our gain was only about $9000. Thank you
Al says
Hi
Great article. This seems like a great tax advantage. So if I understand it you can buy a house improve on it over 2 years that you are living in it and then turn around and sell it for profit and as long as the gain is no more tha $500 k you keep all of that money. And then you could do this all over again. Theoretically you can make $500k tax free every two years forever? Am I understanding that correctly?
Nique says
Loved, loved, loved the timeline graphs and scenarios. Made it a LOT easier to understand how to interpret this tax code in the context of everyday life. I particularly liked Example #3 since that one really helped clarify interpretation of the non-qualified use rule pertaining to the date of last residency. That one is non-intuitive. VERY helpful. Thank you!!
Andrew C. says
So glad it was helpful!
Linda Sheely says
Hi,
I own a home that I rent (for the family discount, lol) to my daughter and her boyfriend. We do not have a rental agreement just verbally decided on what was expected. I still pay the school taxes etc. and have homeowners insurance. I got married in June 2017 and live with my husband in another location. I do not pay rent. We are getting ready to retire and build our own home in the country. I do not want to sell my home and keep it as a residence for my kids. I am worried that when I go to sometime down the road maybe 5 to 7 years sell my home I will have to pay capital gains taxes. I bought my home in 1988 (original owner) and paid $99,000.00 and now I could probably sell it for about $200,000. My new tax person said I will need to sell my house within 3 years. Please advise me on what to do going forward. Thanks, Linda
Albert Oliver says
Hi Andrew,
My partner and I (married) have owned a house together since 2001, which we re now going to sell. We have always rented as our principle address, and have use the house as a weekend house. It was never rented. The house and we are located in California.
We do have a P.O. box for bills, etc. for the house. It was purchased for around $240,000, and the asking price is around $675,000. We have probably put in about $400,000 in a major expansion (construction), remodeling, and landscaping over the years. I assume we don’t meet the residence requirements, but is there any way to reduce our tax exposure?
Thanks,
Albert
George says
Hi Andrew thank you so much, I think I got my answer but just to be safe I wanted to ask directly.
My grandmother died in May of last year. She had deeded her home to me in November of 2014 but I did not live there at the time. I did live there up until September of 2014 and moved right before she deeded it to me. I sold the home I was in May of this year and claimed the excemption. Now I’m in the home she had deeded me but realize I cannot afford it due the heavy debt burden of $300,000.
Can I get an unforeseen circumstance exemption and if so the house has been my primary residence since March this year and it was also my primary residence since before September of 2014. Thanks so much for the article!
Ruo says
Hi Andrew, thanks for the informative post. A question if you don’t mind double checking my plans:
I bought a condo in 6/2013, and lived there until 7/31/2015, when I had to move out of state for work, and started renting it out from 8/1/2015 onwards. I’m planning to sell it soon for about 40,000 in appreciation. If I understood your post correctly, if I close the sale by 7/31/18, then I won’t need to pay capital gains tax since I’ll have lived there as primary residence for 24 of the last 60 months. But even if the condo stays on market for longer and the closing isn’t completed until 9/2018, I should still be able to avoid capital gains since moving for employment gets me partial exclusion? 22/24 x 250,000 give up to 229,000 in max exclusion, much greater than the anticipated gains.
Thanks in advance!
Andrew C. says
Sounds right, if the facts are as you say.
Ruth says
This is an EXCELLENT article!! Would you be able to give me advice on my situation? (I browsed the comment but have a more specific question).
We purchased or home in December 2014 for $410,000 in California.
My husband’s job took us out of the country in November 2016 (just one month shy of 2 years).
We rented until March of this year, when our tenants moved out. We cannot cover the mortgage with rent alone, so each month we took a loss.
We decided to sell and opened escrow April 27th 2018. We still live out of the country.
Can we qualify for an exemption, even though we were one month shy of living in the residence for 2 years? And more specifically, are their any expeditions for California State Law, as they are saying we will owe an estimated $18,000 in sale taxes!!
Any help you can offer would be GREATLY appreciated!!!!
Jeff Winn says
I am a mortgage lender and we have a transaction that hinges upon which date satisfies the standard of having owned a home as a primary residence for “two years.” It might seem like a simple question but I have had a difficult time finding a direct answer. A seller bought his home on May 19, 2016. Can they close on the sale of that home on May 18, 2018 or do they have to wait until May 19th to have owned it 2 years? A calendar begins on January 1st and the year is over on December 31st but does the IRS allow you to sell on that final day or do you have to wait until the following day. In this case, May 19th is a Saturday which pushes the next business day to Monday the 21st. Do you have any insight for us on this matter? I appreciate the detailed information in your article. We would appreciate your opinion on this matter.
Andrew C. says
My view is, you can close on May 18, 2018, and still satisfy the rule. See IRS “Topic No. 701 Sale of Your Home” – https://www.irs.gov/taxtopics/tc701
In particular, the quote: “…you must meet both tests during the 5-year period ending on the date of the sale.” ENDING ON the date of the sale. To me, that says you get “credit” for May 18 because that is the date ending on the date of the sale.
But why not just roll it to Monday 5/21 to have absolute peace of mind? I would probably do that if it doesn’t screw up the deal.
NOTE: I am NOT your tax advisor so do not interpret this as official/formal tax advice. This is just my layman’s opinion. You must consult a tax advisor or attorney for a formal opinion.
Kay says
Hi, I recenlty purchased a duplex mother/daughter style condo so that my mother could live on the first floor. She was a cancer survivor. Four months after the closing, during the renovation, my mother passed away. She was 80 but in remission and in reasonably good health. Now I have a too big apartment that I want to sell. Does this meet the exception to the 2 year rule? Thank you.
Lisa G says
Great blog!! I have a scenario I wanted to run by you. It says that you need to be living in your primary residence right before a move to qualify for the partial exclusion to the two year rule. If my husband got a job in a different state and moved ahead of me by 5 months or so, would I be able to use the job exclusion even though he wasn’t living in the house but I was? I would want to join him but wouldn’t be able to move right away. When we would be selling would be after owning for 21 months.Thanks for any help you can give me.
Jesse Shubin says
Not sure that you will get this but what I’m getting is that I bought my house for $300,000 and put $75,000 down. Now after 6 months (25% of my 24 month requirement) that my wife and I want to move out of state. Put exemption is $500,000 for the 24 months but we stayed 6 months this the exclusion would be only 25% of the $500,00 resulting in a $125,000 exclusion correct? So as long as we don’t sell our house for more that $350,000 (or would it be $425,000? Do you count the cost of the home or the cost after the down payment?) Would bring less than the $125,000 in profit so we could be take the partial exclusion then? Sorry if I’m confusing and thank you for your time
Tayler Franklin says
What if you rented the house for a while(it was for a health related reason, but I never saw a doctor so I doubt there would be any exception there), but have been living in the house for the past 5 years? I read this whole thing, but that never seemed to be brought up. Do they only look back 5 years? It seemed to be implied, but was never stated outright other than when using the “2 of the last 5 years” thing.
I’m curious if someone could theoretically rent their house for a decade, but prior to selling, just move back for 5 years, sell, and capture the entire exception.
Andrew C. says
First: You only need to live there 2 years, not 5. The 5 year thing is just the look-back window, not the duration you have to live there. Second: you could do what you said, but you still wouldn’t capture the entire exception bc of the law change in 2009, which the article above discusses. If you move back for 2 years and then sell, you’d only be able to capture part of the exception due to the new rules in 2009.
Tayler Franklin says
Right, I understand that it is the window of time they look back at, not how many years you need to live there, which is EXACTLY why I’m asking: if an owner lived in their house for the last FIVE years(i.e. the entire period of time that they look back at according to this article), shouldn’t they be able to capture the entire exception?
In this hypothetical, the owner is not moving back for 2 years, they are moving back for FIVE years. And if they only look back 5 years, and it was the owner’s primary residence for the last 5 years, wouldn’t they be able to capture the full exception? It doesn’t seem like you have addressed this yet.
Andrew C. says
Yeah, that’s what I’m saying: you cannot capture the entire exception even under your “5-year scenario” due to the new rules in 2009. Go back and read the part of the article addressing the new rules introduced in 2009 as it explains it there.
Tayler Franklin says
I did read it and the needless complexity of the law made my head explode. So the 5 year look back is only to determine residency status, but the actual taxation percentage is still based on the total period of ownership, not just the percentage of the last 5 years?
But what if I owned the house for 8 years, and lived there for the last 5 years instead of 2 years? In this case the percentage of time I lived there is now significantly greater, right? It didn’t seem to address that this percentage is based on the entire period of ownership, because most of the scenarios just focus on the last 5 years.
So here is what my original plan was based on my own property before reading this:
Bought home in May 2013
Lived as PR until December 2015
Rented from January 2016
Stopped Renting January 2028
Lived as PR until April 2030
Sold
My hope was to capture the entire exception using this, but it would appear that I could only capture a small portion of it. I still don’t understand, if I lived there for more time prior to selling, would that effect my taxes since the total ownership percentage would be greater, or would it not matter at all, as the article seems to imply that I can, at most, get 2 years exempted.
Bobbie Merchant says
Why does tax code say two of the last five years ? What does the five years have to do with it?
Pamela Trudeau says
I am a single woman. I bought a house in WA in 1991 for $52,000, and lived in it from 10/1991-9/2004, at which time I moved to SC to live with and help my elderly parents (in their early 80’s). I have been renting out my house since 10/2004. I am still in SC living with my father, who is now 96 (my mother died in 2012), and I have been offered $270,000 for my house. I want to sell it, but from what I have read here, it does not look like I would qualify for exemption from capital gains taxes. What do you think? My plan was to return to my home in WA after my father died, but he keeps on living, and being a long distance landlord is getting more and more problematic. Any suggestions? Thank You!
Sidney says
Hi Andrew,
I purchased my home in California in 1999 for $350,000.
In 2009, I was unemployed and the only job offer forthcoming was in Canada, so I moved and began renting the California condo on January 1st, 2010.
Since then, I’ve lived abroad and have been renting the condo.
I’m now in difficult circumstances and need to sell the condo, estimated sale price $800,000.
After selling expenses and adjusted basis, I expect the gain will be around $450,000.
Although not eligible under residency, safe harbour distance does apply, but since period is greater than two years, would ‘job change’/’unforeseen circumstances’ exceptions be applicable?
Thanks,
Scott says
In 2006 my Mom gave me her house with the agreement she could live there as long as she wanted/needed. So no rent was paid to me. I paid taxes and insurance and upkeep.
She passed away last week 2/2018. Now I want to sell the house and split it with my two sisters. House is only worth around $110,000. I did live in the house on and off taking care of my Mom during her cancer battle. probably well over 2 years of the last five, but didn’t document or change my mail from my other house that me and my wife own.
Do I need to claim any of the sale on my taxes?
Lisa says
Hi Scott,
Did you ever get a reply to this question? I am in the same situation.
Sharon says
Hi Andrew
We are a British family and moved to the USA August 2017. Prior to this move we were on an ex-pat contract in Dubai for 4.5yrs (this meant that my husband would return to UK at the end of this period to our family home). However, the company offered him a new role in the States on a ‘local’ contract at this time and we moved. We have a family home in the UK that we have owned since 1998 and now want to sell it but we are unclear if we would have to pay gains tax as we weren’t resident in it for two of the last five years due to the temporary relocation move to Dubai with my husband’s company. Do you have any idea if we would be exempt from gains tax on this basis?
Many thanks
Alice says
Hello, my husband and I built a house and it just was completed in January 2018. We bought the land 2 years ago but have only actually lived in the house for a few months because it was being build. We have decided to get a divorce and need to sell the house because we can’t afford it separate. How does this work for tax purposes? Do we have to pay capital gains on the proceeds? (we will make around $250,000 together off of it.
Thelma Ruff says
Hi Andrew, My husband and I married in 2014. He lives in Oklahoma and I live in Missouri. We live 4.5 hours apart and see each other on weekends. My house was purchased in August of 2007 and his house was purchased in July of 2009. His name is not on my deed and my name is not on his deed. We just purchased a new home together in Missouri as my husband is retiring and can now move to Missouri.
When I sell my home in Missouri, I should make a profit of $100,000. When he sells his home in Oklahoma, he should make a profit of $30,000. We are going to the take the profits and pay down on our loan on our new house using a “recast” strategy. The bank will recalculate the payments and we get to retain our low interest rate. Will each house be entitled to a $250,000 exclusion? Or will the IRS look at the sale of one of the homes as a capital gain? Neither property has ever been rented as he has been living in his house and I have been living in my house.
Andrew C. says
One sale will get the exclusion, and then you’ll be “throttled” on the other sale. See the article section above re: married spouses. Strategically, I would do the $100k gain home first, get that exclusion. Then wait 2 years and sell the other one (if you can afford to hold it) to get the other exclusion. Alt: sell the $100k one first, and then sell the $30k right after that. You’ll pay taxes on the $30k gain, but it’s a lot less than the $100k.
T Ruff says
Thanks for your advice. Talk about a marriage penalty. This seems so unfair. Why would it matter which is sold first if they are sold in same year?
SD says
I believe Andrew made a mistake in this situation. The rule is each individual can get an exclusion of $250K every two years, regardless married or not. For married couple they can get $500K together for one house and can be considered as individual and get $250K independently. In this situation, when husband sell his house, wife doesn’t use her $250K exclusion because wife’s name is not on the house. So wife can sell another house (even with husband’s name on the house) and use her $250K exclusion anytime. I played this on Turbotax.
wendy says
Hi,
I have a question. The house that my uncle lives in is in my name. It is value around $20k.. He pays the utilities. There is no rent or mortage. He is wanting to sell the property due to health reasons but is worry about the taxes that will be due. I don’t have any other property and live with relatives. Can someone please tell me how I could figure out what taxes and captail gains I would have to paid. THanks f
Hayley says
My husband and I are selling our home and buying another one in another town. We have lived there since May 2015 and rented from my brother in law, then we assumed his loan on 2/17/2016, my brother in law purchased the property himself in 2008. We’ve claimed primary residence since 2015, but it wasn’t deeded to us until 2016…would we still have to wait until AFTER 2/17/2018 to close on the sale of our house? Thanks in advance!
Jack Reed says
Hi Andrew,
Thanks for the article! What you are saying in “Example #3: Let’s add some spice…” agrees with what my accountant says, but I can’t find an IRS pub or tax code which supports this idea that the IRS only cares about periods of non qualified use within the 5 year look back. For instance please consider the following: if someone used a house as primary residence for first year of ownership, then rented it out for next 6 years, then lived in it again as primary residence for next 5 years and then sold it. Are you saying that the the last 5 years of ownership, the look back, and zero days non qualified use that the owner would qualify for full capital gains exemption, without pro-ration for non qualified use as per Pub 523? That would be great. Do you know that tax code supports this? Thank you
Andrew says
No, in your example, the 6 year rental is nonqualified if it occurred after 2009. In my example “Let’s add some spice” the rental period does NOT count as “nonqualified use,” even though Victor and Victoria weren’t living in the house, because they moved due to a job rotation which is a valid exception. You’d have to have a valid exception for your 6 year rental to be free from the nonqualified use restriction. See IRS code: 26 U.S. Code Section 121(b)(5)(c)(ii)
Jack Reed says
Thanks for you clarification !
Jeanne Glasgow says
We paid $17,000 for our home in 1959. Now, a widow of a veteran, I lost my son in 2017. He has lived with me 4 months of the year every winter since my husband died 9 years ago. I was able to live in my home alone because he took care of everything, even fixed my meals. Six months after he passed I could no longer manage alone and moved to a retirement home in another state, only a mile from my daughter’s family. My home is for sale at $215,000, but I may have to take less. Regarding my income, I should qualify for tax exclusion, but considering my reason for moving, would I qualify?
Zoletta says
Hi, and thank you for the very detailed article. I recently sold a home that I partially inherited back in 1997. I lived there until 2007, when I married and changed my DL to my new location out of state, but moved back in only months later, after separating from my new husband, whom I officially divorced in 2009. In 2012 I moved, again, and rented it out until 2016, after which it sat empty until it sold, one year later. Over the 20 years that I’ve owned it, I’ve poured thousands upon thousands of dollars into fixing it up, but failed to keep any of the receipts until I began renting it – plus most of the work was DIY. How on earth do I begin to figure out such a mess? Thanks, and Happy New Year!
Jeff says
I have been living with my girlfriend in a house I own as my principal residence for five years. We both have proof that we have been living there for five years. If I married her tomorrow and sold the house the next day, would I get the full $500K exclusion, or something closer to $250K. My house has appreciated $500K, so this is an important decision for me.
Claudia says
Hi Andrew, this post is amazing and so helpful. Thank you
My 2 questions are: are all the years of ownership/resident prior to the last 8 are automatically discarded?
How does non-residency timeline starts when a resident moves out to rent in the middle of the year?
Bought a co-op at the end of 2007, lived there 9 years and 315 days until having to move out on 8.31.2017 (& rented starting 9.2017) to complete 1-year contract 3000 miles away. If offered another employment after contract ends and continue living in new relocation what’s the latest month/year in the future when closing sale would have to happen to avoid capital gains taxes?
Also if a single person does not qualify for the living at property the last 5/8 years but the gain between price bought & price sold is less than 250,000, are full capital gain taxes due for less than 250,000 gain?
If an owner does not meet the last 5/8 years residency reqs but uses the gain to purchase another home, what’s the longest length in months that new closing should happen to avoid capital gain taxes?
Heard both that the capital gain exemption for home residents can only happen once within a lifetime and also that it can only happen every x/y years? Which one is true?
Andrew C. says
Luckily, at the very last minute, Congress decided NOT to change the home sale tax exclusion rules, so all the old rules still apply under the new tax bill (i.e., 2 out of 5 years, not 5 out of 8 years). As for the answers to your specific questions, Claudia, they are ALL answered in the article, so if you read the article all the answers are there.
Alice says
Hey Andrew!
Happy New Year! Is that true? That they didn’t change the rules on the home sale exclusion tax? That it’s still just 2 out of the last 5 years?
Andrew says
Yes
Andrew K Chow says
what type of documents to approve that I live in the primary house in Brooklyn,New York?
Come to this point, my driver license address is not the primary house address, due to the cheaper insurance rate I use the other house address. my electricity bill is not my primary house address neither.
I have water bill, Gas bill and major credit card,bank statement with the primary house address.
Is that enough evidences to approve that I live in the primary house?
Thank you in advance for your reply.
Andrew
Andrew C. says
When you sell the house, your agent will have to file some paperwork and you’ll need to show it’s your primary residence at that time – they may look at whose name is on title, where the property tax bills go, voter registration and DMV records, as well as other bills/documents (like the ones you mentioned) to show you lived there as your primary residence. AFAIK, there isn’t an official list of documents that will prove primary residence status, so it’s a good idea to talk to a tax advisor about your specific situation.
Jon says
My wife and i each owned our own houses before we were married 4 years ago. Shes had hers for 30 years and ive had mine for 18. We’re living in my house. Hers has been empty since we were married in april of 2018 with the exception of her adult son for several periods of about 2 and 1/2 years total. She now wants to sell. Is she exempt fro. Capital gains?
Terry G says
I paid 400k. I refinanced for home repair and new loan principle is 700k. If I sell my home married for 1.2 will I owe any tax?
lived in house for 18yrs
Edwin Pena says
Andrew, any chance you can give me your take on my question below from a few months ago? If I lived in the home for less than two years (18 months) and owned it for less than five years (54 months) and I moved due to job, can I still qualify for partial exclusion on a $109k profit. MARRIED filing jointly.
Bob Green says
“The new legislation requires living in the house 5 out of 8 years, up from 2 out of 5 years. It retroactively dates back to the day the tax legislation was first introduced (couple weeks ago), so if you weren’t already in contract to sell by then, AND if Congress ultimately passes the legislation (TBD), you would be subject to the new rules immediately, not the old ones ”
Where can I find this? My Realtor is advising me to list my house before the end of the year if I am going to move in 2018 and even If I don’t sell it will still apply 2017 rules?
Andrew C. says
It’s too late to qualify for the 2017 rules now. If you list your home for sale now, you will be subject to the new tax bill rules, as the house and senate have reconciled their bills and it will almost certainly be signed by the President before end of year. In terms of the retroactive date application, you can just read the tax bill itself to find this.
Andrew C. says
Correction: you’re right, I just checked the Senate bill and it says: “The proposal is effective for sales and exchanges after December 31, 2017.” So if you are in contract before end of 2017, you should be fine under the old rules.
Alice says
Wait! Does this mean that if you put your house up for sale before the end of 2017 and even if it’s sold in 2018, you can still qualify under the old rule?
Andrew C. says
Not just put/list your house for sale. You’d have to actually be in contract. And then the contract would actually have to close. So if the contract fell through in 2018, you’d lose the 2017 benefit.
Don says
Andrew,
Thank you, this is an excellent post. I was in contract to sell and buy before the end of 2017 and my closing date is January 3rd. Is both my purchase AND sale under FY 2017? Could I can claim moving expense deductions under FY 2017 even though the move date is January 3rd?
Andrew C. says
Don – yes both purchase and sale is under 2017 rules if you close in 2018 bc you were in binding contract in 2017. No, your moving expense deductions will not be deductible if you move in 2018, regardless of your house situation – those are separate issues.
Alice says
Hi ANDREW,
Thank you for such a detailed article. I think I almost got it! How does the IRS confirm the exact date of your having vacated your primary residence? Got my place in 02/2011 in WA, then got married in 08/2015 to someone in TX and was going to locate there right away but couldn’t find a job in TX so I was partially going back and forth between my place in WA and my place in Texas until 02/2016 when I finally found a permanent job in Texas. Do I have to worry that I wasnt living at my place in WA full time?I have never rented out my place in WA as I let me sister live there rent free and I stayed there when I’m in town. I changed my address to the Texas address in September 2015!l but didn’t get my Texas license until 03/2016 after I moved permanently. In any case, I am now going to sell my place in WA in 2018 and think I may qualify for the exemption but I think I only have until 02/2018 to close on the house if I want to get the full exemption right?
Andrew C. says
For determining when you switched residences, the IRS would probably look to objective indicators like when you changed your driver’s license, voter registration, etc. It’s not really about whether you were physically residing in the property 100% of the time, as long as you were not renting it out (which sounds like you weren’t), although if you were residing there very little, that may be problematic. Basically, you’d have a good case that you were residing in the WA house until you took objective actions to change that (driver’s license, voter registration, etc). For the tax exclusion, you should know you most likely cannot qualify for the 2 years out of 5 years rule anymore because Congress already passed new legislation requiring 5 years out of 8 years in order to qualify for the tax exclusion – that legislation is simply awaiting the President’s signature which will most likely happen before end of 2017.
Alice says
Thanks so much for the response! It appears that the new 5/8 yrs will get passed for next year. I think I still qualify even with the new rule, right? 02/2011 to 02/2016 (5years) out of 7 years that I owned the home? Also, from 02/2016 to now is NOT a non-qualified used if I understand that part correctly. Looking forward to your response!
Andrew C. says
You’re right, I just checked the Senate bill says: “The proposal is effective for sales and exchanges after December 31, 2017.” If you sell in 2018, as long as you can convince the IRS you resides in your property for 5 years, then you should be fine. The period from when you move out to when you sell is not considered non-qualified use.
Cheryl Marvin says
Hi. I’m going through a divorce and my husband and I are selling the house which we have owned for 15 years. In October, 2013, I moved out due to abuse, etc. I haven’t lived in the home for two out of the past 5 years and now that we’re selling, I’m afraid I’m stuck with capital gains while he’s had the luxury of living in the home. Do I qualify for any type of exemption?
Also, we have purchased and sold several homes over 25+ years and always reinvested any gain on the properties. Do I have to pay tax on those gains too? Thank you.
Andrew says
There’s 2 issues that matter here: one, the date you sell the house (it depends on whether you’re still married on that date); two, your filing status at the end of the tax year in which you sell the house. You *might* qualify for some tax exclusion even if only your husband has been living there the last few years as long as the house is sold before the divorce decree is finalized. You should consult a tax advisor to understand the exact amount of exclusion you would be entitled to in this scenario. And then, how much exclusion you can gain depends on your tax filing status at the end of that year. You should read the section above “What other special rules apply to married taxpayers?” to get a feel for what could happen, and definitely consult a tax advisor or CPA.
Debbie kaye says
Hi Andrew, wow what a great site! Read all the blog but have different situation and could not find answer needed. Maybe you can help! My mom owned her house for 45 yrs. At 80 yrs old found out she had leukemia/terminal and needed to be cared for 24/7. Mom decided to sell her house and contribute $200,000 of the proceeds toward a new house for all of us to live in and care for her. We found and bought a house for 267,000 and financed it with plans of refinancing when her house sold. Mom took a turn for the worst and I had her quick claim/inherit her house deed to Me. She passed before her house sold. Now 7 months later we are in process of closing the sale of her house for 237,000. The new house is in my and my husbands name only and We wanted to know if we can avoid capital gains by taking the money from the sale of her house and refinancing it into our new house as we planned! Thanks for your help!
Andrew C. says
Based on your facts, you probably cannot avoid the cap gains tax. It would have been better to work with a tax advisor before purchasing the new house because there may have been a way to defer taxes using a Reverse 1031 Exchange. But that has certain hoops you must jump through to qualify, which you haven’t done unfortunately.
barbara woinke says
Hello Andrew C, this is the best article on cap gains ever! Thank you so much. My question is:
I bought, lived and worked in a Co-op for more than 30 yrs. I also bought a small house which has been “under water” and worth less than the mortgage using it only on the weekends.
I lost my job last year but being 64 yrs old I have not and probably will not be able to find another job.
Do I have to pay cap gains tax if I buy a Condo for the money I sell my Co-op for?
Also, how do I prove Primary Residency?
Can I offset losses from one property towards the gains from another?
Thank you, Barbara
Haraux says
Hi,
I purchased a townhouse for 72K$ on October 3, 2014 and lived there till June 30th, 2016 (primary residence for 20 something months). I moved to another state for s job change, and rented the townhouse on July 1st,2016. It is still rented. When is the threshold date I should sell the house (for around 150-200K$)by then, so I will be tax exempt?
Andrew C. says
If you were to sell (and close) the transaction today, you would be eligible for a partial exclusion (due to your job change which would qualify as an unforeseen circumstance, assuming your new job in a different state was at least 50 miles further away). That would likely allow you to exclude all your gain from getting taxed.
However, if you close the transaction after Congress passes the current tax bill (already passed the House, awaiting passage in the Senate), then you might not be able to exclude any of the gain. That is because under the new tax legislation, you would have to reside at the property for 5 out of 8 prior years to qualify. There may still be a safe harbor that allows partial exclusions for unforeseen circumstances like job changes, but at a minimum, for you, it will be less than the current safe harbor because 20 months / 60 months (proposed law) is less than 20 months / 24 months (current law). Congress may also change the rules around unforeseen circumstances to make them stricter.
Haraux says
Thanks for the reply. Is there anything for unforeseen circumstances in the new tax bill? I can not see any news talking about it!
In my case staying 20 months out of 60 months for the course of last years in total will prorate the 250K accordingly? Meaning: if the gain is less than 250K x 20/60=83K, then there is no tax?
Haraux says
Andrew,
Do you know more about the unforeseen circumstances in the new tax bill? I can’t find anything online.
Thanks.
Andrew says
The currently published drafts do not seem to alter unforeseen circumstances, but the final reconciled bill has not been released yet.
Haraux says
It is too new at this moment but the bill just passed as of yesterday. Is there any change with the unforeseen circumstances? Like moving, job change, etc.
Catherine says
Hi,
I lived in a house for 6 years and then had to sell Aug 2015 due to a loss in income due to a messy two year divorce after my spouse walked away from the marriage. I then remarried. My current husband bought his small house in Nov 2012 and then married me (with two children) in 2015 and outgrew the house overnight. He could not have foreseen marrying someone with two children. We sold the small house in 2017 and moved into a larger house. He used the house as a primary residence for a total of 40 months but I only used it as a primary residence for 20 months before buying the new house. We were told by the closing agent that we had to pay taxes on the $336k made on my husband’s house because I didn’t live in the house for more than 2 years and I sold a house within two years of my husband’s house. We bought the new house before we sold the house we were living in by draining our savings. The money from the house sale replenished our savings accounts, so in a roundabout way the money from the sale of the house was used to buy our new house.
My question is, can we claim safe harbor due to unforeseen circumstances? My unforeseen loss of income and a divorce that forced me to sell my home, and then the unforeseen circumstance of my husband marring someone with 2 children and outgrowing the house he had already lived in for three years and needing to move. If so, how much tax will we owe?
Thank you for looking. No one can seem to give me an answer and your post is the closest to an answer I’ve come to!
Andrew C. says
While divorce generally DOES qualify for the safe harbor for unforeseen circumstances, I believe marriage generally does not qualify as an unforeseen circumstances, because you consciously choose to get married (and control the timing), whereas divorce is sometimes truly unforeseen for one of the parties.
As for whether your husband can claim a partial exclusion since he (as of now) qualifies while you do not, read the section of the article on special rules that apply to married couples. That answers your question pretty clearly.
https://hackyourwealth.com/avoid-capital-gains-taxes-selling-house-irs-rules-exceptions-exclusions#otherspecialrules
You should know that if Congress passes tax legislation currently being negotiated, it will disqualify your husband’s tax exclusion. That’s because the new legislation requires living in the house 5 out of 8 years, up from 2 out of 5 years. It retroactively dates back to the day the tax legislation was first introduced (couple weeks ago), so if you weren’t already in contract to sell by then, AND if Congress ultimately passes the legislation (TBD), you would be subject to the new rules immediately, not the old ones. Read more about the proposed tax changes here:
https://hackyourwealth.com/2018-federal-income-tax-brackets-retirement-contribution-limits
Aoufa says
Hello and thanks for this useful article. Since alien non residents file separately, only, does this 500k tax exemption on capital gain apply to them?
Thanks
Andrew C. says
I’m not familiar with the rules for non-resident aliens specifically. Everyone can claim an exclusion if they qualify, but your question seems to be more about whether you’re limited to 250k vs. the full 500k that married filers get. I would think that if married non-resident aliens are required to file separately, then you can only claim 250k, but that’s intuition speaking, not fact. I suggest you contact a tax advisor.
Zai says
Hi Andrew I hope you can help me whether I could get exempted from the tax. I bought a house in 2007 for $250,000 in WA thinking I be moving back unfortunately I can’t get a transfer due to my job. I ended renting it out till mid 2016. The rent is less than my mortgage. Mid 2016 the house was empty so I come back a few months to repair it. I than hired a real estate agent and now it is for sale. I plan to sell for $330,000. Although it looks like I will gain profit of $80k but I lost a lot since I have to put in some of my money towards the mortgage and repair. Will my stay for 8 months help to get some exclusion as a single person= 250,000x 8/24mths= $83,000.
Does that means my gain of $80k will not be tax?
Your response will be a great help. Thank you.
Andrew says
Hello Zai, I don’t think you would qualify for a tax exclusion in this case because you held the house for almost 10 years. Given the motivation was due to inability to transfer your job, there might be a way to make a case to the IRS for unforeseen circumstances, but I think the odds are low because you held the house for a decade. You might want to get a formal opinion from a tax accountant to be sure.
John Brown says
Hi,
I loved all this info, but i had quick question. I bought my condo in Oct 2015 and I plan to sell Nov 2017. Will i have to pay taxes? I lived in it as my primary residence, but i only lived there for 2 years. The gain is only 100K so taxes will take a huge dent. i am just tired of the neighbors and the stupid HOA.
thank you for your help,
John
Vince T. says
Hi Andrew,
My wife and I purchased a house in Nov of 2014 and sold it in May of 2017; living there for over two years. We made a profit of about $80k from the sale. A tax specialist from H&R said that we don’t qualify for an exclusion because we’d have to own it for 5 years. Is this true? We sold the house because my wife quit her job because of stress at her work due to the threat of termination, and we wouldn’t be able to make the payments just on my income alone. I would appreciate if you could clarify this for me.
Andrew says
Vince, that is wrong. You do not have to own it for 5 years. You only have to live there 2 of the past 5 years while owning the property. So, in your case, since you lived there 2.5 years of the last 5 years while owning the property, you would qualify.
Edwin Pena says
Great information. I have a question that I hope was not covered in the previous 150 Comments (I couldn’t get through all of them today).
My wife and I purchased a home in Virginia in March 2013 9for $285k), made improvements of around $30k and then moved to Tampa FL in September of 2014. The tenant died August 2017 and I moved in to start renovating the property and getting it ready for sale. It also helped that I do a lot of business in the DC/VA area so it was still convenient for me to spend my afternoons/evenings in VA while renovating. I did the math and if we sold the house in November 2017, we will have only owned it for four years nine months and would only have lived in it for 18 months (March 2013 to Sept 2014). Do we qualify for a partial exclusion or should I live there for six more months to satisfy the two year requirement. At which time we will have also owned it for five years. PS: the approximate profit/gain we are expecting is about $100k.
Edwin Pena says
I forgot to mention that when we moved out in Sept 2014, we rented the house out until the tenants death in Aug 2017.
Danny Nguyen says
Nevermind I didn’t read carefully i got it now ☺
Natalie E. says
Hi, I purchased an apartment (House A) in 7/2010, got married in 10/2015, sold the house in 2017 for $100K gain. House A was never rented out. I lived there as my sole residence until marriage and some time thereafter.
My husband also bought his house (House B) prior to our marriage in 2010 and is looking to sell house B early next year 2018. This has been his main residence. There should be a gain upon the sale.
My name was the only name on the title for House A, his is the only name on House B.
Can we use the the $250M exclusion separately as if we were not married?
Can we take the capital gain separately in 2017 and 2018 tax filings if we file separately or jointly?
Andrew C. says
Once you’re married, there isn’t such a thing as filing “separately as if we were not married.” There is only married filing separately. Also, generally speaking, married filing separately is pretty disadvantageous from a tax perspective. As for the capital gains exclusion rules that apply when each spouse brings a prior owned home into the marriage, I recommend reading the blog post section above pertaining to married taxpayers.
Sher says
Hi, Andrew!
I found your article about taxes and selling your home very useful.Here is my situation and I hope I can get a thorough answer.
Purchased my condo in California in 2002 lived there till 2004
Rented out from 2004 till June 2016 (last year)
Moved in since 07/16 till present but lost one of my PT jobs and financially can not afford to keep it. I had 2 part time jobs now I have only 1. Getting some Unemployment benefit as well and even combining the income I can not keep up with the high cost of living in the Bay area.
So if I sell my condo I can show I lived there 15 months or so (by the time it gets sold). Based on “Unforeseen Circumstances” and “Harbor protection” can I get a break and take advantage of no capital gain for 250K?
The second question: I have a 190K left on my Home Loan and also have a home equity line of credit which used 60K and need to pay it off at the time of the sale.
If I sell the condo for 600K, do they consider the 60K HELOC as part of the cost and will be deducted from the selling price? My estimated gain would be 600 -190 – 60 – (Commission and closing cost about 40K) = 310K ?
Which have to pay capital gain for the extra 60K only (310-250). Please confirm.
Andrew C. says
You may be able to claim unforeseen circumstances based on losing one of your jobs, but it won’t be the full 250k. Read examples above again to see how the math is calculated. I think your gain would probably exclude the HELOC.
Leslie Haag says
I was living in my mothers home and working at a job there in her city of Ocala, FL. She was elderly and needed constant care. My husband was living in West Palm Beach, FL, 240 miles south. When my mother passed away, I could not get employment in West Palm Beach ( and I am the primary income earner in my family). So I kept my job in Ocala and purchased her home in April, 2016. However, I lost my job there in May, 2016 and began applying for a job in West Palm Beach with no success. Now I must apply for bankruptcy because my savings are about gone. If I sell my house here in Ocala, will I have to pay capital gains?
Please help.
LJM
Abe says
Hi Andrew!
We bought our house in Maryland January 1, 2017. My wife got a job in New York starting October 30, 2017 and we have to sell our house as a result. I am guessing that our exclusion would be (10/24) * $500,000.
My bigger question is as follows. We are under contract to sell our house at the end of October / early November. If the sale officially closes before October 30th (before my wife starts working) is that going to be an issue since we will technically have sold the home before she started her job? Should we push to close November 1st so that she has officially started her job while we still own the home together?
Any help would be greatly greatly appreciated as I would hate to miss out on the exclusion because of one or 2 days difference.
Thanks!
Andrew C. says
I think closing in October should be OK as long as you can show the sale was motivated by the new job opportunity. What the IRS cares about is the motivation for the early sale; the actual date the sale closes (before or after the new job begins) is really more of a technicality – it doesn’t impact the motivation issue. That’s how I would present the case. As always, I recommend consulting a tax advisor for an “official” opinion.
Abe says
Thanks Andrew! Guessing showing an offer letter that predated the sale of the home would be sufficient. Is there anything else that is typically required to show that the job was the motivation for the sale?
Nick B. says
Hi Andrew-
I hope you are still answering to this excellent article. I have a special circumstance that I was hoping you could help us with.
My wife and I purchased a home for 153,000 in Sept. 2015, we bought a new home about 15 miles away in June 2017, selling our old home for a profit of $50,000.
The reason we purchased the new home is for my wife, a stay at home mom, begin a business in the studio space above the garage, which the previous home did not provide. We do not fulfill the 2 year residency requirement but I was wondering if somehow this could be considered an unforeseen circumstance or employment related move?
Andrew says
Probably not. But you can check with a tax advisor / real estate accountant for a formal opinion.
Phil says
Hi Andrew,
In 1981, my spouse and I, bought a house for $17000. My spouse died in 8/2000 and a year later I refinanced the house and deleted her from the loan. I lived in the house until 2004 because I remarried, I then rented the house to my daughter. Then in 6/2006, my spouse and I moved back in the house & we lived there until we bought a new home for us in 12/2009 for $200,000. My daughter continued to rent the house. My spouse and I then sold the house that we purchased in 2009 ; we sold it on 12/2015 for $375,000 & it was our primary residence. On 5/2016, I decided to sell my old house & on 7/2016, I sold it for $480,000. Do I have to pay capital gain taxes? I’m retired and my income combined with my spouse is $37,000. I was told that I don’t pay taxes because I’m 66yrs old. Is it true?
Phil
Gary says
Love this thread. My wife and i bought a house in iowa for 45k and i rent in illinois because i work there. She does not recieve an income . If she lives in the house for two years ( i can only come home on weekends) and we decide to sell and is able to sell the home for 100k. Can we file “married but seperatly” and just use her 125k exemption?
Andrew C. says
I’m not sure why you would need to file married separately. Your filing status doesn’t impact whether you can exclude the gain. You can still file married joint even if she’s the only one allowed to claim an exclusion. Your exclusion sounds like it will be subject to the post-2009 limitations, but your wife should be able to exclude a little bit of gain if she lives there for 2 years. Sounds like your total gain anyway will be ~$55k, which is lower than the $250k cap.
James says
I bought a house in 2013, got married in 2015, bought another house in 2016 and moved to new house and rented the first house. In 2017, I was planning to sell the first house. Obviously, I qualified for tax break up to $250k. But since my wife live in that house for about a year, I wasn’t sure if she qualifies for partial benefit. Most of the examples that I’ve found online indicates, the spouse qualifies partial benefit IF she is relocating for a good reason. But only reason we have is we got married in 2015, and moved out in 2016.
Simply to put, I qualify, but my wife doesn’t since she lived there for one year after we got married. Can she still qualify for partial benefit? Is marriage considered as unforseen circumstance or there has to be other reason that follows, such as change of job or family got bigger or etc.
I’m getting too many different answers, even from different CPAs.
Andrew C. says
Hey James, this is one of the more confusing areas of “unforeseen circumstances.”
1. The rule is: Anything specifically (under the section on unforeseen circumstances) listed in one of the bullet points in the above article as an unforeseen circumstance qualifies. This does not include marriage.
2. Anything NOT on that list does NOT get safe harbor protection. Doesn’t mean it’s barred, just means that qualifying for the exclusion is case by case, and depends on the facts and circumstances. The IRS has previously indicated that adding dependents due to marriage generally qualifies. See: http://www.journalofaccountancy.com/issues/2009/nov/20091783.html
3. The question here is whether marriage alone qualifies (separate and apart from adding dependents). My own view is that it does not. First, marriage is so common, and your scenario is so ordinary, that if it did qualify as an unforeseen circumstance, I believe strongly the IRS would have already issued guidance addressing the same, either through explanatory letters or comments on regulations, clarifying / blessing marriage as a tax-qualifying unforeseen circumstance. Second, when you think about it, marriage just doesn’t seem like an unforeseen circumstance logically. Unlike divorce or having kids (where you don’t entirely control whether or when the event happens), marriage is pretty much entirely controlled by you + spouse. You literally decide whether to get married, and then you literally decide your wedding date. It seems hard to argue to the IRS that either decision is an unforeseen circumstance, which is probably why the IRS hasn’t published guidance that it is.
But that is my personal view, and I am not a CPA. I am a lawyer (but this is not legal advice and I am not representing you here) and a financial analyst/planner. I think the best you can do is to work with a CPA you trust, make a call on whether you will attempt to claim the exclusion based on marriage, and be ready to justify or pay back the exclusion if you get audited.
Andrea Yates says
Andrew,
I bought my home in 1989 and lived there for 12 years. I rented it in 2000 and it’s been rented since. I wanted to move back in for 2-3 years and then sell it. Will I be able to use the cap gain exclusion when I sell?
Thank you!
Andrew says
If you move back in 2-3 years you’ll be able to claim a partial, not complete, exclusion because you rented it out for so long. See article above for details re: changes to the law in 2009.
Zach says
Hey Andrew, this was so helpful. Thank you.
I’ve got a quick question, if you have the time.
– Bought my condo Oct. 2012. Used as primary residence through 2013.
– Rented it 2014 – 2016
– Moved back in Jan 1, 2017.
I was told when I get to Oct 2017 (my five year mark) Id only be exempt from 2/5 Capitol gains (due to renting it for 3/5 of the time).
To your knowledge, is that true?
Thanks!
Andrew C. says
Your answer is what I wrote in the post above. 🙂 Check out the section on changes to the law after 2009.
Kathy Blair says
Hi Andrew! Thank you for all the helpful information. Hope you can help answer these questions!
I’m shared owner of an 85 acre piece of land with my mother & brother in TN. My family home is on this property which they still live in. I moved to FL. 30 years ago for a job & own a FL. home with my husband. If we sell the Tn. property how will the capital gains tax work for each of us (myself, mom, brother)? We would be using the sale of this property to help purchase new homes for each of us.
P C Haag says
Could you please address the ramifications for a surviving spouse if a home is sold within 2 years following the death and if a home is sold within 3 years following the death of a spouse. I fully meet the residency requirements.
Thank you for all the terrific information in your article !
Andrew C. says
The rules for within 2 years vs. within 3 years differ. There is a way to get the full 500k if you sell within 2 years, but not if you sell within 3 years. However, even if you miss the 2 year cutoff, you may still be able to step up the basis of the property by half the gain, tax-free, if you inherited your spouse’s half at the time of your spouse’s death. And then you can claim 250k exclusion on the other half. Here are some articles that may shed more light on this scenario for you.
http://www.inman.com/2013/03/19/qualifying-home-sale-tax-break-after-spouse-dies
http://www.kiplinger.com/article/real-estate/T010-C001-S001-selling-a-home-after-a-spouse-s-death.html
https://www.washingtonpost.com/news/where-we-live/wp/2016/06/27/selling-a-home-can-be-tricky-after-a-spouse-dies-heres-how-to-do-it
Mimi says
I bought a property in March of 2009. Lived in it from May of 2009 until Dec. 2013
Rented from Jan 2014 until May 2017
I’ve only lived in the property 20 of the last 60 months, just shy of the 24 months required. We moved because my partner got a job transfer in another state, but I had a friend that wanted to rent it so that was easier for me than selling from another state. Can I claim a partial exemption for this? If I moved back into the property for 4 months would that satisfy the primary residence requirements or would I need to be there longer than that considering that I start “losing” time that I lived in the property as we move farther into 2017.
Andrew C. says
You can probably claim a partial exemption if you moved due to a job transfer. The rules for this are described in detail above. Your partner has to be a legal domestic partner though – not just a significant other. If you move back, you do start losing time, but all that matters is that you cumulatively have 24 months accrued living there as your primary residence over the past 5 years. If your gain is low enough, you may not even need to do that, though, bc the job change exception let’s you capture a fraction of the capital gain exclusion, but the amount the fraction is applied to is the max 250k/500k regardless of what the actual gain on the sale is. (This rule is described above.)
Mimi says
Thanks for the quick reply Andrew! I tried talking to a CPA about the issue but they weren’t all that helpful, in fact he told me there is no partial exclusion for capitol gains, even if I did claim safe harbor. My partner and I are not legally married or otherwise, but we did live together in the property before the move, so I thought maybe that would work. I have a lot of equity in the property, so I could be looking at a pretty big capitol gains hit.
Andrew C. says
It is not correct that there is no partial exclusion for a job change safe harbor: I linked to the applicable IRS regulations in the article above describing how the partial exclusion for safe harbor works. Incidentally, I do not recommend talking to any CPA – I’d talk to a CPA who focuses on real estate specifically and has an actual real estate practice, ideally a CPA who is herself a real estate investor. It’s a specialized area of tax and not all CPAs really know the rules. However, what makes your situation not work is the fact that you have no legal relationship with your partner and it was your partner’s job, not your own, that changed. So you cannot personally claim a job change safe harbor, which means you cannot get a partial exclusion based on it. If the CPA was referring to this fact, she was correct.
Mimi says
Hmm. The IRS doesn’t say it has to be a legal owner or legal spouse, though?
“Work-related move. You meet the standard requirements if any of the following happened during the time you owned and lived in the home you sold:
You took or were transferred to a new job in a work location at least 50 miles farther from home than your old work location.
You had no previous work location and you began a new job at least 50 miles from home.
Either of the above is true of your spouse, a co-owner of the home, or anyone else for whom the home was his or her residence.”
It’s a tough call for me because I’m probably not going to sell if I can’t get the partial exemption because I really don’t want to be hit with 30k in capital gains tax. The CPA I talked to was apparently supposed to be familiar with real estate law, but clearly wasn’t. I’m having a tough time finding anyone that knows anything about these things.
Andrew C. says
Hmm. Interesting. You *might* be able to make an argument that your partner qualifies, then, given the express language of the regulation. A CPA is gonna best be able to help you frame up your options here. I do have an acquaintance who specializes their entire CPA practice on real estate. If you like, I can refer you to them. Email me if you’re interested and I’d be happy to bridge an intro. (My email is near the bottom of my About page description, and also the contact link at the very bottom of this site.)
Btw, where is the house located?
Sheri says
Here is my situation: Bought house in LA County, CA with my parents in 1987, deed says my parents own 2/3 as undivided interest as joint tenants with right of survivorship and I own 1/3 as their tenant in common without right of survivorship. I have been the only one living there since purchase. My parents helped with mortgage payments until approx 10 years ago, when I assumed paying for everything (mortgage, taxes, etc) 100% on my own. I moved out in 8/15 to take a job in another state. I moved back to CA in 4/16, but not to my house — I moved in with my fiance. My house has never been rented — it still has my furniture in it and never had a tenant.
I will move back in Dec 2017 to prepare the house for sale and anticipate selling by mid-2018 (let’s assume no later than 6/18). My parents have been bugging me for years and just want to quit claim the house to me, but I have resisted, as I think there may be dire tax consequences.
If I sell in 6/18, with them still on title, but intending to give me all the profit, what are the tax liabilities for us? Is is better for them to quit claim to me, just before the sale? They have been retired for over 15 years and have no earned income. I am planning to quit my job in 1/18, so that I can concentrate on readying the house for sale and will not go back to work at all until 2019. So does that mean that we are all exempt from capital gains anyway (assuming laws don’t change regarding owing 0% capital gains if income is below $39,000 for a single person, etc.)
My parents are willing to either quit claim to me or just give me all the proceeds after the sale, which ever way makes the most tax sense. And they can gift me up to $5 million tax free anyway, right?
Thank you in advance for any help you can provide.
Mimi says
I purchased a property in March of 2009. Lived in it from May of 2009 until Dec. 2013
Rented from Jan 2014 until May 2017
When I calculate out the 2 of the last 5 years I’m right at 20 months owner occupied out of 60, just shy of 24 months. Can I take a partial exclusion for this? We moved because my partner got a job transfer to another state. I didn’t sell at the time because I had a friend that wanted to rent it and that was easier for me. If i moved back in for 4 months would that satisfy the 24 months or would I need to be there longer since that “removes” some of the time I lived there before I rented it?
Mink says
After going through this blog, you will be eligible for partial exclusion. I am also on the same boat as yours.
Here is the post from IRS’ official website. No need to go to CPA 🙂
https://www.irs.gov/publications/p523/ar02.html
Isn’t capital gain = Selling Price – Price at which you bought the home.
I don’t think it is related to equity. Plz correct me if i am wrong.
Chad says
I’m in a very similar boat to you. Were you able to take the exclusion? I really want to know for my upcoming taxes.
Chad says
I’m in a similar boat as you. Were you able to take the partial exclusion? I’m really interested to know for my upcoming taxes. Thank you.
Elyes says
Hi andrew.
thanks so much for the great info! so appreciated!
I have a quick question: I have been self-employed my entire career (35 years until 2016). My CPA took a home office exclusion for my business, which i believe included depreciation of my home.
How is all this calculated when i go to sell my primary residence that we have lived full time in since 1980? The home was purchased for $120,000, and we have put $400,000 in improvements since purchase. The Home can now sell for $1.5Million. Thanks so much for your assistance!
Warm regards,
Elyse
Andrew C. says
Hey Elyse, you should probably consult your CPA on how to calculate your particular situation since it depends on the details (and that’s what they’re for!). But to give you a general idea, you might check out these 2 articles:
http://www.nolo.com/legal-encyclopedia/taxes-when-you-sell-house-containing-home-office.html
https://www.irs.gov/help-resources/tools-faqs/faqs-for-individuals/frequently-asked-tax-questions-answers/sale-or-trade-of-business-depreciation-rentals/depreciation-recapture/depreciation-recapture-3
Elyse says
thanks so much Andrew!
Linda P says
Thank you for this article. Sanity check- we have owned a home/resided in Illinois since 1992. I became a RIF(unemployed from 12/2013 to 9/2014) and took a job on the east coast 9/2014. My husband remained in residence at our Illinois home until ~ 3/2015. We rented the Illinois house 5/11/16 to 5/15/17, and will close on our house 5/19/17 in IL. We bought a new house in 4/2015 which became our primary residence.
It appears we would fall under the exclusion for paying capital gains, is this correct?
Andrew says
On these facts, it seems like it – just barely. Probably still a good idea to double check with your tax advisor if you want to be sure.
Bj Mercadante says
I purchased my condo in 2008. I became disabled in 2013 and now need to move out of state to be closer to family due to my disability. I anticipate the proceeds of the sale to be less than $100,000. Is this amount taxable? Also, I read somewhere that the proceeds need to be used towards the purchase of another home within 3 months in order to be excluded as income. Another question unrelated: I have an IRA account which I may need to access from time to time. How will this affect my disability income?
Your assistance would be very much appreciated. Thank you.
Andrew C. says
It won’t be taxable if you qualify for the tax exclusion. If you qualify, you don’t have to use the proceeds to buy another home. Re: your IRA account and disability income, suggest you to consult a tax advisor.
Mulualem Haile says
I heard if you are 57 years old and over you can get an exclusion up to $125000. Is that true?
Andrew C. says
Not anymore. Now the applicable law is what I wrote about in this post.
Tiffany Anderson says
Hi,
We purchased a home in July of 2009 and we are finally able to sell it now, in May of 2016. We reluctantly rented it out in July of 2011, when we moved across the country for a job. We have claimed losses on it every year since 2011. A total depreciation of around $30,000, I think. Would we pay capital gains on the sale now? Or does the safe harbor exclusion apply to us? This is our only house, as we could not afford to buy another without the sale of this one. Thanks.
Andrew C. says
I don’t think you can claim any tax exclusion. The employment safe harbor doesn’t apply because you didn’t live in the property in the last 5 years. You might be able to claim some final year losses against the 2016 gain, though.
Jody says
Your article is great! But I still can’t seem to find an answer to my question. 8 years ago my in-laws purchased a home for me and my husband due to a short sale my husband had. The down payment, closing costs, monthly payment, and all improvements to the home were paid by my husband and I. The mortgage and deed were in my in-laws name until October 2016. In October 2016 my husband and I were able to “refinance” the home. We did not “purchase”the home because the lender said we have vested interest in the home. We went through the escrow process and transferred Title from my in-laws name into our name and the mortgage into our name. We are trying to sell our home to move into a larger home and we will have a large profit from the sale. Will we have to pay capitol gains on the sale because we did not own the home per the deed?
Andrew C. says
Huh. I’m not sure about this one. You’ve got a situation where someone else legally owned the home but you essentially “constructively” owned the home, made all the payments, etc. My lawyer brain thinks you will not have to pay capital gains tax on the sale, but your in laws will (since they did not satisfy the residency requirement, hence cannot claim capital gain tax exclusion); but then, when they remit the funds back to you and your husband, it will be treated as ORDINARY income by the IRS, not capital gains, and hence will be subject to ordinary taxes (higher than capital gains taxes). This is because, in the eyes of the IRS, your in laws essentially paid you a lump sum, say, for all your years of service looking after and caring for the property. But that’s just my instinct, NOT a legal opinion. If there is a creative way around this dilemma, a good real estate tax lawyer would be the best bet to figure this out, hence I’d recommend consulting with one to get formal legal advice.
Nancy Allen Ruspini says
I did not meet the 2 of 5 year requirement… I lived in property for 3 years years. Rented after that and had renter move out exactly at 3 years but did not sale for 2 months. Can I pro-rate capital gain based on non-qualfied and qualified use over Iength of ownership?
Andrew says
No.
cindy Hanna Harris says
Hello,
I have rented to own a house from my dad for 31 years. I made all house payments, maintenance and taxes and home owners insurance plus paid off the home nine years ago. I would like my dad to sign house over to me but worried i will have to pay capital gains when i go to sell. Is it true if i have lived in the home after he signs it over I dont have to pay capital gains if I sell? Thank you!
Andrew C. says
It depends on when title was transferred to your name (which is the official date you start owning the property), how long you live in the property after that date (you have to live 2 / 5 years), and how much capital gains there are after you sell. Even if you qualify, you can only exclude $250k as an individual and have to pay any tax above that amount of gain.
Lydia S Bui says
Hi,
I bought the house in December , 2000 and live there as primary resident until October 2011. I rent it out in 2012 ans sold it on January 2016. So live in this house as primary resident for more than ten years. So I have to p at all tax all gain value of $100K ? Thank you
Jas says
Hi Andrew,
Thank you so much for your article “How to avoid capital gains taxes when selling your house”. This is very helpful but I am still confused about the Jan.1, 2009 new rule.
We bought our first home in June 1993 and lived there till July 2010. We moved and rented the house for the last 7 years. We are planning to move back in August 2017 and make it our primary residence for 2 years before selling it.
Can you help me to understand this part?
Quote: First, the IRS says the term “period of nonqualified use” means any period starting January 1, 2009, when the home is not used as a primary residence of the taxpayer or taxpayer’s spouse.
So, anything before 2009 still counts under the old law. The new restrictions only apply starting January 1, 2009.
That means if you bought your home before 2009 and sold it during or after 2009, then you’ll use the old law to determine your tax liability for the part before 2009, and then use the amended law to determine your tax liability for the period afterward.
Thanks, Jas
Andrew says
Which part are you confused by? For the period after 1/1/2009, you’ll have to prorate according to how much time you rented the house out vs. how much time you lived there. Since you rented it out for a period after 1/1/2009, you’ll only be able to exclude part of the gain from taxes.
Judy says
Hi Andrew
I bought my house in November 2003 and lived in it through 2010. I went to Australia to be near daughter in 2011 and have been Australia for the past 6 years. I got the house ready to put on the market in 2015 when I thought I could sell for the purchase price at least and sold the house in 2016.
For the years 2011 -2015 I rented the house to help cover cost of holding on to the house. I didn’t profit from the rental and supplemented cost of mortgage etc with money from my savings account.
For 2016 taxes, where do I stand in regard to capital gains please?
Thanks
Andrew says
It doesn’t seem like you can claim a tax exclusion unfortunately. First, if you didn’t sell for a gain (i.e. didn’t get your original purchase price back), then there wouldn’t be a capital gain to claim at all. Even if you did sell above your original purchase price, it looks like you won’t qualify because you haven’t lived there for 2 of the last 5 years. You might be able to offset some of the gain with direct expenses you incurred in selling the house, or that you occurred during the year of the sale, but that’s probably all.
Separately, you do have to file a return every year, even if you live abroad, but you can claim the Foreign Earned Income Exclusion to avoid taxes on the first $101,300 of earned income for the 2016 tax year. Turbotax should be able to guide you with its simple questionnaire – it doesn’t require you to know any IRS rules yourself, and if your return is not complicated, it should only take you 1-2 hours at most.
Judy D says
Thank Andrew
Regarding my 2016 US taxes, It looks like the capital gains tax on 17k AU, the difference between what I bought for and what I sold for, is about 3,500 (I used an IRS calculator). That is a lot to pay, considering I’ve spent a lot of my own money to pay the mortgage and property tax when the house was rented (5 years or so) and vacant (about 1 year) and then to get the house ready for the market, I mean I’m talking maybe 20k. By brain is reeling.
Just to clarify your comments to another participant, when I file my 2012, 2013, 2014, and 2015 taxes I should depreciate all rental expenses because the IRS will assume I’ve done so, correct?
Also, I can calculate expenses of getting the house on the market and those will be subtracted from the tax on the 17k? I’m wondering if keeping the house vacant while it was being made ready for selling can be considered, that’s about 10 months worth of not getting any rent. Thoughts?
Thanks again.
Judy
Andrew says
You should take depreciation on the property because the IRS will assume you’ve done so: the IRS will tax you 25% on any depreciation recapture.
And yes, you can subtract expenses you incurred in preparing the house for sale, such as advertising, appraisal, attorney fees, closing costs, escrow, mortgage related fees, real estate agent commissions, recording and settlement fees, etc. Those expenses will offset the capital gain itself, not the tax. So your tax savings on that would be the tax rate multiplied by those expenses.
I don’t think you can count theoretical costs like lost rent, see this Intuit forum post: https://ttlc.intuit.com/questions/2302155-rental-expenses-while-vacant-and-listed-for-sale-and-or-rent-which-ever-came-first-and-then-rented
It may be worth consulting a tax advisor to get an official opinion on this, but that’s my 2 cents.
JudyD says
Andrew,
Thank you so much for your prompt reply.
I did look at the previous comment regarding a vacant rental property, thank you, and will consult an expat tax professional.
One last question: Would you say that improvements like landscaping and painting (interior), and bathroom plumbing repairs undertaken to prepare the house for the market, and to meet the appraisers demands (the plumbing, electrical work, and building and garage repairs) be considered ‘expenses’ I could use to offset the capital gains tax figure?
Thanks again for your help. I may use turbo-tax for the earlier tax filings, i.e. 2012 through 2015, but I’ll use a professional or professional tax service for 2016, the capital gain year 🙂
Thanks again! You provide a great service. I’ll bet you’ve been especially busy these last few days!
JudyD
Andrew C. says
“Would you say that improvements…I could use to offset the capital gains tax figure?” – I think so, there’s certainly a legit case you can make for deducting such expenses (i.e. you would not have incurred them but for selling your house). But definitely recommend getting the opinion of a tax professional on this, as I have not yet gone through the process of selling real estate – only buying. 🙂
M.K. says
Hi Andrew great article I need to add more information to my first inquiry, we purchased the second home due to my husband’s change of job and had to commute more than 50 miles. so we rented our 1st home and bough the second home to be closer to his work after 2.5 years living in the second home we had to move again to the first home and rented the second home due to job change again commute more than 50 miles. 2nd home purchased in 2008 lived in it until mid 2010. the 2nd home stayed rented through June 2016. July 2016 we put it up for sale and no renters anymore. took a while to find a buyer but now it’s in escrow. Do we qualify for the old rule since we bought the 2nd house before 2009? Appreciate your help
Andrew C. says
If you read the post above, the part that applies to you is this:
“That means if you bought your home before 2009 and sold it during or after 2009, then you’ll use the old law to determine your tax liability for the part before 2009, and then use the amended law to determine your tax liability for the period afterward.”
So, any period after 1/1/2009 where you rented it out will not benefit from the tax exclusion. It doesn’t matter that you bought the house before 2009. In this case, since the property has not been your primary residence for any of the last 5 years, you would not be able to claim any part of the tax exclusion, unfortunately. The fact that the new job is >50 miles away doesn’t apply in this case because the absence was so long (~7 years).
M. K. says
My Husband and I bought a house in April of 2008 and lived in it until May of 2010 then rented the house from June 2010 to June 2016. The house was put up for sale July 2016 and just last week March 2017 is in Escrow sale not complete yet. Question is do we qualify for the old rule before the 2009 new rule?
Greg says
Andrew, thanks for the awesome article. What if I use the home as my secondary residence with no rental income. Would the capital gains tax still apply since I don’t meet the residential requirements?
Thanks, Greg
Andrew says
Yes
MARK says
I bought a condo in an small town due to a new job there.
6 months later I lost the job and spent several months on unemployment.
Due to being a small town I could not find a new job in my field of work so decided to sell the condo within 2 years.
How do I proceed in using turbotax to work on this?
Thanks
Andrew C. says
TurboTax will automatically ask you about the sale. The software has a section on home sales that it automatically asks you about. You can get TurboTax here: https://hackyourwealth.com/TurboTax
Josh says
I bought my prior house (House A) in 12/03 and lived in it until 5/15, when I moved in with my fiancee. Sold it on 9/15 prior to my marriage (capital gain of about 70k on the sale) in 11/15 and paid no taxes on the gain when I filed jointly for 2015 because it obviously qualified for the exemption. The house was only ever paid for by me, and I sold it while still unmarried.
We bought a new house (House C) in 12/15 while we worked to sell her house. Her house (House B) sold 6/16, so we were living in the new house for roughly 6 months. Now here’s the tricky part. She purchased the house at the end of 6/14, so it was owned for just under two years (about 23 months) and lived in for about 1 1/2 years (17-18 months).
I claimed House A for 2015. I owned and sold House A while unmarried. I am thinking, therefore, that the exclusion would only apply to me, regardless of whether or not I filed jointly.
House B was sold after we married. I never made any payments on the house since I was paying the mortgage on House A prior to marriage and then House C once we were married.
Assume here for the sake of argument that I can claim an unforeseen circumstance due to marriage and the expansion of family through addition of stepchildren (see PLR-152828-06). The larger issue for me is whether I can avoid paying taxes on the 60k gain from the sale of House B. My thinking here is the gain from House A applied to me only and that she is still eligible for 71-75% of the 250k exemption based on how long she lived in the house, which would cover the 60k gain.
Andrew says
Here’s my opinion:
You’re right about House C – since you satisfied all the criteria, you get the exclusion.
If you want to assume for the sake of argument that you can claim an unforeseen circumstance due to marriage and the expansion of family, then by that assumption you should be able to qualify for the full exclusion for House B, since you said 71-75% of the exemption exceeds the 60k gain on sale.
If you are wrong about that, however, you will most likely be jointly liable as a couple for any tax liability for House B.
That’s because the IRS evaluates your tax filing status as of the last day of the year, 2015, and in this case your tax filing status was married-joint on that day. All the IRS cares about is you paying your tax liability: so if you have no tax liability on House A or B, the IRS doesn’t care how you divide up the proceeds of any excludable gain, which in your case for House A can accrue 100% to you and not your wife, and similarly for House B 100% to her and not you. That’s private matter re: how you divide up the gain (although state laws may govern issues around community property, but based on your facts each house would almost certainly be independently attributable to each of you, not joint).
If the IRS disagrees with your claim for an unforeseen circumstance, however, then it will demand payment for tax liability. It will look at your 2016 return (the year of sale for House B) and see that you are married filing joint, and then it will attach the tax liability on both of you jointly. To be sure, you can work out a private arrangement with your wife where she pays for the tax liability for House B from her own private funds, not marital funds, but the IRS won’t absolve you from the tax liability until the tax is paid (the IRS doesn’t care where the funds come from, but it can come after you both if the tax isn’t paid). If you made such a private arrangement with your wife, you can use TurboTax or similar tool to calculate the diff between your 2016 tax liability both with vs. without the gain on House B to determine the tax delta between the two.
dj says
I have a question. We sold our home….bought some land build a shop and we are living in that shop while we are building are permanent residence on the land we own *where the shop is*…we moved in 9/2016 and the house will be completed 6/1/2017…do we have to wait the 2 year to sell 9/2018 or 6/2019 when we actually move into the permanent residence new construction house?
dana says
Does anyone have the answer to this? Our house was paid in full. We sold the house. Bought some land moved on the property on 9/1/2016…in a temp shop we built…(we are building a new home next to the shop)….we are moving in the shop on 6/1/2017….when can we sell and avoid the capital gain tax…when we physically move in the permanent house? which would be 6/1;/2019……or when we moved on the property in the temp shop 9/1/2016 (next to the new construction house which is our permanent house). 2 years from that date would be 9/1/2018. Thanks for any help. I
Andrew says
If you’re trying to sell the house, I’m pretty sure the clock won’t start until you actually move into the newly constructed house. You’ll have a hard time claiming a 2-year based exclusion for a house that was only built 15 months prior.
David McClain says
They also would not have owned the property for 5 years.
scott says
If you live in a cardboard box on a piece of real property, this is your primary residence. Yes, your shop is your residence. The clock starts when you moved in your shop, assuming you will sell complete parcel including shop and home.
Joe says
Hi, thanks for putting this article together. I’m in the process of selling my home and my situation is similar to “Example #3: Let’s add some spice…” above in that I moved for a job relocation and rented my property out for the last year prior to selling. Based on the scenario you laid out, I qualify for the full tax exclusion (3+ years primary residence, 2-year period that I rented the place out does not count as non-qualified use).
I’ve been asked to fill out a form 1099-S and a certification form. The certification form acts as a seller assurance on primary residence, sale price, and etc. It looks to me that if you answer true to all the questions, you are considered exempt and fall under the full tax exclusion. That said, one of the questions asks if “I have not used any portion of the residence for business or rental purposes after May 6, 1997”. Based on the fact that I rented the property out for an intermittent period, I will have to answer False to this question. Are you familiar with this certification and would you know if this by any way impacts my ability to claim the full tax exclusion?
Andrew says
Good question. The May 6, 1997 question is relevant to the tax exclusion, but only for depreciation purposes. If a taxpayer uses a home for purposes other than as a principal residence – i.e. partial home office deduction or rented out the property – then the gain exclusion does not apply to the extent of depreciation allowed on the home after May 6, 1997.
There is a good Journal of Accountancy article on this point: http://www.journalofaccountancy.com/issues/2002/oct/thehomesalegainexclusion.html
An excerpt in the article says:
If a taxpayer uses a home partially for business purposes, only the part of the gain attributable to the residential portion of the home is excluded from income. Also, the gain exclusion does not apply to the extent depreciation allowable after May 6, 1997, with respect to the home, exceeds the gain on the home allocable to the business-use portion. Therefore, pre-May 7, 1997 depreciation does not reduce the amount of gain excludable under section 121 on the residential portion in any circumstances. However, post-May 6, 1997 depreciation allowable on nonresidential use can trigger gain recognition on the residential-use part of the house.
There are also some good hypothetical examples there in the article to guide you.
Lastly, you can see how the May 6, 1997 question comes into play on the IRS’s worksheet for “How To Figure Your Taxable Gain or Loss” here:
https://www.irs.gov/publications/p523/ar02.html
AP says
We bought a house in 2001, lived in it until July31st 2016. Renters moved in August 1, 2016. We bought another house and moved to another state. We are now selling the house, but it like wont sell and close before the end of August. We are married and file jointly. Will being over the five year mark slightly prevent us from taking advantage of the exclusion? Renters are out of the house, should I move back into the house? By going over I am afraid we will lose a lot of money. I hope tis makes sense. What should we do?
Thanks,
AP
Sue says
Does the money come out at escrow or are you responsible for it at tax time. Do you get a choice?
Andrew C. says
The tax? You report it when you file your taxes. Your agent or title company or mortgage company may issue you a 1099-S (Proceeds from Real Estate Transactions).
Amber says
So, I my husband and I are relocating for work to a new town over 50 miles away. We currently own a home in the town we live in and are buying a home in the town we are moving to. Since homes go so fast in the town we are moving to, we don’t want to wait to sell our current home m, which could take a few months. Is there anyway to avoid paying capital gains once we sell our current home, since by that time we will own two homes? We have lived in the current home for 4.5 years.
Andrew C. says
If you’ve lived in your current home for 4.5 years, you get the tax exclusion. It doesn’t matter that you buy a new home first. It doesn’t matter that you’re moving 50 miles away for work. It doesn’t matter that you haven’t owned the current house for more than 5 years. The only thing the 50 mile work rule does is shield you in some cases when you don’t otherwise meet the 2 year residence requirement. The only thing buying a new home first, before selling your old home, does is prevent you from deferring any taxable gain (>$500k) by carrying it over to your new home. So, unless you’re current home yields more than $500k capital GAIN, buying a new home first doesn’t make any difference.
Sherri says
My mother and aunt brought a house together in 1984. My mother has lived there since that time while my aunt lives in another state. Will my mother qualify for capital gains tax exemption? The house is being sold due to my mother’s deteriorating health so she can live with me.
Andrew says
Seems like she would. But read the article above to understand how the rules work.
David D says
Hi, this is a great site. We have a somewhat tricky scenario that we need help with. We purchased a house 11/2001 for $92,500. We made extensive renovations ($35K+) and lived in it until 7/2007 when we had to move due to job loss/transfer (> 50 miles). Put the house up for sale but it was during the mortgage bust so it sat on the market for a year before we decided to put it up for rent. We rented it 10/2008 until 2/2016 and then put it up for sale. House then sold for $188k after putting in an additional $15k in renovations in 9/2016. Is there a timeline restriction to the safe harbor exception of having to move due to job change/loss? We waited as long as we did to sell in order for the market to recover. Thanks in advance!
Andrew says
2 years. Doesn’t seem like you’ll qualify for the exclusion.
Sue says
Joan and Sue (sisters) bought a house together, They moved in June 1, 2016. It wasn’t long before they were fighting day in and day out. They decide they need to sell the house because they can’t live together. The house sells April 1, 2017. They make a total of 90,000.00 over purchase price. are they eligible for unforeseen circumstance.
Andrew says
Probably not, because the sisters would likely be deemed to have assumed the risk (they were sisters after all, not strangers). But a tax advisor could give you a more formal opinion.
Sue says
could this not be handled like a divorce?
Chris says
Chris and Leslie own separate homes (paying mortgages) .
They get married- now they have 2 separate residences.
Chris wants to sell his house then use the proceeds to pay down Leslie’s mortgage, instead of buying a new different home as primary residence.
Will they as a couple still owe capital gains?
Andrew Chen says
The marriage has nothing to do with capital gains because you owned your home prior to marriage, so any tax consequences would affect you alone. Moreover, whether you use the proceeds to pay another’s debt or buy a new home has no relevance to whether you owe cap gains upon the sale of your current home. I have no idea if you will owe cap gains based on your facts.
Boardliving says
Thanks so much for this info but I am still wondering about my situation but pretty sure I am good.
Closed on a new house down the street while my old house was just starting escow. I moved into the new house a few weeks later but due to a few issues the closing of my old house kept getting delayed.
Can I claim my primary residence at my new house from the day I closed on it or do I have to wait unitl my ild house closed?
I am trying to sell current house as quickly as I can move out of state. Thank you
Andrew Chen says
You can choose either, but you can only claim one primary residence, so if you claim your new house the day you closed, then you have to make sure you still satisfy the 2 year requirement on your old house because you now have non-residence period at the tail end. By contrast, if you wait until your old house closes, then you cannot claim primary residence on the new house until then.
Alpha Beta says
Very informative and thorough article.
I am not clear on the non-qualified use as it pertains to me.
1. Bought a house on 12/01/2013 and moved into it as primary residence
2. Lived there till 06/30/2015 (approx 19 months) and had to move due to work reasons (>1000 miles)
3. Listed the house for sale and for rent. Got an offer for sale. The sale deal fell through as the seller did not qualify for his VA loan. House was tied up for over a month on this.
4. Instead of waiting around for a buyer, decided to rent the house as I did not get additional sale offers. House has been rented for over 18 months now.
5. If I decide to sell the house in a few months, do I qualify for the (24-19)/24 = 5/24 * $500K exemption? (Married Filing Joint).
Andrew Chen says
You could probably qualify for a partial exclusion of 19/24 * 500k, but consult a tax accountant for a formal opinion. The thing that might cut against is the fact that you did not sell for 18 months (when theoretically you could have just lowered the price to attract more offers).
Dondon says
Any update on this case? Can we get partial exclusion
Louise says
This is an informative and thorough explanation of the capital gains tax process – thank you for posting it. My husband (US citizen) bought his house in 1998 and lived there until 2008. He married me (a UK citizen) and that necessitated a move to the UK as I had a young son and supported my mother. Since then the house has been rented out to cover the mortgage payments. My husband is now selling the house. I know he does not qualify for the full exemption but wondered if marriage to an overseas spouse who could not relocate due to family responsibilities would qualify for a partial exemption?
Andrew C. says
You should probably get a tax advisor’s opinion, but my guess is it will not qualify for the “unforeseen circumstances” exception. That exception tends to favor situations where the taxpayer literally has no choice in the matter: e.g., natural disaster, job loss, death, divorce. I think selling the house 8 years after the fact, rather than soon after moving to the UK, also cuts against the tax exemption.
Louise says
Thank you for your swift and thorough reply. I thought that may be the case but we’ll talk to our tax advisor and see if he can suggest anything.
Joan Swift says
We bought a 1884 carriage house in 1980 in its original barn state for $106,000.
We lived there while renovations with heating and plumbing took place.(cost $250,000)
After completion Hurricane Bob destroyed the house.($300,000 damage -insurance about $86,000-does this come into play?)
Now it had to be remodeled due to water etc damage at the cost of another $250,000.
We just sold house for $1,2995.000 due to not being able to do the stairs anymore.
I know we will get the $500,000 deduction .How will I figure the basis amount to claim ?
Do we get both remodels?(we do have a tax accountantt but want to know your opinion.
ThanksJoan
Andrew C. says
Joan, I believe you CAN add the restorative repairs (but not insurance payout) to your original basis but the details matter, so you should consult your tax advisor for a formal opinion.
Joan( no last name please) says
My question was can I deduct both restorations?Thanks
Andrew C. says
I would think so, but your tax advisor would know for sure – I think the specific facts of your situation / remodel / cause of damage will matter to the determination.
Bruce says
Hi, again,
“not considered qualified use, either; it’s just not nonqualified use??
Now, I’m confused.
Help!!
Andrew C. says
Hey Bruce, yeah you should be able to qualify for the full $250K since you lived there 2 of the last 5 years and your rental period was the very last segment.
When I said it’s “not considered qualified use, either” – that just means you didn’t LIVE there, which is the only use of the property that is technically considered qualified use. And it’s “not nonqualified use” because of that “last in time” exception that says the very last segment won’t disqualify you from the $250K.
So, you’re good. Hope you’re not confused anymore!
Bruce says
Thanks, Andrew!
bruce says
Hi Andrew,
Tenants are moving out 7/1 and putting property on the market. Should sell fast (hot market in CA). Any changes to tax code for 2017 that would effect my qualifying $250K exemption? If so, great! Though I still will be taxed 25% on amount of “recapture of depreciation”, right?
bruce says
Hi Andrew,
Tenants are moving out 7/1 and putting on the market. Should sell fast (CA market). Any changes to tax code for 2017 in regards to $250K exemption? If so, great! Though I still need to pay 25% tax on amount of recapture of depreciation, right?
Bruce
Andrew C. says
The most up to date info is always going to be in this article, as it will get updated with any tax changes.
Yeah, you’ll always get taxed 25% on depreciation recapture.
Where in CA are you selling?
bruce says
Sacramento
Bruce says
HI,
I think I get it?? To be sure, I’ll give you my situation:
Purchased house in 12/07 and lived in until 9/15. Rented the property from 9/15 to 4/17 (anticipated), with the goal of selling by 6/17. I satisfied the two year rule (at least 2 years of 5) and I can take full $250K exclusion because from last date of residency (9/15) and actual sale date (6/17) is not considered “nonqualified period”.
I hope!!
Andrew C. says
Hey Bruce, see my comment above to your 2nd comment.
Shayna Serrao says
Hi,
Thank you for all of this information. I have another question that I am hoping you know the answer to or where I could find it. My mother inherited her home 50 years ago. The home is Free & Clear. The home is worth about 1 million in California today. The home is too big for her and she can not keep it up and needs to look to alternative living. She collects social security for about $800 a month and is barely surviving. She wants to sell the home but we don’t understand the tax stuff. My question is… If she sells the home for 1 Million can she turn around and reinvest in another primary residence without paying capital gains tax as long as the value is the same? if the value of the new home is less, for example $500,000 would she be able to still claim the $250,000 tax break and then only pay capital gains on the remaining $250,000 or is she responsible for the entire gains from the 1 million sell weather she buys another house or not? and who do I go to for this advise? a tax person or a lawyer?
Andrew C. says
Shayna, If your mother sells and reinvests in another primary residence where the fair market value is the same, then yes she can defer paying cap gains tax. If the value of the new home is less, she can claim a partial exemption, but probably not the full 250k because some of it will be attributed pro-rata to the 500k new home.
So, if she does not buy a house, she’ll be able to claim the full 250k exclusion but pay taxes on the remainder.
If she buys a house of equal or greater value, she can defer paying taxes entirely.
If she buys a house of lesser value, she’ll be able to claim a partial exclusion but will also have to pay some taxes.
In terms of professional advice, it depends on what kind of assistance you need: a real estate tax CPA vs. a lawyer can each be useful in different situations. Generally, a CPA will provide tax advice, while lawyer can actually structure / execute a transaction; if the lawyer is knowledgeable about tax, they’ll probably also be able to provide similar advice.
Question for you: Where is the home located in California?
Shayna Serrao says
Thank you for your advice. My moms property is in west Los Angeles near Mar Vista.
Robert says
I have just recently remarried. Now I’m selling my home of sixteen years. Will my spouse be able to claim the $250000 exemption?
Andrew C. says
No
Douglas M says
I initially purchased vacant land in my company LLC name for resale. I now want to build a home, live there for 2 years and then sell hopefully at a profit. do I need to transfer or quit claim the property into my personal name before building to take advantage of the tax exclusion?
Andrew C. says
You should probably speak with an attorney for a formal opinion, but I’m pretty sure it depends on whether the LLC is a single-person LLC or an LLC with multiple members. I don’t think your proposal will work if your LLC is multiple members. But it would probably work if it’s single-person because a single-person LLC is considered a “disregarded entity” for federal tax purposes.
Garth Gallocker says
One of the better explanations that I have found and notice you follow up on comments…..any insights you can add to my situation are appreciated
Bought house in California in 1996 and lived in it until January 2013
(Became unemployed in 2011 and claimed unemployment benefit until renting it out in January 2013 when we moved overseas)
Tenant broke lease in July 2016 so wife flew back to stay in house and get it ready to sell .accepted offer and should close November 2016
Can I claim safe harbor partial deduction for 2012 and what about the 5 months my wife has been at house can any portion of that be claimed?
Also due to lower wages abroad I have owed 0 taxes last 3 years what tax bracket does that put me in?
Last thing have taken approx $7000 a year in depciation last 3 years so 21000 when sold do I owe 25% of $21000
Thanks
Andrew C. says
You should definitely engage a tax professional; I’m not able to give you a formal opinion here. My layman’s view is: I’m not sure you can claim a safe harbor partial exclusion based on your unemployment status since so much time passed between the job loss in 2011 and renting the unit out in Jan 2013 – a tax advisor is better suited to advise you on that. The 5 months your wife was prepping the house for sale will count for purposes of her exclusion analysis but not for yours. Practically speaking, this means you’ll get less than the full exclusion amount since she’ll be entitled to more than you’ll be. Your biggest hurdle will be whether your unemployment status qualifies you for a partial exclusion – if not, you probably cannot exclude ANY amount for tax purposes because it doesn’t seem like you lived in the unit for 2 years during the last 5 years. Your questions about tax bracket and depreciation should be discussed with a tax advisor.
Jon says
Excellent article! I am just starting to research capital gains rules and it can be very confusing. Your article is very helpful and easy to read. In my situation I believe I would qualify for the partial exemption but I was wondering if you knew of a way for the full exemption to apply. I recently purchased a condo as a primary residence with the plan to live in it for 3 years then sell it or rent it out. After purchase I learned that there is an offer from a company to de-convert the condos to rental properties and if passed by the board and agreed upon by the majority of owners, I will be forced to sell my unit. I will make a profit, however, because of the capital gains tax’s it won’t be much of one. Do you know of any loop holes that would allow me an exemption and not have to pay capital gains
Any info would be very helpful as the subject of de-converting properties is not discussed much on the internet.
Thank you
Andrew says
If you live in your condo for 3 years and then sell, you will be able to exempt up to $250k (if single) or $500k (if married filing jointly) – that’s the full exemption, not a partial one. There is no exemption allowing you to exclude more than that from capital gains taxes. You could do a 1031 exchange by purchasing a new property shortly after you sell your old one, but that won’t exclude your taxes, only defer them.
Rose Mah says
Hi,
I bought a house in 2006, and lived there until Jan 2013. Then I rented it out since then due to some financial difficulties, and commuting for over 50 miles from my work. Now I want to sell it.
Is there any chances to be tax excluded since I lived in the house for 14 months. What if I buy another house as my primary residential exchange and put all my profits towards the new house down. Am I still Qualified for any tax exclusion?
Andrew says
You probably won’t get the full exclusion if you sell it, but you might qualify for a partial exclusion if your job changed in 2013 causing your commute to extend over 50 miles. Even if you cannot claim a tax exclusion, if you buy another house you could do a 1031 exchange and defer your taxes. Your tax liability won’t disappear since you’ll still owe taxes on the gain from your first house, but your basis will simply move over to the new house and all gains will be deferred until you sell that new house.
Micah says
Hi,
I bought a house in October 2014. Let’s say for 100000. Now my house is worth say 200000. Do I have to wait until after October 2019 to sell to get the exclusion or can I sell any time after October 2016?
Andrew C. says
Micah, you can sell anytime after October 2016.
todd says
Andrew, this was really helpful. My wife and I file jointly and we bought a home 14 months ago. Now we’re moving more than 50 miles for work. Does this mean we get a partial exclusion for up to $291,000 (14/24 * $500K)?
I don’t think the home has appreciated that much, so will we be eligible to avoid capital gains taxes on the entire sale?
Thanks for your help!
Andrew C. says
Todd, you’ve got the general idea. Thanks for reading.
Virginia R. Bramante says
Andrew,
We own and live in two condos – side by side – that we use as one for primary residence. They are two separate legal entities – two mortgages, two property tax bills, two electrical bills, two condo fees but they are combined in such a way that it is one unit. We plan to sell them together and take the home sale exclusion on both. (We feel that a larger unit is more ‘sellable’ than a smaller unit in today’s environment.). Can I take $250,000 on one and my husband take 250,000 on the other? Or how might we structure the sale? Any ideas? Thank you.
Ginny Layne says
Hello Andrew,
Informative article! Here’s my situation. My husband and I bought our house in 1999 and lived in it until 2012. We then separated and I have been renting since. My husband continued living in the home. We did not file for legal separation. We still share the same bank account and file jointly. When we sell the home can we claim the 500,000 exclusion or will we only qualify for 250,000 based on his occupancy the past 4 years?
Thanks so much!
Ginny
Andrew says
Ginny, you should consult a tax advisor to confirm, as my comment here is only based on a cursory analysis of what you’ve written here.
I think your husband will be able to claim 250k for his part, but I don’t think you’d be able to claim the entire 500k exclusion together. However, you might be able to get a partial exclusion for your portion, assuming you sell the house immediately, since you lived in the house 1 out of the last 5 years. If you wait until next year, however, I’m not sure you would be able to claim anything for your portion.
Since you didn’t technically live in the unit for the last 4 years, while your husband did, I believe the IRS would evaluate your residency status separately, as if you had not been married. I explained this in the article above. You also don’t seem to fall into a recognized exception (e.g., you said you did NOT file for legal separation). So your only valid exception seems to be that the period between the LAST date the home was used as a primary residence (2012) and the date the home is sold (whenever) is NOT considered nonqualified use. You’re still subject to the 5-year look-back, though, and in this case you have not lived in the house for 2 of the last 5 years…only 1.
Danny N says
Hi Andrew C. I have a question…ok i bought a house in March 2009 and lived in until December 2013. I bought a second house and moved in the new house in January 2014 . And rent out the first house from March 2014 until now May 2017… I’m going to sell the rental house in 2018.. do i have to pay for capital grains about 150,k ? Thank you!
Andrew C. says
Danny, the answer is laid out pretty clearly in the article I wrote above. You most likely will have to pay tax because you did not live in the unit for 2 of the past 5 years.
Danny Nguyen says
Hi Andrew. Thank you for your responsed .
I just read your new sample that apply after January 1.2009 … so in my case i bought the house in March 1st .2009 ….lived there over 4 years, then bought another house in December 30th 2013 and moved in to the new house .rent out the first house until now September 12th 2017…so my question is if i move back to the first house and live in there as primary house and the second house will be a vacation house for 1 month. Then sell the first house .Do i have to pay capital grain about 200k? Thank you very much!
Danny Nguyen says
Nevermind. I didn’t read carefully i got it now ☺
Roxanne says
My husband and I are USC and my husband has been disabled since 1999. Currently we would like to sell our residence in foreign country which we have owned for more than 30 years. Our parents live in the house w/o rent while we are in the U.S. For the past five years after both my husband and I retired from work, we stayed there most of time (accumulated around 30 months.)
Do we qualify for the couple’s $500K exclusion when reporting tax?
Andrew C. says
You’d probably be able to claim at least a partial exclusion. I say partial because you might not qualify for the period from 2009 to when you last moved in 5 years ago. Since the house is located abroad, you may be eligible to claim a foreign tax credit to offset any US tax liability from the sale. You should consult a tax advisor for an official opinion and not rely solely on this comment for tax advice, though!
Meg says
Great article! My situation is a bit different. My husband and I titled our house in an LLC’s name because we thought we’d be fixing it up and staying in it for only 6 months. Bad decision, we know. Now, we’ve been in the same house for 3 1/2 years, but would like to sell it within a couple of months. If we retitle the house from the LLC to our names and only live in it for a couple of months more, would we still qualify for the partial exemption? Would there be any benefits to doing this?
Andrew C. says
Meg, you should definitely speak with an attorney about this, as I cannot advise you on legal matters. But I’m pretty sure it depends on whether the LLC is a single-person LLC or an LLC with multiple members. I don’t think your proposal will work if your LLC is multiple members. But it would probably work if it’s single-person because a single-person LLC is considered a “disregarded entity” for federal tax purposes.
Meg says
Thank you!
Mike A says
Hi, thanks for this!
My fiancée and I just bought a 3 unit building together in mid-December 2015 for $765k. The 3 units that were fully occupied at time of purchase.
We signed a “co-habitation” lease with the primary tenants for some bank loan reasons although we actually lived rent-free during this time at her parents house. The tenants did this in exchange for granting them 6 extra months before they had to move out. CA has a 60 day owner move-in eviction law, so we couldn’t move in right away anyhow.
The primary unit tenants vacated on July 1 2016 so that we could move in.
So “legally” we have a gray area where it says on paper that we lived there nearly the whole time.
My partner and I are getting married in October.
Almost exactly half of the square footage of the house is rented out for the other two units.
My questions:
– assuming we live there for 2+ years (until at least July 2018) …
– will we be able to take the full exclusion even though we rent out half the property?
– how would this be affected by whether or not we claim residency in December or July?
Thanks so much!
Andrew says
Mike, If you live there 2 years, you can take a partial exclusion. You can exclude the portion of gain attributable to your primary residence (only the unit you live in). But you won’t be able to exclude the gain attributable to the rental units, although you could qualify for a tax deferral via a 1031 exchange if you turned around and purchased a new property shortly after selling the old one.
How would you determine what % is attributable to primary residence vs. rental units? You’re gonna need a tax advisor or a good accountant, my friend. They’ll evaluate things like square footage and renovations. You could try doing it by Googling around for attribution methods, but you’re probably safest by just getting professional advice on this.
If you received mail and had utilities billed in your name at the property since December, you might theoretically be able to claim residency since December, but I wouldn’t personally recommend it. What happens if you’re audited and they interview the other tenants? There may also be other records that show you weren’t physically there. It’s risky and doesn’t seem right. The upside probably isn’t very much anyway given the fact that you have to allocate % for the exclusion as mentioned above, so doesn’t seem worth it IMO. The worst case is you have 6 months of non-qualified use, which isn’t terrible.
Mike A says
Thank you Andrew!!!
Paul says
We own an s Corp and have had to reduce our salary due to problems in company ,we have borrowed on home and invested these monies to keep company going. Now we need to sell the property to pay off those loans and will rent a smaller property .married over 55 . We have had substantial gains but loans equal gains almost. Are there special circumstances which would help reduce tax on gains based on need to keep company and employees going? Or would it be better to rent property out and move ourselves to smaller rental generating revenue to pay loans?
Andrew C. says
Paul, There isn’t special rules to allow you to claim extra deductions due to your company and employee status. The capital gains exclusion rule is pretty strictly based on fulfilling the residency requirements and not having non-qualified use periods.
However, if you’re filing jointly with your spouse, you may be able to deduct twice the normal amount (up to $500k vs. only up to $250k).
Lastly, if you have net long-term capital losses, you could deduct any house gains above $250k/$500k to extend your tax deduction even further, but that situation won’t apply to most people. Definitely consult your tax advisor if you have substantial long-term capital losses that could be used in this way.
In general, unless you’re facing a balloon payment on the company loans, I feel it’s better long-term to hold the property (assuming it cash flows decently and can more than cover your mortgage/HELOC), rent it out, and amortize your company loans with the rental payments. Don’t touch your principal – because doing so triggers fees and taxes that eat away at your wealth.
Julie says
Hi, Andrew,
I appreciate what you wrote about “How to avoid capital gains taxes when
selling your house”. Not a lot of people could make it clear like that. I still have a question though. I bought a house in June 2011. I rented it out till Jun 2015. Then I moved in immediately to make it my primary residence (June 2015).
(1) So if I sell my home in 2017 after living there for 2 years, do I have non-qualified use period ? We don’t have any special circumstances like changing jobs etc. If so, how long is the non-qualified use period ?
(2) Say in 2017 after living there for 2 years as primary residence, I rent it out again for 3 years. Then I sell it, that will be 2020 June, will I be able to get rid of the non-qualified use period and claim full exclusion ?
Thank you so much for your help. Look forward to hearing from you.
Andrew C. says
1. Yes, you have a non-qualified use period. It’s 4 years. Look at example 4 above.
2. No. Your non-qualified use period will still be 4 years.
There’s nothing you can do at this point to wipe out the non-qualified rental period from June 2011 – June 2015, unfortunately.
Julie says
Thank you very much for the answer. Great job on clarifying those complicated tax rules.
David says
Using the example above, if Julie bought in June 2011, lived in it for 9 months as primary residence, then rented till June 2015 and then returned to live in it for 2 years, wouldn’t the fact she lived in the home for 9 months initially make the rent period not considered nonqualified use?
And if that is the case she could then claim the full exclusion?
Andrew C. says
No. Only the period between the LAST date the home is used as a primary residence and the date the home is sold is not considered nonqualified use. In your example, the last date the home is used as a primary residence is presumably June 2017, which also happens to be the sold date.
Amy says
This is a really great article, thank you! It sounds like I may qualify for exemption but would love to confirm if you agree.
My ex-fiance and I bought a house in April 2007. We broke off our engagement and I moved out in June 2011. He wanted to remain in the house so I agreed to give him time to get his finances in order to refinance me off the loan. He refused to refinance or sell the house and ultimately I had to hire a lawyer to force a settlement. Through this process he will be refinancing and paying me $75k which is equal to half the equity (we bought for $205,000).
I have not lived in the house for 5+ years, and do plan to use part of the money on a down payment for a new house. Does this situation meet the requirements of “unforeseen circumstances”?
Thanks in advance for any wisdom you are willing to share!
Andrew C. says
Amy,
In your case, I’m not sure the unforeseen circumstances safe harbor matters. You said you haven’t lived in the house for 5 years (since 2011). But the threshold test is whether you occupied the property as a primary residence for at least 2 of the last 5 years. Since you haven’t, the unforeseen circumstances safe harbor doesn’t even come into the picture: it doesn’t sound like you’re eligible to exclude any gain from taxes.
If you use the proceeds as a down payment for a new house, you might be able to defer taxes, but I don’t think you’ll be able to exclude them entirely.
Henri Heyraud says
Hi,
very good information. I have a different situation, as my wife and I bought our house 27 years ago.
Since then my wife has developed strong permanent allergies to trees, which we have, and have to move for her health condition. Is there, regardless of the $500,000 capital gain exclusions, any additional exclusion in that situation? Also, considering we had this house 27 years, is the capital gain to pay a long-term rate or not.
Thanks for your help,
Henri
Andrew C. says
Henri, Yes, your capital gains tax will be long-term. There is no additional exclusion above and beyond the first $500k gain.
Nick says
Hey Andrew,
Great article! I’m looking for advice on my situation. I am married and have filed separately for the past 3 years (2015, 2016, 2017). My wife and I had owned 3 properties in 2017. We sold one primary residence house in September 2017, where I was the only one on the Title and I claimed the exemption on my taxes only because both my wife and I had met the requirements and the capital gain was 50 miles, which is great. I wanted to verify with you that since neither my wife or I have lived in the home for the 2 year minimum that that was the best option available to use?
I had spoken with a CPA briefly and they mentioned that because my wife and I file separately and only I was on the title of our last primary residence sold in Sept 2017 that I could quit claim it over to my wife and she could file for the $250k exception since she hadn’t used it in the past 2 years. After reading your article I think we don’t qualify per the 2 year min anyways, but just wanted to hear someone validate that.
Thanks!
Nick
Jeffrey Suss says
I bought my house for 122,000 in June 2014. I was single at the time. I lived there until Sep16. I rented it out from Sep 2016-Aug. 2017 (one year). I moved back in in Sep 2017 with my girlfriend who I later married in May 2018. I have lived there until May 2019.
I am about to sell my house in May 2019 for 167.500. If my understanding is correct I will be exempt from any taxes because I satisfy 2 year residency even though my wife does not correct?
Austin says
Father-in-law owns his house but moved to an assisted care facility 2 years ago. After 2024, the 2-out-of-5 rule will take effect. Are there any exceptions to avoiding capital gains tax after 2024? He won’t need the proceeds from the sale yet to pay for his assisted living. He can’t live on his own but we also want to keep the property in the family. He is starting hospice care in the facility soon. Thanks