Home | Archives | Blog | Bonds | Credit & Debt | Forex | Futures | Insurance | Mutual Funds | Options | Real Estate | Stocks | Taxes | Other Investment Topics | New Money Articles

Complete List of Tax Topics

Tip: Press the Home key to see this Table of Contents from anywhere in the document.

Selling Your Home, Publication 523 (2007)

What's New

Reminders

Introduction

Worksheets
Date of sale
What is not covered in this publication

Useful Items - You may want to see:

Publication
Form (and Instructions)

Main Home

Land
Example —
Vacant land
More than one home
Example —
Example —
Factors used to determine main home
Property used partly as your main home

Figuring Gain or Loss

Selling Price

Personal property
Payment by employer
Option to buy

Amount Realized

Selling expenses

Adjusted Basis

Amount of Gain or Loss

Gain on sale
Loss on sale
Jointly owned home
Separate returns
Joint owners not married

Other Dispositions

Foreclosure or repossession
Ordinary income
More information
Abandonment
Trading homes
Example —
Transfer to spouse
Exception
More information
Destruction or condemnation

Determining Basis

Cost As Basis

Purchase
Settlement fees or closing costs
Real estate taxes
Construction
Built by you
Temporary housing
Cooperative apartment
Condominium

Basis Other Than Cost

Fair market value
Home received as gift
Part of federal gift tax due to net increase in value
Home received from spouse
Transfers after July 18, 1984
Transfers before July 19, 1984
More information
Home received as inheritance
Surviving spouse
Example —
Community property
Home received as trade
Home destroyed or condemned
Example —
More information

Adjusted Basis

Increases to basis
Decreases to basis
Improvements
Example —
Improvements no longer part of home
Example —
Repairs
Example —
Exception

Excluding the Gain

Maximum Exclusion

Ownership and Use Tests

Exception
Example —
Example —

Period of Ownership and Use

Worksheet 1 Instructions.
Worksheet 1 Instructions.(Continued)
Worksheet 2. Gain or (Loss), Exclusion, and Taxable Gain on Sale of Home
Example —
Temporary absence
Example —
Example —
Ownership and use tests met at different times
Example —
Cooperative apartment
Members of the uniformed services or Foreign Service or employees of the intelligence community
Example —
Period of suspension
Example —
Uniformed services
Foreign Service member
Employee of the intelligence community
Qualified official extended duty
Exception for individuals with a disability
Previous home destroyed or condemned

Married Persons

Special rules for joint returns
Example —
Example —
Death of spouse before sale
Home transferred from spouse
Use of home after divorce

Reduced Maximum Exclusion

Change in Place of Employment

Qualified individual
Employment
Distance safe harbor
Example —

Health

Example —
Worksheet 3. Reduced Maximum Exclusion

Unforeseen Circumstances

Specific event safe harbors
Reasonable basic living expenses

More Than One Home Sold During 2-Year Period

Exception
Example —
Example —

Business Use or Rental of Home

Example —
Example —
Depreciation after May 6, 1997
Unrecaptured section 1250 gain
Example

Property Used Partly for Business or Rental

Part of Home Used for Business or Rental

Example —
Example —

Separate Part of Property Used for Business or Rental

Use test not met for business part
Example —
Example —
Excluding gain on the business or rental part of your property
Example —
Example —

Reporting the Sale

Installment sale
More information

Comprehensive Examples

Example —
Example —
Worksheet 1. Adjusted Basis of Home Sold Illustrated Example 1 for Peter and Betty Clark
Worksheet 2. Gain or (Loss), Exclusion, and Taxable Gain on Sale of Home Illustrated Example 1 for Peter and Betty Clark
Worksheet 2. Gain or (Loss), Exclusion, and Taxable Gain on Sale of Home Illustrated Example 2 for Peter and Betty Clark
Example - Schedule D for Pete and Betty Clark
Example —
Worksheet 1. Adjusted Basis of Home Sold Illustrated Example 3 for Emily White
Worksheet 2. Gain or (Loss), Exclusion, and Taxable Gain on Sale of Home Illustrated Example 3 for Emily White
Schedule D for Emily White

Special Situations

Expatriates
Home destroyed or condemned
Sale of remainder interest
Exception for sales to related persons

Deducting Taxes in the Year of Sale

Real estate taxes
Example —
More information
Transfer taxes

Recapturing (Paying Back) a Federal Mortgage Subsidy

Loans subject to recapture rules
Federal subsidy benefit
Sale or other disposition
When the recapture applies
When recapture does not apply
Notice of amounts
How to figure and report the recapture

Selling Your Home, Publication 523 (2007)

What's New

New rule for employees of the intelligence community. If you are an employee of the intelligence community, you may be able to exclude from income a gain from selling your main home, even if you did not live in it for the required 2 years during the 5-year period ending on the date of sale. This choice applies to any sale of a main home after December 20, 2006. For more information, see Members of the uniformed services or Foreign Service or employees of the intelligence community under Period of Ownership and Use, later.

Vacant land used as part of main home destroyed by a hurricane. You may qualify to exclude from income gain from the sale of vacant land you owned and used as part of your main home that was destroyed by Hurricanes Katrina, Rita, or Wilma, if you sell vacant land within 3 years (instead of 2 years) from the date of destruction. For more information, see Vacant land under Main Home, later.

Reminders

Gulf Opportunity Zone Act of 2005 (Act). This Act provides tax relief for persons affected by Hurricanes Katrina, Rita, and Wilma. Under this Act, the rules for recapture of a federal mortgage subsidy have changed if you received a qualified home improvement loan (QHIL) funded by a qualified mortgage bond that is a qualified Gulf Opportunity Zone Bond or a QHIL for an owner-occupied home in the Gulf Opportunity Zone (GO Zone), Rita GO Zone, or Wilma GO Zone. For more information, see Recapturing (Paying Back) a Federal Mortgage Subsidy, later.

