In short: Yes, you can easily take L-tryptophan and magnesium together, ideally in the evening. The two complement each other: tryptophan is the raw material your body uses to build serotonin and the sleep hormone melatonin, and magnesium contributes to normal functioning of the nervous system. In studies, people taking tryptophan spent less time awake during the night. The one important exception: if you take antidepressants, talk to your doctor first.
Key points
- A good team for the evening: tryptophan and magnesium don't interfere with each other, and both fit well with an evening meal.
- Sleep: in an analysis of several studies, people taking tryptophan spent less time awake during the night, most clearly from 1 g a day.
- Nervous system: Magnesium contributes to normal functioning of the nervous system. Magnesium contributes to normal psychological function.
- Combination studies: mixtures containing tryptophan and magnesium shortened the time to fall asleep and reduced night-time waking in studies.
- Caution with medication: together with antidepressants, MAO inhibitors or triptans, tryptophan can increase the risk of serotonin syndrome.
Contents
- Can you take L-tryptophan and magnesium together?
- What is L-tryptophan?
- How does tryptophan work in the body?
- What does magnesium have to do with serotonin?
- Tryptophan and sleep: what do studies show?
- Tryptophan and mood: what do studies show?
- Which foods contain tryptophan and magnesium?
- Dosage: how much and when?
- Side effects and interactions
- Our verdict
- Frequently asked questions
- Limits of the research and all sources
Can you take L-tryptophan and magnesium together?
Yes. Tryptophan and magnesium don't block each other's absorption, and no incompatibilities between the two are known. You can take them with the same meal, most simply with your evening meal.
The combination also makes sense on its own merits. Tryptophan supplies the raw material your body uses to build serotonin, and melatonin in the evening. Magnesium contributes to normal functioning of the nervous system. Together, the two cover two sides that matter for a calm evening.

