If you itemize your personal deductions, the portion of closing costs representing real estate taxes may be deductible. And points paid to obtain a mortgage may be deductible in full or have to be spread over the term of the mortgage (depending on certain conditions). But other closing costs, such as attorney’s fees, are not deductible; they are added to the basis of the home, which will reduce reportable gain on a future sale.
The amount of gain reportable and subject to tax. On certain tax-free exchanges of property, gain is not recognized in the year it is realized.