### 4\. Certain medications
Some medicines have been associated with leg cramps. Examples include certain diuretics used for blood pressure and some cholesterol-lowering medicines. Mayo Clinic+1
If you recently started a medication and subsequently began experiencing frequent cramps, don't stop taking it on your own. Instead, discuss the symptoms with your healthcare professional.
### 5\. Medical conditions
Leg cramps can sometimes occur alongside conditions affecting nerves, circulation, metabolism, or muscles. Examples include diabetes-related nerve damage, peripheral neuropathy, kidney disease, thyroid disorders, and peripheral artery disease. Mayo Clinic+1
This is one reason recurring or unusual cramps deserve attention rather than being automatically attributed to age or dehydration.
## What Should You Do When a Cramp Strikes?
A nighttime cramp can be frightening because it arrives without warning. Fortunately, several simple measures may help relax the affected muscle.
### Stretch the cramped muscle
For a calf cramp, gently straighten the leg and pull the toes upward toward your face. Stretching can help the contracted muscle relax. Mayo Clinic+1