Refinancing closing costs - tax deductible?

I have read both publications 936 and 530 from the IRS on this. I see where closing costs are included in the basis of the home when you buy it but what about when you refinance? Is it deductible then and if so, where does it go on the tax return?
7 answers 7