Skip to content
Can Hastanesi

Magnesium Deficiency (Hypomagnesemia)

Symptoms, causes, diagnosis, treatment and daily magnesium needs

Prepared by
Responsible physician: Spec. Dr. Akkız Zuhal Öztaş
Medical review
Medical review: Spec. Dr. Akkız Zuhal Öztaş
Published
Published:
Last updated
Last medical review: · 12 min read
Magnesium Deficiency (Hypomagnesemia)

Illustrative image. The results of any surgical or interventional procedure may vary from person to person. You are advised to get detailed advice from your doctor before the procedure.

In Brief

Magnesium deficiency (hypomagnesemia) is when the magnesium level in the blood falls below normal[2][3]. True deficiency is rare in people who eat a healthy, balanced diet[1]. It mostly develops because of long-lasting diarrhea, alcohol use, uncontrolled diabetes and some medicines[2][3]. It can cause loss of appetite, nausea, weakness, muscle cramps and numbness[1]. Severe deficiency can lead to seizures and heart rhythm disorders[1][2].

  • The diagnosis is made with a blood test. However, the body's stores can be low even when the blood level is normal[2][4].
  • Magnesium can drop in people who take stomach-protecting medicines (proton pump inhibitors) for a long time[6][7].
  • Mild deficiency is mostly corrected with diet and oral supplements. In severe deficiency that needs quick correction, magnesium is given through a vein[3][4].
  • In people with kidney disease, magnesium supplements can lead to excess, so they should not be used without asking a doctor[1][4].

What is magnesium deficiency?

Magnesium deficiency is when the amount of magnesium in the blood is below normal. Its medical name is hypomagnesemia[2][3]. It is generally defined as blood magnesium falling below 0.66 mmol/L (1.6 mg/dL)[3].

Magnesium is a mineral that takes part in more than 300 chemical reactions in the body[1]. It supports the work of nerves and muscles, heart rhythm, bone strength and blood sugar balance. It also helps make energy and protein from food[1].

99% of the magnesium in the body is in bones, muscles and other soft tissues. Only about 0.3% is in the blood[4]. For this reason, a blood test does not always reflect the total magnesium in the body accurately[4].

How common is it?

True magnesium deficiency is rare in healthy people who eat a balanced diet[1]. It is more common in patients in the hospital and in intensive care, in older people, in people with diabetes and in people with alcohol use disorder[4]. For the balance of magnesium and other minerals and fluid, you can look at our article on fluid and electrolyte balance in the body.

What are the symptoms of magnesium deficiency?

Magnesium deficiency can cause loss of appetite, nausea, vomiting, tiredness and weakness at the start[1][4]. As the deficiency grows, symptoms appear in the muscles and nerves[1].

  • Muscle cramps, muscle twitching and tremor[1][4]
  • Numbness and tingling[1]
  • Personality changes[1][4]
  • Heart rhythm disorder, that is, an irregular heartbeat[1][2]
  • At very low levels, seizures (convulsions)[1][2]

In severe deficiency, blood calcium and potassium also fall[1]. Some of the heart rhythm disorders can come from these accompanying low levels[3]. Low magnesium also increases sensitivity to the side effects of the heart medicine digoxin[3].

Can it occur without symptoms?

Yes. Marked symptoms generally appear when blood magnesium falls below 0.5 mmol/L (1.2 mg/dL)[3]. There may be no symptoms even in severe deficiency. A fast drop in magnesium causes more symptoms than a slow drop[4].

Long-lasting low levels have been linked to high blood pressure, bone thinning (osteoporosis), migraine and worsening of blood sugar balance[3]. These links do not mean that magnesium is the only cause of these diseases.

What causes magnesium deficiency?

Magnesium deficiency develops as a result of inadequate intake with food, loss from the bowel, or too much being passed out by the kidneys[2][3]. Some medicines can also lower magnesium[3][4].

  • Inadequate intake: Inadequate and unbalanced nutrition, alcohol use disorder, older age[2][4]
  • Loss from the bowel: Long-lasting diarrhea, celiac disease, Crohn's disease and removal of part of the bowel[2][3][4]
  • Loss through the kidneys: Uncontrolled diabetes, diuretic medicines and diseases of the kidney tubules[2][3][4]
  • Other conditions: Acute pancreatitis, refeeding after a long period of fasting, pregnancy and breastfeeding, an underactive parathyroid gland[2][3][4]

Which medicines can lower magnesium?

These include proton pump inhibitors, which reduce stomach acid, and diuretics[4][6]. Antibiotics of the aminoglycoside group, amphotericin B, cisplatin, cyclosporine and tacrolimus can also cause magnesium loss[3][4]. If you take these medicines, do not stop them on your own. Talk to your doctor.

