You may be wondering if there are tax deductions when selling a home. And the answer is: You bet!

But there’s also a new tax code—aka the Tax Cuts and Jobs Act—causing quite a bit of confusion this filing season. Rest assured that if you sold your home last year (or are planning to in the future), the tax deductions may amount to sizable savings when you file with the IRS.

You’ll want to know all the tax deductions (as well as tax exemptions or other write-offs) at your disposal. So here’s a rundown.

5 Tax Deductions