Credits affecting the basis of a home. If you claimed the nonbusiness energy property credit or the residential energy efficient property credit, you must decrease the basis of your home by the amount of the credit claimed. See Adjusted Basis, later. For more information about these credits, see also Form 5695, Residential Energy Credits.

Change of address. If you change your mailing address, be sure to notify the Internal Revenue Service (IRS) using Form 8822, Change of Address. Mail it to the Internal Revenue Service Center for your old address. (Addresses for the Service Centers are on the back of the form.)

Home sold with undeducted points. If you have not deducted all the points you paid to secure a mortgage on your old home, you may be able to deduct the remaining points in the year of sale. See Points in Part I of Publication 936, Home Mortgage Interest Deduction.

Photographs of missing children. The Internal Revenue Service is a proud partner with the National Center for Missing and Exploited Children. Photographs of missing children selected by the Center may appear in this publication on pages that would otherwise be blank. You can help bring these children home by looking at the photographs and calling 1-800-THE-LOST (1-800-843-5678) if you recognize a child.

Introduction

This publication explains the tax rules that apply when you sell your main home. Generally, your main home is the one in which you live most of the time.

If you sold your main home in 2007, you may be able to exclude from income any gain up to a limit of $250,000 ($500,000 on a joint return in most cases). See Excluding the Gain, later. If you can exclude all of the gain, you do not need to report the sale on your tax return.

If you have gain that cannot be excluded, it is taxable. Report it on Schedule D (Form 1040). You may also have to include Form 4797, Sales of Business Property. See Reporting the Sale, later.

If you have a loss on the sale, you cannot deduct it on your return.

The main topics in this publication are:

Other topics include:

Worksheets

This publication includes worksheets you can use to figure your gain (or loss) and your exclusion. Use Worksheet 1 to figure the adjusted basis of the home you sold. Use Worksheet 2 to figure the gain (or loss), the exclusion, and the taxable gain (if any) on the sale. In some situations, you may also need to use Worksheet 3 to figure a reduced maximum exclusion.

Date of sale

If you received a Form 1099-S, Proceeds From Real Estate Transactions, the date of sale should be shown in box 1. If you did not receive this form, the date of sale is the earlier of (a) the date title transferred or (b) the date the economic burdens and benefits of ownership shifted to the buyer. In most cases, these dates are the same.

What is not covered in this publication

This publication does not cover the sale of rental property, second homes, or vacation homes. For information on how to report any gain or loss from those sales, see Publication 544, Sales and Other Dispositions of Assets.

Useful Items - You may want to see:

Publication
Form (and Instructions)

See How To Get Tax Help, near the end of this publication, for information about getting these publications and forms.

Main Home

This section explains the term “main home.” Usually, the home you live in most of the time is your main home and can be a:

To exclude gain under the rules in this publication, you generally must have owned and lived in the property as your main home for at least 2 years during the 5-year period ending on the date of sale.

Land

If you sell the land on which your main home is located, but not the house itself, you cannot exclude any gain you have from the sale of the land.

Example —

You sell the land on which your main home is located. You buy another piece of land and move your house to it. This sale is not considered a sale of your main home, and you cannot exclude any gain on the sale of the land.

Vacant land

The sale of vacant land is not a sale of your main home unless:

