
As a 30+ year member of the AICPA, Nancy has experienced all facets of finance, including tax, auditing, payroll, plan benefits, and small business accounting. Her résumé includes years at KPMG International and McDonald’s Corporation. She now runs her own accounting business, serving several small clients in industries ranging from law and education to the arts.
Encyclopaedia Britannica's editors oversee subject areas in which they have extensive knowledge, whether from years of experience gained by working on that content or via study for an advanced degree. They write new content and verify and edit content received from contributors.

Selling a home is a difficult process. You need to find a broker or sell it yourself, find a buyer who is the right fit, endure the home inspection, negotiate the cost, pay commission, and finally close on the sale and move out. But your worries arenât over yet. At the end of the year, youâll likely receive a Form 1099-S showing how much money you received from the sale of your home. Depending on how the numbers work out, you might have tax consequences.
The taxing of property follows the ârecovery of capital doctrine,â which means that you are able to recover part of your investment in the property before recognizing a capital gain or loss. Plus, the IRS excludes a portion of gains on the sale of your primary residence in certain situations.
In order to figure out the tax ramifications of your home sale, youâll need to know your homeâs adjusted basis, if your home sale qualifies for the IRS exclusion of some of the gain, and how to report it on your tax return.
Note that different rules apply for certain property types and transactions, including like-kind (1031) exchanges, remainder interests, vacant land, destroyed or condemned property, property used for business, and rental property.
Things you own for personal or investment reasons are capital assets. Assets have a basis, meaning the cost that you paid for them. In the case of a home, some additional fees and costs associated with the original purchase are included in your basis.
According to IRS Publication 523, the following fees and closing costs are allowed to be included in your basis:
Example: Linda and Greg purchased a house in the state of Illinois in 1991 for $125,000 plus $5,800 in fees and closing costs. Their initial basis in their home is $130,800 ($125,000 + $5,800).
In addition to closing costs, your basis in a house you built includes the cost of the land, labor and materials, amounts paid to contractors and architects, building permits, utility meter and connection charges, and legal fees.
During the course of your home ownership, you might improve it. Maintenance costs, such as mowing the lawn, annual furnace inspections, painting, or replacing or fixing broken, leaking, or rotted parts of the home are not considered improvements. Improvements that increase the basis are ones that will increase the value of the home and transfer to a new owner when you sell the home. They include:
Note that if you received a tax credit for any energy-related improvements or received insurance money from improvements made due to a claim, you must subtract those credits or subsidies from your adjusted basis.
Example: Linda and Greg made some improvements as they lived in their house. An addition in 1994 cost $55,000; a new kitchen in 1995 cost $35,000; a new roof in 2010 cost $12,000. They painted the house in 2012 for $3,500 and added a patio in 2015 for $9,000. Their adjusted basis in 2015 is $241,800 ($130,800 initial basis + $55,000 + $35,000 + $12,000 + $9,000). The painting cost is considered maintenance and thus did not increase their basis.
Your property basis is calculated differently if you acquired it by a means other than purchasing it.
Your basis is the fair market value of the property on the date of the decedentâs death. An âalternate valuation dateâ after the date of death may be selected by the estate if it is not practical to have an evaluation made on the exact date. Note that if you inherited the home in the year 2010 specifically, different rules apply.
If you jointly owned the home, you keep half of the adjusted basis of the home on the date your spouse died, plus half of the fair market value of the home on that date. If you live in a community property state (Arizona, California, Idaho, Louisiana, Nevada, New Mexico, Texas, Washington, or Wisconsin), the basis of the surviving spouse is calculated as the fair market value on the date of death or alternate valuation date (âstepped-up basis,â in tax accounting lingo).
Example: Greg passed away in 2020 when Greg and Lindaâs adjusted basis in the home was $241,800. The homeâs fair market value at that time was $500,000. The home was in Illinois (not a community property state), so Lindaâs new basis is $370,900 ($241,800/2 = $120,900 added to $500,000/2 = $250,000).
Youâll need to keep track of your donorâs adjusted basis, the fair market value on the date of the gift, and any gift tax the donor paid. If the donorâs adjusted basis is less than the fair market value on the date of the gift, use that plus any gift tax as your basis. If the donorâs adjusted basis is more than fair market value, and you later sell the property for less than that adjusted basis, youâll instead use the fair market value as your basis.
If it was originally acquired after July 18, 1984, your basis will be the adjusted basis at the time of the divorce in most cases. If it was acquired before that time, your basis will be the fair market value on the divorce date.
There are different rules for homes that you received through a trade of another home or property, or if your home was foreclosed, repossessed, abandoned, destroyed, or condemned. See IRS Publication 523 as a starting point.
Different rules apply when you sell your house if you had a home business or if you rented it to someone else. See IRS Publication 523 for details.
After you sell your home, take your selling price minus selling expenses such as commissions, advertising fees, or legal fees to get the amount realized. Then deduct your adjusted basis. If the number is positive, you have a gain; if the number is negative, you lost money on the sale of your home.
Example: Linda sold her house in 2021 for $575,000. After paying a commission of $25,000, her amount realized was $550,000. Since her basis was $370,900 (see previous example), she had a gain of $179,100.
Review four criteria to figure out if you can exclude some of your home saleâs gain from your taxes:
You can only take a home gain exclusion on the sale of a home that is your primary residence. You can only have one primary residence at a time, even if you own more than one home. Your primary residence is the one reported on your tax returns, driverâs license, car registration, voter registration card, and so on. It is near where you work, bank, and spend most of your time.
There are special residence and ownership rules if you are separated, divorced, or a surviving spouse. See IRS Publication 523. Note that if you transferred your home to an ex-spouse as part of a divorce settlement, you have nothing to report and no gain or loss on that transaction.
If you donât meet the eligibility test, the IRS says you may still qualify for a partial exclusion of gain if you moved because of an unforeseeable event or a special work-related or health-related situation. See IRS Publication 523 for more details.
The maximum exclusion is $500,000 for those married and filing jointly, and surviving spouses under certain situations. Those single and married filing separately have a maximum exclusion of $250,000.
| Tax status | Eligibility | Maximum exclusion |
|---|---|---|
| Married filing jointly | Residence and look-back for both spouses, ownership for at least one spouse | $500,000 |
| Single or married filing separately | Residence, ownership, and look-back | $250,000 |
| Surviving spouse | Residence, ownership, and look-back, plus you havenât remarried at the time of the sale and you sell your home within two years of the death of your spouse | $500,000 |
Example: Linda was not remarried when she sold her home in 2021, which was within two years of Gregâs death. Since her maximum exclusion is $500,000 and her gain was $179,100, she is able to exclude her entire gain from her taxable income.
You will need to report the sale of your home on your tax return:
Always keep documents pertaining to purchasing, inheriting, and selling property. Also, make sure that you keep a list and backup documentation for all capital improvements made to your home. In addition to making your home appealing for your own use, and that of a future owner, the IRS encourages you to make improvements to your primary residence through its gain exclusion policy.