What Expenses Are Deductible When You Sell a House?
There's no itemized or above-the-line tax deduction available for expenses when you sell your house—"sell" being the operative word. But the Internal Revenue Code (IRC) does offer an exclusion from capital gains tax when you sell your primary residence. You won't be taxed on some if not all of any profit you realize if you meet certain rules, and deductions can reduce your gain and help you qualify.
The IRC does provide deductions for home ownership, but not specifically for home sales.
How the Home Sale Exclusion Works
The Internal Revenue Service allows homeowners to exclude up to $250,000 in profit from capital gains tax when they sell their residences subject to certain qualifying rules or "tests." This increases to $500,000 for married taxpayers who file joint returns.
If you have a co-owner to whom you're not married—for example, you bought the property with a relative or a partner—you can each take an exclusion of up to $250,000.
Here's how it works. You're single and you sell your home, realizing a gain of $100,000 over what you paid for it. You'd be subject to capital gains tax on that amount if not for the exclusion. With the exclusion, that gain is tax-free because it's less than the $250,000 threshold.
Qualifying With the "Residence Test"
Both spouses—or a single taxpayer if he's not married—must have lived in the home for at least two of the last five years preceding the sale to qualify. This is referred to as the "residence test."
Qualifying With the "Ownership Test"
You must also own the property for at least two of the five years ending on the date of sale. This is the "ownership test" and the IRS figures that if you meet both this and the residence test, the home is your primary residence. If you’re married and filing a joint return, only one of you must pass the ownership test.
You don’t have to own the home and live in it simultaneously. You might have lived in the home as a tenant for a while before actually purchasing it. Nor do you have to be living there at the time you sell it—you just have to own it at that point. Your two-year residency period can occur at any time as long as it’s within that five-year period.
Other Qualifying Limits
You—or your spouse or co-owner—cannot have claimed an exclusion for a gain from the sale of another home within the two years immediately preceding this house sale.
And if you own more than one residence, you can only exclude a gain realized from the sale of your primary home, the one you live in more than any others during the tax year.
Exceptions to the Usual Rules
The IRS isn't heartless, and it recognizes that some circumstances should be exempt from the usual qualifying tests. You might be exempt from one or more of these tests and limits if:
- You, your spouse, or your co-owner died, became eligible for unemployment compensation, gave birth to two or more children in the same pregnancy, or became unable to pay necessary living expenses.
- You and your spouse separated or divorced.
- You sold a remainder interest in the property.
- You served in the U.S. Military while you owned the home.
Servicemembers can suspend the usual five-year period for to up to 10 years when they're on qualified official extended duty at a station that's at least 50 miles from their homes and they're living by order in government housing.
This list isn't inclusive. Check with a tax professional if you believe something unforeseen or catastrophic caused you to sell the home without qualifying according to the usual rules.
Calculating Your Capital Gain
Now, the math. Here's how those deductions factor in.
For example, you might have purchased your property for $250,000. You paid $7,000 in allowable closing costs. Your cost basis is therefore $257,000 because you're allowed to include these costs in your basis.
You can also include the expense of some improvements you made to the property. Let's say you made $20,000 in structural but non-decorative improvements to your home to ready it for sale. Your basis now increases to $277,000.
You end up selling your home for $300,000. You have a capital gain of $23,000: $300,000 less $277,000.
Deductions Can Offset Your Gain
Adding expenses and the cost of capital improvements increases your cost basis, and a higher cost basis decreases your capital gain. You're more likely to fall within the exclusion limit if you have less of a profit, and you'll at least pay taxes on less profit if your entire gain isn't excluded.
Your gain would have been $50,000—$300,000 less the $250,000 you paid for the property—if you hadn't been able to add the cost of improvements and closing expenses to your basis.
What Costs Qualify?
Most costs associated with preparing the property for sale and selling it can qualify as a deduction from your gains. The "Adjusted Basis" section of IRS Publication 523 offers a complete list of possible adjustments you can make to your cost basis using these costs. Keep all your receipts so you don't overlook anything.
You would not have to pay capital gains tax on that $23,000 gain—or even on $50,000—because both these figures fall well below the exclusion threshold. But the costs of improvements and closing can make a difference if your gain is close to the exclusion threshold.
How Are Capital Gains Taxed?
Any gain you realize over the exclusion amount is taxed as a long-term capital gain if you owned the house for more than one year. The tax rate on long-term capital gains is either 0%, 15%, or 20%, depending on your income. As of 2020, it works out like this.
- 0% on incomes up to $40,000
- 15% on incomes from $40,001 to $441,450
- 20% on incomes over $441,450
Married taxpayers filing joint returns:
- 0% on incomes up to $80,000
- 15% on incomes from $80,001 to $496,600
- 20% on incomes over $496,600
Head of household filers:
- 0% on incomes up to $53,600
- 15% on incomes from $53,601 to $469,050
- 20% on incomes over $469,050
Keep in mind that these are income figures, not the amount of your gain. And these income parameters changed with the Tax Cuts and Jobs Act (TCJA) in 2018. Long-term capital gains rates were tied to ordinary income tax brackets before that time.
It's a short-term capital gain and it won't qualify for the exclusion if you owned the property for less than a year because you wouldn't meet the residency or ownership rules. This type of gain is taxed at ordinary tax bracket rates along with your other income.
Most taxpayers pay capital gains tax at the 15% rate, so you might want to set aside 15% of your taxable gain for the IRS if you don't qualify for the exclusion, or 15% of any portion of your gain that's greater than the exclusion.
How to Report Taxable Gains
Should you elect not to claim the exclusion for some reason, or if you don't meet the various requirements, you should report any gain as income on IRS Schedule D and submit it with your Form 1040 tax return. Otherwise, there's no need to report the sale.
An exception exists if you have a capital loss rather than a gain and you receive a Form 1099-S from the transaction. In this case, you might want to consult with a tax professional.
State Taxes—Another Deduction
Check on the capital gains tax rate in your state as well. Any state taxes that you must pay on the sale of the house will not reduce your capital gain, but you can at least include these taxes as an itemized deductions on Schedule A, along with other state income taxes you paid.
The TCJA began limiting the state and local tax deduction to $10,000 in 2018, however, and this ceiling applies cumulatively to income taxes paid to your state and local taxes as well.
IRS. "Topic No. 701 Sale of Your Home." Accessed Jan. 27, 2020.
IRS. "Publication 523 (2018), Selling Your Home." Accessed Jan. 27, 2020.
IRS. “Publication 523 (2018), Selling Your Home.” Accessed Jan. 27, 2020.
IRS. “Property (Basis, Sale of Home, Etc.).” Accessed Jan. 27, 2020.
IRS. "Sale of Residence - Real Estate Tax Tips." Accessed Jan. 27, 2020.
The Tax Foundation. "2020 Tax Brackets." Accessed Jan. 27, 2020.
Tax Policy Center. “How Did the Tax Cuts and Jobs Act Change Personal Taxes?” Accessed Jan. 27, 2020.
IRS. “Topic No. 503 Deductible Taxes.” Accessed Jan. 27, 2020.
IRS. ”With New SALT Limit, IRS Explains Tax Treatment of State and Local Tax Refunds.” Accessed Jan. 27, 2020.