Question explored with the scientific record
Pain in legs at night, sometimes cramp. Flat feet. Other parts of the bosy generally OK.
Night leg pain with flat feet is usually a mechanical or circulation problem, not a mystery. The evidence here points to a few checkable causes, and none of them require a drug first.
The most likely candidates are restless legs syndrome, chronic venous disease, and nerve compression. RLS is a common condition affecting about 3 in 100 people worldwide, and its hallmark is evening-peaking discomfort with an urge to move the legs [1]. Venous disease causes leg pain, heaviness, and night cramps that worsen at night and impair sleep [4]. Flat feet are a known predisposing factor for tarsal tunnel syndrome, where the tibial nerve gets compressed at the ankle [8]. Flat feet also cause foot pain and compensatory strain up the leg [7].
| Cause | What fits your picture | Evidence |
|---|---|---|
| Restless legs | Night-peaking urge to move | 3% of people [1] |
| Venous disease | Night cramps, heaviness | Symptoms worse at night [4] |
| Tarsal tunnel | Flat feet as risk factor | 18 athletes, flatfoot predisposing [8] |
| Magnesium | Cramps | No better than standard therapy [5] |
Magnesium is the popular fix, and the evidence is weak. In 30 people with night cramps, adding 100 mg magnesium citrate to standard therapy was not significantly better than standard therapy alone [5]. A separate review found 200 mg daily improved RLS scores in 12 untreated adults, an open-label pilot with no control group [3]. That is thin.
Simple things come first: calf and foot stretches, arch support or custom orthoses, and compression stockings if veins are involved. Custom orthoses improved foot pain in children with symptomatic flat feet over three months [6]. Ask your doctor to check ferritin (iron stores), since iron deficiency is a shared mechanism in RLS [2], and to examine the ankle for nerve compression given the flat feet [8].
My call: start with mechanical fixes and a ferritin check before any drug; the magnesium evidence does not support it as a reliable cramp cure. Confidence: moderate on the causes, low on magnesium.
Cite this page: OpenNeedle, “Pain in legs at night, sometimes cramp. Flat feet. Other parts of the bosy generally OK.” https://openneedle.ai/q/pain-legs-at-night-sometimes-cramp/ (updated Dec 1, 2026).
Sources used 8
-
Biopsychosocial barriers and facilitators in the everyday lives of patients with restless legs syndrome: a qualitative study.
Background Restless legs syndrome (RLS) is a common condition affecting 3% of the world's population. Pharmacological treatments do not cure RLS, and symptoms substantially affect everyday life. However, knowledge of biopsychosocial (BPS) factors influencing patients' everyday l…
DOI: 10.1080/07853890.2026.2743219 -
Irritable bowel syndrome and restless legs syndrome: a narrative review of epidemiological and pathophysiological overlap.
Background Irritable bowel syndrome (IBS) and restless legs syndrome (RLS) are chronic, multifactorial disorders that have considerable impact on quality of life and common comorbidity with mood and sleep disorders. Objectives The present narrative review consolidates existing l…
DOI: 10.1097/ms9.0000000000005523 -
Magnesium citrate: potential and current approaches in pharmacy
This narrative review summarizes the pharmacology, market formulations, and clinical study findings of magnesium citrate, concluding that the form is widely used and alleviates symptoms in conditions such as constipation, cramps, restless legs syndrome, and metabolic syndrome.
DOI: 10.12991/jrespharm.1654713 -
Sleep quality after endovenous ablation with concomitant phlebectomy in patients with chronic venous disease: A prospective observational study in Vietnam.
Background Chronic venous disease (CVD) of the lower extremities is associated with venous hypertension, leading to symptoms such as leg pain, heaviness, edema, and nocturnal cramps. These symptoms often worsen at night and may significantly impair sleep quality. Although endove…
DOI: 10.1016/j.jvscit.2026.102358 -
EFFECTIVENESS OF MAGNESIUM CITRATE ADJUNCTIVE THERAPY ON CRAMPING PAIN INTENSITY IN NOCTURNAL LEG CRAMPS PATIENTS AT BETHESDA HOSPITAL YOGYAKARTA
In 30 nocturnal leg cramp patients, adding magnesium citrate 100 mg daily for 2 weeks to standard therapy (calcium, gabapentin) was not significantly more effective than standard therapy alone in reducing cramping pain intensity.
DOI: 10.31603/pharmacy.v10i1.9534 -
Effect of Custom-Molded Foot Orthoses on Foot Pain and Balance in Children With Symptomatic Flexible Flat Feet.
Objective To evaluate the effect of custom-molded foot orthoses on foot pain and balance in children with symptomatic flexible flat foot 1 month and 3 months after fitting foot orthosis. Method A total of 24 children over 6 years old with flexible flat feet and foot pain for at …
DOI: 10.5535/arm.2015.39.6.905 -
Short foot exercises for flatfoot therapy: Status and prospects.
Flatfoot, a disorder defined by the flattening or loss of the medial longitudinal arch (MLA), affects approximately 15.6% of the child population. It may result from congenital or acquired dysfunction of muscles, tendons, or ligaments in the foot and ankle, as well as skeletal a…
DOI: 10.1177/00368504251410796 -
Tarsal Tunnel Syndrome in Athletes
A retrospective case-series of 18 athletes with sports-related tarsal tunnel syndrome identifies predisposing anatomic factors (flatfoot, talocalcaneal coalition, accessory muscles, osseous fragments) and demonstrates that surgical decompression with removal of space-occupying l…
DOI: 10.1177/0363546506286344