This refinance will not affect your 2017 tax return. In 2018, as long as your refinanced debt does not exceed $750,000 (or if married filing separate-$375,000) and it is home acquisition debt, it should be deductible. The only question- your home equity loan-for what was it used? If it was to improve your home, all of the interest deductible.