Tax Benefits of Buying, Owning and Selling a Home

Some or all of the mortgage lenders featured on our site are advertising partners of NerdWallet, but this does not influence our evaluations, lender star ratings or the order in which lenders are listed on the page. Our opinions are our own. Here is a list of our partners.

Updated · 1 min read
Profile photo of Holden Lewis
Written by Holden Lewis
Senior Writer/Spokesperson
Profile photo of Amanda Derengowski
Lead Assigning Editor

Uncle Sam wants you to own your home. The tax code grants tax benefits that reduce your costs of buying, owning, fixing up and selling a home. Here are brief descriptions of tax benefits of owning a home — the deductions, the credits and an exclusion that encourage homeownership.

Tax benefits of buying a home

The tax code sets aside a couple of benefits for buying a home.

Mortgage points: With the exception of very large loans, you may deduct the points you paid when you got your mortgage. In some cases, you may deduct the entire amount in one tax year; in other situations, you may deduct the points equally each year over the life of the loan.

Moving expenses: Tax breaks for moving expenses are limited. Only active-duty members of the armed forces are allowed to deduct moving expenses. The move must be because of a permanent change of station due to a military order.

Mortgage loans from our partners

NBKC - PURCHASE logo
Check Rate

on NBKC

NBKC

4.5

NerdWallet rating 
NBKC - PURCHASE logo

4.5

NerdWallet rating 
Min. credit score 
620

Min. down payment 
3%

Check Rate

on NBKC

New American Funding - PURCHASE logo
Check Rate

on New American Funding

New American Funding

4.5

NerdWallet rating 
New American Funding - PURCHASE logo

4.5

NerdWallet rating 
Min. credit score 
500

Min. down payment 
3.5%

Check Rate

on New American Funding

GO Mortgage - PURCHASE logo
Check Rate

on GO Mortgage

GO Mortgage

4.0

NerdWallet rating 
GO Mortgage - PURCHASE logo

4.0

NerdWallet rating 
Min. credit score 
620

Min. down payment 
3%

Check Rate

on GO Mortgage

Mortgage loans from our partners

NBKC - PURCHASE logo
Check Rate

on NBKC

NBKC

4.5

NerdWallet rating 
NBKC - PURCHASE logo

4.5

NerdWallet rating 
Min. credit score 
620

Min. down payment 
3%

Check Rate

on NBKC

New American Funding - PURCHASE logo
Check Rate

on New American Funding

New American Funding

4.5

NerdWallet rating 
New American Funding - PURCHASE logo

4.5

NerdWallet rating 
Min. credit score 
500

Min. down payment 
3.5%

Check Rate

on New American Funding

GO Mortgage - PURCHASE logo
Check Rate

on GO Mortgage

GO Mortgage

4.0

NerdWallet rating 
GO Mortgage - PURCHASE logo

4.0

NerdWallet rating 
Min. credit score 
620

Min. down payment 
3%

Check Rate

on GO Mortgage

Rocket Mortgage - PURCHASE logo
Check Rate

on Rocket Mortgage

Rocket Mortgage

4.5

NerdWallet rating 
Rocket Mortgage - PURCHASE logo

4.5

NerdWallet rating 
Min. credit score 
580

Min. down payment 
3.5%

Check Rate

on Rocket Mortgage

Veterans United - PURCHASE logo
Check Rate

on Veterans United

Veterans United

5.0

NerdWallet rating 
Veterans United - PURCHASE logo

5.0

NerdWallet rating 
Min. credit score 
620

Min. down payment 
0%

Check Rate

on Veterans United

Tax benefits of owning a home

There are plenty of tax benefits for owning a home. They're the tax code's gift that keeps on giving.

Mortgage interest deduction: The mortgage interest tax deduction is designed to make homeownership more affordable by reducing your tax bill. There are limits on the deduction, depending on how much you borrowed and when you bought the home.

Use NerdWallet’s mortgage interest deduction calculator to find out what this tax break means for your next mortgage.

Property tax deduction: The IRS lets you ease the pain of paying property and other state and local taxes. You may reduce your taxable income by up to $10,000 ($5,000 if married filing separately) in deductible property taxes, state and local income taxes, and sales taxes that you pay.

Home equity debt: Interest paid on home equity debt may be deducted only if the money is used “to buy, build or substantially improve the taxpayer’s home that secures the loan,” according to the IRS. So the interest is deductible if the equity debt is used to, say, put an addition on a home. But it’s not deductible if the debt is used to pay off credit card debts or to buy a vacation home.

Home office expenses: You may deduct expenses for your home office if you're self-employed and you use part of your home exclusively and regularly as your principal place of business or to meet clients and customers.

