Magnesium may help some people fall asleep a little more easily, but it is not a sleeping pill. A few clinical trials have shown modest improvements, particularly among older adults with insomnia, but the evidence remains limited.
The first step is to get enough magnesium through your diet. A supplement may be worth considering if your intake is insufficient or if a healthcare professional recommends it.
Key Takeaways
Effects on sleep: Modest improvements in some people, but the scientific evidence is still limited.
Daily requirements: 300–380 mg per day, depending on sex and the nutritional guidelines used (FSVO in Switzerland and ANSES in France).
Best food sources: Pumpkin seeds, Brazil nuts, oats, quinoa, tofu, wholemeal bread and magnesium-rich mineral water.
Supplements: Avoid taking more than 250 mg per day from supplements without medical advice. Diarrhoea is the main side effect.
Night-time muscle cramps: Magnesium is unlikely to provide meaningful prevention of muscle cramps in older adults.
Does Magnesium Really Help You Sleep?
The effects observed in clinical studies are modest. In 2021, a systematic review combined three controlled trials involving 151 older adults with insomnia. Participants taking magnesium fell asleep an average of 17 minutes faster than those taking a placebo. However, total sleep duration did not increase significantly. The researchers rated the quality of the evidence as low to very low.
In 2025, a trial involving 155 adults aged 18–65 who reported poor sleep tested 250 mg of magnesium per day in the form of magnesium bisglycinate for four weeks. The improvement in insomnia symptoms was statistically significant compared with placebo, but the effect was small.
In practice, magnesium may be helpful if your dietary intake is insufficient. If you have been sleeping poorly for several weeks, speak to your doctor. Persistent insomnia often has other causes, such as stress, irregular schedules or your bedroom environment.
How Does Magnesium Affect Nerves and Muscles?
Magnesium is involved in more than 300 enzyme systems in the body. It contributes to the normal functioning of the nervous system and muscles. In particular, it plays a role in transmitting nerve signals and maintaining the balance between muscle contraction and relaxation. Its physiological role is well established, but this does not mean that taking magnesium supplements will automatically improve your sleep.
Does Magnesium Help with Night-Time Muscle Cramps?
Probably not for most adults. A 2020 Cochrane review concluded that magnesium is unlikely to provide a clinically meaningful benefit in preventing muscle cramps in older adults. For cramps during pregnancy, the results of studies are inconsistent.
If night-time cramps frequently wake you up, consult your doctor rather than increasing your magnesium intake on your own.
Magnesium Deficiency: What Are the Symptoms?
In otherwise healthy people, a true magnesium deficiency caused by inadequate dietary intake is uncommon because the kidneys help limit magnesium losses. Deficiency is more common in people with chronic alcohol dependence, certain digestive disorders or those taking particular medications over a long period.
Early symptoms are often non-specific and may include:
Loss of appetite
Nausea
Fatigue
Weakness
As a deficiency becomes more severe, other symptoms may develop, including tingling, involuntary muscle contractions, cramps and, in serious cases, abnormal heart rhythms.
Poor sleep alone is not enough to indicate a magnesium deficiency. If a deficiency is suspected, your doctor can assess your symptoms and possible risk factors and, if necessary, request a blood test to measure magnesium levels.
How Much Magnesium Do You Need Per Day?
Adults
Switzerland (FSVO)
France (ANSES, 2021)
Men
350 mg per day
380 mg per day
Women
300 mg per day
300 mg per day
Reference values for adults aged 18–65. Certain groups, including older adults, may have different nutritional reference values.
These figures are nutritional reference values for healthy adults. They vary between countries depending on the assessment methods used. A varied diet containing wholegrains, pulses, seeds and nuts can help you meet your daily magnesium requirements.
Which Foods Are Rich in Magnesium?
Food
Magnesium per 100 g
Per serving
Pumpkin seeds
520 mg
52 mg (10 g)
Brazil nuts
350 mg
88 mg (25 g)
Uncooked quinoa
210 mg
126 mg (60 g)
Porridge oats
120 mg
72 mg (60 g)
Dark chocolate
120 mg
24 mg (20 g)
Plain firm tofu
78 mg
94 mg (120 g)
Wholemeal wheat bread
82 mg
41 mg (50 g)
Approximate values adapted from nutritional data published by the Swiss Society for Nutrition. Magnesium content can vary between products.
Brazil nuts are also particularly rich in selenium, although the amounts vary considerably. Avoid eating large quantities simply to increase your magnesium intake.
Some mineral waters are also a useful source of magnesium. A mineral water may carry the claim "contains magnesium" when it provides more than 50 mg per litre. Check the label to see how much it contains.
Magnesium Supplements: Which Type Should You Choose and When Should You Take Them?
If your diet does not provide enough magnesium, a supplement may be helpful. The most common forms include:
Magnesium citrate: Well absorbed, but it may have a laxative effect.
Magnesium bisglycinate (or glycinate): Generally well tolerated. This was the form used in the 2025 sleep trial, although that does not prove it is better than other forms for improving sleep.
Magnesium oxide: Widely available, but generally less well absorbed than other forms.
No studies have established the best time of day to take magnesium. In sleep trials, it was taken in the evening, which is also a common choice. Taking it consistently is more important than the exact time.
Important Precautions
Avoid exceeding 250 mg of supplemental magnesium per day without medical advice. This is the European upper safety limit for supplemental magnesium intake. In Switzerland, regulations permit certain supplements to contain up to 375 mg per daily serving, with a warning about possible laxative effects when the amount exceeds 250 mg. These limits do not apply to magnesium naturally present in food.
If you have kidney disease, do not take magnesium supplements without medical advice.
Magnesium can reduce the absorption of certain antibiotics and osteoporosis medications. The recommended interval between doses depends on the medication. Ask your pharmacist for advice and follow the instructions in the patient information leaflet.
Can Magnesium Keep You Awake?
There is no evidence that magnesium causes insomnia. However, high doses can cause digestive problems, particularly diarrhoea, which may disturb your sleep. If this happens, reduce the dose or take your supplement earlier in the day.
What About Epsom Salt Baths?
Epsom salt is magnesium sulphate. However, there is no convincing evidence that the skin absorbs a useful amount of magnesium during a bath. A scientific review published in 2017 concluded that claims about the benefits of transdermal magnesium products are not supported by the available evidence.
Magnesium is no substitute for good sleep habits. If stress makes it difficult for you to fall asleep, discover our techniques for managing bedtime anxiety.
What you eat in the evening can also affect your comfort at night. Find out more in our article about foods to avoid before bedtime.
Frequently Asked Questions
Does Magnesium Help You Sleep?
Magnesium may help some people fall asleep a little more easily, but it is not a sleeping pill. A few clinical trials have shown modest improvements, particularly among older adults with insomnia, but the evidence remains limited.
When Should You Take Magnesium for Sleep?
No studies have established the best time to take magnesium. In sleep trials, participants generally took it in the evening, which is also a common choice. Taking it consistently is more important than the exact time of day.
Can Magnesium Keep You Awake?
There is no evidence that magnesium causes insomnia. However, high doses may cause digestive problems, such as diarrhoea, which can disturb your sleep. If this happens, reduce the dose or take your supplement earlier in the day.
How Much Magnesium Do You Need Per Day?
In Switzerland, the Federal Food Safety and Veterinary Office (FSVO) recommends 350 mg per day for adult men and 300 mg for adult women. In France, ANSES recommends 380 mg per day for men and 300 mg for women. Without medical advice, avoid exceeding 250 mg of magnesium per day from supplements.
Does Magnesium Help with Night-Time Muscle Cramps?
Probably not for most adults. A 2020 Cochrane review concluded that magnesium is unlikely to provide a meaningful benefit in preventing muscle cramps in older adults. For muscle cramps during pregnancy, research findings remain inconsistent.
Would you like to receive exclusive offers? Stay connected with Zizzz!
Why not stay in touch? Sign up for our newsletter to enjoy special offers, exclusive discounts, and the latest updates on our eco-friendly baby and children’s products, duvets, pillows, and premium-quality bed linen.
Our Mission at Zizzz
Enhancing quality of life and well-being through better sleep
At Zizzz, our mission is to improve quality of life by promoting good sleep as an essential component of overall well-being.
We offer products and resources that promote restorative and revitalizing sleep, recognizing it as one of the three pillars of a healthy lifestyle, alongside a balanced diet and regular physical activity.
By prioritizing quality sleep, we empower individuals to lead healthier and happier lives.
Preserving our environment and helping to build a better future
We achieve this goal by using only natural materials such as wool, traceable down, and organic cotton in our products, ensuring a luxurious and eco-friendly sleep environment.
Committed to sustainability and ethical practices, we produce locally, supporting local economies and reducing our carbon footprint.
Choosing Zizzz means investing in your own well-being while contributing to a more sustainable future for all.
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience. Learn more
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Essential
Name
Description
Lifetime
CART
The association with your shopping cart.
1 Year
CATEGORY_INFO
Allows pages to be displayed more quickly.
1 Year
COMPARE
The items that you have in the Compare Products list.
1 Year
CUSTOMER
An encrypted version of your customer id.
1 Year
CUSTOMER_AUTH
An indicator if you are signed into the store.
1 Year
CUSTOMER_INFO
An encrypted version of the customer group you belong to.
1 Year
PRIVATE_CONTENT_VERSION
Customer private content.
1 Year
_aw_m_16530
awin
1 Year
Store/base path
Keeps store/language preference
30 Days
Cache variation
Controls Magento Full Page Cache
1 Hour
Cache cleaning
Clears outdated customer sections
1 Hour
System messages
Stores success/error messages
1 Hour
Store switch
Remembers last store version
30 Days
Cache session
Speeds up frontend performance
7 Days
Section versioning
Ensures customer-data freshness
1 Hour
Mouseflow session
Records session replay
30 Minutes
Local cache
Improves load speed
1 Day
Cache invalidation
Refreshes outdated sections
1 Hour
UX history
Shows recently viewed items
7 Days
UX history previous
Supports product history widget
7 Days
Product comparison
Stores compared products
7 Days
Product comparison previous
Supports comparison feature
7 Days
Product info cache
Speeds up product retrieval
1 Day
Bot detection test
Tests browser for bot detection (DataDome)
1 Minute
Bot protection
Protects site from bot traffic
1 Hour
Login redirect
Redirects to requested page after login
30 Minutes
Klarna payment session
Enables secure checkout
30 Minutes
Marketing
Name
Description
Lifetime
CUSTOMER_SEGMENT_IDS
Stores your Customer Segment ID
1 Year
EXTERNAL_NO_CACHE
A flag that, indicates whether caching is on or off.
1 Year
FRONTEND
Your session ID on the server.
1 Year
GUEST-VIEW
Allows guests to edit their orders.
1 Year
LAST_CATEGORY
The last category you visited.
1 Year
LAST_PRODUCT
The last product you looked at.
1 Year
NEWMESSAGE
Indicates whether a new message has been received.
1 Year
NO_CACHE
Indicates whether it is allowed to use cache.
1 Year
PERSISTENT_SHOPPING_CART
A link to information about your cart and viewing history if you have asked the site.
1 Year
_aw_j_16530
awin cooie
1 Year
_aw_sn_16530
Awin cookie
1 Year
adv_awc
awin s2s
1 Year
at_gd
adtraction cookie
1 Year
lea_source
bly cookie
1 Year
Klaviyo tracking
Identifies visitor for email flows
30 Days
Google Ads attribution
Tracks ad clicks → conversions
90 Days
Google session tracking
Measures sessions for ads
1 Day
Klaviyo referral
Tracks referring campaign/email
30 Days
AdWords conversion tracking
Links ad click → conversion
30 Days
AdWords session ID
Tracks ad session
1 Day
Landing page attribution
Tracks traffic source
7 Days
Google attribution storage
Stores marketing attribution
30 Days
Google Ads attribution
Tracks ad groups/campaigns
30 Days
AdWords marketing cookie
Optimizes marketing performance
30 Days
Klaviyo referral
Tracks originating campaign
30 Days
tracking cookie affiliate
affiliate cookie
1 Year
Affiliates adresult
Affiliates adresult
1 Year
Affiliates adresult
Affiliates adresult
1 Year
Affiliates adresult
Affiliates adresult
1 Year
Google Analytics
Name
Description
Lifetime
RECENTLYCOMPARED
The items you recently compared.
1 Year
STF
Information on products you emailed to friends.
1 Year
STORE
The store view or language you have selected.
1 Year
USER_ALLOWED_SAVE_COOKIE
Indicates whether a customer authorized cookies.
1 Year
VIEWED_PRODUCT_IDS
The products that you recently looked at.
1 Year
WISHLIST
An encrypted list of products added to your wish list.
1 Year
WISHLIST_CNT
The number of items in your wish list.
1 Year
Google Analytics visitor ID
Separates users for analytics
1 Day
Functionality
Name
Description
Lifetime
MG_DNT
Allows you to restrict Adobe Commerce data collection if you have custom code to manage cookie consent on your site
1 Year
USER_ALLOWED_SAVE_COOKIE
Used for cookie restriction mode
1 Year
AUTHENTICATION_FLAG
Indicates if a shopper has signed in or signed out
1 Year
DATASERVICES_CUSTOMER_ID
Indicates if a shopper has signed in or signed out
1 Year
DATASERVICES_CUSTOMER_GROUP
Indicates a customer's group. This cookie is stored as sha1 checksum of the customer's group ID
1 Year
DATASERVICES_CART_ID
Identifies a shopper's cart actions
1 Year
DATASERVICES_PRODUCT_CONTEXT
Identifies a shopper's product interactions. This cookie contains the customer's unique quote ID in the system
Leave a comment
Already have an account Login