Skip to content
Omnikalc

Magnesium intake calculator: are you getting enough magnesium?

Pick your age and sex, add servings of nuts, whole grains, greens and supplements, and compare your magnesium intake with the daily need and the supplement limit.

Updated on

Educational tool, not medical advice: this page does not diagnose and does not replace a doctor, nurse or pharmacist. It has not been reviewed by a healthcare professional. Editorial and medical policy

Your inputs
servings

Value out of range

servings

Value out of range

servings

Value out of range

mg

Value out of range

mg

Value out of range

Results

Total daily intake

250 mg

Share of the daily requirement

78%

Below the need

Still missing

70 mg

Daily requirement for your group
320
From food
250
From supplements
0
More daily servings of nuts or seeds to close the gap
0.9
Upper limit for your group
350 mg
Share of the upper limit
0%
Well below the upper limit

This calculator is for general information and education. It is not medical advice and does not replace the advice of your doctor or a registered dietitian.

Magnesium helps muscles, nerves, bones and the heart work, and most people take in less than the recommended amount. This magnesium intake calculator uses your age and sex, servings of nuts, whole grains, beans and greens and any supplement to show your total intake, the share of the daily need, the gap and the supplement dose compared with the upper limit.

How the calculation works

  • Daily need = the recommended intake for your age and sex.
  • From food = servings × magnesium per serving: about 80 mg for nuts or seeds, 50 mg for whole grains or beans, 30 mg for greens and vegetables.
  • Total intake = food + supplement.
  • Share of need = total intake ÷ daily need.
  • Upper limit = 350 mg a day for adults, which applies to supplements only and not to food.

Example

A person in the group Woman 31 and over needs 320 mg a day. Their food gives 250 mg and supplements 0 mg, so the total is 250 mg, which is 78 % of the need. 70 mg is missing, about 0.9 more servings of nuts or seeds. The supplement dose is 0 % of the upper limit of 350 mg.

Why it matters

Refined foods have little magnesium, so diets built on white bread, rice and snacks fall short. Surveys show that many adults, especially teens and older people, do not reach their needs, and that low intake is linked with higher blood pressure and a higher risk of type 2 diabetes. A look at the number of servings of nuts, whole grains and greens usually points to the easiest change. A reference intake is an average target for a group of healthy people, not a personal prescription, so use the result to spot big gaps and to plan food choices, and keep a doctor or dietitian in the loop for medical conditions.

Good to know

The upper limit of 350 mg only applies to supplements and medicines, because magnesium from food does not cause problems in healthy people. Too much from supplements causes diarrhea, and people with kidney disease can build up dangerous levels. Forms of magnesium such as citrate or oxide absorb differently, and the dose on the label is the elemental magnesium you should compare. Alcohol, some diuretics and acid-lowering drugs can deplete magnesium, so ask your doctor if you take them. Reference values are set by health authorities, they change over time and they differ between countries, so the group you choose and the source matter. Food composition varies by brand and preparation, the servings listed are rough averages, and absorption differs between people. Food first is the usual advice, and supplements are for gaps that diet cannot close, in doses your doctor agrees with.

The sodium correction calculator and the salt calculator cover other electrolytes, and the water intake calculator estimates daily fluids.

Frequently asked questions

How much magnesium do I need a day?

Adult men need about 400 to 420 mg and adult women 310 to 320 mg, with a little more during pregnancy.

Which foods are high in magnesium?

Pumpkin seeds, almonds, cashews, spinach, black beans, whole grains, avocado, dark chocolate and some mineral waters.

Is a magnesium supplement safe?

Doses up to 350 mg a day from supplements are generally safe for healthy adults, but high doses cause diarrhea and are risky with kidney disease.

Does magnesium help with sleep or cramps?

Evidence is limited and mixed. It may help if your intake is low, but it is not a proven treatment for sleep problems or cramps.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.