About authorship and review dates
Publication, literature-search, and editorial-change dates describe different activities. They do not by themselves establish a completed medical review. Check the article-specific reviewer, scope, and completion date where documented. Independent specialty review is not implied unless a reviewer is explicitly identified. Review process and specialty boundaries
For patients and the public | English | Primary & Home-Based Care
Author: Hyo Cheul Park, MD
A sudden, painful knot in your calf at night is often a muscle cramp. Gently stretching the muscle may help it relax. Repeated episodes deserve a review of your symptoms, activities, and medicines—not an automatic prescription for supplements. Persistent pain with new swelling or redness needs a different response. [1,2]
Key takeaways
- A cramp is a brief, painful muscle tightening; an urge to move your legs without a hard muscle knot suggests a different problem.
- Try a gentle stretch during an ordinary cramp. Regular bedtime stretching may help, but prevention evidence is limited.
- Night cramps do not automatically mean you lack magnesium or potassium.
- Do not use quinine to treat leg cramps. Its risks can be serious.
- Seek prompt care for new one-sided swelling, warmth, or persistent pain; call 911 for trouble breathing or chest pain. [2–6]

What does a nighttime leg cramp feel like?
The calf may suddenly become tight and hard, sometimes pulling your foot downward. The pain usually settles within seconds to minutes, although soreness can linger. Feet and thighs can also cramp. This is different from a small, painless muscle twitch. Many episodes have no single identifiable cause. [1,2]
| What you notice | What to discuss |
|---|---|
| Sudden painful knot that releases | A nighttime muscle cramp may fit. |
| Urge to move at rest, often relieved by walking | Ask about restless legs syndrome. |
| Burning, tingling, or numbness between episodes | A nerve problem may need assessment. |
| Pain predictably brought on by walking | Ask about circulation problems. |
| New swelling, warmth, or lasting pain in one leg | Seek urgent assessment rather than assuming a cramp. |
These clues cannot diagnose the cause at home. Our guides to restless legs syndrome and burning or numb feet explain two common alternatives. [2,6]
Why do cramps keep happening?
Cramps become more common with age and during pregnancy. Unusual exertion, muscle fatigue, nerve problems, certain medicines, and dialysis can contribute. Dehydration or an electrolyte disturbance can cause cramps in some settings, but ordinary recurring night cramps are not reliably explained by a mineral deficiency. A cramp alone cannot tell you which nutrient, if any, is low. [1,2]
Tell your clinician if symptoms began after a new medicine or dose change. Bring prescription drugs, over-the-counter products, and supplements to the review. Do not stop a needed medicine on your own. If you have kidney disease, heart failure, or a fluid restriction, ask before increasing fluids or taking electrolyte products. [1,7]
What can you do when a calf cramp starts?
- Get into a stable position. Sit down if you feel unsteady; avoid jumping out of bed in the dark.
- Lengthen the calf gently. Straighten the knee as comfortable and slowly bring your toes toward your shin. A towel around the forefoot can help you reach. Do not jerk or bounce.
- Let the muscle relax. Gentle rubbing or comfortable warmth may ease tightness. Protect the skin from heat, especially if you have reduced sensation.
- Reassess. A painful swollen leg that does not settle should be evaluated, not repeatedly massaged or stretched. [1,6,8]
A stretch should feel like a gentle pull, not sharp pain. Ask a physical therapist for an adapted technique if balance, joint pain, recent surgery, or limited mobility makes stretching difficult.
Can a bedtime routine prevent the next episode?
A short, comfortable calf and hamstring stretching routine before bed is reasonable to try. One randomized trial in 80 adults older than 55 found improvement after six weeks. However, a later Cochrane review judged the overall evidence uncertain: combined stretching may reduce pain severity, while effects on frequency are less clear. Stretching is a trial of symptom management, not a guaranteed cure. [3,9]
For a supported calf stretch, face a wall, place your hands on it, step one foot back, keep that heel down, and lean forward gently with the back knee straight. Hold a comfortable stretch, relax, and repeat on the other side. Avoid bouncing. Keep activity changes gradual and replace fluids lost through sweating when appropriate for your health. [8]
Keep a simple diary for a few weeks: which leg cramped, approximate duration, sleep disruption, activity that day, and what helped. This makes a follow-up visit more useful than trying several new products at once.
Do magnesium, vitamins, or medicines help?
Magnesium is not a routine solution. A 2020 Cochrane review found that supplements were unlikely to meaningfully prevent cramps in older adults. Pregnancy studies were inconsistent. A later 2021 trial of one magnesium formulation reported benefit after 60 days, so the findings are mixed and do not show that every supplement works. [13] Treating a confirmed deficiency is a different question from taking magnesium despite no evidence of deficiency. Supplements can cause diarrhea and nausea; kidney impairment increases the risk of magnesium buildup. [4,7]
Avoid quinine for cramps. The FDA warns that it can cause dangerous blood reactions, allergic reactions, and heart-rhythm problems. It is not approved in the United States for preventing or treating leg cramps. Do not use tonic water as a self-treatment substitute. [5]
Vitamin K2 remains an emerging research question. A short trial in older adults in China reported fewer cramps, but the article was retracted and replaced in 2025 to correct reporting and analyses. The replacement still reported benefit; it does not establish long-term safety or routine use for all adults. Do not start it based on a headline, especially if you take warfarin, which interacts with vitamin K. [10–12]
If cramps remain disabling, a clinician can revisit the diagnosis and discuss whether any individualized treatment is justified. A medicine advertised for cramps is not necessarily effective or low risk. [1,5]
When do you need tests or medical care?
For a typical pattern, the history and examination often provide the answer; routine blood tests are not always needed. Testing should follow clues—for example, suspected fluid or mineral loss, kidney disease, or persistent nerve symptoms—rather than a standard supplement panel for everyone. [2]
Arrange an appointment if cramps repeatedly disturb sleep, become more frequent or severe, last unusually long, or occur with weakness or numbness. Pregnant patients and people receiving dialysis should discuss recurring cramps with their own care team. [1,4]
Seek urgent care for new one-sided leg swelling, warmth, redness, or persistent tenderness. A blood clot can cause these symptoms. Call 911 for sudden trouble breathing, chest pain, fainting, or coughing blood. See our guide to a swollen leg and possible DVT. [6]
Questions to ask at your visit
- Does this sound like a true cramp or another condition?
- Could a medicine or my activity pattern be contributing?
- Do my symptoms suggest a specific blood test?
- Which stretches are appropriate for my mobility and health?
- When should we review the diary and response to treatment?
Conclusion
Nighttime calf cramps are painful but often manageable with gentle stretching and a practical review of recurring symptoms. Supplements are not automatically the answer, and quinine carries important risks. New swelling, persistent pain, or other warning signs deserve medical assessment.
References
- National Library of Medicine. Muscle Cramps. MedlinePlus. Updated August 15, 2025. Official patient resource.
- Allen RE, Kirby KA. Nocturnal leg cramps. American Family Physician. 2012;86(4):350–355. Clinical review.
- Hawke F, Sadler SG, Katzberg HD, Pourkazemi F, Chuter V, Burns J. Non-drug therapies for the secondary prevention of lower limb muscle cramps. Cochrane Database of Systematic Reviews. 2021;(5):CD008496. Review. doi:10.1002/14651858.CD008496.pub3.
- Garrison SR, Korownyk CS, Kolber MR, Allan GM, Musini VM, Sekhon RK, Dugré N. Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews. 2020;(9):CD009402. Review and evidence summary. doi:10.1002/14651858.CD009402.pub3.
- US Food and Drug Administration. Serious risks associated with using quinine to prevent or treat nocturnal leg cramps. September 2012. FDA safety communication.
- National Heart, Lung, and Blood Institute. Venous Thromboembolism: Symptoms. Online version accessed October 16, 2026. Official resource.
- NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals. Online version accessed October 16, 2026. Official resource.
- American Academy of Orthopaedic Surgeons. Muscle Cramps. OrthoInfo. Online version accessed October 16, 2026. Patient guidance.
- Hallegraeff JM, van der Schans CP, de Ruiter R, de Greef MHG. Stretching before sleep reduces the frequency and severity of nocturnal leg cramps in older adults: a randomised trial. Journal of Physiotherapy. 2012;58(1):17–22. PubMed. doi:10.1016/S1836-9553(12)70068-1.
- Tan J, Zhu R, Li Y, et al. Vitamin K2 in managing nocturnal leg cramps: a randomized clinical trial. JAMA Internal Medicine. 2024;184(12):1443–1448. Replacement article. doi:10.1001/jamainternmed.2024.5726. Read with the 2025 notice below.
- Tan J, Zhu R. Notice of retraction and replacement: Vitamin K2 in managing nocturnal leg cramps. JAMA Internal Medicine. 2025;185(7):904. Correction and reanalysis notice. doi:10.1001/jamainternmed.2025.2160.
- NIH Office of Dietary Supplements. Vitamin K: Fact Sheet for Consumers. Online version accessed October 16, 2026. Official resource.
- Barna O, Lohoida P, Holovchenko Y, et al. A randomized, double-blind, placebo-controlled, multicenter study assessing the efficacy of magnesium oxide monohydrate in the treatment of nocturnal leg cramps. Nutrition Journal. 2021;20:90. PubMed. doi:10.1186/s12937-021-00747-9.
Author and article information
Hyo Cheul Park, MD. Dr. Park graduated from Chonnam National University College of Medicine, completed postgraduate surgical training at Gwangju Christian Hospital, and obtained board certification in general surgery in the Republic of Korea. He is the clinical author and editor of MedEvidence Global.
Literature search date: October 16, 2026. Evidence versions include the 2020 magnesium and 2021 non-drug Cochrane reviews, current online US patient resources, the FDA’s 2012 quinine safety communication, and the 2025 vitamin K2 replacement notice. The 2012 clinical review supports symptom differentiation, not a new guideline or routine drug recommendation. Small studies, varying definitions, and limited long-term data leave uncertainty about prevention. Review at least annually or after important evidence or safety changes.
Medical disclaimer: This article is general education for US adults and does not replace individual medical evaluation, diagnosis, or treatment.