In more detail
The new loan pays off the old one, but it brings closing costs. Divide those costs by the monthly saving to find the break-even point: $3,000 of costs and a $125 monthly saving break even after 24 months, so it pays off only if you keep the loan longer than that. Restarting a 30-year term can raise total interest even with a lower rate.