Getting dressed and making your way to the gym can be a chore at first. You may gradually create the habit of getting to the gym and swiftly transitioning to your Zumba class or treadmill run. According to a new study by social scientists at Caltech, it takes an average of six months to acquire a gym habit.