Key takeaways
- Leg cramps can occur for various reasons, such as nerve dysfunction and health conditions, including diabetes and kidney failure. In most cases, there is no apparent reason.
- Leg cramps are often harmless. However, they can indicate an underlying health condition that may require treatment.
- People may be able to relieve leg cramps by massaging the muscle, using heat packs, and stretching the leg.
Leg cramps involve sudden, painful, and involuntary contractions of a leg muscle, causing pain and discomfort in the feet, calves, hamstrings, and thigh muscles.
In most cases, they happen for no apparent reason and are not a cause for concern. If leg cramps persist or worsen despite home management, people may benefit from speaking with a healthcare professional.

Older adults are more likely to experience leg cramps. This may be due to muscle mass loss, which starts from the mid-40s and increases if a person is not active. However, people can experience leg cramps at any age.
In
- exercise
- dehydration
- electrolyte imbalances
- muscle fatigue in the legs
- leg position during sleep or work
- medications
- underlying health conditions
Health conditions that can cause leg cramps
Conditions that may cause cramps
- alcohol use disorder
- cirrhosis, which is liver scarring
- Parkinson’s disease
- peripheral artery disease (PAD)
- restless legs syndrome
- pregnancy
- amyotrophic lateral sclerosis (ALS)
- spinal nerve irritation or compression
- thyroid disease and hormonal problems
- chronic obstructive pulmonary disease (COPD)
- diabetes
- stroke
- anemia
- multiple sclerosis
- obstructive sleep apnea
Since so many conditions can involve leg cramps, it is a good idea to speak with a healthcare professional for a proper diagnosis.
Medications that can cause leg cramps
Medications that can trigger cramping
- oral contraceptives
- statins
- raloxifene (Evista)
- teriparatide (Forteo)
- certain diuretics
- angiotensin II receptor blockers
If there is no underlying cause, leg cramps may improve without treatment. Stretching exercises may help speed up recovery. The following stretches can help relieve leg cramps.
Hamstring muscle stretch
To carry out a hamstring muscle stretch:
- Sit on the floor with legs straight out in front and the feet in a neutral position.
- Place the palms on the floor and slide them toward the feet.
- If able to reach the feet, people can gently pull the toes toward the body to stretch the calf muscle.
- Hold the stretch for 30 seconds.
It is important not to stretch too far when someone starts this stretch. Over time, they may be able to reach closer to their feet. If pain worsens, people should stop the stretch.
Calf muscle stretch
To try a calf muscle stretch:
- Stand around one step away from a wall with both feet flat on the ground.
- Lean forward against the wall with the arms outstretched and the hands flat on the wall.
- Place one foot in front of the other, keeping the back leg straight and the front leg bent. Both heels should remain on the floor.
- Hold for 15 to 30 seconds.
- Slowly return to an upright position and switch legs.
Quadriceps muscle stretch
To stretch the quadriceps:
- Stand up straight, holding a wall or chair for support if necessary.
- Pull one foot up toward the buttocks using the arm on the same side.
- Hold the ankle, pulling the foot as close to the body as possible without letting the back arch.
- Hold for 30 seconds, then repeat with the other foot.
Avoid arching the back during this exercise.
The American Academy of Orthopaedic Surgeons (AAOS) suggests the following to ease cramping:
- Stop the activity that caused the cramp.
- Stretch and massage the muscle.
- Hold the leg in the stretched position until the cramp stops.
- Apply heat to muscles that are tight or tense.
Wearing supportive footwear and avoiding long periods in the same position
Some people use supplements, such as magnesium, to reduce muscle cramps. However, a 2020 review suggests older adults are unlikely to benefit from this treatment.
For other contexts, such as pregnancy, there is not enough evidence to show whether supplements help.
There is
However, the most appropriate medical treatment may depend on the underlying cause of cramps. If someone experiences cramps due to a health condition, doctors may focus on treating the condition rather than the cramps.
If a severe cramp leaves a muscle feeling tender, over-the-counter pain relief may help.
In the past, people used quinine. However, healthcare professionals no longer recommend this as it may have dangerous interactions and side effects.
The following measures may also
- stay hydrated
- stretch the legs regularly
- minimize exercise in extreme heat
- limit alcohol
- wear supportive footwear
- avoid long periods of sitting or standing in one position
People may also benefit from using a pillow or rolled towel at the end of the bed when sleeping. This can help prevent plantar flexion, which is when the ankle angles so that the toes point away from the legs.
Leg cramps are
The doctor may carry out tests to try to identify an underlying cause. If the person is taking medications that can trigger cramps, the doctor may adjust the dose or change the drug.
Leg cramps are a common problem that usually happen for no identifiable reason. Stretching and massaging the muscle can often bring relief.
In some cases, however, there may be an underlying cause that needs medical attention. If cramps are severe or frequent, consider consulting a doctor.
