The Codmani Journal
Which foods are high in magnesium? Compare a topping, a snack and a side
Published 1 December 2026
Codmani JournalNuts, seeds, legumes, leafy greens and whole grains can all contribute magnesium. How much you get from one food depends on the portion you eat. Healthdirect lists 159 mg of magnesium in 30 g of pepitas and 75 mg in 30 g of cashews. A 10 g pepita topping, scaled from the published portion, comes to about 53 mg. That is a different comparison from putting 30 g of each food on the scales. Use the published number to identify a food’s contribution, and match the amount and preparation before you carry the number over to your own plate. Healthdirect’s magnesium food table
Look up the food and the portion together
A nutrient table attaches a value to a particular amount of food. In the first row below, 30 g is the weight of the pepitas and 159 mg is the estimated magnesium in them. Keeping both units in view helps when you switch between a source table and a packet. The grams tell you how much food the reference describes. The milligrams tell you how much of the mineral that reference amount contains. Copying just “159” into a shopping note loses both the mineral unit and the portion.
These examples use the food descriptions and measures in Healthdirect’s public table, which credits the Australian Food Composition Database. The seed and nut entries use weighed portions. The cooked sides have household measures. A half cup stays a half cup in this table, because Healthdirect does not give a corresponding weight for those entries. The source does not specify raw or roasted for the nut and seed examples shown here, so the figures retain those descriptions as published. Healthdirect’s table and source note
| Food as described in Healthdirect | Published portion | Estimated magnesium |
|---|---|---|
| Pumpkin seeds (pepitas) | 30 g | 159 mg |
| Chia seeds | 30 g | 114 mg |
| Almonds | 30 g | 80 mg |
| Cashews | 30 g | 75 mg |
| Peanuts | 30 g | 48 mg |
| Brown rice, cooked | Half a cup | 72 mg |
| Spinach, boiled | Half a cup | 57 mg |
See what changes when a topping gets bigger
Imagine weighing a small pepita topping and a separate cashew snack. At the same reference weight of 30 g, the pepitas are higher in magnesium in Healthdirect’s table. The topping you have weighed is 10 g, one third of the table’s 30 g portion. Dividing the published 159 mg by three gives about 53 mg. The 30 g cashew snack remains at 75 mg. In that comparison, the cashews contribute more because the amounts of food are different.
Change only the topping. At 15 g, the pepitas are half the published 30 g portion, which gives 79.5 mg before rounding, or about 80 mg. The 30 g cashews stay at 75 mg. The aim of this example is to show how a five-gram change can move a portion estimate, not to treat the two close numbers as a guaranteed difference. These are estimates from a reference table. They are useful for seeing the effect of the portion, while the actual content in a particular pack can vary.

You may see a food list ranked per 100 g. To put these particular foods on that basis, multiply each published 30 g value by 100 and divide by 30. That implies about 530 mg per 100 g for the pepitas and 250 mg per 100 g for the cashews. Those are estimates calculated from the already rounded amounts in the same table. They let you compare the same weight of food and should travel with that explanation if you write them down. To compare what you eat, return to the amount on your scales.
A spoonful or handful can be a convenient way to serve food at home. Its weight depends on what is in it and how much you scoop. Start with the unit that you actually have. If your recipe uses a spoon of pepitas and you want to use a table written in grams, weigh the pepitas once. If you are using a published half-cup entry for boiled spinach and have measured that same amount of the same food, the source has already done the work you need. Applying an assumed gram weight to a cup can make the calculation look more exact than the evidence allows.
If you are comparing a meal rather than a single food, keep the separate estimated contributions visible. Half a cup of the boiled spinach listed above contributes 57 mg in the source table. A separately weighed 10 g pepita topping adds about 53 mg under the worked example, for about 110 mg across those two foods. That total represents only the two components you looked up. If the spinach is part of a mixed dish and you only know the volume of the whole dish, the plain spinach figure does not describe the whole portion.
Match the preparation and the part you eat
Look at the words beside the food name. A record for cooked brown rice describes the cooked food. It belongs with a measurement of cooked rice because the two use the same basis. For a dry rice amount from a recipe, look for a record for the dry food or measure the cooked portion you are comparing. Use the edible part throughout. For a pumpkin-seed product with shells, check whether the table’s food description matches what you eat before applying a value intended for pepitas.
Raw, roasted, salted and flavoured products can also have separate entries. Match the preparation where the database gives you that detail. If the only public number you find is for a broad group such as cashews, mark it as a general estimate for that food. A small difference between two tables may reflect how foods were sampled, which form was recorded or how the values were rounded. The difference alone gives you little basis for attributing it to roasting. About the Australian Food Composition Database
Check the packet for the information it actually gives
Magnesium sits outside the usual list of required nutrients in an Australian Nutrition Information Panel. Additional information can appear when a relevant nutrition claim is made. If a number for magnesium appears, read the amount and its unit, and check whether the column refers to a serving or 100 g. When the panel leaves magnesium out, the label gives you no magnesium quantity to compare. A matching food-composition table can be useful in that case. Keep its value labelled as a reference estimate and separate from any figure supplied for the exact product. FSANZ on Nutrition Information Panels and Codmani’s guide to per-serve and per-100 g labels
If only one food has a magnesium figure on the package, compare the sources as well as the numbers. A manufacturer’s declared figure and a generic table estimate describe different evidence. They can help you make a rough comparison when the portions and preparations match. When the ingredients or preparation differ, keep each entry as context and avoid ranking the products on the basis of a small gap.
A snack mix is another place where this matters. A 30 g bag with cashews, peanuts and other ingredients has a 30 g pack weight for the whole mixture. Applying the source's 30 g cashew value to the full bag would count the whole mixture as cashews. If you have a product-specific magnesium value, use the portion stated with that value. If you only have a rough visual guess at the proportions, keep your result qualitative and say which ingredients might contribute magnesium.
Use the estimate for the question you actually have
A portion estimate tells you what a particular amount of food might contribute. Australian nutrient reference values describe intake guidance for population groups and vary with age, sex and life stage. A GP or accredited practising dietitian can help if your question concerns a test result, a restricted diet or what level of intake is appropriate for you. Bring the full label or the food and portion you used so the conversation starts with the right information. Eat for Health’s magnesium nutrient reference values
For a shopping or meal comparison, write down three things before comparing: the food and preparation, the amount you will eat, and the source of the magnesium estimate. With those together, you can see when a small topping contributes less than a larger snack, or when a cooked side already has a useful reference at the amount on your plate.