When refinancing a primary residence, most closing costs aren’t tax-deductible. That includes fees like a home inspection, recording fee, appraisal, and attorney fees. You can, however, deduct mortgage interest and real estate taxes paid at closing. (But only if you itemize your taxes instead of taking the standard deduction.) The rules differ for a rental home; you can deduct closing costs when refinancing an income-generating property.