Caffeine, alcohol, and high-sugar foods are the most commonly reported dietary triggers for restless legs syndrome (RLS). But the full picture is more nuanced than a simple list of “bad foods.” Some items worsen symptoms directly by overstimulating your nervous system, while others do their damage indirectly by blocking absorption of the minerals your nerves and muscles need to function properly.
Caffeine and How It Affects Your Nerves
Caffeine is one of the clearest dietary triggers for restless legs. It works by blocking adenosine receptors, the chemical signals your body uses to promote relaxation and calm nerve activity. In the spinal cord specifically, caffeine disrupts the normal partnership between adenosine and dopamine receptors on motor neurons, increasing their excitability. Dopamine is the key brain chemical involved in RLS, and anything that interferes with its signaling in the spinal cord can make symptoms worse.
Clinical guidelines from the American Academy of Sleep Medicine recommend that people with RLS avoid caffeine, particularly in the afternoon and evening. This means coffee, energy drinks, black tea, and caffeinated sodas are all worth limiting. Even chocolate contains enough caffeine to be a factor for some people, especially when eaten later in the day.
Alcohol’s Effect on Leg Movements
Alcohol is the other substance that sleep medicine guidelines flag as a clear trigger. A study of alcohol users found that women who consumed two or more drinks per day were three times more likely to have clinically significant periodic leg movements during sleep (25% vs. 8% for non-drinkers). Men showed a similar pattern, with 22% of heavier drinkers affected compared to 13% of non-drinkers. Women who drank at that level were also more likely to report RLS symptoms and to receive an RLS diagnosis.
Alcohol fragments your sleep architecture, breaking up the deeper stages of sleep where your body does its most restorative work. This disruption alone can amplify RLS, since symptoms tend to peak during transitions between wakefulness and sleep. There’s also a chicken-and-egg problem: some people drink to try to ease their restless legs at bedtime, which may provide brief relief but ultimately makes the cycle worse.
Sugar, Insulin, and Nerve Function
High-sugar foods may worsen restless legs through two pathways. First, sugar-heavy meals can interfere with how your body absorbs magnesium, a mineral that plays a direct role in keeping nerves and muscles calm. Second, repeatedly high blood sugar levels over time raise your risk of peripheral neuropathy, nerve damage in the legs and feet that can trigger or intensify RLS. People with diabetes face a higher risk of RLS partly for this reason.
This doesn’t mean a single dessert will set off your symptoms. The concern is more about a pattern of eating highly processed, sugar-dense foods that keep blood sugar elevated and crowd out nutrient-rich options. Swapping refined carbohydrates like white bread, pastries, and sweetened cereals for whole-grain or high-fiber alternatives can help stabilize blood sugar and protect magnesium levels.
Foods That Block Iron Absorption
Iron deficiency is one of the strongest known risk factors for RLS, and certain foods make the problem worse not by lacking iron but by preventing your body from absorbing it. Two compounds are the main culprits: phytates and polyphenols.
Phytates are found naturally in whole grains, legumes, nuts, and seeds. They bind to iron in your digestive tract and carry it out of your body before it can be absorbed. Bran is a particularly potent source. Research has shown that removing phytates from bran significantly increases iron absorption, while adding them back suppresses it.
Polyphenols are present in tea, coffee, red wine, cocoa, many vegetables, cereals, and spices. Black tea is one of the most inhibitory beverages for iron absorption. Even herbal teas like peppermint can have a comparable effect at similar polyphenol concentrations. In one study, 200 mg of polyphenols from red beans cut iron absorption by 45%.
This doesn’t mean you need to eliminate these foods entirely. They have real nutritional benefits. The key is timing. If you’re prone to RLS and your iron levels are borderline, avoid drinking tea or coffee with iron-rich meals. Pairing iron sources with vitamin C (citrus, bell peppers, strawberries) instead can counteract the blocking effect and improve absorption significantly.
Gluten and Celiac Disease
For a specific subset of people, gluten is a meaningful RLS trigger. Celiac disease, the autoimmune condition triggered by gluten, has a strong association with restless legs. In one study, iron deficiency was present in 40% of celiac patients who had active RLS, compared to just 6% of celiac patients without RLS. After six months on a gluten-free diet, half of the 28 patients with RLS saw their symptoms improve.
The mechanism appears to be primarily about iron. Celiac disease damages the lining of the small intestine, which is where iron gets absorbed. So even if you’re eating enough iron, your body can’t use it efficiently. If you have unexplained RLS along with digestive symptoms like bloating, diarrhea, or fatigue, celiac testing is worth discussing with your doctor.
Stevia: An Unexpected Trigger
One surprising finding involves stevia, the natural zero-calorie sweetener. A report in the Journal of Clinical Sleep Medicine documented RLS symptoms associated with stevia use, with evidence suggesting the sweetener may alter dopamine levels in the brain. Interestingly, sucralose (the artificial sweetener in Splenda) did not produce the same effect, suggesting this is specific to stevia rather than a general property of sugar substitutes. If you use stevia regularly and notice your symptoms flaring, it’s an easy variable to test by switching sweeteners for a few weeks.
Nutrients Your Diet May Be Missing
Sometimes the issue isn’t what you’re eating but what you’re not eating. Two nutrient gaps are especially relevant to RLS.
Magnesium
Magnesium helps muscles relax by blocking calcium from overstimulating nerve cells. When magnesium is low, calcium floods in unchecked, nerves become overactive, and muscles contract involuntarily. Clinical trial data confirms that magnesium supplementation can help alleviate RLS symptoms. Good dietary sources include dark leafy greens, pumpkin seeds, almonds, black beans, and avocado.
Vitamin B6 and Folate
Vitamin B6 serves as a building block for dopamine production. It’s a required cofactor for the enzyme that converts the precursor molecule into active dopamine. Animal studies have confirmed that B6 deficiency significantly reduces dopamine levels in the brain. In clinical analysis, B6 supplementation meaningfully reduced RLS symptom severity scores. Foods rich in B6 include poultry, fish, potatoes, chickpeas, and bananas.
Folate matters most during pregnancy, when RLS rates spike. Pregnant women with insufficient folate intake (under 400 micrograms per day) had significantly higher rates of RLS than those meeting that threshold. Folate-rich foods include spinach, lentils, asparagus, broccoli, and fortified grains.
Putting It Together: What to Eat and When
The practical takeaway is that RLS symptoms respond to your overall dietary pattern, not just individual foods. A diet heavy in processed sugar, caffeine, and alcohol while low in iron, magnesium, and B vitamins creates the perfect storm for restless legs. Shifting toward whole foods, leafy greens, lean proteins, and iron-rich meals paired with vitamin C can address multiple triggers at once.
Timing matters too. Caffeine and alcohol do the most damage in the afternoon and evening, when RLS symptoms naturally intensify. If you drink tea or coffee, having it between meals rather than with food protects your iron absorption. And keeping evening meals moderate in sugar helps avoid the blood sugar swings that can heighten nerve excitability right when you’re trying to wind down.

