Your mortgage may have a 30-year term, but not many homeowners stay with the same loan for that long. In fact, the average American refinances his or her mortgage every four years, according to the Mortgage Bankers Association. That’s because paying off your present mortgage and taking out a new one can mean big savings over several years. However, mortgage refinancing comes with a price in the short term, so it’s important to consider both the costs and benefits before making your decision.

Is mortgage refinancing right for you?

If you’re refinancing in order to pay less interest, you won’t usually see the savings right away. That’s because lenders typically charge fees when you take out a new mortgage, and you may also have to pay a penalty for getting out of your old one. To determine whether refinancing makes financial sense for you, consider these issues:

The break-even point

In the end, deciding whether the cost of mortgage refinancing is worth it comes down to a simple question: “How long will it take before I start to save money?” In theory, this is a simple calculation. You start with the amount you will save by lowering your monthly payment. Then you add up all the costs associated with refinancing and divide the total by your monthly savings. This will reveal the number of months it will take to reach the break-even point.

For example, let’s assume that refinancing would lower your payment from $1,000 to $800 (for a savings of $200 per month) and your prepayment penalty, closing costs and points add up to $5,000. Divide $5,000 by $200 and you’ll see that it would take 25 months to realize the savings.

In reality, however, your break-even point also depends on other factors, including your tax situation and whether you pay closing costs upfront or add them to the principal of your new mortgage. If you are refinancing and your home has appreciated in value, you may also be able to save by canceling your private mortgage insurance.

For a more accurate estimate, use our refinancing calculator. Or consult a financial advisor who is familiar with your tax situation.