According to research, it takes anywhere from 18 to 254 days to break a habit, with an average of about days for new behavior to become automatic.