If these requirements are met, the sale of the home and the sale of the vacant land are treated as one sale and only one maximum exclusion can be applied to any gain. See Excluding the Gain, later. The destruction of your home is treated as a sale of your home. Therefore, you may be able to meet these requirements if you sell vacant land used as a part of your main home within 2 years from the date of the destruction of your main home (3 years if your main home was destroyed as a result of Hurricanes Katrina, Rita, or Wilma.
More than one home

If you have more than one home, you can exclude gain only from the sale of your main home. You must include in income gain from the sale of any other home. If you have two homes and live in both of them, your main home is ordinarily the one you live in most of the time.

Example —

You own and live in a house in the city. You also own a beach house, which you use during the summer months. The house in the city is your main home.

Example —

You own a house, but you live in another house that you rent. The rented house is your main home.

Factors used to determine main home

In addition to the amount of time you live in each home, other factors are relevant in determining which home is your main home. Those factors include the following.

  1. Your place of employment.
  2. The location of your family members' main home.
  3. Your mailing address for bills and correspondence.
  4. The address listed on your:
    1. Federal and state tax returns,
    2. Driver's license,
    3. Car registration, and
    4. Voter registration card.
  5. The location of the banks you use.
  6. The location of recreational clubs and religious organizations in which you are a member.
Property used partly as your main home

If you use only part of the property as your main home, the rules discussed in this publication apply only to the gain or loss on the sale of that part of the property. For details, see Business Use or Rental of Home, later.

Figuring Gain or Loss

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
Amount realized
- Adjusted basis
Gain or loss

Selling Price

The selling price is the total amount you receive for your home. It includes money; all notes, mortgages, or other debts assumed by the buyer as part of the sale; and the fair market value of any other property or any services you receive.

Personal property

The selling price of your home does not include amounts you received for personal property sold with your home. Personal property is property that is not a permanent part of the home. Examples are furniture, draperies, rugs, a washer and dryer, and lawn equipment. Separately stated amounts you received for these items should not be shown on Form 1099-S (discussed later). Any gains from sales of personal property must be included in your income.

Payment by employer

You may have to sell your home because of a job transfer. If your employer pays you for a loss on the sale or for your selling expenses, do not include the payment as part of the selling price. Your employer will include it as wages in box 1 of your Form W-2 and you will include it on Form 1040, line 7, or on Form 1040NR, line 8.

Option to buy

If you grant an option to buy your home and the option is exercised, add the amount you receive for the option to the selling price of your home. If the option is not exercised, you must report the amount as ordinary income in the year the option expires. Report this amount on Form 1040, line 21, or on Form 1040NR, line 21. Form 1099-S. If you received Form 1099-S, Proceeds From Real Estate Transactions, box 2 (gross proceeds) should show the total amount you received for your home. However, box 2 will not include the fair market value of any property other than cash or notes, or any services, you received or will receive. Instead, box 4 will be checked to indicate your receipt or expected receipt of these items. If you can exclude the entire gain, the person responsible for closing the sale generally will not have to report it on Form 1099-S. If you do not receive Form 1099-S, use sale documents and other records to figure the total amount you received for your home.

Amount Realized

The amount realized is the selling price minus selling expenses.

Selling expenses

Selling expenses include:

Adjusted Basis

While you owned your home, you may have made adjustments (increases or decreases) to the basis. This adjusted basis must be determined before you can figure gain or loss on the sale of your home. For information on how to figure your home's adjusted basis, see Determining Basis, later.

Amount of Gain or Loss

To figure the amount of gain or loss, compare the amount realized to the adjusted basis.

Gain on sale

If the amount realized is more than the adjusted basis, the difference is a gain and, except for any part you can exclude, generally is taxable.

Loss on sale

If the amount realized is less than the adjusted basis, the difference is a loss. A loss on the sale of your main home cannot be deducted.

Jointly owned home

If you and your spouse sell your jointly owned home and file a joint return, you figure your gain or loss as one taxpayer.

Separate returns

If you file separate returns, each of you must figure your own gain or loss according to your ownership interest in the home. Your ownership interest is determined by state law.

Joint owners not married

If you and a joint owner other than your spouse sell your jointly owned home, each of you must figure your own gain or loss according to your ownership interest in the home. Each of you applies the rules discussed in this publication on an individual basis.

Other Dispositions

The following rules apply to foreclosures and repossessions, abandonments, trades, transfers to a spouse, and involuntary conversions (such as when your home is destroyed or condemned).

Foreclosure or repossession

If your home was foreclosed on or repossessed, you have a sale. You figure the gain or loss from the sale in generally the same way as gain or loss from any sale. But the selling price of your home used to figure the amount of your gain or loss depends, in part, on whether you were personally liable for repaying the debt secured by the home, as shown in the following chart.

IF you were...THEN your selling price includes...
not personally liable for the debt the full amount of debt canceled by the foreclosure or repossession.
personally liable for the debt the amount of canceled debt up to the home's fair market value. You may also have ordinary income, as explained next.
Ordinary income

If you were personally liable for the canceled debt, you may have ordinary income in addition to any gain or loss. If the canceled debt is more than the home's fair market value, you have ordinary income equal to the difference. Report that income on Form 1040, line 21, or on Form 1040NR, line 21. However, the income from cancellation of debt is not taxed to you if the cancellation is intended as a gift, or if you are insolvent or bankrupt. For more information on insolvency or bankruptcy, see Publication 908, Bankruptcy Tax Guide. Form 1099-A and Form 1099-C. Generally, you will receive Form 1099-A, Acquisition or Abandonment of Secured Property, from your lender if your home is transferred in a foreclosure. This form will have the information you need to determine the amount of your gain or loss and any ordinary income from cancellation of debt. If your debt is canceled, you may receive Form 1099-C, Cancellation of Debt.

More information

If part of your home is used for business or rental purposes, see Foreclosures and Repossessions in chapter 1 of Publication 544 for more information. Publication 544 has examples of how to figure gain or loss on a foreclosure or repossession.

Abandonment

If you abandon your home, you may have ordinary income. If the abandoned home secures a debt for which you are personally liable and the debt is canceled, you have ordinary income equal to the amount of canceled debt. If the home is secured by a loan and the lender knows the home has been abandoned, the lender should send you Form 1099-A or Form 1099-C. See Foreclosure or repossession, earlier, for information about those forms. If the home is later foreclosed on or repossessed, gain or loss is figured as explained in that discussion.

Trading homes

If you trade your old home for another home, treat the trade as a sale and a purchase.

Example —

You owned and lived in a home with an adjusted basis of $41,000. A real estate dealer accepted your old home as a trade-in and allowed you $50,000 toward a new home priced at $80,000. This is treated as a sale of your old home for $50,000 with a gain of $9,000 ($50,000 - $41,000).

If the dealer had allowed you $27,000 and assumed your unpaid mortgage of $23,000 on your old home, your sales price would still be $50,000 (the $27,000 trade-in allowed plus the $23,000 mortgage assumed).

Transfer to spouse

If you transfer your home to your spouse, or to your former spouse incident to your divorce, you generally have no gain or loss (unless the Exception, discussed next, applies). This is true even if you receive cash or other consideration for the home. Therefore, the rules explained in this publication do not apply. If you owned your home jointly with your spouse and transfer your interest in the home to your spouse, or to your former spouse incident to your divorce, the same rule applies. You have no gain or loss.

Exception

These transfer rules do not apply if your spouse or former spouse is a nonresident alien. In that case, you generally will have a gain or loss.

More information

See Property Settlements in Publication 504, Divorced or Separated Individuals, if you need more information.

Destruction or condemnation

You have a sale when your home is destroyed or condemned and you receive other property or money in payment, such as insurance or a condemnation award. You may be able to exclude all or part of any gain from the destruction or condemnation of your home as explained later in the discussion about a home that was destroyed or condemned under Special Situations.

Determining Basis

You need to know your basis in your home to determine any gain or loss when you sell it. Your basis in your home is determined by how you got the home. Your basis is its cost if you bought it or built it. If you got it in some other way (inheritance, gift, etc.), its basis is either its fair market value when you got it or the adjusted basis of the person you got it from.

While you owned your home, you may have made adjustments (increases or decreases) to your home's basis. The result of these adjustments is your home's adjusted basis, which is used to figure gain or loss on the sale of your home.

To figure your adjusted basis, you can use Worksheet 1, shown later. Filled-in examples of that worksheet are included in the Comprehensive Examples, later.

Cost As Basis

The cost of property is the amount you pay for it in cash, debt obligations, other property, or services.

Purchase

If you buy your home, your basis is its cost to you. This includes the purchase price and certain settlement or closing costs. Generally, your purchase price includes your down payment and any debt, such as a first or second mortgage or notes you gave the seller in payment for the home. If you build, or contract to build, a new home, your purchase price can include costs of construction, as discussed later. Seller-paid points. If the person who sold you your home paid points on your loan, you may have to reduce your home's basis by the amount of the points as shown in the following chart.

IF you bought your home...THEN reduce your home's basis by the seller-paid points...
after 1990 but before April 4, 1994 only if you deducted them as home mortgage interest in the year paid.
after April 3, 1994 even if you did not deduct them.
If you must reduce your basis by seller-paid points and you use Worksheet 1 to figure your adjusted basis, enter the seller-paid points on line 2 of the worksheet (unless you used the seller-paid points to reduce the amount on line 1).
Settlement fees or closing costs

When you bought your home, you may have paid settlement fees or closing costs in addition to the contract price of the property. You can include in your basis some of the settlement fees and closing costs you paid for buying the home. You cannot include in your basis the fees and costs for getting a mortgage loan. A fee paid for buying the home is any fee you would have had to pay even if you paid cash for the home (that is, without the need for financing). Settlement fees do not include amounts placed in escrow for the future payment of items such as taxes and insurance. Some of the settlement fees or closing costs that you can include in your basis are:

  1. Abstract fees (abstract of title fees),
  2. Charges for installing utility services,
  3. Legal fees (including fees for the title search and preparing the sales contract and deed),
  4. Recording fees,
  5. Survey fees,
  6. Transfer or stamp taxes,
  7. Owner's title insurance, and
  8. Any amounts the seller owes that you agree to pay, such as:
    1. Certain real estate taxes (discussed later),
    2. Back interest,
    3. Recording or mortgage fees,
    4. Charges for improvements or repairs, and
    5. Sales commissions.
Some settlement fees and closing costs you cannot include in your basis are:
  1. Fire insurance premiums,
  2. Rent for occupancy of the house before closing,
  3. Charges for utilities or other services related to occupancy of the house before closing,
  4. Any fee or cost that you deducted as a moving expense (allowed for certain fees and costs before 1994),
  5. Charges connected with getting a mortgage loan, such as:
    1. Mortgage insurance premiums (including funding fees connected with loans guaranteed by the Department of Veterans Affairs),
    2. Loan assumption fees,
    3. Cost of a credit report,
    4. Fee for an appraisal required by a lender, and
  6. Fees for refinancing a mortgage.
Real estate taxes

Real estate taxes for the year you bought your home may affect your basis, as shown in the following chart.

IF...AND...THEN the taxes...
you pay taxes that the seller owed on the home (the taxes up to the date of sale) the seller does not reimburse you are added to the basis of your home.
the seller reimburses you do not affect the basis of your home.
the seller paid taxes for you (the taxes beginning on the date of sale) you do not reimburse the seller are subtracted from the basis of your home.
you reimburse the seller do not affect the basis of your home.
Construction

If you contracted to have your house built on land you own, your basis is:

  1. The cost of the land, plus
  2. The amount it cost you to complete the house, including:
    1. The cost of labor and materials,
    2. Any amounts paid to a contractor,
    3. Any architect's fees,
    4. Building permit charges,
    5. Utility meter and connection charges, and
    6. 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 may have to reduce your basis by points the seller paid for you. For more information, see Seller-paid points and Settlement fees or closing costs, earlier.
Built by 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:

Temporary housing

If a builder gave you temporary housing while your home was being finished, you must reduce your basis by the part of the contract price that was for the temporary housing. To figure the amount of the reduction, multiply the contract price by a fraction. The numerator is the value of the temporary housing, and the denominator is the sum of the value of the temporary housing plus the value of the home.

Cooperative apartment

If you are a tenant-stockholder in a cooperative housing corporation, your basis in the cooperative apartment used as your home is usually the cost of your stock in the corporation. This may include your share of a mortgage on the apartment building.

Condominium

To determine your basis in a condominium apartment used as your home, use the same rules as for any other home.

Basis Other Than Cost

You must use a basis other than cost, such as fair market value, if you got your home as a gift, from your spouse, as an inheritance, or in a trade. If you got your home in any of these ways, see the following discussion that applies to you. If you want to figure your adjusted basis using Worksheet 1, see the Worksheet 1 Instructions, later, for help.

Fair market value

Fair market value is the price at which property would change hands between a willing buyer and a willing seller, neither having to buy or sell, and both having reasonable knowledge of all necessary facts. Sales of similar property, on or about the same date, may be helpful in figuring the fair market value of the property.

Home received as gift

Use the following chart to find the basis of a home you received as a gift.

IF the donor's adjusted basis at the time of the gift was...THEN your basis is...
more than the fair market value of the home at that time the same as the donor's adjusted basis at the time of the gift.

Exception: If using the donor's adjusted basis results in a loss when you sell the home, you must use the fair market value of the home at the time of the gift as your basis. If using the fair market value results in a gain, you have neither gain nor loss.
equal to or less than the fair market value at that time, and you received the gift before 1977 the smaller of the:
• donor's adjusted basis, plus
any federal gift tax paid on
the gift, or
• the home's fair market value
at the time of the gift.
equal to or less than the fair market value at that time, and you received the gift after 1976 the same as the donor's adjusted basis, plus the part of any federal gift tax paid that is due to the net increase in value of the home (explained next).
Part of federal gift tax due to net increase in value

Figure the part of the federal gift tax paid that is due to the net increase in value of the home by multiplying the total federal gift tax paid by a fraction. The numerator of the fraction is the net increase in the value of the home, and the denominator is the value of the home for gift tax purposes after reduction by any annual exclusion and marital or charitable deduction that applies to the gift. The net increase in the value of the home is its fair market value minus the donor's adjusted basis.

Home received from spouse

If you received your home from your spouse or from your former spouse incident to your divorce, your basis in the home depends on the date of the transfer.

Transfers after July 18, 1984

If you received the home after July 18, 1984, there was no gain or loss on the transfer. Your basis in this home is generally the same as your spouse's (or former spouse's) adjusted basis just before you received it. This rule applies even if you received the home in exchange for cash, the release of marital rights, the assumption of liabilities, or other considerations. If you owned a home jointly with your spouse and your spouse transferred his or her interest in the home to you, your basis in the half interest received from your spouse is generally the same as your spouse's adjusted basis just before the transfer. This also applies if your former spouse transferred his or her interest in the home to you incident to your divorce. Your basis in the half interest you already owned does not change. Your new basis in the home is the total of these two amounts.

