I assume you have been stretching. If not then the first thing to try is stretching. If you have been stretching people often don't stretch properly. It's OK to stretch a single area but you also have to stretch the entire length of the body. When stretching the calf you also want to stretch up the leg, all the way up the back, include the neck and the back of the head. The entire "back line". Start by standing in front of a flight of step or a stool. Bend forward and rest your hands on the second step. Do not bend your knees and tuck your chin. If you can't keep the knees straight and tuck your chin because the stretch is too much then use a chair and put your hands on a chair. It's not important how far down you can reach. It is important that you stretch what needs to be stretched.
OK, you are bent over, your chin is tucked, your knees are straight, your feet are parallel, your hands are supporting your weight on a step or a chair. Now rock your body weight forward onto your hands to increase the angle of the ankle to get a better stretch from the floor up. This gives you a stretch from the back of the head (tucked chin) all the way to the bottom of the feet (leaning forward on your hands). Hold this position for 30-60 seconds. Careful when you stand back up to not get dizzy.
If stretching doesn't help you are dehydrated with a need for minerals. Most likely magnesium. Get a magnesium supplement and take as instructed on the bottle. A more rounded mineral hydration supplement might be a better choice because Calcium, Magnesium, Phosphorous and Potassium are all important. If your joints ache around the sides you could also benefit with Manganese. If the joints ache in the middle glucosamine.