When to Take Magnesium: Morning, Night, or Both?

The best time to take magnesium depends on why you’re taking it. For sleep, take it at bedtime. For digestion, take it on your own schedule but with food. For cognitive benefits, split your dose between morning and evening. The form of magnesium you choose and the reason behind it matter more than a single “perfect” time of day.

For Sleep: Take It at Bedtime

If you’re taking magnesium to help with sleep, the simplest approach is a single dose right at bedtime. Magnesium helps maintain the balance between excitatory and calming neurotransmitters in the brain. When anxiety or racing thoughts keep you awake, magnesium can shift that balance toward the calming side, making it easier to fall asleep and stay asleep. A dose of 250 to 500 milligrams at bedtime is the typical recommendation for sleep support.

Glycinate is the form most commonly recommended for sleep because it’s gentle on the stomach and well absorbed. You don’t need to take it hours in advance or time it precisely. Simply making it part of your nighttime routine is enough.

For Cognition: Split Between Morning and Evening

Magnesium L-threonate is the form designed to cross into the brain more effectively than other types. In a clinical trial published in Frontiers in Nutrition, participants took one capsule in the morning and one capsule two hours before bedtime. This twice-daily schedule helps maintain steady magnesium levels in the body throughout the day rather than creating a single spike and drop.

The split dosing isn’t just a convenience choice. The compound uses glucose transporters to enhance how much magnesium actually reaches the brain, and keeping levels consistent appears to support that process. If you’re taking this form for focus or memory, morning plus evening is the way to go.

For Constipation: Allow a Wide Window

Magnesium citrate, often used for its laxative effect, typically produces a bowel movement within 30 minutes to 6 hours after taking it. That’s a wide range, so your first few doses will tell you where you personally fall. Most people find it practical to take it in the morning or early evening when they’ll be near a bathroom. Taking it right before a long commute or an important meeting is a gamble you don’t need to take.

With Food or Without?

Taking magnesium with a meal is the safer bet for most people. Food slows the transit time through your digestive tract, which gives your body more time to absorb the mineral. One study found that magnesium absorption increased from about 46% to 52% when taken alongside a meal. That may not sound dramatic, but it adds up over weeks and months of daily supplementation.

The bigger reason to take it with food is comfort. Magnesium on an empty stomach commonly causes diarrhea, nausea, and abdominal cramping. If you’ve ever abandoned a magnesium supplement because it upset your stomach, taking it mid-meal often solves the problem entirely.

One caveat: foods high in phytates and oxalates can bind to magnesium and reduce how much you absorb. These compounds are concentrated in nuts, leafy greens, beans, and whole grains. You don’t need to avoid these foods altogether, but pairing your magnesium pill with a large spinach salad or a bowl of bran cereal isn’t ideal. A simple meal with some protein and fat works well. If you take a fiber supplement, separate it from your magnesium by about two hours.

Spacing Around Other Medications

Magnesium can interfere with how your body absorbs certain medications, including antibiotics and bisphosphonates (used for bone density). The general rule is to keep a two-hour gap in both directions: don’t take other medications within two hours before or after your magnesium dose. If you’re on prescription medications, this spacing requirement may ultimately dictate your magnesium timing more than anything else.

How Much Is Safe to Supplement

The recommended daily intake of magnesium from all sources (food plus supplements) is 400 to 420 mg for adult men and 310 to 320 mg for adult women, varying slightly by age. Most people get some magnesium from food, so supplements are filling a gap rather than covering the full amount.

The tolerable upper limit specifically for supplemental magnesium is 350 mg per day for anyone 9 and older, including during pregnancy. This limit applies only to magnesium from supplements and medications, not from food. Going above 350 mg from supplements isn’t necessarily dangerous, but it increases the likelihood of digestive side effects, particularly loose stools. If you’re taking 500 mg at bedtime for sleep, you may be above this threshold, which is why starting at the lower end and adjusting based on how your body responds makes sense.

Picking a Time and Sticking With It

Consistency matters more than perfection. Magnesium builds up in your system over days and weeks, and the benefits of supplementation come from sustained, regular intake rather than any single well-timed dose. Choose a time that fits naturally into your routine. If it’s for sleep, pair it with brushing your teeth. If it’s a morning dose, take it with breakfast. The best time is the one you’ll actually remember.