Transfers before July 19, 1984

If you received your home before July 19, 1984, in exchange for your release of marital rights, your basis in the home is generally its fair market value at the time you received it.

More information

For more information on property received from a spouse or former spouse, see Property Settlements in Publication 504.

Home received as inheritance

If you inherited your home, your basis is its fair market value on the date of the decedent's death or the later alternate valuation date if that date was chosen by the personal representative for the estate. If an estate tax return was filed, the value listed for the property generally is your basis. If a federal estate tax return did not have to be filed, your basis in the home is the same as its appraised value at the date of death for purposes of state inheritance or transmission taxes.

Surviving spouse

If you are a surviving spouse and you owned your home jointly, your basis in the home will change. The new basis for the half interest that your spouse owned will be one-half of the fair market value on the date of death (or alternate valuation date). The basis in your half will remain one-half of the adjusted basis determined previously. Your new basis in the home is the total of these two amounts.

Example —

Your jointly owned home 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).

Community property

In community property states (Arizona, California, Idaho, Louisiana, Nevada, New Mexico, Texas, Washington, and Wisconsin), each spouse is usually considered to own half of the community property. When either spouse dies, the total fair market value of the community property generally becomes the basis of the entire property, including the part belonging to the surviving spouse. For this to apply, at least half the value of the community property interest must be includible in the decedent's gross estate, whether or not the estate must file a return. For more information about community property, see Publication 555, Community Property.