Who is at risk?

  • Older people[2][4]
  • People with diabetes, especially if blood sugar is not under control[2][4]. You can look at our page on diabetes about this
  • People with alcohol use disorder[2][4]
  • People with chronic diarrhea or a bowel disease that impairs absorption[2]
  • People who take a proton pump inhibitor or a diuretic for a long time[4][7]

Do stomach-protecting medicines cause magnesium deficiency?

Proton pump inhibitors can, rarely, cause magnesium deficiency when used for a long time[7]. These medicines reduce stomach acid and are used in conditions such as reflux and ulcers.

According to a 2011 safety notice from the Spanish Agency of Medicines and Medical Devices, cases were seen in people who had taken the medicine for 3 months or longer, mostly for about 1 year. In some patients, symptoms continued for months before the link with the medicine was noticed[7].

In an analysis published in 2019 that combined observational studies, low magnesium was found more often in people who used proton pump inhibitors. This link is more marked in people who use high doses[6].

The agency recommended considering measuring magnesium before treatment and at intervals in patients who will take the medicine for a long time. This recommendation is especially important for people who take the heart medicine digoxin or a diuretic[7].

How is magnesium deficiency diagnosed?

The diagnosis is made by measuring the magnesium level in a blood sample taken from the arm or inside the cells[2]. This test generally needs no preparation. If other tests will be done at the same time, you may be asked to fast for a few hours[2].

The normal range of blood magnesium in adults is about 0.65 to 1.05 mmol/L[4]. Laboratories may also give the result in mg/dL. Assess your result against the reference range on your report.

If the blood test is normal, can there be no deficiency?

There can be. To protect the level in the blood, the body draws magnesium from the bones. So the blood level can look normal while the stores are low[2][4]. A test that measures magnesium inside red blood cells can sometimes show the deficiency better[2].

How is the cause found?

The doctor asks about diabetes, alcohol use, bowel diseases, family history and all the medicines you take[3]. A urine test may be requested to understand whether magnesium is being lost through the kidneys or through the bowel[3]. Calcium and potassium can also be measured, because they fall too in severe deficiency[1].

Blood tests are run in biochemistry laboratories. Before the test, tell your doctor about the prescription and over-the-counter medicines and supplements you take[2].

How is magnesium deficiency treated?

The basis of treatment is to find and correct the cause that led to the deficiency[3][4]. Your doctor decides how and how much magnesium to give according to the severity of the deficiency.

Treatment aimed at the cause

  • If possible, the medicine that lowers magnesium is stopped or changed[3].
  • Diarrhea is treated[3].
  • Underlying conditions such as diabetes and alcohol use are dealt with[3][4].

In mild deficiency

The magnesium taken with food is increased. If the blood level stays low, an oral magnesium supplement is added[3]. An oral supplement is generally well tolerated in people without other health problems[4]. High doses can cause diarrhea[5]. Your doctor decides on the type and dose of the supplement. Do not use high doses on your own.

In severe deficiency

In situations that need quick correction, for example a serious heart rhythm disorder caused by severe deficiency, magnesium is given through a vein in the hospital[4].

Is too much magnesium harmful?

In healthy people, taking too much magnesium from food alone is rare[2]. Excess is mostly seen with supplements, laxatives that contain magnesium and stomach medicines. In kidney failure, the risk rises because the kidneys cannot remove enough magnesium[1][2].

  • Over a short time, a magnesium supplement of more than 400 mg a day can cause diarrhea[5].
  • If magnesium in the blood rises, diarrhea, abdominal cramps, muscle weakness, reduced reflexes and drowsiness can be seen[2][4].
  • Very high levels can lead to low blood pressure, a slow heartbeat and cardiac arrest[2][4].

Fluid loss, an underactive thyroid gland and Addison's disease are also linked to a rise in blood magnesium[2]. The risk rises in older people, in people with reduced kidney function and when more than one product that contains magnesium is used together[4]. People with chronic kidney failure should use supplements only on a doctor's advice.

In magnesium excess, all products that contain magnesium are first stopped. If symptoms are severe, supportive treatment and calcium are given in the hospital. In very severe cases, dialysis may be needed[4].

How can magnesium deficiency be prevented?

Most people can get the magnesium they need by eating a varied, balanced diet[5]. Most magnesium comes from dark green leafy vegetables[1].

  • Dark green leafy vegetables such as spinach[1][5]
  • Nuts, seeds and legumes[1]
  • Whole grains and whole wheat bread[1][5]
  • Fruits such as bananas and avocados, soy products and milk[1]
GroupDaily amount
Ages 1 to 380
Ages 4 to 8130
Ages 9 to 13240
Ages 14 to 18, male / female410 / 360
Ages 19 to 30, men / women400 / 310
Over age 31, men / women420 / 320
Pregnant (ages 19 to 30 / 31 to 50)350 / 360
Recommended daily amounts of magnesium in the US (mg/day)[1]

