Publication 523
taxmap/pubs/p523-003.htm#en_us_publink1000200709You may qualify to exclude from your income all or part of any gain from the sale of your main home. This means that, if you qualify, you will not have to pay tax on the gain up to the limit described under
Maximum Exclusion, next. To qualify, you must meet the ownership and use tests described later.
You can choose not to take the exclusion by including the gain from the sale in your gross income on your tax return for the year of the sale. This choice can be made (or revoked) at any time before the expiration of a 3-year period beginning on the due date of your return (not including extensions) for the year of the
sale.
You can use Worksheet 2 (near the end of this publication) to figure the amount of your exclusion and your taxable gain, if
any.
| If you have any taxable gain from the sale of your home, you may have to increase your withholding or make estimated tax payments. See Publication
505, Tax Withholding and Estimated Tax. |
taxmap/pubs/p523-003.htm#en_us_publink1000200711You can exclude up to $250,000 of the gain (other than gain allocated to periods of nonqualified use) on the sale of your main home if all of the following are
true.
- You meet the ownership test.
- You meet the use test.
- During the 2-year period ending on the date of the sale, you did not exclude gain from the sale of another
home.
For details on gain allocated to periods of nonqualified use, see
Nonqualified Use, later.
If you and another person owned the home jointly but file separate returns, each of you can exclude up to $250,000 of gain from the sale of your interest in the home if each of you meets the three conditions just
listed.
You may be able to exclude up to $500,000 of the gain (other than gain allocated to periods of nonqualified use) on the sale of your main home if you are married and file a joint return and meet the requirements listed in the discussion of the special rules for joint returns, later, under
Married Persons.
taxmap/pubs/p523-003.htm#en_us_publink1000200713To claim the exclusion, you must meet the ownership and use tests. This means that during the 5-year period ending on the date of the sale, you must have:
- Owned the home for at least 2 years (the ownership test),
and
- Lived in the home as your main home for at least 2 years (the use
test).
taxmap/pubs/p523-003.htm#en_us_publink1000200714If you owned and lived in the property as your main home for less than 2 years, you can still claim an exclusion in some cases. However, the maximum amount you may be able to exclude will be reduced. See
Reduced Maximum Exclusion, later.
taxmap/pubs/p523-003.htm#en_us_publink1000200716Example 1—home owned and occupied for at least 2 years.(p10)
Mya bought and moved into her main home in September 2009. She sold the home at a gain on September 15, 2012. During the 5-year period ending on the date of sale (September 16, 2009 – September 15, 2012), she owned and lived in the home for more than 2 years. She meets the ownership and use
tests.
taxmap/pubs/p523-003.htm#en_us_publink1000200717Example 2—ownership test met but use test not met.(p10)
Ayden bought a home in 2007. After living in it for 6 months, he moved out. He never lived in the home again and sold it at a gain on June 28, 2012. He owned the home during the entire 5-year period ending on the date of sale (June 29, 2007 – June 28, 2012). However, he did not live in it for the required 2 years. He meets the ownership test but not the use test. He cannot exclude any part of his gain on the sale unless he qualified for a
reduced maximum exclusion (explained later).
taxmap/pubs/p523-003.htm#en_us_publink1000200719The required 2 years of ownership and use during the 5-year period ending on the date of the sale do not have to be continuous nor do they both have to occur at the same
time.
You meet the tests if you can show that you owned and lived in the property as your main home for either 24 full months or 730 days (365 × 2) during the 5-year period ending on the date of
sale.
taxmap/pubs/p523-003.htm#en_us_publink1000200720Naomi bought and moved into a house in July 2008. She lived there for 13 months and then moved in with a friend. She moved back into her own house in 2011 and lived there for 12 months until she sold it in July 2012. Naomi meets the ownership and use tests because, during the 5-year period ending on the date of sale, she owned the house for more than 2 years and lived in it for a total of 25 (13 + 12)
months.
taxmap/pubs/p523-003.htm#en_us_publink1000200721Short temporary absences for vacations or other seasonal absences, even if you rent out the property during the absences, are counted as periods of use. The following examples assume that the reduced maximum exclusion (discussed later) does not apply to the
sales.
taxmap/pubs/p523-003.htm#en_us_publink1000200722David Johnson, who is single, bought and moved into his home on February 1, 2010. Each year during 2010 and 2011, David left his home for a 2-month summer vacation. David sold the house on March 1, 2012. Although the total time David lived in his home is less than 2 years (21 months), he meets the use requirement and may exclude gain. The 2-month vacations are short temporary absences and are counted as periods of use in determining whether David used the home for the required 2
years.
taxmap/pubs/p523-003.htm#en_us_publink1000200723Professor Paul Beard, who is single, bought and moved into a house on August 28, 2009. He lived in it as his main home continuously until January 5, 2011, when he went abroad for a 1-year sabbatical leave. On February 6, 2012, 1 month after returning from his leave, Paul sold the house at a gain. Because his leave was not a short temporary absence, he cannot include the period of leave to meet the 2-year use test. He cannot exclude any part of his gain because he did not use the residence for the required 2
years.
taxmap/pubs/p523-003.htm#en_us_publink1000200724You can meet the ownership and use tests during different 2-year periods. However, you must meet both tests during the 5-year period ending on the date of the sale.
taxmap/pubs/p523-003.htm#en_us_publink1000200725Beginning in 2001, Helen Jones lived in a rented apartment. The apartment building was later converted to condominiums, and she bought her same apartment on December 3, 2009. In 2010, Helen became ill and on April 14 of that year she moved to her daughter's home. On July 12, 2012, while still living in her daughter's home, she sold her
condominium.
Helen can exclude gain on the sale of her condominium because she met the ownership and use tests during the 5-year period from July 13, 2007, to July 12, 2012, the date she sold the condominium. She owned her condominium from December 3, 2009, to July 12, 2012 (more than 2 years). She lived in the property from July 13, 2007 (the beginning of the 5-year period), to April 14, 2010 (more than 2
years).
The time Helen lived in her daughter's home during the 5-year period can be counted toward her period of ownership, and the time she lived in her rented apartment during the 5-year period can be counted toward her period of
use.
taxmap/pubs/p523-003.htm#en_us_publink1000200726If you sold stock as a tenant-shareholder in a cooperative housing corporation, the ownership and use tests are met if, during the 5-year period ending on the date of sale, you:
- Owned the stock for at least 2 years, and
- Lived in the house or apartment that the stock entitled you to occupy as your main home for at least 2
years.
taxmap/pubs/p523-003.htm#en_us_publink1000200727The following sections contain exceptions to the ownership and use tests for certain
taxpayers.
taxmap/pubs/p523-003.htm#en_us_publink1000200728There is an exception to the use test if:
- You become physically or mentally unable to care for yourself,
and
- You owned and lived in your home as your main home for a total of at least 1 year during the 5-year period before the sale of your
home.
Under this exception, you are considered to live in your home during any time within the 5-year period that you own the home and live in a facility (including a nursing home) licensed by a state or political subdivision to care for persons in your condition.
If you meet this exception to the use test, you still have to meet the 2-out-of-5-year ownership test to claim the exclusion.
taxmap/pubs/p523-003.htm#en_us_publink1000200729For the ownership and use tests, you add the time you owned and lived in a previous home that was destroyed or condemned to the time you owned and lived in the replacement home on whose sale you wish to exclude gain. This rule applies if any part of the basis of the home you sold depended on the basis of the destroyed or condemned home (see
Involuntary Conversions in Publication
551). Otherwise, you must have owned and lived in the same home for 2 of the 5 years before the sale to qualify for the exclusion.
taxmap/pubs/p523-003.htm#en_us_publink1000200730You can choose to have the 5-year test period for ownership and use suspended during any period you or your spouse serve on qualified official extended duty (defined later) as a member of the uniformed services or Foreign Service of the United States, or as an employee of the intelligence community. You can choose to have the 5-year test period for ownership and use suspended during any period you or your spouse serve outside the United States either as an employee of the Peace Corps on qualified official extended duty (defined later) or as an enrolled volunteer or volunteer leader of the Peace Corps. This means that you may be able to meet the 2-year use test even if, because of your service, you did not actually live in your home for at least the required 2 years during the 5-year period ending on the date of
sale.
If this helps you qualify to exclude gain, you can choose to have the 5-year test period suspended by filing a return for the year of sale that does not include the gain.
taxmap/pubs/p523-003.htm#en_us_publink1000200731John bought and moved into a home in 2004. He lived in it as his main home for
21/2
years. For the next 6 years, he did not live in it because he was on qualified
official extended duty with the Army. He then sold the home at a gain in 2012.
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 21/2 years during this test period.
taxmap/pubs/p523-003.htm#en_us_publink1000200732The period of suspension cannot 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 cannot 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.
taxmap/pubs/p523-003.htm#en_us_publink1000200733Mary bought a home on April 1, 1996. She used it as her main home until August 31, 1999. On September 1, 1999, she went on qualified official extended duty with the Navy. She did not live in the house again before selling it on July 31, 2012. Mary chooses to use the entire 10-year suspension period. Therefore, the suspension period would extend back from July 31, 2012, to August 1, 2002, and the 5-year test period would extend back to August 1, 1997. During that period, Mary owned the house all 5 years and lived in it as her main home from August 1, 1997, until August 31, 1999, 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.
taxmap/pubs/p523-003.htm#en_us_publink1000200734The uniformed services are:
- The Armed Forces (the Army, Navy, Air Force, Marine Corps, and Coast
Guard),
- The commissioned corps of the National Oceanic and Atmospheric Administration,
and
- The commissioned corps of the Public Health Service.
taxmap/pubs/p523-003.htm#en_us_publink1000200735For purposes of the choice to suspend the 5-year test period for ownership and use, you are a member of the Foreign Service if you are any of the
following.
- A Chief of mission.
- An Ambassador at large.
- A member of the Senior Foreign Service.
- A Foreign Service officer.
- Part of the Foreign Service personnel.
taxmap/pubs/p523-003.htm#en_us_publink1000200736For purposes of the choice to suspend the 5-year test period for ownership and use, you are an employee of the intelligence community if you are an employee of any of the
following.
- 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.
- The National Reconnaissance Office and 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.
- Any of the elements of the Department of Homeland Security concerned with the analyses of foreign intelligence
information.
taxmap/pubs/p523-003.htm#en_us_publink1000200737You are on qualified official extended duty if you are on extended duty
while:
- Serving at a duty station at least 50 miles from your main home,
or
- Living in Government quarters under Government orders.
You are on extended duty when you are called or ordered to active duty for a period of more than 90 days or for an indefinite period.
taxmap/pubs/p523-003.htm#en_us_publink1000200739If you and your spouse file a joint return for the year of sale and one spouse meets the ownership and use tests, you can exclude up to $250,000 of the gain. (But see
Special rules for joint returns, next.)
taxmap/pubs/p523-003.htm#en_us_publink1000200740You can exclude up to $500,000 of the gain on the sale of your main home if all of the following are
true.
- You are married and file a joint return for the year.
- Either you or your spouse meets the ownership test.
- Both you and your spouse meet the use test.
- During the 2-year period ending on the date of the sale, neither you nor your spouse excluded gain from the sale of another
home.
If either spouse does not satisfy all these requirements, the maximum exclusion that can be claimed by the couple is the total of the maximum exclusions that each spouse would qualify for if not married and the amounts were figured separately. For this purpose, each spouse is treated as owning the property during the period that either spouse owned the
property.
taxmap/pubs/p523-003.htm#en_us_publink1000200741Example 1—one spouse sells a home.(p13)
Emily sells her home in June 2012 for a gain of $300,000. She marries Jamie later in the year. She meets the ownership and use tests, but Jamie does not. Emily can exclude up to $250,000 of gain on a separate or joint return for 2012. The $500,000 maximum exclusion for certain joint returns does not apply because Jamie does not meet the use
test.
taxmap/pubs/p523-003.htm#en_us_publink1000200742Example 2—each spouse sells a home.(p13)
The facts are the same as in
Example 1
except that Jamie also sells a home in 2012 for a gain of $200,000 before he marries Emily. He meets the ownership and use tests on his home, but Emily does not. Emily can exclude $250,000 of gain and Jamie can exclude $200,000 of gain on the respective sales of their individual homes. However, Emily cannot use Jamie's unused exclusion to exclude more than $250,000 of gain. Therefore, Emily and Jamie must recognize $50,000 of gain on the sale of Emily's home. The $500,000 maximum exclusion for certain joint returns does not apply because Emily and Jamie do not both meet the use test for the same
home.
taxmap/pubs/p523-003.htm#en_us_publink1000200743If your spouse died and you did not remarry before the date of sale, you are considered to have owned and lived in the property as your main home during any period of time when your spouse owned and lived in it as a main home.
If you meet all of the following requirements, you may qualify to exclude up to $500,000 of any gain from the sale or exchange of your main home.
- The sale or exchange took place after 2008.
- The sale or exchange took place no more than 2 years after the date of death of your
spouse.
- You have not remarried.
- You and your spouse met the use test at the time of your spouse's
death.
- You or your spouse met the ownership test at the time of your spouse's
death.
- Neither you nor your spouse excluded gain from the sale of another home during the last 2 years before the date of
death.
The
ownership and use tests were described earlier.
taxmap/pubs/p523-003.htm#en_us_publink1000200744Harry owned and used a house as his main home since 2008. Harry and Wilma married on July 1, 2012, and from that date they used Harry's house as their main home. Harry died on August 15, 2012, and Wilma inherited the property. Wilma sold the property on September 1, 2012, at which time she had not remarried. Although Wilma owned and used the house for less than 2 years, Wilma is considered to have satisfied the ownership and use tests because her period of ownership and use includes the period that Harry owned and used the property before
death.
taxmap/pubs/p523-003.htm#en_us_publink1000200745If your home was transferred to you by your spouse (or former spouse if the transfer was incident to divorce), you are considered to have owned it during any period of time when your spouse owned it.
taxmap/pubs/p523-003.htm#en_us_publink1000200746You are considered to have used property as your main home during any period when:
- You owned it, and
- Your spouse or former spouse is allowed to live in it under a divorce or separation instrument and uses it as his or her main
home.
taxmap/pubs/p523-003.htm#en_us_publink1000200747If you fail to meet the requirements to qualify for the $250,000 or $500,000 exclusion, you may still qualify for a reduced exclusion. This applies to those
who:
- Fail to meet the ownership and use tests, or
- Have used the exclusion within 2 years of selling their current
home.
In both cases, to qualify for a reduced exclusion, the sale of your main home must be due to one of the following
reasons.
- A change in place of employment.
- Health.
- Unforeseen circumstances.
taxmap/pubs/p523-003.htm#en_us_publink1000200748For purposes of the reduced maximum exclusion, a qualified individual is any of the
following.
- You.
- Your spouse.
- A co-owner of the home.
- A person whose main home is the same as yours.
taxmap/pubs/p523-003.htm#en_us_publink1000200749One of the three reasons above will be considered to be the primary reason you sold your home if either (1) or (2) is
true.
- You qualify under a "safe harbor." This is a specific set of facts and circumstances that, if applicable, qualifies you to claim a reduced maximum exclusion. Safe harbors corresponding to the reasons listed above are described
later.
- A safe harbor does not apply, but you can establish, based on facts and circumstances, that the primary reason for the sale is a change in place of employment, health, or unforeseen
circumstances.
Factors that may be relevant in determining your primary reason for sale include
whether:- Your sale and the circumstances causing it were close in
time,
- The circumstances causing your sale occurred during the time you owned and used the property as your main
home,
- The circumstances causing your sale were not reasonably foreseeable when you began using the property as your main
home,
- Your financial ability to maintain the property became materially
impaired,
- The suitability of the property as your main home materially changed,
and
- During the time you owned the property, you used it as your
home.
taxmap/pubs/p523-003.htm#en_us_publink1000200750You may qualify for a reduced exclusion if the primary reason for the sale of your main home is a change in the location of employment of a qualified
individual.
taxmap/pubs/p523-003.htm#en_us_publink1000200751For this purpose, employment includes the start of work with a new employer or continuation of work with the same employer. It also includes the start or continuation of
self-employment.
taxmap/pubs/p523-003.htm#en_us_publink1000200752A change in place of employment is considered to be the reason you sold your home
if:
- The change occurred during the period you owned and used the property as your main home,
and
- The new place of employment is at least 50 miles farther from the home you sold than was the former place of employment (or, if there was no former place of employment, the distance between your new place of employment and the home sold is at least 50
miles).
taxmap/pubs/p523-003.htm#en_us_publink1000200753Justin was unemployed and living in a townhouse in Florida he had owned and used as his main home since 2011. He got a job in North Carolina and sold his townhouse in 2012. Because the distance between Justin's new place of employment and the home he sold is at least 50 miles, the sale satisfies the conditions of the distance safe harbor. Justin's sale of his home is considered to be because of a change in place of employment, and he is entitled to claim a reduced maximum exclusion of gain from the
sale.
taxmap/pubs/p523-003.htm#en_us_publink1000200754The sale of your main home is because of health if your primary reason for the sale is:
- To obtain, provide, or facilitate the diagnosis, cure, mitigation, or treatment of disease, illness, or injury of a qualified individual,
or
- To obtain or provide medical or personal care for a qualified individual suffering from a disease, illness, or
injury.
The sale of your home is not because of health if the sale merely benefits a qualified individual's general health or
well-being.
For purposes of this reason, a qualified individual includes, in addition to the individuals listed earlier under
Qualified individual, any of the following family members of these individuals.
- Parent, grandparent, stepmother, stepfather.
- Child, grandchild, stepchild, adopted child, eligible foster
child.
- Brother, sister, stepbrother, stepsister, half-brother, half-sister.
- Mother-in-law, father-in-law, brother-in-law, sister-in-law, son-in-law, or
daughter-in-law.
- Uncle, aunt, nephew, niece, or cousin.
taxmap/pubs/p523-003.htm#en_us_publink1000200756In 2011, Chase and Lauren, husband and wife, bought a house that they used as their main home. Lauren's father has a chronic disease and is unable to care for himself. In 2012, Chase and Lauren sold their home in order to move into Lauren's father's house to provide care for him. Because the primary reason for the sale of their home was to provide care for Lauren's father, Chase and Lauren are entitled to a reduced maximum
exclusion.
taxmap/pubs/p523-003.htm#en_us_publink1000200757Health is considered to be the reason you sold your home if, for one or more of the reasons listed at the beginning of this discussion, a doctor recommends a change of
residence.
taxmap/pubs/p523-003.htm#en_us_publink1000200758The sale of your main home is because of an unforeseen circumstance if your primary reason for the sale is the occurrence of an event that you could not reasonably have anticipated before buying and occupying that home. You are not considered to have an unforeseen circumstance if the primary reason you sold your home was that you preferred to get a different home or because your finances
improved.
taxmap/pubs/p523-003.htm#en_us_publink1000200759Unforeseen circumstances are considered to be the reason for selling your home if any of the following events occurred while you owned and used the property as your main
home.
- An involuntary conversion of your home, such as when your home is destroyed or
condemned.
- Natural or man-made disasters or acts of war or terrorism resulting in a casualty to your home, whether or not your loss is
deductible.
- In the case of qualified individuals (listed earlier under
Qualified individual):
- Death,
- Unemployment (if the individual is eligible for unemployment
compensation),
- A change in employment or self-employment status that results in the individual's inability to pay reasonable basic living expenses (listed under
Reasonable basic living expenses, below) for his or her household,
- Divorce or legal separation under a decree of divorce or separate maintenance,
or
- Multiple births resulting from the same pregnancy.
- An event the IRS determined to be an unforeseen circumstance in published guidance of general applicability. For example, the IRS determined the September 11, 2001, terrorist attacks to be an unforeseen
circumstance.
taxmap/pubs/p523-003.htm#en_us_publink1000200762Reasonable basic living expenses for your household include the
following.
- Amounts spent for food.
- Amounts spent for clothing.
- Housing and related expenses.
- Medical expenses.
- Transportation expenses.
- Tax payments.
- Court-ordered payments.
- Expenses reasonably necessary to produce income.
Any of these amounts spent to maintain an affluent or luxurious standard of living are not reasonable basic living
expenses.
taxmap/pubs/p523-003.htm#en_us_publink1000240774Gain from the sale or exchange of the main home is not excludable from income if it is allocable to periods of nonqualified use. Nonqualified use means any period in 2009 or later where neither you nor your spouse (or your former spouse) used the property as a main home, with certain exceptions (see
next).
taxmap/pubs/p523-003.htm#en_us_publink1000240775A period of nonqualified use does not include:
- Any portion of the 5-year period ending on the date of the sale or exchange after the last date you (or your spouse) use the property as a main
home;
- Any period (not to exceed an aggregate period of 10 years) during which you (or your spouse) are serving on qualified official extended
duty:
- As a member of the uniformed services;
- As a member of the Foreign Service of the United States;
or
- As an employee of the intelligence community; and
- Any other period of temporary absence (not to exceed an aggregate period of 2 years) due to change of employment, health conditions, or such other unforeseen circumstances as may be specified by the
IRS.
taxmap/pubs/p523-003.htm#en_us_publink1000240776To figure the portion of the gain allocated to the period of nonqualified use, multiply the gain by the following
fraction:
| Total nonqualified use during the period of ownership in 2009 or
later | |
| Total period of ownership | |
This calculation can be found in
Worksheet 2, line 10, later in this publication.