Home received as trade

If you acquired your home as a trade for other property, the basis of your home is generally the fair market value of the other property at the time of the trade. If you traded one home for another, you have made a sale and purchase. In that case, you may have realized a gain. See Trading homes, earlier, for an example of figuring the gain.

Home destroyed or condemned

If you acquired your home with insurance proceeds or a condemnation award that you received as a result of an involuntary conversion, such as when your home is destroyed or condemned, the basis of your replacement home is its cost decreased by any gain not recognized on the conversion under the rules explained in:

.
Example —

A fire destroyed your home that you owned and used for only 6 months. The home had an adjusted basis of $80,000 and the insurance company paid you $130,000 for the loss. You realized a gain of $50,000 ($130,000 - $80,000). You bought a replacement home for $100,000. You recognize a gain of $30,000 ($130,000 - $100,000), the unspent part of the payment from the insurance company. Your gain not recognized is $20,000, the difference between the $50,000 realized gain and the $30,000 recognized gain. The basis of the new home is figured as follows:

Cost of replacement home $100,000
Minus: Gain not recognized 20,000
Basis of the replacement home$80,000
More information

For more information about basis, see Publication 551.

Adjusted Basis

Adjusted basis is your basis increased or decreased by certain amounts.

To figure your adjusted basis, you can use Worksheet 1, shown later. Filled-in examples of that worksheet are included in Comprehensive Examples, later.

Increases to basis

These include any:

Decreases to basis

These include any:

Improvements

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 other improvements to the basis of your property.

Example —

Putting a recreation room or another bathroom in your unfinished basement, putting up a new fence, putting in new plumbing or wiring, putting on a new roof, or paving your unpaved driveway are improvements. An addition to your house, such as a new deck, a sunroom, or a new garage, is also an improvement.

The following chart lists some other examples of improvements.
Additions
Bedroom
Bathroom
Deck
Garage
Porch
Patio
Heating & Air Conditioning
Heating system
Central air conditioning
Furnace
Duct work
Central humidifier
Filtration system
Lawn & Grounds
Landscaping
Driveway
Walkway
Fence
Retaining wall
Sprinkler system
Swimming pool

Miscellaneous
Storm windows, doors
New roof
Central vacuum
Wiring upgrades
Satellite dish
Security system

Plumbing
Septic system
Water heater
Soft water system
Filtration system

Interior
Improvements
Built-in appliances
Kitchen modernization
Flooring
Wall-to-wall carpeting

Insulation
Attic
Walls
Floors
Pipes and duct work
Improvements no longer part of home

Your home's adjusted basis does not include the cost of any improvements that are replaced and are no longer part of the home.

Example —

You put wall-to-wall carpeting in your home 15 years ago. Later, you replaced that carpeting with new wall-to-wall carpeting. The cost of the old carpeting you replaced is no longer part of your home's adjusted basis.

Repairs

These maintain your home in good condition but do not add to its value or prolong its life. You do not add their cost to the basis of your property.

Example —

Repainting your house inside or outside, fixing your gutters or floors, repairing leaks or plastering, and replacing broken window panes are examples of repairs.

Exception

The entire job is considered an improvement if items that would otherwise be considered repairs are done as part of an extensive remodeling or restoration of your home. For example, if you have a casualty and your home is damaged, increase your basis by the amount you spend on repairs that restore the property to its pre-casualty condition. Recordkeeping. You should keep records to prove your home's adjusted basis. Ordinarily, you must keep records for 3 years after the due date for filing your return for the tax year in which you sold your home. But if you sold a home before May 7, 1997, and postponed tax on any gain, the basis of that home affects the basis of the new home you bought. Keep records proving the basis of both homes as long as they are needed for tax purposes.

