The Calcium, Magnesium, and Alkalinity Triangle Explained
September 16, 2025
Calcium, magnesium, and alkalinity cannot be managed as separate parameters in a reef tank. They form a linked system, and losing control of one will eventually destabilize the others no matter how carefully you dose.
Why calcium, magnesium, and alkalinity work as a triangle
Calcifying corals and coralline algae consume both calcium and alkalinity as they grow. That much most reefers know. What is less obvious is that the relationship between the three parameters runs deeper than simple consumption.
Magnesium acts as a chemical buffer that keeps calcium and carbonate ions in solution simultaneously. When magnesium is in its correct range, the water can hold elevated levels of both calcium and alkalinity without those ions combining and precipitating out as calcium carbonate. When magnesium falls low, that buffering capacity weakens, and the water struggles to hold calcium and alkalinity at their target levels at the same time.
This is why the three are described as a triangle rather than a list. Calcium and alkalinity are consumed together, but not at a fixed ratio, so their relative levels drift over time. Magnesium underpins the stability of both. Pull one corner of the triangle and the other two become harder to hold.
Target ranges for all three parameters
Knowing where each parameter should sit is the starting point for any troubleshooting or maintenance routine.
- Alkalinity: 7 to 10 dKH, with most SPS-dominant tanks running 7.5 to 8.5 dKH for the tightest stability
- Calcium: 380 to 450 ppm
- Magnesium: 1250 to 1350 ppm
The alkalinity range is intentionally narrower in SPS-heavy systems because hard corals are sensitive to swings. A tank with softer corals or a mixed community has more tolerance across the range, but the principle remains the same: consistency within the range matters more than hitting a specific number.
The most common mistake reefers make with these parameters
The failure mode shows up in a predictable pattern. A keeper notices alkalinity or calcium drifting low, increases their dosing, sees the number come up temporarily, then watches it slide back down again. They increase the dose again. The cycle repeats. After weeks of this they are dosing more than the tank logically needs and still cannot hold stable numbers.
The root cause is almost always low magnesium.
When magnesium falls below its target range, the water loses its ability to hold calcium and carbonate in solution at the same time. Ions that cannot stay in solution precipitate out, which means calcium and alkalinity effectively disappear from the water column regardless of how much you add. The dosing math looks correct on paper, but the chemistry cannot cooperate because the foundational buffer is depleted.
Aggressively dosing calcium and alkalinity while ignoring magnesium accelerates the problem. You are adding more of two parameters that the water cannot hold, and the precipitation can even cloud the water or coat equipment surfaces over time.
How to tell if low magnesium is your real problem
The clearest signal is this: you are dosing calcium and alkalinity on a schedule that should be sufficient for your coral load, but both parameters keep reading low at your next test. One parameter being stubborn could point to a calibration issue or a local consumption spike. Both parameters resisting correction at the same time, consistently, points strongly toward a magnesium problem.
Other signs to look for:
- Calcium and alkalinity numbers that seem to drop faster than your coral growth can explain
- Difficulty raising either parameter even when you dose a larger correction amount
- Numbers that come up after dosing but fall back to low readings within a day or two
- A long gap since you last tested magnesium (or you have never tested it at all)
If any of these match your situation, test magnesium before adjusting your calcium or alkalinity dosing further.
Step-by-step approach when you suspect a magnesium problem
- Test magnesium first. Do not continue adjusting calcium or alkalinity doses until you have a current magnesium reading. A result outside the 1250 to 1350 ppm range confirms the problem.
- Raise magnesium gradually. Bring it back into range over the course of several days rather than in a single large addition. Sudden large shifts in any parameter cause stress to corals and can destabilize the other parameters in the process.
- Hold off on aggressive calcium and alkalinity corrections while magnesium is low. Once magnesium is restored, the water's ability to hold the other two in solution improves, and you may find that your existing dosing routine becomes effective again without any changes.
- Retest all three parameters together once magnesium is back in range. Calcium and alkalinity often self-correct or require only minor adjustments at this point.
- Return to your normal dosing routine and monitor for stability over the following week.
How to prevent the problem with a better testing routine
The fix is simpler than most reefers expect: test all three parameters together, not just the one you are actively managing.
A practical schedule that catches this failure mode early looks like this:
- Test alkalinity and calcium weekly, or more often in high-demand tanks
- Test magnesium monthly alongside one of those regular alkalinity and calcium checks
This monthly magnesium check is the part most reefers skip. Because magnesium depletes more slowly than calcium or alkalinity in most systems, it is easy to assume it is fine. But the depletion is steady and cumulative. Catching a downward drift early means a small, straightforward correction. Catching it after months of neglect means a multi-week troubleshooting process that feels like a dosing problem when it is actually a chemistry foundation problem.
Building the magnesium test into your routine when everything is going well is far less work than diagnosing the failure after the triangle collapses.
What to avoid when correcting these parameters
- Do not raise any single parameter dramatically in one session. Gradual correction is always safer for your corals and more predictable for your chemistry.
- Do not assume that doubling a dose will solve a stubborn reading. If the parameter will not respond to correct dosing, the problem is the water's capacity to hold it, not the quantity you are adding.
- Do not test calcium and alkalinity in isolation for months at a time and consider your chemistry managed. The triangle requires all three corners to be monitored.
- Do not skip the magnesium test when troubleshooting any calcium or alkalinity instability. It is the fastest way to rule out the most common underlying cause.
Frequently asked questions
Why do calcium and alkalinity deplete together if they are not consumed at a fixed ratio?
Calcifying organisms use both ions to build their skeletons, which is why both decline as your corals and coralline algae grow. The ratio is not fixed because different coral species and growth rates draw on each parameter differently, and water changes or evaporation top-offs also affect the balance independently. Over time this means the two numbers drift apart and require individual correction, even though they are linked at the biological level.
Can I raise magnesium too fast?
Yes. Bringing any major parameter up in one large step introduces a sudden chemical shift that corals can react to with stress or tissue response. The standard guidance is to raise magnesium gradually over multiple days so the change is incremental rather than abrupt. This also gives you time to retest and confirm you are hitting the target range without overshooting.
If my magnesium is in range, what else could explain stubborn low calcium or alkalinity?
With magnesium confirmed in range, the next things to examine are your test kit accuracy (expired or contaminated reagents can give false low readings), your actual coral demand relative to your dosing volume, and whether a large water change recently diluted your parameters. A calibration check with a fresh test kit or a reference solution is a good early step before adjusting any doses.
How does magnesium relate to what natural seawater contains?
The target ranges given here are based on what stable reef systems require. The original post does not specify natural seawater values, but the intent of the ranges is to replicate a chemistry that supports calcification and keeps calcium and carbonate ions soluble simultaneously.
Do softer corals like LPS or softies stress the calcium and alkalinity triangle as much as SPS?
SPS corals are the most demanding, which is why SPS-dominant tanks run the tighter alkalinity range of 7.5 to 8.5 dKH. LPS and soft coral systems have lower overall demand, but the triangle dynamic still applies. Magnesium still needs to be in range for the water to hold calcium and alkalinity in solution, and both parameters still need to be tested regularly. The consequences of neglect simply appear more slowly in lower-demand systems.
TankMind can help you log all three parameters in one place and spot the early signs of triangle drift before it turns into a troubleshooting headache.
Get diagnoses specific to your tank, not generic advice.
Try TankMind free