If you’re in your 40s or 50s and are considering a career switch, you’re not alone. According to a 2014 survey, more than 4.5 million Americans made a career change in midlife, either to pursue a more fulfilling line of work or earn more money.

Another study that looked at workers aged 45 and older by the American Institute for Economic Research (AIER) found that 82% of those who made a midlife career-switch had been successful. Of these successful career switchers, 60% said they were finally doing something they felt good about, 65% felt less stressed at work, and 70% were earning the same or a higher salary.

Of course, before making any big changes to your career, it’s important to weigh the pros and cons to make sure it’s the right decision for you personally, so here are five important things you should consider before a midlife career change.