The records you should keep include:

Excluding the Gain

You 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, shown later, to figure the amount of your exclusion and your taxable gain, if any.

If you have any amount of 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.

Maximum Exclusion

You can exclude up to $250,000 of the gain on the sale of your main home if all of the following are true.

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 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.

Ownership and Use Tests

To 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:

Exception

If 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. The maximum amount you may be able to exclude will be reduced. See Reduced Maximum Exclusion, later.

Example —

Amanda bought and moved into her main home in September 2004. She sold the home at a gain on September 15, 2007. During the 5-year period ending on the date of sale (September 16, 2002 - September 15, 2007), she owned and lived in the home for 3 years. She meets the ownership and use tests.

Example —

Dan bought a home in 2001. 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, 2007. He owned the home during the entire 5-year period ending on the date of sale (June 29, 2002 - June 28, 2007). 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).

Period of Ownership and Use

The 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.

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.

Worksheet 1 Instructions.
If you use Worksheet 1 to figure the adjusted basis of your home, follow these instructions.
IF...THEN...
you inherited your home 1 skip lines 1-4 of the worksheet.
2 find your basis using the rules under Home received as inheritance. Enter this amount on line 5 of the worksheet.
3 fill out the rest of the worksheet.
you received your home as a gift 1 read Home received as gift and enter on lines 1 and 3 of the worksheet either the donor's adjusted basis or the home's fair market value at the time of the gift, whichever is appropriate.
2 if you can add any federal gift tax to your basis, enter that amount on line 5 of the worksheet.
3 fill out the rest of the worksheet.
you received your home as a trade for other property 1 enter on line 1 of the worksheet the fair market value of the other property. (But if you received your home as a trade for your previous home before May 7, 1997, and had a gain on the trade that you postponed using Form 2119, enter on line 1 of the worksheet the adjusted basis of the new home from that Form 2119.)
2 fill out the rest of the worksheet.
you built your home 1 add the purchase price of the land and the cost of building the home. See Construction. Enter that total on line 1 of the worksheet. (However, if you filed a Form 2119 to postpone gain on the sale of a previous home before May 7, 1997, enter on line 1 of the worksheet the adjusted basis of the new home from that Form 2119.)
2 fill out the rest of the worksheet.
you received your home from your spouse after July 18, 1984 1 skip lines 1-4 of the worksheet.
2 enter on line 5 of the worksheet your spouse's adjusted basis in the home just before you received it.
3 fill out the rest of the worksheet, making adjustments to basis only for events after the transfer.
you owned a home jointly with your spouse, who transferred his or her interest in the home to you after July 18, 1984
fill out one worksheet, including adjustments to basis for events both before and after the transfer.
you received your home from your spouse before July 19, 1984 1 skip lines 1-4 of the worksheet.
2 enter on line 5 of the worksheet the home's fair market value at the time you received it.
3 fill out the rest of the worksheet, making adjustments to basis only for events after the transfer.
you owned a home jointly with your spouse, who transferred his or her interest in the home to you before July 19, 1984 1 fill out a worksheet, lines 1-13, making adjustments to basis only for events before the transfer.
2 multiply the amount on line 13 of that worksheet by one-half (0.5) to get the adjusted basis of your half-interest at the time of the transfer.
3 multiply the fair market value of the home at the time of the transfer by one-half (0.5). Generally, this is the basis of the half-interest that your spouse owned.
4 add the amounts from steps 2 and 3 and enter the total on line 5 of a second worksheet.
5 complete the rest of the second worksheet, making adjustments to basis only for events after the transfer.
Worksheet 1 Instructions.(Continued)
IF...THEN...
you owned your home jointly with your spouse who died 1 fill out a worksheet, lines 1-13, making adjustments to basis only for events before your spouse's death.
2 multiply the amount on line 13 of that worksheet by one-half (0.5) to get the adjusted basis of your half-interest on the date of death.
3 use the rules under Surviving spouse to find the basis for the half-interest owned by your spouse.
4 add the amounts from steps 2 and 3 and enter the total on line 5 of a second worksheet.
5 complete the rest of the second worksheet, making adjustments to basis only for events after your spouse's death.
you owned your home jointly with your spouse who died, and your permanent home is in a community property state 1 skip lines 1-4 of the worksheet.
2 enter the amount of your basis on line 5 of the worksheet. Generally, this is the total fair market value of the home at the time of death. (See Community property.)
3 fill out the rest of the worksheet, making adjustments to basis only for events after your spouse's death.
your home was ever damaged as a result of a casualty 1 on line 8 of the worksheet, enter any amounts you spent to restore the home to its condition before the casualty.
2 on line 11 enter:
any insurance reimbursements you received (or expect to receive) for the loss, and
any deductible casualty losses not covered by insurance.
none of these items apply fill out the entire worksheet.
Worksheet 1. Adjusted Basis of Home Sold
Caution:See the Worksheet 1 Instructions before you use this worksheet.
1.Enter the purchase price of the home sold. (If you filed Form 2119 when you originally acquired that home to postpone gain on the sale of a previous home before May 7, 1997, enter the adjusted basis of the new home from that Form 2119.) 1.
2.Seller-paid points for home bought after 1990. (See Seller-paid points.) Do not include any seller-paid points you already subtracted to arrive at the amount entered on line 1 2.
3.Subtract line 2 from line 1 3.
4.Settlement fees or closing costs. (See Settlement fees or closing costs.) If line 1 includes the adjusted basis of the new home from Form 2119, go to line 6.
a.Abstract and recording fees 4a.
b.Legal fees (including fees for title search and preparing documents) 4b.
c.Survey fees 4c.
d.Title insurance 4d.
e.Transfer or stamp taxes 4e.
f.Amounts that the seller owed that you agreed to pay (back taxes or interest, recording or mortgage fees, and sales commissions)
4f.
g.Other 4g.
5.Add lines 4a through 4g 5.
6.Cost of additions and improvements. Do not include any additions and improvements included on line 1 6.
7.Special tax assessments paid for local improvements, such as streets and sidewalks 7.
8.Other increases to basis 8.
9.Add lines 3, 5, 6, 7, and 8 9.
10.Depreciation allowed or allowable, related to the business use or rental of the home 10.
11.Other decreases to basis (See Decreases to basis.) 11.
12.Add lines 10 and 11 12.
13.Adjusted basis of home sold. Subtract line 12 from line 9. Enter here and on Worksheet 2, line 4 13.
Worksheet 2. Gain or (Loss), Exclusion, and Taxable Gain on Sale of Home
Part 1 - Gain or (Loss) on Sale
1. Selling price of home 1.
2. Selling expenses (including commissions, advertising and legal fees, and seller-paid loan charges) 2.
3. Subtract line 2 from line 1. This is the amount realized 3.
4. Adjusted basis of home sold (from Worksheet 1, line 13) 4.
5. Subtract line 4 from line 3. This is the gain or (loss) on the sale. If this is a loss, stop here 5.
Part 2 - Exclusion and Taxable Gain
6. Enter any depreciation allowed or allowable on the property for periods after May 6, 1997. If none, enter -0-. 6.
7. Subtract line 6 from line 5. (If the result is less than zero, enter -0-.) 7.
8. If you qualify to exclude gain on the sale, enter your maximum exclusion. (See Maximum Exclusion.) If you qualify for a reduced maximum exclusion, enter the amount from Worksheet 3, line 7. If you do not qualify to exclude gain, enter -0- 8.
9. Enter the smaller of line 7 or line 8. This is your exclusion9.
10. Subtract line 9 from line 5. This is your taxable gain. Report it as described under Reporting the Sale. If the amount on this line is zero, do not report the sale or exclusion on your tax return. If the amount on line 6 is more than zero, complete line 1110.
11. Enter the smaller of line 6 or line 10. Enter this amount on line 12 of the Unrecaptured Section 1250 Gain Worksheet in the instructions for Schedule D (Form 1040) 11.
Example —