The recommended amounts vary from country to country. For example, in the United Kingdom, 300 mg a day is recommended for men aged 19 to 64 and 270 mg for women[5]. Limiting alcohol, keeping diabetes under control and having the medicines you take for a long time reviewed regularly also help prevent deficiency[2][7]. For a personal nutrition plan, you can go to the nutrition and dietetics department.

When should you see a doctor for magnesium deficiency?

Magnesium deficiency is often not an emergency. However, do not wait with the following symptoms related to seizures or heart rhythm.

Call 112 right away

If you have any of the following, call 112 without waiting or go to the nearest emergency department:

  • A first-ever seizure (convulsion), a seizure lasting longer than 5 minutes, or seizures one after another without regaining consciousness in between[9]
  • Palpitations that do not go away together with chest pain, shortness of breath, a feeling of faintness or fainting[8]
  • Not fully regaining consciousness after a seizure, or difficulty breathing. You need to be assessed in the emergency department[9]
See a doctor the same day

In the following situations, it is recommended that you see a doctor the same day:

  • Palpitations that came with chest pain, shortness of breath or fainting, even if they have now passed[8]
  • Muscle cramps, tremor or marked weakness together with long-lasting diarrhea or vomiting[1][2]
  • Diarrhea, abdominal cramps or drowsiness after using a product that contains magnesium when you have kidney disease[2][4]
A planned visit is advised

In the following situations, you are advised to see a doctor:

  • If you have taken a proton pump inhibitor or a diuretic for a long time, for a magnesium check[7]
  • Muscle cramps, numbness or tingling that keep coming back[1]

Related departments

This topic falls within the following medical specialties.

Doctors working in Internal Medicine

Frequently asked questions

Does magnesium deficiency cause muscle cramps?
It can. Muscle cramps are one of the symptoms of low magnesium[1][2]. However, cramps can have many causes. Before starting a supplement because of cramps alone, ask your doctor. If needed, your magnesium level is measured with a blood test[2].
Can I take a magnesium supplement on my own?
Most people get enough magnesium from food[5]. If you will use a supplement, ask your doctor first. Over a short time, more than 400 mg of magnesium a day can cause diarrhea[5]. In people with kidney disease, magnesium can build up in the blood[1][4]. Also, laxatives and stomach medicines that contain magnesium add to the total amount[2].
Do magnesium needs rise in pregnancy?
Yes, a little. In the US, 310 mg a day is recommended for women aged 19 to 30, while 350 mg is recommended for pregnant women of the same age[1]. Pregnancy is counted among the conditions linked to low blood magnesium[2]. The doctor who follows your pregnancy decides whether a supplement is needed. For nutrition, you can read the article on nutrition during pregnancy.
Does alcohol cause magnesium deficiency?
Alcohol use disorder is an important risk factor for magnesium deficiency[2][4]. In people who use alcohol, magnesium can be lost both through poor nutrition and diarrhea and through the kidneys passing out too much[3]. Quitting or cutting down on alcohol is part of treatment.
Does magnesium deficiency cause heart palpitations?
It can. An irregular heartbeat is among the symptoms of low magnesium[1][2]. Palpitations also have many other causes. You can find how to assess your pulse in our article on pulse and health. If chest pain or fainting comes along with it, call 112[8].
Which doctor should I see for magnesium deficiency?
In adults, magnesium deficiency is mostly assessed by an internal medicine specialist. If there are hormone and metabolism diseases such as diabetes, an endocrinology specialist, and if there is chronic diarrhea or an absorption disorder, a gastroenterology specialist can also take part. In children, a pediatrics specialist is seen.
What causes magnesium deficiency?
Magnesium deficiency develops as a result of inadequate intake, loss from the bowel, or too much being passed out by the kidneys[2][3]. Long-lasting diarrhea, celiac and Crohn's disease, uncontrolled diabetes, alcohol use disorder and diuretic medicines are the main causes[2][3][4]. The doctor determines the cause.
Is magnesium deficiency dangerous?
Mild deficiency mostly gets better with diet and supplements[3]. Severe magnesium deficiency, on the other hand, can lead to seizures and heart rhythm disorders[1][2]. Calcium and potassium can also fall[1]. In situations such as seizures or palpitations that do not go away, go to the emergency department.
How is magnesium deficiency found with a blood test?
The magnesium level is measured in a blood sample taken from the arm[2]. This test generally needs no preparation. If other tests will be done too, you may be asked to fast for a few hours[2]. A urine test may also be requested to understand the cause[3]. Your doctor assesses the result against the laboratory's reference range.
If the blood test is normal, can there still be magnesium deficiency?
Yes, there can. To protect the level in the blood, the body draws magnesium from the bones. So the blood level can look normal while the stores are low[2][4]. A test that measures magnesium inside red blood cells can sometimes show the deficiency better[2].
Which foods should be eaten in magnesium deficiency?
Most magnesium comes from dark green leafy vegetables[1]. Spinach, nuts, seeds, legumes, whole grains, bananas, avocados, soy products and milk are good sources[1][5]. Most people can meet their needs by eating a varied, balanced diet[5].
Can people with kidney disease use magnesium supplements?
People with kidney disease must ask their doctor before using a magnesium supplement or a laxative or stomach medicine that contains magnesium. If the kidneys cannot remove extra magnesium, it can build up in the blood[1][4]. So even if magnesium deficiency is suspected, do not start a supplement on your own.
What are the early symptoms of magnesium deficiency?
Magnesium deficiency can cause loss of appetite, nausea, vomiting, tiredness and weakness at the start[1][4]. As the deficiency grows, muscle cramps, muscle twitching, numbness and tingling appear[1]. There may be no symptoms even in severe deficiency, so the diagnosis is made with a blood test[3].
Do stomach-protecting medicines cause magnesium deficiency?
Proton pump inhibitors (medicines that reduce stomach acid) can, rarely, cause magnesium deficiency when used for a long time[7]. Cases were mostly seen in people who took the medicine for 3 months or longer[7]. Do not stop the medicine on your own. Ask your doctor about a magnesium check.