Renewable energy tax credits: You can claim a tax credit on the costs of buying and installing items that generate electricity using the sun, the wind or fuel cells. The credit is also available for solar water heaters and geothermal heat pumps.

Medically necessary home improvements: When calculating deductible medical expenses, you may include the cost of home improvements or installation of medical equipment in your home. The equipment or improvements must benefit you, your spouse or dependents who live with you.

Mortgage credit certificate: Some state housing finance agencies offer mortgage credit certificates through their home buyer programs. The certificates bestow a credit on your federal tax bill of up to $2,000 a year. This is a credit, not a deduction — you can use the credit to cut your taxes, even if you use the standard deduction and don't itemize.

Tax benefit of selling a home

When you sell a home, the capital gain is the difference between the price you paid for it and the price you sold it for. This capital gain is treated as taxable income. The tax benefit comes in the form of an exclusion that lets most sellers avoid paying this capital gains tax.

Capital gains: If you owned the house long enough, you’re allowed to exclude up to $500,000 of this capital gain as income so you don’t have to pay federal income tax on it. (The exclusion is capped at $250,000 for married taxpayers filing separately.)

Tax breaks of homeownership

Mortgage interest

For homes bought before Dec. 15, 2017, you may deduct the interest you pay on mortgage debt up to $1 million ($500,000 if married filing separately). For homes bought Dec. 15, 2017, or later, you may deduct the interest you pay on mortgage debt up to $750,000 ($375,000 if married filing separately).

Mortgage interest deduction for second homes

You may deduct the interest you pay on mortgage debt up to $750,000 ($375,000 if married filing separately) on your primary home and a second home.

Property taxes

You may deduct up to $10,000 ($5,000 if married filing separately) for state and local income, sales and property taxes.

Home equity debt

The deduction for interest on home equity debt applies only when the loan is used to buy, build or substantially improve the home, according to the IRS.

Moving expenses

Only active-duty members of the armed forces may deduct moving expenses.

Capital gains exclusion

You must have owned the home, and used it as your primary residence, during at least two of the five years before the date of sale. You cannot have used this exclusion in the two years before the sale of the home.

Mortgage loans from our partners

NBKC - PURCHASE logo
Check Rate

on NBKC

NBKC

4.5

NerdWallet rating 
NBKC - PURCHASE logo

4.5

NerdWallet rating 
Min. credit score 
620

Min. down payment 
3%

Check Rate

on NBKC

New American Funding - PURCHASE logo
Check Rate

on New American Funding

New American Funding

4.5

NerdWallet rating 
New American Funding - PURCHASE logo

4.5

NerdWallet rating 
Min. credit score 
500

Min. down payment 
3.5%

Check Rate

on New American Funding

GO Mortgage - PURCHASE logo
Check Rate

on GO Mortgage

GO Mortgage

4.0

NerdWallet rating 
GO Mortgage - PURCHASE logo

4.0

NerdWallet rating 
Min. credit score 
620

Min. down payment 
3%

Check Rate

on GO Mortgage

Mortgage loans from our partners

NBKC - PURCHASE logo
Check Rate

on NBKC

NBKC

4.5

NerdWallet rating 
NBKC - PURCHASE logo

4.5

NerdWallet rating 
Min. credit score 
620

Min. down payment 
3%

Check Rate

on NBKC

New American Funding - PURCHASE logo
Check Rate

on New American Funding

New American Funding

4.5

NerdWallet rating 
New American Funding - PURCHASE logo

4.5

NerdWallet rating 
Min. credit score 
500

Min. down payment 
3.5%

Check Rate

on New American Funding

GO Mortgage - PURCHASE logo
Check Rate

on GO Mortgage

GO Mortgage

4.0

NerdWallet rating 
GO Mortgage - PURCHASE logo

4.0

NerdWallet rating 
Min. credit score 
620

Min. down payment 
3%

Check Rate

on GO Mortgage

Rocket Mortgage - PURCHASE logo
Check Rate

on Rocket Mortgage

Rocket Mortgage

4.5

NerdWallet rating 
Rocket Mortgage - PURCHASE logo

4.5

NerdWallet rating 
Min. credit score 
580

Min. down payment 
3.5%

Check Rate

on Rocket Mortgage

Veterans United - PURCHASE logo
Check Rate

on Veterans United

Veterans United

5.0

NerdWallet rating 
Veterans United - PURCHASE logo

5.0

NerdWallet rating 
Min. credit score 
620

Min. down payment 
0%

Check Rate

on Veterans United

Get more smart money moves – straight to your inbox
Sign up and we’ll send you Nerdy articles about the money topics that matter most to you along with other ways to help you get more from your money.