Magnesium in Reef Tank: The Overlooked Key to
Quick Summary
Magnesium is the parameter most reef keepers forget to test until something goes wrong. It does not get consumed as fast as calcium or alkalinity, and corals do not visibly demand it the way they demand carbonate. But magnesium is what holds the entire calcium-alkalinity balance in place. When magnesium drops below 1200 ppm, calcium and alkalinity become unstable, dosing stops working properly, and precipitation events become far more likely. The target range is 1250 to 1350 ppm, and in most tanks a simple monthly check is enough to stay on track.
What Magnesium Does in a Reef Tank
Most aquarists first encounter magnesium when they notice their calcium and alkalinity numbers will not stay stable despite consistent dosing. They dose calcium up, it drops overnight. They raise alkalinity, it falls again. The usual suspect is consumption, but the real cause is often magnesium sitting too low.
Magnesium ions (Mg²⁺) in reef water act as a chemical stabilizer. They interfere with the crystal lattice formation of calcium carbonate, making it harder for calcium and carbonate ions to spontaneously combine outside of biological processes. In simple terms, magnesium keeps calcium and alkalinity dissolved in the water where corals can use them, instead of letting them precipitate out onto rocks and equipment.
Natural seawater contains approximately 1280 ppm of magnesium. At this concentration, the water can comfortably hold calcium at 420 ppm and alkalinity at 7 to 8 dKH without precipitation risk. Drop magnesium to 1100 ppm, and that same water suddenly cannot hold those values. This is why magnesium is often called the gatekeeper of reef water chemistry.
Why Magnesium Levels Drop
In most reef tanks, magnesium consumption is slow compared to calcium and alkalinity. Corals do not use magnesium in large quantities for calcification. But it does get consumed, and over time, the slow drain adds up.
Coralline algae is one of the largest magnesium consumers in a reef tank. The magnesium-calcite structure of coralline algae incorporates magnesium directly into its skeleton, pulling small but steady amounts from the water column. Tanks with heavy coralline coverage will see faster magnesium depletion than tanks with minimal coralline growth.
Some invertebrates, particularly certain species of sea urchins and calcifying worms, also consume magnesium. Water changes replenish some magnesium, but if your salt mix runs low on magnesium relative to natural seawater levels, each water change may not fully replace what was consumed. In practice, this is the most common reason magnesium creeps downward in tanks that appear to be well maintained.
Salt mix variation is worth noting. Not all salt mixes contain the same magnesium concentration. Some run at 1250 ppm, while others land closer to 1350 ppm. If your salt mix runs low, every water change slowly dilutes your magnesium rather than replenishing it. Testing your freshly mixed saltwater can reveal whether your salt mix is contributing to the problem.
Target Magnesium Levels
For reef tanks, the target range is 1250 to 1350 ppm. Natural seawater sits at roughly 1280 ppm, and that is a reliable midpoint for most systems.
Here is how magnesium targets map across different reef setups:
| Scenario | Target Range | Notes |
|---|---|---|
| Soft coral tank | 1200 to 1300 ppm | Lower demand, less critical to precision |
| Mixed reef (LPS + softies) | 1250 to 1350 ppm | Standard range, monthly monitoring |
| SPS-dominant reef | 1280 to 1350 ppm | Tighter control supports calcium/alk stability |
| Heavy coralline growth | 1300 to 1350 ppm | Higher consumption from coralline algae |
Unlike calcium and alkalinity, which can swing noticeably within a day in high-demand tanks, magnesium moves slowly. You will rarely see a 50 ppm drop in a week unless something unusual is happening. This is why monthly testing is sufficient for most reef keepers, with weekly checks during initial setup or after making changes to dosing routines.
How Magnesium Stabilizes Calcium and Alkalinity
If you have ever watched calcium and alkalinity crash simultaneously despite consistent dosing, magnesium was likely the underlying cause. The chemistry behind this is worth understanding because it changes how you approach reef water management.
Reef water is a supersaturated solution. It holds more dissolved calcium and carbonate than it would under normal equilibrium conditions. The reason it stays dissolved is magnesium. Magnesium ions are similar in size to calcium ions, and they insert themselves into the crystal structure of calcium carbonate as it tries to form. This disruption prevents large-scale precipitation.
When magnesium is at 1280 ppm, this interference is strong enough to keep calcium at 420 ppm and alkalinity at 8 dKH without any spontaneous precipitation. When magnesium falls below 1200 ppm, the interference weakens. Calcium carbonate begins forming on any available nucleation site: heater surfaces, pump impellers, overflow teeth, and even existing coral skeletons where it deposits as unwanted chalky buildup.
This is what causes the chain reaction. As calcium carbonate precipitates out, it removes both calcium and carbonate from solution simultaneously. The more precipitation occurs, the more ions are pulled out, accelerating the crash. This explains why some reef keepers experience a sudden overnight collapse of both calcium and alkalinity values. The trigger was not dosing failure. It was magnesium dropping below the stability threshold.
How to Test Magnesium
Testing magnesium requires a bit more patience than testing calcium or alkalinity. Most hobbyist magnesium test kits use a titration method that involves two separate reagents and a longer counting process.
Salifert and Red Sea both produce widely used magnesium test kits. Accuracy is typically within 20 to 40 ppm, which is adequate for reef keeping since the target window is 100 ppm wide. The key to getting reliable results is following the instructions precisely: use the correct water sample volume, count drops carefully, and watch for the color change endpoint closely.
Hanna Instruments offers a digital magnesium checker that provides electronic results and reduces interpretation error. For most reef keepers, a good titration kit tested monthly is perfectly sufficient. In SPS systems or tanks with heavy coralline coverage, testing every two weeks gives better visibility into consumption trends.
One common mistake is testing magnesium immediately after dosing. Always test at least two hours after any supplementation to allow full mixing. Testing too soon gives artificially high readings near the dosing point and artificially low readings elsewhere in the tank.
How to Raise Magnesium
When magnesium tests below 1250 ppm, raising it is straightforward. The approach depends on how far below target you are and whether you need a one-time correction or ongoing supplementation.
For a one-time correction, magnesium chloride and magnesium sulfate (sold as part of reef magnesium supplement blends) can be dissolved in RO water and added to the tank. Most commercial magnesium supplements provide dosing charts based on tank volume and desired increase. A general guideline: raise magnesium no more than 50 to 100 ppm per day to avoid shocking livestock.
If you need to raise magnesium from 1100 to 1300 ppm in a 50-gallon tank, plan to spread the correction over two to three days. Add the supplement to a high-flow area and test daily until you reach the target.
For ongoing maintenance, the easiest approach is to use a salt mix that matches or slightly exceeds natural seawater magnesium levels. If your salt mix consistently lands at 1280 ppm or above, regular water changes will keep magnesium stable in most tanks without additional supplementation.
In tanks with heavy coralline algae or high SPS density, you may need to dose magnesium regularly. Many two-part dosing systems do not include magnesium, so a separate magnesium supplement dosed weekly or biweekly is often necessary. Track your consumption rate by testing before and after a dosing cycle, then adjust volume and frequency accordingly.
Magnesium sulfate vs. magnesium chloride: Most reef magnesium supplements use a blend of both. Magnesium chloride raises magnesium without affecting sulfate levels. Magnesium sulfate adds sulfate ions, which are already abundant in saltwater. Using a mix of both keeps the ionic balance closer to natural seawater. If you are mixing your own, a common ratio is 3 parts magnesium chloride to 1 part magnesium sulfate by dry weight.
How to Lower Magnesium
High magnesium (above 1400 ppm) is uncommon, but it does occur. In most cases, it results from overdosing magnesium supplements or using a salt mix that runs high.
The good news: moderately elevated magnesium (up to about 1500 ppm) is generally well tolerated by reef livestock. You will not see the same acute problems that high calcium or high alkalinity can cause. However, very high magnesium (above 1600 ppm) can begin to interfere with calcium uptake and may cause some corals to appear sluggish.
The simplest correction is water changes with a salt mix that has magnesium closer to natural seawater levels (1280 ppm). Two to three 15% water changes over a week will bring elevated magnesium back into range in most tanks. Stop all magnesium supplementation until levels normalize.
Almost always, high magnesium is a dosing error. If you find magnesium consistently running high, reduce your supplement volume or frequency. The slow consumption rate of magnesium means small dosing changes have a gradual but reliable effect.
System Interactions
Calcium
Magnesium directly stabilizes calcium in solution. When magnesium drops, calcium becomes prone to precipitation and dosing corrections become ineffective. Always verify magnesium is in range before adjusting calcium. For a complete guide to calcium management, see the calcium guide.
Alkalinity
The same stabilization effect applies to carbonate ions. Low magnesium allows carbonate to precipitate with calcium, pulling alkalinity down alongside it. Magnesium is the first parameter to check when both calcium and alkalinity are unstable. See the alkalinity guide for dosing details.
Coralline Algae
Coralline algae is the primary biological consumer of magnesium in most reef tanks. Tanks with extensive coralline coverage will have measurably higher magnesium consumption. If you are encouraging coralline growth, expect to supplement magnesium more frequently.
Coral Growth
While corals do not consume magnesium at the same rate as calcium, the indirect effect on growth is significant. Stable magnesium means stable calcium and alkalinity, which means consistent calcification. In practice, SPS keepers who maintain magnesium in the 1280 to 1350 ppm range report fewer chemistry swings and more predictable growth. See the coral growth guide for more factors that influence growth rate.
Advanced: Magnesium and Aragonite vs. Calcite
The role of magnesium in preventing spontaneous precipitation is tied to a specific crystallographic mechanism. Calcium carbonate can form in two main crystal structures: aragonite and calcite. In reef tanks, aragonite is the desirable form because it is what corals build their skeletons from.
Magnesium ions preferentially incorporate into the calcite crystal lattice, distorting its structure and raising the energy required for crystal growth. This effectively poisons calcite formation, making it thermodynamically unfavorable under normal reef conditions. Aragonite formation, which corals control biologically at their calcification site, is less affected by magnesium interference.
This is why magnesium is sometimes described as the mineral that "chooses" which form of calcium carbonate gets to form. At proper magnesium levels, abiotic calcite precipitation is suppressed, leaving the calcium and carbonate ions available for biological aragonite formation by corals. When magnesium drops, calcite precipitation becomes energetically favorable again, and calcium carbonate begins forming indiscriminately on every available surface.
This explains a pattern that experienced reef keepers recognize: the white chalky deposits that form on heaters and pumps during a precipitation event are primarily calcite, not aragonite. The crystal structure is different, and the trigger is almost always insufficient magnesium to maintain the aragonite-favoring conditions.
Advanced: Magnesium in the Context of Ionic Strength
Reef water is not simply a calcium-alkalinity-magnesium solution. It contains dozens of dissolved ions that collectively determine the water's ionic strength. Magnesium is the third most abundant cation in seawater (after sodium and, at much lower concentration, calcium), and its contribution to ionic strength is substantial.
Changes in magnesium concentration affect the activity coefficients of other ions in solution. In practical terms, this means that a 200 ppm swing in magnesium alters how calcium and carbonate ions behave, even if those ions have not been added or removed. This is one reason why large magnesium corrections should be made gradually. A sudden 200 ppm increase in magnesium shifts the ionic environment enough that calcium and alkalinity may temporarily read differently, even without actual consumption or dosing.
For most reef keepers, the practical lesson is simple: maintain magnesium within a stable, narrow range. Avoid large corrections in a single day. And when troubleshooting calcium or alkalinity instability, always test magnesium first, because it influences how every other ion in the tank behaves.
Common Myths
"Magnesium does not matter if calcium and alkalinity are stable." This is backwards. Calcium and alkalinity are stable because magnesium is adequate. The moment magnesium drops, stability disappears. Magnesium is the foundation, not an afterthought.
"Corals consume a lot of magnesium." Corals consume very little magnesium compared to calcium and alkalinity. Coralline algae is the main biological consumer. In most tanks, magnesium depletion is slow and steady rather than fast and dramatic.
"You need to test magnesium every week." Monthly testing is sufficient for most reef tanks. Magnesium moves slowly, and unless you have exceptionally heavy coralline coverage or a salt mix that runs low, levels tend to stay relatively stable between water changes.
"Any magnesium supplement works the same." The ratio of magnesium chloride to magnesium sulfate matters. Using only magnesium chloride raises chloride levels over time, while using only magnesium sulfate raises sulfate. A blend of both (approximately 3:1 chloride to sulfate) keeps ionic ratios closer to natural seawater.
"High magnesium is dangerous to corals." Mildly elevated magnesium (up to 1500 ppm) is well tolerated by most reef organisms. Problems only emerge at extreme levels above 1600 ppm. Compared to the risks of low magnesium, running slightly high is far less concerning.
FAQ
What should magnesium be in a reef tank?
The target range is 1250 to 1350 ppm. Natural seawater is approximately 1280 ppm, and that is an ideal midpoint for most reef systems.
How often should I test magnesium?
Once per month is sufficient for most established reef tanks. Test more frequently (every one to two weeks) when first setting up a dosing routine or after making changes to salt mix or supplementation.
What happens if magnesium is too low?
Low magnesium destabilizes calcium and alkalinity. You may notice both parameters dropping despite consistent dosing, white precipitate forming on equipment, or inability to maintain target ranges. Correct magnesium first, then resume calcium and alkalinity dosing.
Can magnesium be too high?
Mildly elevated magnesium (up to 1500 ppm) is generally safe. Above 1600 ppm, some corals may show reduced polyp extension or slower calcification. The fix is water changes with a balanced salt mix and stopping magnesium supplementation.
Does two-part dosing include magnesium?
Most standard two-part systems (Part A calcium, Part B alkalinity) do not include magnesium. You will typically need a separate magnesium supplement dosed independently. Some all-in-one systems do include magnesium, so check your product specifications.
Why do calcium and alkalinity crash when magnesium is low?
Magnesium prevents spontaneous calcium carbonate precipitation. When magnesium drops, calcium and carbonate ions combine on equipment and rock surfaces, pulling both out of solution simultaneously. This can happen rapidly once the threshold is crossed.
How fast can I raise magnesium?
Raise magnesium no more than 50 to 100 ppm per day. Larger corrections should be spread over several days to avoid stressing livestock or destabilizing other parameters.
Related Guides
- Reef Water Chemistry Guide: Complete overview of reef water parameters and how they interact.
- Calcium in Reef Tank: How calcium and magnesium work together, and why magnesium must be stable before calcium corrections will hold.
- Alkalinity Explained: The carbonate side of the equation and how magnesium protects it from precipitation.
- Reef Parameter Chart: Quick reference for all major reef water parameters and target ranges.
- SPS Coral Care: High-demand corals that benefit most from stable magnesium levels.
- Coral Growth Tips: Practical strategies for maximizing growth through water chemistry stability.