Are there studies on the combination?
Yes, several, mostly with mixtures that also contained other ingredients alongside tryptophan and magnesium. The results mostly point in a positive direction.
What the studies show: 16 young adults took a mixture of tryptophan, glycine, magnesium, tart cherry powder and L-theanine. On average, they fell asleep 24 minutes faster.1 In a German study, 50 adults took a granulate with 120 mg tryptophan, 60 mg magnesium, lemon balm and lettuce extract for two weeks. Afterwards, they woke up during the night 31% less often.2 In people with fibromyalgia, a chronic pain condition, a supplement with coenzyme Q10, tryptophan and magnesium improved sleep quality.4 A Mediterranean-style diet enriched with tryptophan and magnesium was associated with better mood in that group.3
Our take: The combination of tryptophan and magnesium makes sense and is well tolerated. For tryptophan, studies show shorter periods of night-time wakefulness; for magnesium, the statements on the nervous system are officially confirmed, and there's a good study on sleep for the bisglycinate form.5 If you want to wind down in the evening, you can easily take both together with your evening meal. How much the combination adds on top of the individual nutrients is something larger studies still need to show.
What is L-tryptophan?
L-tryptophan is an amino acid, a building block of protein. It's essential: your body can't make it itself, so you have to get it from food. The "L" stands for the natural form found in food, the one your body can use.
What does the body need tryptophan for?
The body builds most of its tryptophan into proteins. A small part is converted into serotonin, melatonin and niacin (vitamin B3). That's why tryptophan is known as the "sleep and mood amino acid."
What the studies show: Adults need on average around 4 mg of tryptophan per kilogram of body weight a day; the safe intake is put at around 5 mg per kilogram.6 For 70 kg, that's roughly 280 to 350 mg (our calculation). Adults in the US take in an average of 826 mg a day, several times that amount.7
Chemical structure and properties
Tryptophan is the only amino acid with a so-called indole ring, a double-ring structure. It's from exactly this structure that serotonin and melatonin are later built. Supplements almost always use the L-form, usually as a white powder in capsules.
How does tryptophan work in the body?
Tryptophan doesn't work directly; it works through what the body makes from it. The main pathway for sleep and mood runs in three steps:
| Step | From … to … | What's needed |
|---|---|---|
| 1 | Tryptophan → 5-HTP | The enzyme tryptophan hydroxylase, with iron, oxygen and the helper tetrahydrobiopterin |
| 2 | 5-HTP → Serotonin | An enzyme with active vitamin B6 |
| 3 | Serotonin → Melatonin | Mainly at night in the pineal gland |
What the studies show: A recent review describes this pathway and names the required helpers: iron and tetrahydrobiopterin for the first step, vitamin B6 for the second.8 Around 90 to 95% of the body's serotonin, by the way, is made in the gut, not the brain.8
For tryptophan to reach the brain, it has to get past other amino acids at the blood-brain barrier. Several large amino acids share the same transporter there. A protein-rich meal brings along many of these competitors; a carbohydrate-rich one brings fewer.
What the studies show: As early as the 1970s, research in rats showed that the amount of tryptophan in the blood alone says little. What matters more is its ratio to the competing amino acids.9 In humans, this ratio differed by a median of 54% after a carbohydrate-rich versus a protein-rich breakfast.10
How melatonin is formed
Melatonin is the hormone that signals "night" to your body. It's made from serotonin, mainly in darkness. Light slows its production. So tryptophan supplies the raw material, but your internal clock mainly controls when melatonin is actually made.
The role of niacin
The body can also make niacin (vitamin B3) from tryptophan. This isn't very efficient, though: around 60 mg of tryptophan yields about 1 mg of niacin.11 Only with a severe niacin deficiency does this divert a meaningful amount of tryptophan away from the path to serotonin.8
What does magnesium have to do with serotonin?
Magnesium works in the background. It's needed for all reactions that use ATP, the cell's energy carrier, and it influences signal transmission between nerve cells.8 The actual conversion of tryptophan to serotonin is carried out by enzymes that need iron, tetrahydrobiopterin and vitamin B6.8 The often-repeated claim that magnesium "activates" this exact enzyme is therefore too simple.
For magnesium, two officially confirmed statements in the EU are relevant here:
- Magnesium contributes to normal functioning of the nervous system.
- Magnesium contributes to normal psychological function.
What the studies show: In animal studies, a mood-lifting effect of magnesium depended on the serotonin system: when serotonin production was blocked, the effect disappeared.8 That's an early hint that magnesium and serotonin interact.
Our take: Tryptophan and magnesium have different jobs, and that's exactly what makes the combination sensible. Tryptophan supplies the raw material for serotonin and melatonin, while magnesium supports the nervous system as a whole. Vitamin B6 is also important for the conversion itself, which is why the three are often found together.
Tryptophan and sleep: what do studies show?
Tryptophan is taken mainly in the evening, for calmer nights. The clearest finding concerns staying asleep: people taking tryptophan spent less time lying awake at night.
What the studies show: An analysis of several studies found shorter periods of night-time wakefulness, most clearly with 1 g or more a day.12 In a study of 98 adults, 1 g of tryptophan a day over one week improved sleep efficiency measured with a wrist device, meaning the share of time in bed that you're actually asleep.13 A review of around 40 studies found the best results in people with mild difficulty falling asleep: from 1 g, they fell asleep faster.14
Our take: Tryptophan has the most going for it in people who occasionally sleep poorly through the night or struggle to wind down. Studies mostly use 1 g in the evening. If you sleep poorly for weeks on end, it's worth also having the cause checked by a doctor.
And magnesium? In a study of 155 adults, sleep problems decreased more with 250 mg of magnesium as bisglycinate than with a placebo.5 In studies of older adults, participants fell asleep around 17 minutes faster on average with magnesium.15 All the details are in our article Magnesium and sleep. More on the bisglycinate form is in Magnesium glycinate: benefits and side effects.
Tryptophan and mood: what do studies show?
In healthy people, there are studies showing better mood and less anxiety with tryptophan. If you feel low for weeks at a time, though, seek medical advice, because depression needs medical treatment.
What the studies show: A systematic review of 11 studies in healthy adults found an improvement in mood or anxiety in four of them, with amounts of 0.14 to 3 g of tryptophan a day.16 In people with depression, tryptophan has mainly been studied as an add-on to antidepressants, with mixed results.18, 19
Our take: For everyday life in healthy people, there are positive studies on tryptophan and mood, even though not every study found an effect.17 For magnesium, it's officially confirmed: Magnesium contributes to normal psychological function. Together, the two fit well into a calm evening routine.
Which foods contain tryptophan and magnesium?
Protein-rich foods are the main source of tryptophan. Seeds and nuts are especially interesting here, because they also contain a lot of magnesium. Cheese and meat provide plenty of tryptophan but little magnesium.
| Food (per 100 g) | Tryptophan | Magnesium |
|---|---|---|
| Soybeans, dried | 591 mg | 280 mg |
| Pumpkin seeds | 576 mg | 592 mg |
| Parmesan | 482 mg | 44 mg |
| Chia seeds | 436 mg | 335 mg |
| Emmental (Swiss cheese) | 401 mg | 33 mg |
| Sunflower seeds | 348 mg | 325 mg |
| Cashew nuts | 287 mg | 292 mg |
| Chicken breast, raw | 283 mg | 28 mg |
| Oats | 182 mg | 138 mg |
| Hen's egg | 167 mg | 12 mg |
| Whole milk | 40 mg | 10 mg |
Source: US nutrient database FoodData Central.20

