![Sale of Home IRS Rules](https://www.taxconnections.com/taxblog/wp-content/uploads/Sale-of-Home-IRS-Rules.jpg?resize=88%2C89&ssl=1)
The tax code recognizes the importance of home ownership by allowing you to exclude gain when you sell your main home. To qualify for the maximum exclusion of gain ($250,000 or $500,000 if married filing jointly) you must meet the Eligibility Test , explained later. To qualify for a partial exclusion of gain, meaning an exclusion of gain less than the full amount, you must meet one of the situations listed in Does Your Home Qualify for a Partial Exclusion of Gain? , later.
Before considering the Eligibility Test or whether your home qualifies for a partial exclusion, you should consider some preliminary items.
Transfer of your home to a spouse or an ex-spouse.
Generally, if you transferred your home (or share of a jointly owned home) to a spouse or ex-spouse as part of a divorce settlement, you are considered to have no gain or loss. You have nothing to report from the transfer and this entire publication doesn’t apply to you. However, there is one exception to this rule. If your spouse or ex-spouse is a nonresident alien, then you likely will have a gain or loss from the transfer and the tests in this publication apply.
Home’s Date Of Sale
To determine if you meet the Eligibility Test or qualify for a partial exclusion, you will need to know the home’s date of sale, meaning when you sold it. If you received Form 1099-S, Proceeds From Real Estate Transactions, the date of sale appears in box 1. If you didn’t receive Form 1099-S, the date of sale is either the date the title transferred or the date the economic burdens and benefits of ownership shifted to the buyer, whichever date is earlier. In most cases, these dates are the same.
Sale Of Your Main Home
You may take the exclusion, whether maximum or partial, only on the sale of a home that is your principal residence, meaning your main home. An individual has only one main home at a time. If you own and live in just one home, then that property is your main home. If you own or live in more than one home, then you must apply a “facts and circumstances” test to determine which property is your main home. While the most important factor is where you spend the most time, other factors are relevant as well. They are listed below. The more of these factors that are true of a home, the more likely that it is your main home.
- The address listed on your:
- U.S. Postal Service address,
- Voter Registration Card,
- Federal and state tax returns, and
- Driver’s license or car registration.
- The home is near:
- Where you work,
- Where you bank,
- The residence of one or more family members, and
- Recreational clubs or religious organizations of which you are a member.
Finally, the exclusion can apply to many different types of housing facilities. A single-family home, a condominium, a cooperative apartment, a mobile home, and a houseboat each may be a main home and therefore qualify for the exclusion.
Eligibility Test
The Eligibility Test determines whether you are eligible for the maximum exclusion of gain ($250,000 or $500,000 if married filing jointly).
Determine whether any of the automatic disqualifications apply.
Your home sale isn’t eligible for the exclusion if ANY of the following are true.
- You acquired the property through a like-kind exchange (1031 exchange), during the past 5 years. See Pub. 544, Sales and Other Dispositions of Assets.
- You are subject to expatriate tax. For more information about expatriate tax, see chapter 4 of Pub. 519, U.S. Tax Guide for Aliens.
If any of these conditions are true, the exclusion doesn’t apply. Skip to Figuring Gain or Loss , later.
Determine Whether You Meet The Ownership Requirement
If you owned the home for at least 24 months (2 years) out of the last 5 years leading up to the date of sale (date of the closing), you meet the ownership requirement. For a married couple filing jointly, only one spouse has to meet the ownership requirement.
Determine Whether You Meet The Residence Requirement
If you owned the home and used it as your residence for at least 24 months of the previous 5 years, you meet the residence requirement. The 24 months of residence can fall anywhere within the 5-year period, and it doesn’t have to be a single block of time. All that is required is a total of 24 months (730 days) of residence during the 5-year period. Unlike the ownership requirement, each spouse must meet the residence requirement individually for a married couple filing jointly to get the full exclusion.
If you were ever away from home,
you need to determine whether that time counts towards your residence requirement. A vacation or other short absence counts as time you lived at home (even if you rented out your home while you were gone).
If you become physically or mentally unable to care for yourself,
you only need to show that your home was your residence for 12 months out of the 5 years leading up to the date of sale. In addition, any time you spent living in a care facility (such as a nursing home) counts toward your residence requirement, so long as the facility has a license from a state or other political entity to care for people with your condition.
Determine Whether You Meet The Look-Back Requirement
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.
There are some exceptions to the Eligibility Test. If any of the following situations apply to you, read on to see if they may affect your qualification. If none of these situations apply, skip to Step 6.
- A separation or divorce occurred during the ownership of the home. See Separated or divorced taxpayers .
- The death of a spouse occurred during the ownership of the home. See Widowed taxpayers .
- The sale involved vacant land. See Vacant land next to home .
- You owned a remainder interest, meaning the right to own a home in the future, and you sold that right. See Remainder interest .
- Your previous home was destroyed or condemned. See Home destroyed or condemned—considerations for benefits .
- You were a service member during the ownership of the home. See Service, Intelligence, and Peace Corps personnel .
- You acquired or are relinquishing the home in a like-kind exchange. See Like-kind/1031 exchange .
Separated Or Divorced Taxpayers
If you were separated or divorced prior to the sale of the home, you can treat the home as your residence if:
- You are a sole or joint owner, and
- Your spouse or former spouse is allowed to live in the home under a divorce or separation agreement and uses the home as his or her main home.
If your home was transferred to you by a spouse or ex-spouse (whether in connection with a divorce or not), you can count any time when your spouse owned the home as time when you owned it. However, you must meet the residence requirement on your own.
Widowed Taxpayers
If you are a widowed taxpayer who doesn’t meet the 2-year ownership and residence requirements on your own, consider the following rule. If you sell your home within 2 years of the death of your spouse and you haven’t remarried at the time of the sale, then you may include any time when your late spouse owned and lived in the home, even if without you, to meet the ownership and residence requirements.
Also, you may be able to increase your exclusion amount from $250,000 to $500,000. You may take the higher exclusion if you meet all of the following conditions.
- You sell your home within 2 years of the death of your spouse;
- You haven’t remarried at the time of the sale;
- Neither you nor your late spouse took the exclusion on another home sold less than 2 years before the date of the current home sale; and
- You meet the 2-year ownership and residence requirements (including your late spouse’s times of ownership and residence if need be).
Service, Intelligence, and Peace Corps Personnel
If you or your spouse are a member of the Uniformed Services or the Foreign Service, or an employee of the intelligence community in the United States, you may choose to suspend the 5-year test period for ownership and residence when you’re on qualified official extended duty. This means you may be able to meet the 2-year residence test even if, because of your service, you didn’t actually live in your home for at least the 2 years during the 5-year period ending on the date of sale.
Qualified extended duty.
You are on qualified extended duty if:
- You are called or ordered to active duty for an indefinite period, or for a definite period of more than 90 days.
- You are serving at a duty station at least 50 miles from your main home, or you are living in government quarters under government orders.
- You are one of the following:
- A member of the armed forces (Army, Navy, Air Force, Marine Corps, Coast Guard);
- A member of the commissioned corps of the National Oceanic and Atmospheric Administration (NOAA) or the Public Health Service;
- A Foreign Service chief of mission, ambassador-at-large, or officer;
- A member of the Senior Foreign Service or the Foreign Service personnel;
- An employee, enrolled volunteer, or enrolled volunteer leader of the Peace Corps serving outside the United States; or
- An employee of the intelligence community, meaning:
- The Office of the Director of National Intelligence, the Central Intelligence Agency, the National Security Agency, the Defense Intelligence Agency, the National Geospatial-Intelligence Agency, or the National Reconnaissance Office;
- Any other office within the Department of Defense for the collection of specialized national intelligence through reconnaissance programs;
- Any of the intelligence elements of the Army, the Navy, the Air Force, the Marine Corps, the Federal Bureau of Investigation, the Department of Treasury, the Department of Energy, and the Coast Guard;
- The Bureau of Intelligence and Research of the Department of State; or
- Any of the elements of the Department of Homeland Security concerned with the analyses of foreign intelligence information.
Period Of Suspension
The period of suspension can’t last more than 10 years. Together, the 10-year suspension period and the 5-year test period can be as long as, but no more than, 15 years. You can’t suspend the 5-year period for more than one property at a time. You can revoke your choice to suspend the 5-year period at any time.
Example 1.
Mary bought a home on May 1, 2001. She used it as her main home until August 27, 2004. On August 28, 2004, she went on qualified official extended duty with the Navy. She didn’t live in the house again before selling it on August 1, 2017. Mary chooses to use the entire 10-year suspension period. Therefore, the suspension period would extend back from August 1, 2017, to August 2, 2007, and the 5-year test period would extend back to August 2, 2002. During that period, Mary owned the house all 5 years and lived in it as her main home from August 2, 2002, until August 28, 2004, a period of more than 24 months. She meets the ownership and use tests because she owned and lived in the home for at least 2 years during this test period.
Example 2.
John bought and moved into a home in 2007. He lived in it as his main home for 3½ years. For the next 6 years, he didn’t live in it because he was on qualified official extended duty with the Army. He then sold the home at a gain in 2016. To meet the use test, John chooses to suspend the 5-year test period for the 6 years he was on qualified official extended duty. This means he can disregard those 6 years. Therefore, John’s 5-year test period consists of the 5 years before he went on qualified official extended duty. He meets the ownership and use tests because he owned and lived in the home for 3½ years during this test period.
Vacant Land Next To Home
You can include the sale of vacant land adjacent to the land on which your home sits as part of a sale of your home if ALL of the following are true.
- You owned and used the vacant land as part of your home.
- The sale of the vacant land and the sale of your home occurred within 2 years of each other.
- Both sales either meet the Eligibility Test or qualify for partial tax benefits, as described earlier.
Also, if your sale of vacant land meets all these requirements, you must treat that sale and the sale of your home as a single transaction for tax purposes, meaning that you may apply the exclusion only once.
However, if you move your home from the land on which it stood (meaning you relocate the actual physical structure), then that land no longer counts as part of your home. For example, if you move a mobile home to a new lot and sell the old lot, then you can’t treat the sale of the old lot as the sale of your home.
Home Destroyed Or Condemned—Considerations For Benefits
If an earlier home of yours was destroyed or condemned, you may be able to count your time there towards the ownership and residence test.
If your home was destroyed, see Pub. 547, Casualties, Disasters, or Thefts. If your home was condemned, see Pub. 544, Sales and Other Disposition of Assets.
Remainder Interest
The sale of a remainder interest in your home is eligible for the exclusion only if both of the following conditions are met.
- The buyer isn’t a “related party.” A related party can be a related person or a related corporation, trust, partnership, or other entity which you control or in which you have an interest.
- You haven’t previously sold an interest in the home for which you took the exclusion.
Like-Kind/1031 Exchange
If you sold a home that you acquired in a like-kind exchange, then the following test applies.
You can’t claim the exclusion if:
- Either a. or b. applies:
- You acquired your home in a like-kind exchange (also known as a section 1031 exchange), or
- Your basis in your home is determined by reference to a previous owner’s basis, and that previous owner acquired the property in a like-kind exchange (for example, the owner acquired the home and then gave it to you); and
- You sold the home within 5 years of the date your home was acquired in the like-kind exchange.
For more information about like-kind exchanges, see Pub. 544.
If you relinquished your home in a like-kind exchange, then you should determine if you qualify to exclude gain as you would if you sold the home. Under certain circumstances, you may meet the requirements for both the exclusion of gain from the exchange of a main home and the nonrecognition of gain from a like-kind exchange. For more information, see Revenue Procedure 2005-14, 2005-7 I.R.B. 528, available at IRS.gov/irb/2005-07_IRB#RP-2005-14.
If you meet the ownership, residence, and look-back requirements, taking the exceptions into account, then you meet the Eligibility Test. Your home sale qualifies for the maximum exclusion. Skip to Worksheet 1, later.
If you didn’t meet the Eligibility Test, then your home isn’t eligible for the maximum exclusion, but you should continue to Does Your Home Qualify for a Partial Exclusion of Gain? .
Does Your Home Qualify For A Partial Exclusion of Gain?
If you don’t meet the Eligibility Test, you may still qualify for a partial exclusion of gain. You can meet the requirements for a partial exclusion if the main reason for your home sale was a change in workplace location, a health issue, or an unforeseeable event.
You meet the requirements for a partial exclusion if any of the following events occurred during your time of ownership and residence in the home.
- You took or were transferred to a new job in a work location at least 50 miles farther from the home than your old work location. For example, your old work location was 15 miles from the home and your new work location is 65 miles from the home.
- You had no previous work location and you began a new job at least 50 miles from the 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.
You meet the requirements for a partial exclusion if any of the following health-related events occurred during your time of ownership and residence in the home.
- You moved to obtain, provide, or facilitate diagnosis, cure, mitigation, or treatment of disease, illness, or injury for yourself or a family member.
- You moved to obtain or provide medical or personal care for a family member suffering from a disease, illness, or injury. Family includes your:
- Parent, grandparent, stepmother, stepfather;
- Child (including adopted child, eligible foster child, and stepchild), grandchild;
- Brother, sister, stepbrother, stepsister, half-brother, half-sister;
- Mother-in-law, father-in-law, brother-in-law, sister-in-law, son-in-law, daughter-in-law;
- Uncle, aunt, nephew, or niece.
- A doctor recommended a change in residence for you because you were experiencing a health problem.
- 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.
You meet the standard requirements if any of the following events occurred during the time you owned and lived in the home you sold.
- Your home was destroyed or condemned.
- Your home suffered a casualty loss because of a natural or man-made disaster or an act of terrorism. (It doesn’t matter whether the loss is deductible on your tax return.)
- You, your spouse, a co-owner of the home, or anyone else for whom the home was his or her residence:
- Died;
- Became divorced or legally separated;
- Gave birth to two or more children from the same pregnancy;
- Became eligible for unemployment compensation;
- Became unable, because of a change in employment status, to pay basic living expenses for the household (including expenses for food, clothing, housing, medication, transportation, taxes, court-ordered payments, and expenses reasonably necessary for making an income).
An event is determined to be an unforeseeable event in IRS published guidance.
Other Facts And Circumstances
Even if your situation doesn’t match any of the standard requirements described above, you still may qualify for an exception. You may qualify if you can demonstrate the primary reason for sale, based on facts and circumstances, is work-related, health-related, or unforeseeable. Important factors are:
- The situation causing the sale arose during the time you owned and used your property as your residence.
- You sold your home not long after the situation arose.
- You couldn’t have reasonably anticipated the situation when you bought the home.
- You began to experience significant financial difficulty maintaining the home.
- The home became significantly less suitable as a main home for you and your family for a specific reason.
IRS Publication 523
Recent Comments