Sources

  1. [1]MedlinePlus Medical Encyclopedia (U.S. National Library of Medicine). Magnesium in diet. İnceleme tarihi 21 January 2025. medlineplus.gov · Accessed: 30.10.2026
  2. [2]MedlinePlus (U.S. National Library of Medicine). Magnesium Blood Test. Last updated 25 October 2023. medlineplus.gov · Accessed: 30.10.2026
  3. [3]Pham PCT, Pham PAT, Pham SV, Pham PTT, Pham PMT, Pham PTT. Hypomagnesemia: a clinical perspective. Int J Nephrol Renovasc Dis. 2014;7:219-230. pmc.ncbi.nlm.nih.gov · DOI: 10.2147/IJNRD.S42054 · PMID: 24966690 · Accessed: 30.10.2026
  4. [4]Jahnen-Dechent W, Ketteler M. Magnesium basics. Clin Kidney J. 2012;5(Suppl 1):i3-i14. pmc.ncbi.nlm.nih.gov · DOI: 10.1093/ndtplus/sfr163 · PMID: 26069819 · Accessed: 30.10.2026
  5. [5]NHS (National Health Service). Vitamins and minerals: Others (Magnesium). Last reviewed 3 August 2020. nhs.uk · Accessed: 30.10.2026
  6. [6]Srinutta T, Chewcharat A, Takkavatakarn K et al. Proton pump inhibitors and hypomagnesemia: A meta-analysis of observational studies. Medicine (Baltimore). 2019;98(44):e17788. pmc.ncbi.nlm.nih.gov · DOI: 10.1097/MD.0000000000017788 · PMID: 31689852 · Accessed: 30.10.2026
  7. [7]Agencia Española de Medicamentos y Productos Sanitarios (AEMPS). Riesgo de hipomagnesemia asociado a los medicamentos inhibidores de la bomba de protones (IBP). Nota informativa MUH (FV) 27/2011, 23 December 2011. aemps.gob.es · Accessed: 30.10.2026
  8. [8]NHS (National Health Service). Heart palpitations. Last reviewed 17 March 2026. nhs.uk · Accessed: 30.10.2026
  9. [9]NHS (National Health Service). What to do if someone has a seizure (fit). Last reviewed 19 December 2023. nhs.uk · Accessed: 30.10.2026

Page information

How was this content prepared? This content was prepared on the basis of current guidelines and scientific sources and has been medically reviewed by our physician. All information has been checked against its numbered sources.

Medical disclaimer: The information on this page is for general information only and does not replace examination, diagnosis or treatment. In an emergency, call 112.

Last updated: 03.12.2026 · Site editor: Can Hastanesi Software and Content Team · yazilimveicerik@izmircanhastanesi.com · +90 (232) 715 40 00

Related articles

Full Health Guide
Physical Medicine and Rehabilitationİzmir Can Hastanesi

When Should You See a Doctor for Back Pain?

Back pain is one of the most common musculoskeletal complaints in the general population. It is often caused by muscle strain, poor posture or everyday activities and may resolve on its own within a short time. However…

Read Full Article
Physical Medicine and Rehabilitationİzmir Can Hastanesi

Spinal Disc Diseases and Lower Back Health

The spine is the main supporting column that holds our body upright. Between the vertebrae that make up this column lie flexible, gel-like cushions called “intervertebral discs.” In everyday life, these discs…

Read Full Article
Message us on WhatsApp