Animal sources
Cheese, meat, fish and eggs provide plenty of tryptophan. A 30 g piece of Parmesan brings around 145 mg. That's roughly half the average daily requirement for a 70 kg body weight (our calculation using 4 mg per kg). Magnesium, on the other hand, is barely present in these foods.
Plant sources
Soy, pumpkin, sunflower and chia seeds, as well as cashew nuts, provide both. A handful of pumpkin seeds (30 g) contains around 173 mg of tryptophan and 178 mg of magnesium (our calculation from the table).
Tip: Through food, you usually cover your basic tryptophan needs well. The amounts used in sleep studies (1 g in the evening) are hard to reach that way, though: you'd need around 170 g of pumpkin seeds in one go (our calculation). On top of that, protein-rich food also brings along the competing amino acids.9 That's exactly why many people turn to tryptophan supplements for the evening. Pumpkin seeds in porridge or salad are still a good addition, if only for the magnesium.
Dosage: how much and when?
There's no official recommendation for tryptophan as a supplement. Sleep studies mostly used 1 g a day, taken in the evening before bed. For magnesium, the rule is: no more than 250 mg a day from supplements, unless your doctor advises otherwise.
Recommended daily amount
| Tryptophan | Magnesium | |
|---|---|---|
| Requirement from food | around 4–5 mg per kg body weight6 | see How much magnesium per day? |
| Amount in studies | mostly 1 g a day, in the evening12, 13 | e.g. 250 mg a day5 |
| Upper limit from supplements | none officially set | 250 mg a day21 |
What the studies show: In the sleep analysis, amounts from 1 g a day performed better than smaller ones.12 Side effects such as tremor, nausea and dizziness occurred mainly at very high amounts, around 70 mg per kilogram, so roughly 5 g a day for 70 kg.22
Tips for taking it
How to do it in practice:
- When? In the evening. Tryptophan can make you sleepy, which is usually unwanted if taken in the morning.
- With what? Take tryptophan with something light and carbohydrate-based rather than a protein-rich steak. Magnesium is best taken with a meal.
- Together? Yes, both can be taken at the same time. You don't need a gap between tryptophan and magnesium.
- How long? In studies, between a few days and three months. Good safety data are lacking for taking higher amounts of tryptophan for years.22
Why magnesium works better with a meal, and which medicines need a gap, is covered in When should you take magnesium?
Side effects and interactions
At usual amounts, tryptophan is considered well tolerated in healthy adults. The biggest risk doesn't come from tryptophan alone, but from combining it with medicines that also act on serotonin.
Common side effects
Reported effects include tiredness, nausea, dizziness and tremor, mostly at high amounts.22 With magnesium, the most common side effect is loose stools, especially with larger amounts taken at once. That's why the upper limit for magnesium from supplements is 250 mg a day.21
What the studies show: A review covering five decades of tryptophan use describes mostly mild, short-lived side effects. The authors do stress, though, that the evidence base is small and mainly built on individual case reports.22
In 1989, more than 1,500 people in the US and some other countries fell ill with what's known as eosinophilia-myalgia syndrome, a serious inflammatory condition with muscle pain. The cases were traced back to tryptophan from a single manufacturer.23 Contaminants from that production process are considered the cause, not tryptophan itself.22 For you, that means: look for supplements from controlled, traceable manufacturing.
Interactions with medication
Important: Don't take tryptophan without talking to your doctor first if you're taking any of these:
- Antidepressants, especially SSRIs, SNRIs and tricyclic antidepressants
- MAO inhibitors (an older type of antidepressant)
- Triptans (migraine medicines), certain painkillers such as tramadol, St John's wort
Combined with these medicines, too much serotonin can build up. Possible signs of serotonin syndrome include restlessness, confusion, tremor, muscle twitching, sweating and fever. If these occur, get medical help immediately. You should also only take tryptophan after talking to a doctor during pregnancy and breastfeeding, because safety data are lacking.22
What the studies show: Researchers analysed nearly 9,000 reported cases of serotonin syndrome from the US database for adverse events. Tryptophan was among the ten substances most disproportionately reported in connection with the syndrome.24 Reviews also name triptans, tramadol and St John's wort as triggers, alongside antidepressants.25 In five patients who took tryptophan in addition to the antidepressant fluoxetine, all five had a toxic reaction.26
There's a counter-finding too: in a controlled study, 30 people with depression received fluoxetine together with 2 to 4 g of tryptophan. No serotonin syndrome occurred.27 This happened under medical supervision, though. It's not a green light for self-treatment.
Magnesium itself has other interactions, for example with thyroid hormone and certain antibiotics. The details are in When should you take magnesium?
Our verdict
L-tryptophan and magnesium make a good combination for the evening. Tryptophan supplies the raw material for serotonin and melatonin, and in studies, people taking it spent less time awake during the night, especially from around 1 g a day. Magnesium contributes to normal functioning of the nervous system. Magnesium contributes to normal psychological function. Take both with your evening meal, stick to the 250 mg limit for magnesium from supplements, and talk to your doctor first if you take antidepressants or similar medicines. Regular sleep times and less light late in the evening round this off.
Frequently asked questions
Can you take L-tryptophan without worry?
For healthy adults not taking medication, tryptophan is considered well tolerated at usual amounts. Side effects occur mainly at high amounts.22 Taking it together with antidepressants and other medicines that act on serotonin is not without concern.24
When should you not take tryptophan?
Not without talking to a doctor first if you take antidepressants (SSRIs, SNRIs, tricyclics), MAO inhibitors, triptans, tramadol or St John's wort, because of the risk of serotonin syndrome.25 Also only after talking to a doctor during pregnancy and breastfeeding, and in children, because safety data are lacking.
What is tryptophan good for?
Tryptophan is a protein building block and the raw material for serotonin, melatonin and niacin.8 As a supplement, it's mainly taken in the evening. In studies, people taking at least 1 g a day spent less time awake during the night.12 There's no authorised health claim for tryptophan in the EU.
What is L-tryptophan and why does it matter?
L-tryptophan is an essential amino acid: your body can't make it itself. You need it to build protein and as the starting material for serotonin and melatonin. With a normal, protein-containing diet, most people take in considerably more than they need.7
Which is better: tryptophan or melatonin?
The two work at different points. Melatonin is the finished "night signal," while tryptophan is the raw material your body uses to build serotonin and melatonin itself. Direct comparison studies are scarce. More on melatonin and magnesium is in Magnesium and sleep.
Tryptophan with magnesium and vitamin B6: what does that do?
Vitamin B6 is needed for the second step from tryptophan to serotonin.8 So the combination makes good biochemical sense. We haven't found a study that tests exactly this three-way mixture.
Does tryptophan make you tired?
It can. Sleepiness is described as the most common side effect and is usually wanted when taken in the evening.22 After taking tryptophan, you shouldn't drive until you know how you react to it.
Limits of the research and all sources
No study so far has tested only tryptophan and magnesium against a placebo. The combination studies are small and short (some just three nights), contain other ingredients, or looked at people with fibromyalgia; one had no control group and was funded by the manufacturer. The sleep analysis for tryptophan is based on four studies and found the effect mainly for night-time wakefulness, not for time to fall asleep or total sleep duration. For mood, 4 of 11 studies found an effect. Many tryptophan studies are decades old, and the safety data are largely based on individual case reports.
Show all 27 sources
| # | Study | Who was studied | Result | Strength of evidence |
|---|---|---|---|---|
| 1 | Langan-Evans et al. 2022, Med Sci Sports Exerc | 16 young adults, 3 nights, mixture with tryptophan, glycine, magnesium, tart cherry, theanine | sleep onset time −24 min | small controlled study, mixed supplement |
| 2 | Schmitt et al. 2025, Nutr Diet Suppl | 50 adults, 14 days, 120 mg tryptophan + 60 mg magnesium + plant extracts | night-time waking −31% | no control group, manufacturer-funded study |
| 3 | Martínez-Rodríguez et al. 2020, IJERPH | 22 women with fibromyalgia, 16 weeks, enriched diet | mood and anxiety better, sleep not | small controlled study |
| 4 | Rosselló Aubach et al. 2025, J Diet Suppl | 89 people with fibromyalgia, Q10 + tryptophan + magnesium | sleep quality better, tiredness not | controlled study, mixed supplement |
| 5 | Schuster et al. 2025, Nat Sci Sleep | 155 adults, 250 mg magnesium as bisglycinate, 4 weeks | sleep problems reduced more than with placebo (small effect) | controlled study |
| 6 | Lazaris-Brunner et al. 1998, Am J Clin Nutr | 5 women, isotope method | requirement 4.0 mg/kg, safe intake 5.0 mg/kg | small metabolic study |
| 7 | Lieberman et al. 2016, J Nutr | 29,687 adults (US) | usual intake 826 mg/day | population data |
| 8 | Tang et al. 2025, Adv Nutr | review article | enzymes and cofactors of serotonin synthesis; magnesium involved indirectly | review |
| 9 | Fernstrom & Wurtman 1972, Science | rats | ratio to competing amino acids determines brain tryptophan | animal study, foundational work |
| 10 | Wurtman et al. 2003, Am J Clin Nutr | 9 adults, two breakfasts | tryptophan ratio differed by a median of 54% after carbohydrate- vs protein-rich breakfast | small study |
| 11 | EFSA 2014, EFSA Journal | regulatory opinion on niacin | 60 mg tryptophan ≈ 1 mg niacin | official assessment |
| 12 | Sutanto et al. 2022, Nutr Rev | 18 studies screened, 4 evaluated | shorter night-time wakefulness, stronger from 1 g/day; other sleep measures unchanged | meta-analysis |
| 13 | van Dalfsen et al. 2019, J Psychopharmacol | 98 adults, 1 g/day, 1 week | sleep efficiency better, shorter wake periods | controlled study |
| 14 | Hartmann 1982, J Psychiatr Res | around 40 controlled studies | from 1 g: more sleepiness, shorter latency; best results in mild sleep problems | older review |
| 15 | Mah & Pitre 2021, BMC Complement Med Ther | 3 studies, 151 older adults | fell asleep 17 min faster | meta-analysis, low-quality evidence |
| 16 | Kikuchi et al. 2021, J Diet Suppl | 11 studies in healthy people | 4 of 11 with better mood, 0.14–3 g/day | systematic review |
| 17 | Rueda et al. 2024, Am J Physiol | 20 healthy adults, 3 g/day, 3 weeks | psychological scores unchanged | controlled study |
| 18 | Sarris et al. 2016, Am J Psychiatry | studies on adjunctive treatments for depression | tryptophan: mixed results | meta-analysis |
| 19 | Shaw et al. 2002, Aust N Z J Psychiatry | 108 studies screened | only 2 of sufficient quality (64 patients) | meta-analysis, insufficient data |
| 20 | USDA FoodData Central (SR Legacy) | nutrient database | tryptophan and magnesium content in the table | reference data |
| 21 | EFSA / SCF 2001 | regulatory opinion | upper limit 250 mg magnesium/day from supplements | official assessment |
| 22 | Fernstrom 2012, J Nutr | review article | side effects mostly at high amounts; EMS from contamination; small evidence base | review |
| 23 | Kilbourne 1992, Epidemiol Rev | review of outbreak data | over 1,500 cases, linked to tryptophan from one manufacturer | epidemiological review |
| 24 | Elli et al. 2023, Eur J Clin Pharmacol | 8,997 reported cases | tryptophan among the 10 most disproportionately reported substances | reporting data |
| 25 | Cooper et al. 2013, AACN Adv Crit Care | review | triggers include SSRIs, MAO inhibitors, triptans, tramadol, St John's wort | review |
| 26 | Steiner et al. 1986, Biol Psychiatry | 5 patients, fluoxetine + tryptophan | toxic reaction in all 5 | case reports |
| 27 | Levitan et al. 2000, J Psychiatry Neurosci | 30 people with depression, fluoxetine + 2–4 g tryptophan | no serotonin syndrome; 4 g caused daytime tiredness | small controlled study, medically supervised |
Author: PRONESIUM Editorial Team · Last reviewed: 29/09/2026 · This article does not replace medical advice.