Susan bought and moved into a house in July 2003. She lived there for 13 months and then moved in with a friend. She moved back into her own house in 2006 and lived there for 12 months until she sold it in July 2007. Susan meets the ownership and use tests because, during the 5-year period ending on the date of sale, she owned the house for 4 years and lived in it for a total of 25 (13 + 12) months.

Temporary absence

Short 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.

Example —

David Johnson, who is single, bought and moved into his home on February 1, 2005. Each year during 2005 and 2006, David left his home for a 2-month summer vacation. David sold the house on March 1, 2007. Although the total time David used his home is less than 2 years (21 months), he may exclude any gain up to $250,000. 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.

Example —

Professor Paul Beard, who is single, bought and moved into a house on August 28, 2004. He lived in it as his main home continuously until January 5, 2006, when he went abroad for a 1-year sabbatical leave. On February 6, 2007, 1 month after returning from the 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.

Ownership and use tests met at different times

You 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.

Example —

In 1998, Helen Jones lived in a rented apartment. The apartment building was later changed to a condominium, and she bought her apartment on December 3, 2004. In 2005, Helen became ill and on April 14 of that year she moved to her daughter's home. On July 12, 2007, while still living in her daughter's home, she sold her apartment.

Helen can exclude gain on the sale of her apartment because she met the ownership and use tests during the 5-year period from July 13, 2002, to July 12, 2007, the date she sold the apartment. She owned her apartment from December 3, 2004, to July 12, 2007 (more than 2 years). She lived in the apartment from July 13, 2002 (the beginning of the 5-year period), to April 14, 2005 (more than 2 years).

The time Helen lived in her daughter's home during the 5-year period can be counted as a period of ownership, and the time she lived in her rented apartment during the 5-year period can be counted as a period of use.

Cooperative apartment

If you sold stock 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:

Members of the uniformed services or Foreign Service or employees 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 on “qualified official extended duty” as a member of the uniformed services or Foreign Service of the United States or as an employee of the intelligence community. 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.

Example —

David bought and moved into a home in 1999. 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 2007. To meet the use test, David 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, David'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.

Period of suspension

The 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.

Example —

Mary bought a home on April 1, 1991. She used it as her main home until September 1, 1994, when she went on qualified official extended duty with the Navy. She did not live in the house again before selling it on August 1, 2007. Mary chooses to use the entire 10-year suspension period. Therefore, the suspension period would extend back from August 1, 2007, to August 1, 1997, and the 5-year test period would extend back to August 1, 1992. During that period, Mary owned the house all 5 years and lived in it as her main home from August 1, 1992, until September 1, 1994, a period of 25 months. She meets the ownership and use tests because she owned and lived in the home for 2 years during this test period.

Uniformed services

The uniformed services are:

Foreign Service member

For 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.

Employee of the intelligence community

For 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.

Qualified official extended duty

You are on qualified official extended duty if you serve on extended duty either:

If you are a member of the intelligence community, you must serve on extended duty at a duty station that is located outside the United States. 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.
Exception for individuals with a disability

There is an exception to the use test if, 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 that you own the home and live in a facility (including a nursing home) that is 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.
Previous home destroyed or condemned

For 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 home on whose sale which 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. 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.

Married Persons

If you and your spouse file a joint return for the year of sale, you can exclude gain if either spouse meets the ownership and use tests. (But see Special rules for joint returns, next.)

Special rules for joint returns

You can exclude up to $500,000 of the gain on the sale of your main home if all of the following are true.

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.
Example —

Emily sells her home in June 2007. 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 2007. The $500,000 maximum exclusion for certain joint returns does not apply because Jamie does not meet the use test.

Example —

