Refinancing into a shorter term, such as moving from 30 years to 15, is mainly a question of cash flow versus total interest. A shorter term almost always comes with a lower interest rate, but the monthly payment rises because the same principal is repaid faster. The refinance makes sense if the new payment fits comfortably within your budget after accounting for taxes, insurance, and an emergency fund, and if you plan to stay in the home long enough to recoup closing costs, typically two to four years.
Run the break-even math: divide total closing costs by the monthly savings or added equity, and compare that figure with how long you expect to keep the loan. Also check whether your current lender charges a prepayment penalty. If your goal is simply to pay off faster, making extra principal payments on your existing loan can achieve a similar result without refinancing costs, though it will not lower your rate. Refinancing is strongest when rates have dropped meaningfully, your credit has improved, and you want a guaranteed payoff date.