MyGymGuid

Supplements for sleep: what actually helps you fall asleep

Sleep is fixed by a regular schedule, darkness and no caffeine after lunch; a supplement only helps a little on top. The best studied are melatonin for a disrupted schedule and flights, magnesium when you're low on it, and glycine, which is gentle and almost risk-free. Below: what to pick for your cause and how to take it.

MyGymGuid team · Updated November 24, 2026

Supplements for sleep: what works

Benefit rating 1–5: how much a supplement is proven to help in sport for the money.

  • Magnesium

    A mineral for muscle and nerve function and energy production. Lost in sweat. Forms — buttons below.

    Read the guide →
  • Ashwagandha

    An Ayurvedic adaptogen herb. The root extract is used. It's both a stress and sleep aid and one of the herbs in testosterone boosters — so it's in the Sleep & recovery and Testosterone boosters sections.

    Read the guide →
  • Melatonin

    A hormone that tells the body it's time to sleep. Forms — buttons below.

    Read the guide →
  • Glycine

    A simple amino acid with a sweetish taste. Cheap and safe. It's both an amino acid and a sleep aid — so it's in the Amino acids and Sleep & recovery sections.

    Read the guide →
  • L-theanine

    L-theanine — an amino acid from tea leaves. It doesn't make you drowsy; most people take it with caffeine. It's an amino acid that people also take for calm and sleep — so it's in the Amino acids and Sleep & recovery sections.

    Read the guide →
  • ZMA

    A blend of zinc, magnesium and vitamin B6.

    Read the guide →
  • GABA

    GABA (gamma-aminobutyric acid) — a calming messenger in the brain.

    Read the guide →
  • 5-HTP

    5-hydroxytryptophan — a precursor of serotonin and melatonin.

    Read the guide →
  • Valerian

    Valerian — a plant root extract. Long used as a calming aid and for sleep.

    Read the guide →
  • Apigenin

    Apigenin — a plant compound (flavonoid) found in high amounts in chamomile.

    Read the guide →

Schedule, light and caffeine come first

No supplement can outweigh late coffee and a phone in bed.

  • Go to bed and get up at the same time, even on weekends. Before bed, dim the lights and put the screen away: bright light suppresses both your own melatonin and the melatonin you take.
  • Caffeine is sleep's main enemy. In a meta-analysis it cut sleep by 45 minutes on average, with less deep sleep. Have a cup of coffee (about 100 mg) no later than 9 hours before bed, and a pre-workout serving (about 200 mg) no later than 13 hours before. More in the guide on caffeine.
  • After an evening workout, give yourself an hour to wind down: a shower, dim light, no screen.
  • Insomnia for months: see a doctor. For chronic insomnia, the first recommendation is not pills but cognitive behavioral therapy.

What helps: melatonin, magnesium and glycine

Melatonin is the hormone that signals "it's night now". It sets your internal clock, but it isn't a sleeping pill: in a meta-analysis of 19 studies it sped up falling asleep by 7 minutes on average. It helps most with flights: in a Cochrane review, 9 out of 10 studies showed it reduces jet lag. Take 0.5–1 mg, up to 3 mg if needed, and for short periods: there is little data on taking it for months.

Magnesium doesn't "switch on" sleep. It fills a mineral shortfall, and if your diet is low in magnesium, your sleep may improve within a few weeks. If you get enough, there will be no miracle. Take 100–250 mg of elemental magnesium as citrate or bisglycinate; oxide is barely absorbed.

Glycine is a simple amino acid, cheap and very safe. In small studies, 3 g before bed helped people fall asleep faster and feel more alert in the morning. There are no large studies, but the risk is close to zero. Take the powder: a tablet has 100 mg, so you'd need 30 of them for 3 g.

Which of the two to pick and whether you can take them together: see the guide magnesium or melatonin.

How to pick for your cause

First figure out why you sleep badly. What helps depends on the cause.

  • You can't fall asleep until 2–3 a.m., your schedule is off or you've had a flight: melatonin.
  • A limited diet, cutting, sweating a lot: count the magnesium in your food over a few days. If it's clearly below 300–400 mg, top it up with food or a supplement.
  • You just take a long time to fall asleep and want the gentlest option: glycine.
  • You trained in the evening with caffeine: the supplement isn't the main thing here. L-theanine and melatonin don't cancel out caffeine: move your caffeine earlier or have less.
  • You're very stressed: start with your schedule and rest. What to try for stress is on the page supplements for stress.

What helps weakly or with caveats

  • Ashwagandha. In a meta-analysis of 5 studies, sleep improved a little, more noticeably with insomnia, at 600 mg a day or more and after 8 weeks or more. But rare severe liver damage has been reported, it can raise thyroid hormones, and it must not be taken during pregnancy.
  • L-theanine. In a meta-analysis of 18 studies, people fell asleep slightly faster, but sleep was rated by how people felt. Safe, 200–400 mg in the evening.
  • Valerian. Some people say they sleep better, but measured by devices the difference from placebo is barely visible. Don't combine it with alcohol or sleeping pills.
  • GABA, apigenin and ZMA. There is no clear evidence of a sleep benefit, which does not mean it's false. Whether GABA from a capsule reaches the brain is unknown; for apigenin, chamomile was studied, not apigenin itself; ZMA didn't improve sleep in men without a mineral shortfall.
  • 5-HTP. There are almost no good studies for sleep, and it must not be taken with antidepressants: risk of serotonin syndrome.

Evening plan

WhatHow muchWhen
Melatonin (schedule off, flight)0.5–1 mg, 3 mg max30–60 minutes before bed, for short periods
Magnesium (if your diet is low in it)100–250 mg of elemental magnesiumWith dinner or 1–2 hours before bed
Glycine3 g of powder30–60 minutes before bed
CaffeineA cup of coffee: about 100 mg; a pre-workout serving: about 200 mgNo later than 9 and 13 hours before bed

Start with one supplement: after 1–2 weeks you'll know whether it helps. You can take magnesium and melatonin together; there are no known interactions. With ashwagandha, valerian and alcohol, drowsiness can add up: drive in the morning only if you feel fully alert.

Myths and FAQ

What should I take for sleep after an evening workout?

First cut out caffeine and pre-workouts after lunch and give yourself an hour to wind down. If you still can't fall asleep, you can take 0.5–1 mg of melatonin 30–60 minutes before bed or 3 g of glycine. Don't take melatonin before training.

Magnesium or melatonin: which is better for sleep?

It depends on the cause. If your schedule is off or you've had a flight, melatonin: it works the same evening. If your diet is low in magnesium, magnesium: the effect may show up after a few weeks. You can take them together, but start with one.

Does glycine help you fall asleep?

In small studies, 3 g before bed helped people fall asleep faster and get up more easily. There are no large independent studies, but glycine is cheap and safe, and it usually doesn't cause morning drowsiness.

Can I take sleep supplements every day?

Magnesium: yes, up to 250 mg a day from supplements, if your kidneys are healthy. Glycine: you can take it every evening. Melatonin: better for short periods; if you can't fall asleep without it for more than a month, look into the cause with a doctor.

Does a pre-workout affect sleep?

Yes, if it contains caffeine. A serving with 200 mg of caffeine is best taken no later than 13 hours before bed. If you train in the evening, take a stimulant-free pre-workout or skip caffeine that day.

Log your supplements in the app

Add your supplements with the dose and the app will remind you and log each dose. Free.

Reference information, not a substitute for medical advice. If you have a health condition, are pregnant or take medication, talk to your doctor.

Other goals