Many tax benefits are available to you when you sell your principal residence. However, the rules are complex and personal guidance is necessary to take full advantage of these benefits so that you and your tax advisor can best work together to minimize the tax on the gain. This financial guide discusses the key rules so that you and your tax advisor can best work together to minimize the tax on the gain.
The IRS allows an exclusion of up to $250,000 of the gain on the sale of your main home ($500,000 if you are married and file a joint return. Most taxpayers can take advantage of the exclusion and will not have to pay any tax on the sale of a main home as long as they meet the IRS ownership and use tests (see below).
If you do have a loss from the sale, it is a personal loss. You cannot deduct the loss.
If you don't qualify for the exclusion, your gain exceeds the exclusion, or you used part of the property in business or for rent, you have a taxable gain and must report the sale of your main home on your tax return on IRS Form 8949, Sales and Other Dispositions of Capital Assets and Schedule D, Capital Gains and Losse.
Usually, the home you live in most of the time is your main home. In addition to a standard dwelling unit, your home can also be a houseboat, mobile home, cooperative apartment, or condominium.
Example 1: You own and live in a house in town. You also own beach property, which you use in the summer months. The town property is your main home; the beach property is not.
Example 2: You own a house, but you live in another house that you rent. The rented home is your main home.
Where a second residence has soared in value and you want to sell, some tax advisors have suggested moving to the second residence for the required period to qualify for exclusion on its sale. If this is your situation, please consult with a tax professional.
Key information for determining gain or loss is the selling price, the amount realized, and the adjusted basis.
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. Next, you deduct the selling expenses such as commissions, advertising, legal fees, and loan charges paid by the seller from the selling price.
The difference is the "amount realized." If the amount realized is more than your home's "adjusted basis," discussed later, the difference is your gain. If the amount realized is less than the adjusted basis, the difference is your loss.
However, it 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, such as furniture, draperies, and lawn equipment.
The following discussion covers how to determine your gain or loss if you trade one home for another, if your home is foreclosed on or repossessed or if you transfer a jointly owned home.
Jointly owned home. If you and your spouse sell your jointly owned home and file a joint return, you figure and report your gain or loss as one taxpayer. If you file separate returns, each of you must figure and report your own gain or loss according to your ownership interest in the home. Your ownership interest is determined by state law.
If you and a joint owner other than your spouse sell your jointly owned home, each of you must figure and report your own gain or loss according to your ownership interest in the home. Each of you applies the exclusion rules individual basis.
Trading homes. If you trade your old home for another home, treat the trade as a sale and a purchase.
Foreclosure or repossession. If your home was foreclosed on or repossessed, you have what the IRS calls a disposition and will need to determine if you have ordinary income, gain, or loss. The amount of your gain or loss depends on whether you were personally liable for repaying the debt secured by the home and whether the outstanding loan balance is more than the fair market value (FMV) of the property.
If you were not personally liable for repaying the debt secured by the home, the amount you realize includes the full amount of the outstanding debt immediately before the transfer. This is true even if the FMV of the property is less than the outstanding debt immediately before the transfer.
If you were personally liable for repaying the debt secured by the home and the debt is canceled, the amount realized on the foreclosure or repossession includes the smaller of the outstanding debt immediately before the transfer reduced by any amount for which you remain personally liable immediately after the transfer, or the Fair Market Value (FMV) of the transferred property.
In addition to any gain or loss, if you were personally liable for the debt you may have ordinary income. If the canceled debt is more than the home's fair market value, you have ordinary income equal to the difference. However, the income from the cancellation of debt is not taxed to you if the cancellation is intended as a gift, or if you are insolvent or bankrupt.
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 house priced at $80,000 (its fair market value). You are considered to have sold your old home for $50,000 and to have had a gain of $9,000 ($50,000 minus $41,000). If the dealer had allowed you $27,000 and assumed your unpaid mortgage of $23,000 on your old home, $50,000 would still be considered the sales price of the old home (the trade-in allowed plus the 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, even if you receive cash or other consideration for the home. Therefore, the rules explained in this Guide 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.
If you buy or build a new home, its basis will not be affected by the transfer of your old home to your spouse, or to your former spouse incident to divorce. The basis of the home you transferred will not affect the basis of your new home.
You will need to know your basis in your home as a starting point for determining 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 acquired it in some other way, its basis is either its fair market value when you received it or the adjusted basis of the person you received it from.
While you owned your home, you may have made adjustments (increases or decreases) to the basis. This adjusted basis is used to figure gain or loss on the sale of your home.
The cost of property is the amount you pay for it in cash or other property.
Purchase. If you buy your home, your basis is its cost to you. This includes the purchase price and certain settlement or closing costs. Your cost 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.
Seller-paid points. If you bought your home after April 3, 1994, you must reduce the basis of your home by any points the seller paid, whether or not you deducted them. If you bought your home after 1990 but before April 4, 1994, you must reduce your basis by the amount of seller-paid points only if you chose to deduct them as home mortgage interest in the year paid.
Settlement fees or closing costs. When buying your home, you may have to pay settlement fees or closing costs in addition to the contract price of the property. You can include in your basis the settlement fees and closing costs that are for buying the home. You cannot include in your basis the fees and costs that are for getting a mortgage loan. A fee is for buying the home if you would have had to pay it even if you paid cash for the home.
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 the basis of your property are:
Some settlement fees and closing costs not included in your basis are:
Real estate taxes. Real estate taxes for the year you bought your home may affect your basis, as follows:
If you pay taxes that the seller owed on the home up to the date of sale and the seller does not reimburse you, then the taxes are added to the basis of your home.
If you pay taxes that the seller owed on the home up to the date of sale and the seller does reimburse you, then the taxes do not affect the basis of your home.
If the seller pays taxes for you (taxes owed beginning on the date of sale) and you do not reimburse the seller, then the taxes are subtracted from the basis of your home.
If the seller pays taxes for you (taxes owed beginning on the date of sale) and you reimburse the seller, then the taxes do not affect the basis of your home.
Construction. 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. This amount includes the cost of labor and materials, or the amounts paid to the contractor, and any architect's fees, building permit charges, utility meter, and connection charges, and legal fees directly connected with building your home. 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 the basis by points the seller paid for 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 the value of your own labor or any other labor you did not pay for, in the cost of the house.
Cooperative apartment. Your basis in the apartment is usually the cost of your stock in the co-op housing corporation, which may include your share of a mortgage on the apartment building.
Condominium. Your basis is generally its cost to you. The same rules apply as for any other home.
If your home was acquired in a transaction other than a traditional purchase (such as gift, inheritance, trade, or from a spouse), you may have to use a basis other than cost, such as fair market value.
Fair market value is the price at which the property would change hands between a willing buyer and a willing seller, neither having to buy or sell and both having reasonable knowledge of the relevant 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. If your home was a gift, its basis to you is the same as the donor's adjusted basis when the gift was made. However, if the donor's adjusted basis was more than the fair market value of the home when it was given to you, you must use that fair market value as your basis for measuring any loss on its sale.
If you use the donor's adjusted basis to figure a gain and get a loss, and then use the fair market value to figure a loss and get a gain, you have neither a gain nor a loss on the sale or disposition.
If you received your home as a gift and its fair market value was more than the donor's adjusted basis at the time of the gift, you may be able to add to your basis any federal gift tax paid on the gift. If the gift was before 1977, the basis cannot be increased to more than the fair market value of the home when it was given to you. On the other hand, if you received your home as a gift after 1976, you would add to your basis the part of the federal gift tax paid that is due to the home's "net increase" in value (value less donor's adjusted basis).
Home received from spouse. You may have received your home from your spouse or from your former spouse incident to your divorce.
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).
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 fair market value of the community property becomes the basis of the entire property, including the portion belonging to the surviving spouse. For this to apply, at least, half of the community interest must be included in the decedent's gross estate, whether or not the estate must file a return.
Home received in trade. If you acquired your home in a trade for other property, the basis of your home is generally its fair market value 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 capital gain.
Adjusted basis is your cost or other basis increased or decreased by certain amounts.
Increases to basis include:
Decreases to basis include:
Discharges of qualified principal residence indebtedness. You may be able to exclude from gross income a discharge of qualified principal residence indebtedness. This exclusion applies to discharges made after 2006 through the end of 2025 (Consolidated Appropriations Act, 2021) and also applies to debts forgiven as the result of a written agreement entered into before January 1, 2026, even if the actual discharge happens later. If you choose to exclude this income, you must reduce (but not below zero) the basis of your principal residence by the amount excluded from gross income.
Amount eligible for the exclusion. The exclusion applies only to debt discharged after 2006 and before 2025. The maximum amount you can treat as qualified principal residence indebtedness is $750,000 ($375,000 if married and filing separately). Prior to December 31, 2020, this amount was $2 million ($1 million if married filing separately). You cannot exclude from gross income discharge of qualified principal residence indebtedness if the discharge was for services performed for the lender or on account of any other factor not directly related to a decline in the value of your residence or to your financial condition.
Improvements. These add to the value of your home, prolong its useful life, or adapt it to new uses. You add the cost of improvements to the basis of your property.
Putting a recreation room in your unfinished basement, adding another bathroom or bedroom, putting up a fence, putting in new plumbing or wiring, installing a new roof, or paving your driveway are improvements.
Here are some other examples:
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 the good condition of your home. They do not add to its value or prolong its life, and you do not add their costs to the basis of your property.
Repainting your house inside or outside, fixing your gutters or floors, repairing leaks or plastering, and replacing broken window panes are examples of repairs.
The entire job is considered an improvement, however, if items that would otherwise be considered repairs are done as part of an extensive remodeling or restoration of your home.
Recordkeeping. You should keep records of your home's purchase price and purchase expenses. Furthermore, you should also save receipts and other records for all improvements, additions, and other items that affect the basis of your home.
You must keep records for 3 years after the due date for filing your return for the tax year in which you sold, or otherwise disposed of, your home. But if the basis of your old home affects the basis of your new one, such as when you sold your old home before May 7, 1997, and postponed tax on any gain, you should keep those records forever.
The records you should keep include:
If you sell your main home after May 6, 1997, you may qualify to exclude up to $250,000 of the gain ($500,000 if married filing jointly) on the sale of your main home; however, 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:
If you owned and used the property as your main home for less than 2 years, you may be able to claim a reduced exclusion.
From 1994 through August 2007, Anne lived with her parents in a house that her parents owned. On September 29, 2007, she bought this house from her parents. She continued to live there until December 15 of 2007 when she sold it at a gain. Although Anne lived in the property as her main home for more than 2 years, she did not own it for the required 2 years. Therefore, she cannot exclude any part of her gain on the sale, unless she sold the property due to a change in health or place of employment.
Professor Moore bought and moved into a house on January 4, 2005. He lived in it as his main home continuously until October 1, 2006, when he went abroad for a one-year sabbatical. During part of the leave, the house was unoccupied, and during the rest of the time, he rented it out. On October 1, 2007, he sold the house. Because his leave was not a short temporary absence, he cannot include the period of leave to meet the 2-year use test.
In 1996, Harry was 60 years old and lived in a rental apartment. When the apartment building went co-op, he bought his apartment on December 1, 1999. Harry then went to live with his daughter on April 14, 2001, because he became ill. On July 10, 2003, he sold his co-op while still living with his daughter. Harry can exclude gain on the sale of his co-op because he met the ownership and use tests. His 5-year period runs from July 11, 1998, to July 10, 2003, the date he sold the co-op. Even though he only owned the co-op from December 1, 1999, to July 10, 2003--over two years, he lived in the apartment from July 11, 1997 (the beginning of the five-year period) to April 14, 2001 (over two years).
Also, if buying the previous home enabled you to postpone all or part of the gain on the sale of a home you owned earlier, you can also include the time you owned and lived in that earlier home.
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.
Mary sells her home in June of this year and marries John later in the year. She meets the ownership and use tests, but John does not. Emily can exclude up to $250,000 of gain on a separate or joint return for this year.
Now assume that John also sells a home. He meets the ownership and use tests on his home. Mary and John can each exclude $250,000 of gain.
You owned and used your main home for 400 days before selling it at a $150,000 gain following your move to a new job location. Your exclusion is $136,986, that is, 400/730 x $250,000.
You bought a home in 1997 and used it throughout 3/4 as your residence and 1/4 as your home office. On December 30, 2002, you sold it. The gain qualifies for exclusion except that you cannot exclude the part of your gain that is equal to any depreciation allowed or allowable for the business use of your home after May 6, 1997.