Table of Contents
Internal Revenue Service
Tax Forms and Publications
1111 Constitution Ave. NW, IR-6526
Washington, DC 20224

The tax code recognizes the importance of home ownership by providing certain tax breaks when you sell your home. To qualify for these breaks, your home must meet the Eligibility Test , later.
The type of home involved is less important. A single-family home, condominium, cooperative apartment, mobile home, or houseboat can all count as a residence.
-
You owned the home and used it as your main home during at least 2 of the last 5 years before the date of sale.
-
You did not acquire the home through a like-kind exchange (also known as a 1031 exchange), during the past 5 years.
-
You did not claim any exclusion for the sale of a home that occurred during a 2-year period ending on the date of the sale of the home, the gain from which you now want to exclude.
If you own or live in more than one home, the test for determining which one is your main home is a “facts and circumstances” test.
The most important factor is where you spend the most time. However, other factors can enter the picture as well. The more of these that are true of a home, the more likely 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.
-
You can exclude up to $250,000 of gain ($500,000 if married filing jointly) on the sale of your home if you meet the Eligibility test.
-
You acquired the property through a like-kind exchange (1031 exchange), during the past 5 years. See Publication 544, Sales and Other Dispositions of Assets.
-
You are subject to expatriate tax. For more information about expatriate tax, see chapter 4 of Publication 519, U.S. Tax Guide for Aliens.
-
A marriage, separation, divorce, or the death of a spouse occurred during the ownership of the home.
-
The sale involved vacant land.
-
What you sold was a “remainder interest” (such as ownership of a home in which another person has the right to live for the rest of their life).
-
Your previous home was destroyed or condemned.
If you don't meet the eligibility test, you may still qualify for partial exclusion if you moved because of work, health, or an unforeseeable event.
You can qualify either by meeting a set of standard requirements (the “safe harbor” provisions) or by showing enough facts and circumstances to validate your claim.
-
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 their residence.
-
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:
-
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, daughter-in-law;
-
Uncle, aunt, nephew, niece, or cousin.
-
-
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 their residence.
-
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 does not 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 their 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.
-
-
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 could not 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.
-
You are a sole or joint owner.
-
Your spouse or former spouse is allowed to live in it under a divorce or separation agreement.
-
Your spouse or former spouse uses it as his or her residence (not just as a second home).
If you have vacant land adjacent to the land on which your home sits, you can only claim the sale of that land 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 happened within 2 years of each other.
-
Both sales either meet the eligibility test or qualify for partial tax benefits as described earlier.
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.
If you move your home from the land it was on, 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, you cannot treat the sale of the old lot as the sale of your home.
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 Publication 547, Casualties, Disasters, or Thefts. If your home was condemned, see Publication 544.
If you sell a remainder interest in your home, the sale is eligible for tax benefits as long as the buyer is not a “related person” (which can mean not only a relative but also a corporation, trust, or other organization that is closely connected to you).
If you take advantage of tax benefits when you sell a remainder interest, you cannot receive tax benefits if you later sell any other type of interest in the same home.
-
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 the basis of the home in the hands of the person who acquired the property in a like-kind exchange (for example, you received the home from that person as a gift), and
-
You sold the home during the 5-year period beginning with the date your home was acquired in the like-kind exchange.
If you are a member of Uniformed Services, Foreign Service, or an employee of the intelligence community in the Unites States, you may choose to suspend the 5-year test period for ownership and use if you are 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 did not actually live in your home for at least the 2 years during the 5-year period ending on the date of sale.
Example.
John bought and moved into a home in 2005. He lived in it as his main home for 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 2013. 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 2½ years during this test period.
-
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 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.
-
-
The Office of the Director of National Intelligence,
-
The CIA or NSA,
-
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,
-
Any intelligence element of the Army, Navy, Air Force, Marine Corps, FBI, the Department of Treasury, the Department of Energy, or the Coast Guard,
-
The Bureau of Intelligence and Research of the Department of State, or
-
Any element of the Department of Homeland Security that analyzes foreign intelligence information.
Example.
Mary bought a home on April 1, 1998. She used it as her main home until August 27, 2001. On August 28, 2001, she went on qualified official extended duty with the Navy. She did not live in the house again before selling it on July 31, 2014. Mary chooses to use the entire 10-year suspension period. Therefore, the suspension period would extend back from July 31, 2014, to August 1, 2004, and the 5-year test period would extend back to August 1, 1999. During that period, Mary owned the house all 5 years and lived in it as her main home from August 1, 1999, until August 28, 2001, 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.
To figure the gain or loss on the sale of your main home, you must know the selling price, the amount realized, and the adjusted basis. Subtract the adjusted basis from the amount realized to get your gain or loss.
| Selling price | |||
| − | Selling expenses | ||
| Amount realized | |||
| − | Adjusted basis | ||
| Gain or loss |
See How to Figure Your Gain or Loss Worksheet , later, for steps you should follow to figure your gain or loss.
The process is the same for single family homes, condominiums, mobile homes, and all other types of homes. If you have questions as you work through these step-by-step instructions, or want examples of costs that can and cannot be included, see Basis Adjustments—Details and Exceptions , later.
-
If married and filing jointly, figure gain or loss for both of you together.
-
If not filing jointly, or if there are two owners who are not married, you will need a gain or loss figure for each individual. If ownership is joint, or is shared 50/50, the figure for each individual is half of the final gain or loss result from this worksheet. If ownership is divided according to different percentages, each owner's figure is the gain or loss result from this worksheet multiplied by their ownership percentage.
-
If you used any portion of the property for business or rented it out, go to Business or Rental Use of Home , earlier.
| 1. | Determine the sale price. This is everything you received in exchange for your home. | |||
| a. | All money (currency, check, wire transfer) | a. | ||
| b. | The value of any notes, mortgages, or other debts that the buyer agreed to assume (take over) as part of the sale | b. | ||
| c. | Any real estate taxes the buyer paid on your behalf | c. | ||
| d. | The fair market value of any other property or services you received | d. | ||
| e. | Any amount you received for granting an option to buy your home, if the option was exercised | e. | ||
| f. | Add lines 1a through 1e. This is your sale price | f. | ||
|
||||
| 2. | Determine your selling expenses. These are the costs directly associated with selling your home. | |||
| a. | Any sales commissions (for example, a real estate agent's sales commission) | a. | ||
| b. | Any fees for a service that helped you sell your home without a broker | b. | ||
| c. | Any advertising fees | c. | ||
| d. | Any legal fees | d. | ||
| e. | Any mortgage points or other loan charges you paid that would normally have been the buyer's responsibility | e. | ||
| f. | Add lines 2a through 2f. These are your selling expenses | f. | ||
|
||||
| 3. | Figure your “amount realized” (sale price minus selling expenses). | |||
| a. | Your sale price (line 1f) | a. | ||
| b. | Subtract your selling expenses (line 2f) | b. | ||
| c. | This is your amount realized | c. | ||
| 4. | Determine your “total basis” (the total amount you invested in your home). This includes what you paid for your home as well as other money you may have put into it that added to its value. | |||
| a. | The amount you paid for your home (or if you built your home, the cost of the land). Include any down payment and any amount you borrowed to pay for the home, such as a first or second mortgage, or notes you gave the seller in payment for the home. For cooperative apartments, include the value of the corporation stock you purchased. If you acquired your home through inheritance, gift, bargain sale, trade, or anything except a fair market purchase, see Basis Adjustments—Details and Exceptions , later | a. | ||
| b. | Any settlement fees or closing costs you paid when you bought your home, except for financing-related costs (such as seller-paid points). A fee paid for buying the home is any fee you would have had to pay even if you paid cash for the home. See Basis Adjustments—Details and Exceptions and Fees and Closing Costs | b. | ||
| c. | Any real estate taxes or other costs you paid on behalf of the seller you bought your home from (and for which the seller never paid you back) | c. | ||
| d. | Any amounts you spent on construction, renovation, or other improvements that are still part of your home when you sell it, but not costs or repairs and maintenance. See Basis Adjustments—Details and Exceptions , later | d. | ||
| e. | Any amounts you spent to repair damage to your home or the land it sits on | e. | ||
| f. | Any special assessments for local improvements (such as special tax or condominium association assessments that are not merely for repairs or maintenance) | f. | ||
| g. | Add lines 4a through 4f. This is your total basis | g. | ||
| 5. | Determine your “basis adjustments” (any payments, credits, or benefits you may need to deduct from your basis). | |||
| a. | Any depreciation you took for using your home as a home office | a. | ||
| b. | Any depreciation you took — or didn't take but could have taken — for any business or investment (rental) use of your home other than home office use | b. | ||
| c. | Any casualty losses (such as flood or fire damage) you claimed as a deduction on a federal tax return | c. | ||
| d. | Any insurance payments you received or expect to receive for casualty losses | d. | ||
| e. | Any payments you received for granting an easement, conservation restriction, or right-of-way | e. | ||
| f. | Any energy credits or subsidies that effectively paid you back for improvements you included in your total basis (generally available only from 1977–1987) | f. | ||
| g. | Any adoption credits you claimed, or any nontaxable payments from an employer-sponsored adoption assistance program, you used for improvements you included in your total basis | g. | ||
| h. | Any District of Columbia first-time homebuyer credit you claimed | h. | ||
| i. | Any real estate taxes the seller paid on your behalf (and for which you never paid the seller back). If you reimburse the seller, it does not affect basis | i. | ||
| j. | Any mortgage points the seller paid for you when you bought your home, but only if one of the following is true | j. | ||
|
||||
| k. | Any canceled or forgiven mortgage debt amount that was excluded due to a bankruptcy or insolvency and you did not have to declare as income. For more information, see Publication 4681 | k. | ||
| l. | Any sales tax you paid on your home (such as for a mobile home or houseboat) and then claimed as a deduction on a federal tax return | l. | ||
| m. | The value of any temporary housing the builder of your home provided for you | m. | ||
|
||||
| n. | Any gain you postponed from a home you sold before May 7, 1997 | n. | ||
| o. | Add lines 5a through 5n. This is your basis adjustment | o. | ||
| 6. | Figure your “adjusted basis” (total basis minus basis adjustments). | |||
| a. | Your total basis (line 4g) | a. | ||
| b. | Subtract your basis adjustments (line 5o) | b. | ||
| c. | This is your adjusted basis | c. | ||
|
||||
| 7. | Figure your gain or loss (amount realized minus adjusted basis). | |||
| a. | Your amount realized (line 3c) | a. | ||
| b. | Subtract your adjusted basis (line 6c) | b. | ||
| c. | This is your gain or loss | c. | ||
|
||||
-
You were not using the space for business or rental at the time you sold the property,
-
You did not earn any business or rental income from the space in the year you sold your home, and
-
You used the space as residence space for 2 years out of the 5 years leading up to the sale.
-
Dollar-amount method. Where a figure consists of specific dollar amounts that relate to either the residence portion or the business portion of the property, the figure must be broken down by these dollar amounts. For example, if the figure for improvements to the property was $100,000, and all of that applied to the residence portion, then the business portion of the improvements would be zero.
-
“100% rule” for depreciation. The first two items under Determine your “basis adjustments” (any payments, credits, or benefits you may need to deduct from your basis) in How to Figure Your Gain or Loss Worksheet , earlier, are business depreciation items. Any figure for these two items is 100% a business figure.
-
Percentage method. Where a figure applies to the property as a whole (such as the sale price), the business or rental portion is the figure multiplied by the business portion percentage you calculated in Determine your “business or rental percentage” , earlier. Use the percentage method for all items that do not require the dollar-amount or depreciation methods.
| IF... | SHOWS... | THEN... |
| your “Home” worksheet | a loss, | follow the instructions at the end of line 7c, under How to Figure Your Gain or Loss Worksheet , earlier, for “If the number is negative.” |
| your “Home” worksheet | a gain, | skip to How Much Is Taxable , later, to find out how much of the gain on your “Home” worksheet is taxable. |
| your “Business” worksheet | a loss, | do NOT follow the instructions at the end of line 7c, under How to Figure Your Gain or Loss Worksheet , earlier. Instead, report the loss from your “Business” worksheet on Form 4797, Sales of Business Property. |
| your “Business” worksheet | a gain AND you did NOT meet the 2-year residence test for the business/rental part of your home, | you cannot get tax benefits for any of the gain shown on your “Business” worksheet. Do NOT follow the instructions at the end of line 7c, under How to Figure Your Gain or Loss Worksheet , earlier. Instead, report the gain from your “Business” worksheet on Form 4797. |
| your “Business” worksheet | a gain AND you DID meet the 2-year residence test for the business/rental part of your home, | skip to How Much Is Taxable , later, to find out how much of the gain on your “Business” worksheet is taxable. |
You should include many, but not all, costs associated with the purchase and maintenance of your home in the basis of your home. For more information on determining basis, see Publication 551, Basis of Assets.
Some settlement fees and closing costs you can include in your basis are:
-
Abstract fees (abstract of title fees),
-
Charges for installing utility services,
-
Legal fees (including fees for the title search and preparing the sales contract and deed),
-
Recording fees,
-
Survey fees,
-
Transfer or stamp taxes, and
-
Owner's title insurance.
Some settlement fees and closing costs you cannot include in your basis are:
-
Fire insurance premiums,
-
Rent for occupancy of the house before closing,
-
Charges for utilities or other services related to occupancy of the house before closing,
-
Any fee or cost that you deducted as a moving expense (allowed for certain fees and costs before 1994),
-
Charges connected with getting a mortgage loan, such as:
-
Mortgage insurance premiums (including funding fees connected with loans guaranteed by the Department of Veterans Affairs),
-
Loan assumption fees,
-
Cost of a credit report,
-
Fee for an appraisal required by a lender, and
-
-
Fees for refinancing a mortgage.
If you contracted to have your house built on land you own, your basis is:
-
The cost of the land, plus
-
The amount it cost you to complete the house, including:
-
The cost of labor and materials,
-
Any amounts paid to a contractor,
-
Any architect's fees,
-
Building permit charges,
-
Utility meter and connection charges,
-
Legal fees directly connected with building the house.
-
Your cost includes your down payment and any debt such as a first or second mortgage or notes you gave the seller or builder. It also includes certain settlement or closing costs. You must reduce your basis by points the seller paid you.
If you built all or part of your house yourself, its basis is the total amount it cost you to complete it. Do not include in the cost of the house:
-
The value of your own labor, or
-
The value of any other labor for which you did not pay.
-
Any real estate taxes owed up through the day before the sale date,
-
Back interest owed by the seller,
-
The seller's title recording or mortgage fees,
-
Charges for improvements or repairs that are the seller's responsibility (for example, lead paint removal), and
-
Sales commissions (for example, to pay the seller's real estate agent).
These add to the value of your home, prolong its useful life, or adapt it to new uses. You add the cost of additions and improvements to the basis of your property.
The following chart lists some examples of improvements.
| Additions Bedroom Bathroom Deck Garage Porch Patio Lawn & Grounds Landscaping Driveway Walkway Fence Retaining wall Swimming pool |
Systems Heating system Central air conditioning Furnace Duct work Central humidifier Central vacuum Air/water filtration systems Water heater Soft water system Plumbing Septic system Wiring Security system Lawn sprinkler system |
| Exterior Storm windows/doors New roof New siding Satellite dish Insulation Attic Walls Floors Pipes and duct work |
Plumbing Septic system Water heater Soft water system Filtration system Interior Built-in appliances Kitchen modernization Flooring Wall-to-wall carpeting Fireplace |
-
Any costs of repairs or maintenance that are necessary to keeping your home in good condition but do not add to its value or prolong its life. Examples include painting (interior or exterior), fixing leaks, filling holes or cracks, or replacing broken hardware.
-
Any costs of any improvements that are no longer part of your home (for example, wall-to-wall carpeting that you installed but later replaced.
-
Any costs of any improvements whose life expectancy, when installed, was less than 1 year.
-
The value of any labor you did yourself or did not pay for.
-
1977–1987. Credit for home energy improvements,
-
1992–present. Direct or indirect subsidy from a public utility for installations or modifications aimed at lowering a home's electricity or natural gas usage or better managing its energy demand,
-
2006–present. Credit for home energy efficiency improvements, and
-
2006–2007 and 2009–present.Credit for energy improvements to non-business properties.
You may have ordinary income, gain, or loss. See Publication 4681, Canceled Debts, Foreclosures, Repossessions, and Abandonments.
If you used part of your home for business or rental purposes, see “Foreclosures and Repossessions” in chapter 1 of Publication 544, for examples of how to figure gain or loss.
You have a disposition when your home is destroyed or condemned and you receive other property or money in payment, such as insurance or a condemnation award. This is treated as a sale and you may be able to exclude all or part of any gain from the destruction or condemnation of your home. If your home was destroyed, see Publication 547. If your home was condemned, see Publication 544.
To determine your basis if you received your home as a gift, you will need to know most of the following:
-
The adjusted basis of the person who gave it to you (the donor), and
-
The home's fair market value at the time of the gift, as it was appraised for federal gift tax purposes (or for state gift tax purposes if the federal gift tax does not apply).
In some cases, you will also need to know how much federal gift tax was paid when you received the home.
If the donor's adjusted basis was more than the home's value, use the donor's adjusted basis as your basis. However, if you find this results in a loss in line 7c, under How to Figure Your Gain or Loss Worksheet , earlier, you are treated as having neither a gain nor a loss.
If the donor's adjusted basis was less than or equal to the home's value, your basis will depend on when you received the home.
| 1. | Enter value of the home at the time of the gift | 1. | |
| 2. | Enter donor's adjusted basis | 2. | |
| 3. | Enter any annual exclusion and marital or charitable deduction applied to the gift | 3. | |
| 4. | Federal gift tax paid on gift | 4. | |
| 5. | Subtract line 2 from line 1 | 5. | |
| 6. | Subtract line 3 from line 1 | 6. | |
| 7. | Divide line 4 by line 5 | 7. | |
| 8. | Multiply line 7 by line 4 | 8. | |
| 9. | Add line 2 and line 8. This is your basis | 9. |
Example.
Your jointly owned home (owned as joint tenants with right of survivorship) had an adjusted basis of $50,000 on the date of your spouse's death, and the fair market value on that date was $100,000. Your new basis in the home is $75,000 ($25,000 for one-half of the adjusted basis plus $50,000 for one-half of the fair market value).

If you do qualify for an exclusion on your home sale, it is possible that all of your gain will be tax-free. However, some of it may be taxable, particularly if you sold your home at a significant profit or if you only qualify for reduced benefits. This section contains step-by-step instructions for figuring out how much of your gain is taxable. See How to Figure Your Taxable Gain or Loss Worksheet , later, for assistance in determining your taxable gain.
If you determined in Does Your Home Sale Qualify for Maximum Exclusion , earlier, that your home sale doesn't qualify for any exclusion (either full or partial), then your entire gain is taxable. If you do not have a gain, you owe no tax on the sale. In either case, you do not need to work through the How to Figure Your Taxable Gain or Loss Worksheet and you can skip to Reporting Your Home Sale , later.
If you completed “Business” and “Home” versions of your gain/loss worksheet as described in Business or Rental Use of Home , earlier, complete a version of the following worksheet for each, keeping in mind these additional points.
-
When the worksheet below talks about “your home,” this means only the part of the property that you're covering in that worksheet, whether it is the “Home” worksheet or the “Business or Rental” worksheet.
-
Figure your tax benefit limit on the whole property and then divide it between Home and Business based on the residence portion and business portion percentages you calculated earlier.
| 1. | Start. | ||||
| a. | Enter your gain from line 7c, under How to Figure Your Gain or Loss Worksheet , earlier | a. | |||
| 2. | Read the following tests carefully. | ||||
|
|||||
| If you do not meet BOTH tests, continue to line 3. | |||||
| If you do meet BOTH tests, skip to line 4. | |||||
| 3. | Determine any taxable gain. | ||||
| a. | Because you did not meet both tests in line 2, read the following tests carefully. Part of your gain is not eligible for exclusion.
|
||||
| Your total depreciation | a. | ||||
| b. | Subtract line 3a from line 1a. If the result is less than zero, enter -0- | b. | |||
| c. | Did you have non-residence gain? If there were times after 2008 when neither you nor your spouse (or a former spouse) used your home as a main residence, do the following calculation: | ||||
| (1) Enter the total number of days after 2008 when neither you nor your spouse (or former spouse) used the home as a main residence. This is the non-use days | |||||
| (2) Enter the total number of days you owned your home (counting all days, not just days after 2008). This is the days owned | |||||
| (3) Divide the non-use days by the days owned. Calculate to 3 decimal places. This is your non-residence factor | |||||
| Multiply line 3b by your non-residence factor. This is your non-residence gain | c. | ||||
For example, if you owned your home for 10 years (3,650 days), did not use it as your main residence for 500 days after 2008, and had
a $20,000 gain, your calculation would look like this.
|
|||||
| d. | Add your total depreciation (line 3a) to your non-residence gain (line 3c). You might have one but not the other. See also Recapturing Depreciation. | ||||
| This is your ineligible gain | d. | ||||
| 4. | Determine gain eligible for exclusion. | ||||
| a. | Enter your gain (from line 3b) | a. | |||
| b. | Subtract your non-residence gain (line 3c) | b. | |||
| c. | This is your gain eligible for exclusion | c. | |||
| 5. | Determine your exclusion limit. | ||||
| a. | If you qualify for an exclusion (based on the Eligibility Test , earlier), there are fixed dollar limits on the amount of gain that can be excluded from taxes. If you only qualify for partial exclusion, the limit will be lower, and will depend on your situation. | ||||
| If you met the Eligibility Test , earlier, follow these steps to determine your exclusion limit. | |||||
| (1) If you are not married (or are married but filing a separate return), your exclusion limit is $250,000. | |||||
| (2) If you own your home jointly with another person who is not your spouse, you and the other person each have an exclusion limit of $250,000. To qualify for this amount, you must each independently meet all parts of the Eligibility Test , earlier, except for the ownership requirement. See Determine whether you meet the ownership requirement , earlier. (Only one of you needs to meet the ownership test.) | |||||
| (3) If you are married and filing jointly, the exclusion limit is usually $500,000. To qualify for this full amount, you must each independently meet all parts of the Eligibility Test , earlier, except for the ownership requirement. See Determine whether you meet the ownership requirement , earlier. (Only one of you needs to meet the ownership test.) If this is not the case, you will need to determine each spouse's individual limit (as if you were not married) and add them together to get your total exclusion as a couple. Generally, this situation will arise only if one person has lived in the home longer than the other, or if one spouse took an exclusion on a different home within the past 2 years. | |||||
| If you owned your home jointly with your spouse and your spouse has died, your exclusion limit is $500,000, if ALL of the following are true. | |||||
|
|||||
| If ANY of these are NOT true, your exclusion limit is $250,000. | |||||
| This is your exclusion limit | a. | ||||
| b. | If you did not meet the Eligibility Test , earlier, but DO qualify for a partial exclusion, take the smallest of: | ||||
|
|||||
|
|||||
|
|||||
|
x 250,000 | ||||
| If you are not married and filing jointly, this is your exclusion limit | b. | ||||
|
|||||
| c. | If you are married and filing jointly, this is your exclusion limit | c. | |||
| 6. | Determine your amount of exclusion. | ||||
| a. | Your gain eligible for exclusion (line 4c, or line 1a if you met both tests in line 2) | a. | |||
| b. | Your exclusion limit (line 5a, 5b, or 5c) | b. | |||
| c. | Your exclusion is the smaller of line 6a or 6b | c. | |||
If you used all or part of your home for business or rental after May 6, 1997, you may need to pay back (“recapture”) some or all of the depreciation you were entitled to take on your property. “Recapturing” depreciation means you must include it as ordinary income on your tax return.
| 1. | Enter your taxable gain from line 3d under How to Figure Your Taxable Gain or Loss Worksheet | 1. | |
| 2. | Enter your total depreciation from line 3a under How to Figure Your Taxable Gain or Loss Worksheet | 2. | |
| 3. | Enter the SMALLER of line 1 and line 2 here and on line 12 of the “Unrecaptured Section 1250 Gain Worksheet” in the instructions to Schedule D (Form 1040). Follow the Schedule D instructions to complete the process | 3. |
Once you've done the calculations described in this publication, you are ready to report them on your tax returns. This section tells you how, and also gives you information such as how to take deductions relating to your home sale and how to report other types of income (besides your gain) you may have received because of your home sale.
This section also covers special circumstances that apply to some home sellers: recapturing depreciation and paying back a federal mortgage subsidy or first-time homebuyer credit.

-
You have taxable gain on your home sale (or on the residential portion of your property if you made separate calculations for home and business) and do not qualify to exclude.
-
You received Form 1099-S. If so, you must report the sale even if you have no taxable gain to report.
-
You wish to report your gain as taxable gain even though some or all of it is eligible for exclusion. You may wish to do this if, for example, you plan to sell another property that qualifies as a home within the next two years, and that property is likely to have a larger gain. If you choose to report, rather than exclude, your taxable gain, you can go back later and undo that choice by filing an amended return, but only within 3 calendar years after the year of sale.

If you are not itemizing deductions on your return for the year in which you sold your home, skip to Reporting Other Income Related to Your Home Sale , later.
Note there is no tax deduction for transfer taxes, stamp taxes, or other taxes, fees, and charges you paid when you sold your home. However, you can treat these taxes and fees as selling expenses as described in line 1 under How to Figure Your Gain or Loss Worksheet , earlier. If you pay these amounts as the buyer, include them in your cost basis of the property.
-
Take the amount of real estate tax due on your home for the 12-month tax billing cycle that contains your date of sale. Depending on your town or county's tax billing cycle, this 12-month period may or may not be a calendar year.
-
Take the number of days you owned the property during the year of sale, not counting the date of sale, and divide it by 365 (or 366 for a leap year).
-
Express the result as a decimal calculated to 3 places.
-
Multiply the annual real estate tax (as you computed it in the first bullet point) by this decimal. The result is the amount of real estate tax you can deduct as an itemized deduction.
Example.
The tax on Dennis and Beth White's home was $620 for the year. Their real property tax year was the calendar year, with payment due August 1, 2014. They sold the home on May 7, 2014. Dennis and Beth are considered to have paid a proportionate share of the real estate taxes on the home even though they did not actually pay them to the taxing authority.
Dennis and Beth owned their home during the 2014 real property tax year for 126 days (January 1 to May 6, the day before the sale). They figure their deduction for taxes as follows.
| 1. | Total real estate taxes for the real property tax year | $620 |
| 2. | Number of days in the real property tax year that you owned the property | 126 |
| 3. | Divide line 2 by 365 (366 if leap year) | .345 |
| 4. | Multiply line 1 by line 3. This is your deduction. Enter it on line 6 of Schedule A (Form 1040) | $214 |
Since the buyers paid all of the taxes, Dennis and Beth also include the $214 in the home's selling price. The buyers add the $214 to their basis in the home. The buyers can deduct $406 ($620 – $214) as an itemized deduction, the taxes for the part of the year they owned the home.
-
The debt was taken out to buy, build, or substantially improve your main residence. If you have more than one residence, see Does Your Home Qualify—Details and Exceptions , earlier, to determine which is your main residence.
-
The debt was secured by your main residence.
-
The loan amount (amount of principal), not counting interest, did not exceed the cost of your main residence plus improvements.
-
The debt was canceled or forgiven because the value of your home declined or your financial circumstances worsened.
If you received any homebuyer credits or federal mortgage subsidies, you may have to pay back (“recapture”) some or all of the amount by increasing your tax payment.
-
If you bought your home in 2008, you must pay back the credit unless you qualify for an exception.
-
If you bought your home in 2009 or 2010, you don't have to pay back the credit unless you sold or gave up ownership of your home within 36 months after purchasing it.
Do you need help with a tax issue or preparing your tax return, or do you need a free publication or form?
-
Go to IRS.gov and click on the Filing tab to see your options.
-
Enter “Free File” in the search box to use brand name software to prepare and e-file your federal tax return for free.
-
Enter “VITA” in the search box, download the free IRS2Go app, or call 1-800-906-9887 to find the nearest Volunteer Income Tax Assistance or Tax Counseling for the Elderly (TCE) location for free tax preparation.
-
Enter “TCE” in the search box, download the free IRS2Go app, or call 1-888-227-7669 to find the nearest Tax Counseling for the Elderly location for free tax preparation.
-
Enter “ITA” in the search box on IRS.gov for the Interactive Tax Assistant, a tool that will ask you questions on a number of tax law topics and provide answers. You can print the entire interview and the final response.
-
Enter “Tax Map” or “Tax Trails” in the search box for detailed information by tax topic.
-
Enter “Pub 17” in the search box to get Pub. 17, Your Federal Income Tax for Individuals, which features details on tax-saving opportunities, 2014 tax changes, and thousands of interactive links to help you find answers to your questions.
-
Call TeleTax at 1-800-829-4477 for recorded information on a variety of tax topics.
-
Access tax law information in your electronic filing software.
-
Go to IRS.gov and click on the Help & Resources tab for more information.
-
Go to www.irs.gov/orderforms to place an order and have forms mailed to you, or
-
Call 1-800-829-3676 to order current-year forms, instructions, publications, and prior-year forms and instructions (limited to 5 years).
-
There are many ways to file your return electronically. It’s safe, quick and easy. See Preparing and filing your tax return, earlier, for more information.
-
See your tax return instructions to determine where to mail your completed paper tax return.
-
Go to IRS.gov and click on “Get Transcript of Your Tax Records” under “Tools.”
-
Download the free IRS2Go app to your smart phone and use it to order transcripts of your tax returns or tax account.
-
Call the transcript toll-free line at 1-800-908-9946.
-
Mail Form 4506-T or Form 4506T-EZ (both available on IRS.gov).
-
The Earned Income Tax Credit Assistant determines if you are eligible for the EIC.
-
The First Time Homebuyer Credit Account Look-up tool provides information on your repayments and account balance.
-
The Alternative Minimum Tax (AMT) Assistant determines whether you may be subject to AMT.
-
The Online EIN Application helps you get an Employer Identification Number.
-
The IRS Withholding Calculator estimates the amount you should have withheld from your paycheck for federal income tax purposes.
-
The Electronic Filing PIN Request helps to verify your identity when you do not have your prior year AGI or prior year self-selected PIN available.
-
Go to www.irs.gov/uac/Identity-Protection for information and videos.
-
If your SSN has been lost or stolen or you suspect you are a victim of tax-related identity theft, visit www.irs.gov/identitytheft to learn what steps you should take.
-
Go to www.irs.gov/refunds.
-
Download the free IRS2Go app to your smart phone and use it to check your refund status.
-
Call the automated refund hotline at 1-800-829-1954.
-
Direct Pay (only if you are an individual who has a checking or savings account).
-
Debit or credit card.
-
Electronic Federal Tax Payment System.
-
Check or money order.
-
An online payment agreement determines if you are eligible to apply for an installment agreement if you cannot pay your taxes in full today. With the needed information, you can complete the application in about 30 minutes, and get immediate approval.
-
An offer in compromise allows you to settle your tax debt for less than the full amount you owe. Use the Offer in Compromise Pre-Qualifier to confirm your eligibility.
-
Taxpayers can find information on IRS.gov in the following languages.
-
The IRS Taxpayer Assistance Centers provide over-the-phone interpreter service in over 170 languages, and the service is available free to taxpayers.
The Taxpayer Advocate Service (TAS) is an independent organization within the Internal Revenue Service that helps taxpayers and protects taxpayer rights. Our job is to ensure that every taxpayer is treated fairly and that you know and understand your rights under the Taxpayer Bill of Rights.
We can help you resolve problems that you can’t resolve with the IRS. And our service is free. If you qualify for our assistance, you will be assigned to one advocate who will work with you throughout the process and will do everything possible to resolve your issue. TAS can help you if:
-
Your problem is causing financial difficulty for you, your family, or your business,
-
You face (or your business is facing) an immediate threat of adverse action, or
-
You’ve tried repeatedly to contact the IRS but no one has responded, or the IRS hasn’t responded by the date promised.
We have offices in every state, the District of Columbia, and Puerto Rico. Your local advocate’s number is in your local directory and at www.taxpayeradvocate.irs.gov. You can also call us at 1-877-777-4778.
The Taxpayer Bill of Rights describes ten basic rights that all taxpayers have when dealing with the IRS. Our Tax Toolkit at www.taxpayeradvocate.irs.gov can help you understand what these rights mean to you and how they apply. These are your rights. Know them. Use them.
TAS works to resolve large-scale problems that affect many taxpayers. If you know of one of these broad issues, please report it to us at www.irs.gov/sams.
Low Income Taxpayer Clinics (LITCs) serve individuals whose income is below a certain level and need to resolve tax problems such as audits, appeals, and tax collection disputes. Some clinics can provide information about taxpayer rights and responsibilities in different languages for individuals who speak English as a second language. To find a clinic near you, visit www.irs.gov/litc or see IRS Publication 4134, Low Income Taxpayer Clinic List.
| More Online Publications |