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.
Depreciable property used in a trade or business and held for more than a year. All Section 1231 gains and losses are netted; a net gain is treated as capital gain, a net loss as an ordinary loss.