Skip to content
All supplement guides

Magnesium & sleep

The mineral behind cramps, sleep and stress — and which form actually absorbs

Magnesium is one of the most popular supplements for sleep, night cramps and stress — and one where the form on the label matters enormously. Some are well absorbed and gentle; the cheapest one is neither. Here's what's worth knowing before you buy.

If you read nothing else
  • The form matters more than the brand: magnesium glycinate and citrate absorb well; magnesium oxide (the cheapest, most common) absorbs poorly and mainly loosens the bowels.
  • The evidence for magnesium helping sleep is modest, not miraculous — but it's cheap, low-risk for most people, and many find it helps them wind down.
  • It's a genuine option for night-time leg cramps, which are common in the heat when you're sweating out minerals.
  • Too much of the wrong form just causes loose stools — a useful signal you've overdone it or picked oxide.

Buying anyway? Going through here costs you nothing extra, and the commission funds local projects after our costs. How it works.

Browse magnesium on iHerb

What magnesium actually does

Magnesium is a mineral your body uses in hundreds of processes — muscle and nerve function, blood-sugar control, blood pressure, and making the energy your cells run on. Many people don't get quite enough from food, and in a hot climate like Hua Hin's you lose minerals through heavy sweating, which is one reason night cramps and that 'wired but tired' feeling are common.

Because it's involved in the nervous system and muscle relaxation, it's earned a reputation as a calming, sleep-friendly mineral. That reputation runs a little ahead of the science — the studies are small and mixed — but it's inexpensive and safe enough that it's a reasonable thing to try.

The forms — this is the bit that matters

This is where most people waste money. 'Magnesium' on a label could be any of several compounds, and they behave very differently:

Magnesium glycinate (or bisglycinate) is well absorbed and gentle on the stomach — the usual pick for sleep and general use. Magnesium citrate is also well absorbed and mildly laxative, handy if you're also prone to constipation. Magnesium malate and threonate have their followers too. Magnesium oxide is the cheap one filling most supermarket bottles — poorly absorbed, so most of it passes straight through and its main effect is loosening the bowels.

For sleep or cramps, look for glycinate. For value, check the label for the actual form, not just the milligrams.

How people use it for sleep and cramps

For sleep, a common approach is a modest dose of magnesium glycinate in the evening, an hour or so before bed, as part of a wind-down routine — dimmer lights, less screen time, cooler room. Magnesium isn't a sedative; think of it as removing a small obstacle to sleep rather than knocking you out.

For night-time leg cramps, some people find magnesium helps and some don't — the evidence is genuinely split — but given how cheap and low-risk it is, it's a fair thing to try for a few weeks alongside staying well hydrated, which matters a lot in this heat.

Before you start

  • If you have kidney disease, do not take magnesium supplements without medical advice — your kidneys clear it, and it can build up dangerously.
  • Magnesium can interact with some antibiotics and other medicines (they can bind together) — space them apart and ask a pharmacist.
  • Loose stools or stomach upset usually mean the dose is too high or it's the oxide form — reduce it or switch to glycinate.

This is general information, not medical advice. Everyone's different — check with a doctor or pharmacist before starting a supplement, especially if you take prescription medicine or have a health condition. Hua Hin has excellent hospitals and clinics; blood tests are cheap and easy to arrange.

Buying anyway? Going through here costs you nothing extra, and the commission funds local projects after our costs. How it works.

Browse magnesium on iHerb