The facts are the same as in Example 1 except that Jamie also sells a home in 2007 before he marries Emily. He meets the ownership and use tests on his home, but Emily does not. Emily and Jamie can each exclude up to $250,000 of gain. The $500,000 maximum exclusion for certain joint returns does not apply because Emily and Jamie do not jointly meet the use test for the same home.

Death of spouse before sale

If 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.

Home transferred from spouse

If 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.

Use of home after divorce

You are considered to have used property as your main home during any period when:

Reduced Maximum Exclusion

You can claim an exclusion, but the maximum amount of gain you can exclude will be reduced if either of the following is true.

  1. You did not meet the ownership and use tests, but the reason you sold the home was:
    1. A change in place of employment,
    2. Health, or
    3. Unforeseen circumstances (as defined later).
  2. Your exclusion would have been disallowed because of the rule described in More Than One Home Sold During 2-Year Period, later, except that the reason you sold the home was:
    1. A change in place of employment,
    2. Health, or
    3. Unforeseen circumstances (as defined later).

Use Worksheet 3, shown later, to figure your reduced maximum exclusion.

A change in place of employment, health, or unforeseen circumstances (whichever applies) is considered to be the reason you sold your home if either of the following is true.

  1. Your home sale qualifies under a “safe harbor.” A safe harbor is a set of certain facts and circumstances that, if applicable, qualifies you to claim a reduced maximum exclusion. There are safe harbors for each of the three reasons you sold your home for which a reduced maximum exclusion may be claimed. The safe harbors are explained in detail later in the following discussions covering each of these reasons under Distance safe harbor, Doctor's recommendation safe harbor, and Specific event safe harbors.
  2. The primary reason you sold the home was a change in place of employment, health, or unforeseen circumstances. Factors that may be relevant in determining your primary reason for sale include whether:
    1. Your sale and the circumstances causing it were close in time,
    2. The circumstances causing your sale occurred during the time you owned and used the property as your main home,
    3. The circumstances causing your sale were not reasonably foreseeable when you began using the property as your main home,
    4. Your financial ability to maintain your home became materially impaired,
    5. The suitability of your property as a home materially changed, and
    6. During the time you owned the property, you used it as your home.

Change in Place of Employment

The sale of your main home is because of a change in place of employment if your primary reason for the sale is a change in the location of employment of a qualified individual.

Qualified individual

For purposes of the reduced maximum exclusion, a qualified individual is any of the following.

Employment

For 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.

Distance safe harbor

A change in place of employment is considered to be the reason you sold your home if:

Example —

Justin was unemployed and living in a townhouse in Florida that he had owned and used as his main home since 2006. He got a job in North Carolina and sold his townhouse in 2007. 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 a reduced maximum exclusion of gain from the sale.

Health

The sale of your main home is because of health if your primary reason for the sale is:

For purposes of this reason, a qualified individual includes, in addition to the individuals listed earlier under Change in Place of Employment, any of the following family members of these individuals.

The sale of your home is not because of health if the sale merely benefits a qualified individual's general health or well-being.

Example —

In 2006, 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 2007, Chase and Lauren sell 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.

Doctor's recommendation safe harbor. Health 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.
Worksheet 3. Reduced Maximum Exclusion
Caution:Complete this worksheet only if you qualify for a reduced maximum exclusion. (See Reduced Maximum Exclusion .) Complete column (A). Fill in both columns (A) and (B) on lines 2 through 6 only if you are married filing a joint return. (A)
You
(B)
Your Spouse
1. Maximum amount 1. $250,000.00 $250,000.00
2a. Enter the number of days (or months) that you used the property as a main home during the 5-year period* ending on the date of sale

2a.
b. Enter the number of days (or months) that you owned the property during the 5-year period* ending on the date of sale. If you used days on line 2a, you also must use days on this line and on lines 3 and 5. If you used months on line 2a, you also must use months on this line and on lines 3 and 5. (If married filing jointly and one spouse owned the property longer than the other spouse, both spouses are treated as owning the property for the longer period.)


b.
c. Enter the smaller of line 2a or 2b c.
3. Have you (or your spouse, if filing jointly) excluded gain from the sale of another home during the 2-year period ending on the date of this sale?
NO. Skip line 3 and enter the number of days (or months) from line 2c on line 4.
YES. Enter the number of days (or months) between the date of the most recent sale of another home on which you excluded gain and the date of sale of this home




3.
4. Enter the smaller of line 2c or 3 4.
5. Divide the amount on line 4 by 730 days (or 24 months). Enter the result as a decimal (rounded to at least 3 places). But do not enter an amount greater than 1.000
5.
6. Multiply the amount on line 1 by the decimal amount on line 5 6.
7. Add the amounts in columns (A) and (B) of line 6. This is your reduced maximum exclusion. Enter it here and on Worksheet 2, line 8
7.
*If you were a member of the uniformed services or Foreign Service or an employee of the intelligence community during the time you owned the home, see Members of the uniformed services or Foreign Service or employees of the intelligence community to determine your 5-year period.

Unforeseen Circumstances

The 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 your main 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 your finances improved.

Specific event safe harbors

Unforeseen circumstances are considered to be the reason you sold your home if any of the following events occurred while you owned and used the property as your main home.

  1. An involuntary conversion of your home, such as when your home is destroyed or condemned.
  2. 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.
  3. In the case of qualified individuals (listed earlier under Change in Place of Employment):
    1. Death,
    2. Unemployment (if the individual is eligible for unemployment compensation),
    3. 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, next) for his or her household,
    4. Divorce or legal separation, or
    5. Multiple births resulting from the same pregnancy.
  4. An event the Commissioner of IRS determined to be an unforeseen circumstance in published guidance of general applicability. For example, the Commissioner determined the September 11, 2001, terrorist attacks to be an unforeseen circumstance.
Reasonable basic living expenses

Reasonable basic living expenses for your household include the following expenses.