Leg cramps can occur to anyone during sleep. Although pregnant women and older adults are more susceptible to cramps, this condition can happen for a variety of reasons. Below are some tips and information to help you avoid waking up from leg cramps at night.
Steps
Proven Treatments for Leg Cramps

Consider drinking mineral water mixed with quinine, commonly known as tonic water. Tonic water has long been shown to be effective in preventing night leg cramps. However, the FDA recently recommended not using too much quinine for cramps, which is an ingredient found in Qualaquin. A Cochrane review in 1997 of trials (both public and private) on quinine concluded that, although there was improvement in patients using quinine compared to those on a placebo, side effects, specifically tinnitus, were common in the quinine group. The authors concluded: "Due to the side effects of quinine, non-drug therapies like passive muscle stretching should be the first-line treatment, but quinine may be used if these methods fail. Doctors will carefully monitor the risks and benefits for each patient."

Apply heat to your legs. A hot water bottle or heating pad can help relax the muscles and alleviate pain caused by cramps. If using a heating pad, be sure not to fall asleep while applying it.
- If you don’t have a heating pad, try massaging the cramping area with VapoRub. Its cooling effect will deeply penetrate the muscles and reduce cramp pain.

Increase your potassium intake. A lack of potassium may be the cause of leg cramps (especially in the legs). If you are not getting enough potassium, try eating foods rich in potassium (listed below) or take potassium supplements with your meals. Potassium-rich foods include:
- Fruits like bananas, apricots, dates, plums, raisins, or grapes.
- Cabbage or broccoli.
- Oranges and grapefruits.
- Seafood, pork, and lamb.

For pregnant women, consider taking magnesium supplements. Younger pregnant women tend to absorb magnesium from supplements more effectively. Magnesium is essential for bodily functions. However, older individuals or those no longer of childbearing age show much less benefit from magnesium supplements.

Drink plenty of water and stay hydrated. Nighttime cramps may sometimes be caused by dehydration. Be sure to drink enough water throughout the day to prevent cramps at night.
- How much water should you drink daily? According to Mayo Clinic, women should drink about 2.2 liters per day, while men should drink 3 liters per day.
- How do you know if you’ve had enough water? Look at the clarity of your urine. Clear urine indicates hydration, while yellow urine suggests dehydration.
- Avoid alcohol. Excessive alcohol consumption can lead to dehydration, worsening cramps. Reducing alcohol intake is also beneficial for overall health.

Use calcium channel blockers. These medications prevent calcium from entering many types of cells and blood vessels. Typically used to treat high blood pressure, calcium channel blockers can also help manage nighttime cramps. Consult a doctor to get a prescription with the proper dosage.

Avoid sleeping under a tightly stretched bed cover. A tight bedspread or blanket can cause your toes to inadvertently point down while sleeping. This position may trigger muscle cramps. Use a loose-fitting bed sheet to reduce the risk of this. If your foot cramps suddenly, try pulling your toes back toward your body to relieve the cramp.

Stretch your calves before going to bed. Performing calf stretches before bedtime can help alleviate muscle tension. See below for calf stretching exercises.
Stretching to prevent cramps

Stretch your calves using a towel. Place your foot on a towel or bed sheet that is stretched horizontally. Fold the towel in half so it wraps around the cramping part of your leg. Hold both ends of the towel and pull it firmly toward your body. This action will compress the leg and provide an effective massage.

Stretch the inner calf muscles. While sitting, extend one leg straight and bend the other leg (the calf you want to stretch), bringing the knee closer to your chest. Grasp the base of the toes on the bent leg and pull them as far toward your body as possible.

Stretch your leg with the support of a wall. Lie on your side, pressing the non-cramping leg down, facing the wall. Straighten the cramping leg so it is perpendicular to your body, fully extended, and touching the wall. Hold this position for 10-20 seconds before lowering your leg. This stretch targets the muscles at the back of your thigh.

Stretch your Achilles tendon. While seated, extend one leg and bend the other. Push the heel of the bent leg close to your buttocks. Keep the heel on the ground but raise your toes, maintaining this position until the stretching force relaxes the muscle.
Home remedies for leg cramps

Place a medium-sized soap bar under the cramping leg. Alternatively, apply hypoallergenic liquid soap to the center of the cramping area. Wait a few seconds and the pain will either subside or nearly disappear!

Try drinking cow's milk. This method is based on the idea that milk helps restore calcium balance, thereby reducing the risk of nighttime leg cramps. However, since milk is high in phosphorus, it could make cramps worse for some. Give it a try to see if it works for you; many people swear by cow's milk.

Use evening primrose oil. Evening primrose oil has been used to treat various conditions, from acne and eczema to high cholesterol and heart disease. It may also be helpful for leg cramps and pain caused by blocked blood vessels, although there is not enough evidence to confirm this. Use 3-4 grams of evening primrose oil before going to bed.

Use brewer's yeast. Brewer's yeast can improve blood circulation in the legs by providing additional B vitamins. Some doctors recommend using it, but clinical trials have not yielded conclusive results. Take one tablespoon of brewer's yeast daily.

Use the herbs motherwort and scutellaria. Scutellaria is an herb used to treat anxiety and insomnia, often combined with motherwort, which also has sedative effects. While clinical trials show a connection between scutellaria and liver damage, this typically occurs when scutellaria is used with other plants. Follow the instructions on the packaging when using motherwort and scutellaria, or soak both in alcohol. Note that motherwort has a distinctive, unpleasant odor, and it may take some time to get used to it.
Medications that may cause leg cramps

Be cautious with short-acting loop diuretics. Short-acting loop diuretics help eliminate excess water from the body by sending it to the bladder, which is then turned into urine. It's easy to see how these medications could cause problems for those prone to cramps, as dehydration can sometimes trigger cramping. If you take one of these medications and experience nighttime cramps, consult with your doctor about switching to a long-acting diuretic or exploring other solutions.

Be cautious with thiazide diuretics. Thiazide diuretics, similar to short-acting loop diuretics, can deplete electrolytes in the body, leading to cramps. Thiazide diuretics are commonly prescribed for various conditions, including hypertension and heart failure.
- Another medication for hypertension, known as beta blockers, may also cause cramps. Beta blockers inhibit the effects of the hormone adrenaline, thus reducing heart rate. Although the exact reason why this causes cramps is unclear, it is believed to be linked to arterial constriction.

Statins and fibrates can also trigger leg cramps. These two medications, used to treat high cholesterol, may hinder muscle growth and decrease muscle energy. Consult your doctor to determine whether replacing statins and fibrates with vitamin B12, folic acid, and vitamin B6 is advisable.

Be mindful of angiotensin-converting enzyme (ACE) inhibitors. ACE inhibitors, used for treating high blood pressure, block the action of angiotensin II, a hormone that constricts blood vessels. These medications can sometimes lead to an imbalance of potassium, which may result in cramps.

Assess whether antipsychotic medications may be causing cramps. Conditions such as schizophrenia, bipolar disorder, and others might require the use of medications that treat depression, hallucinations, and anxiety. Drugs like Abilify, Thorazine, and Risperdal can cause fatigue, sluggishness, and weakness, which may occasionally lead to cramps. Inform your doctor if you suspect that your cramps are due to antipsychotic medication.
Advice
- The most common reason for nighttime leg cramps is magnesium deficiency. Try taking 200mg of magnesium daily for a period of time.
- Drinking a sip of fruit-infused water can help alleviate cramps.
Warning
- If leg cramps occur frequently (2-4 times or more every night), it could be a health issue. Consider seeking medical advice if necessary.
