When refinancing is worth it
Refinancing saves money when monthly payment drops enough to pay back closing costs within the time you plan to stay. A break-even under 24 months is strong; over 5 years is usually not worth it.
Beyond the monthly payment
A lower rate on a longer term can increase total interest paid, even if the monthly payment drops. Re-amortizing resets the clock.