pH Buffer Calculator: Free Aquarium KH & pH Dosing Tool
KH · pH · Baking Soda & RO/DI Dosing

pH Buffer Calculator: Safely Raise or Lower Your Aquarium’s pH

A free pH buffer calculator that tells you exactly how much baking soda to add to raise KH and pH, or how much RO/DI water to dilute with to lower KH and pH, based on your tank’s actual volume and current readings.

pH / KH Buffer Calculator

Freshwater Tanks
Use 0 for RO/DI water, or test your tap water directly
Community / Neutral
KH 4–8 · pH ~6.8–7.6
African Cichlid
KH 10–18 · pH ~7.8–8.5
Soft Water / Discus
KH 0–3 · pH ~6.0–6.8
Note: Your source water’s KH is at or above your target. Diluting with this water alone can’t reach that target — you’ll need true RO/DI water or a KH-lowering method like driftwood, peat, or a commercial pH-down product.
Add Baking Soda
0 g
 
Approx. Resulting KH
0 dKH
general community range
Tank Volume
0 gal
Current KH
0 dKH
Target KH
0 dKH
KH Change
0 dKH

Gradual Dosing Schedule (Recommended)

Never make a large KH/pH adjustment all at once. Splitting it into steps over 24–48 hours protects fish from pH shock.

StepWhenAmount
This calculator uses a commonly cited hobbyist approximation (about 1 level teaspoon of baking soda per 5 gallons raises KH by roughly 4 dKH) and standard dilution math for lowering KH. Actual results vary with your baking soda’s density, existing water chemistry, and CO2 levels. Always retest after dosing and adjust gradually, especially with sensitive livestock.

Quick Answer

A pH buffer calculator tells you how much baking soda (sodium bicarbonate) to add to raise your aquarium’s KH and pH, or how much RO/DI water to dilute with to lower them. Because KH (carbonate hardness) is what actually buffers and stabilizes pH, adjusting KH is the standard, predictable way hobbyists manage pH rather than dosing chemicals aimed at pH directly. A commonly cited rule is that 1 level teaspoon of baking soda per 5 gallons raises KH by roughly 4 dKH, nudging pH toward a more neutral-to-alkaline range.

What Is a pH Buffer Calculator?

A pH buffer calculator is a dosing tool that translates your tank’s current water chemistry and a target reading into a concrete action: how much baking soda to add to raise KH and pH, or how much RO/DI water to dilute with to lower them. Rather than treating pH as something you dose directly, this pH buffer calculator works with KH, or carbonate hardness, which is the actual buffering agent that determines how stable and how high or low your pH naturally sits. Adjusting pH without addressing KH tends to produce unstable, short-lived results, which is exactly the trap this calculator is built to help you avoid.

After years of answering “why does my pH keep bouncing around” questions in hobbyist communities, the root cause is almost always the same: a tank with very low KH has almost no buffering capacity, so pH swings wildly in response to normal biological activity like CO2 produced overnight by fish respiration and consumed during the day by plants. A tank with adequate KH holds its pH steady even as CO2 levels shift throughout the day. This is why experienced fishkeepers rarely chase a pH number directly — they manage KH instead, and let pH settle into a stable, predictable range as a result.

This tool is built for anyone setting up a new tank for a specific species with defined water chemistry needs, troubleshooting an unstable or “crashing” pH, or gradually adjusting an established tank toward a different fish community’s preferred range. It applies to freshwater aquariums; reef and marine systems use a related but distinct approach involving alkalinity and calcium balance covered by dedicated reef supplements.

How to Use This Calculator

Getting an accurate dose from this pH buffer calculator takes under a minute:

  1. Choose your direction. Select “Raise pH” if you need higher KH and pH, such as for African cichlids, or “Lower pH” if you need softer, more acidic water, such as for discus or many South American species.
  2. Enter your tank’s water volume, using your actual water volume rather than the tank’s rated capacity.
  3. Enter your current KH, tested with a liquid KH/alkalinity test kit, which is more informative for this purpose than a pH test alone.
  4. Enter your target KH, or tap one of the presets for Community/Neutral, African Cichlid, or Soft Water/Discus to auto-fill a commonly used target.
  5. If lowering pH, enter your source water’s KH. Use 0 for true RO/DI water, or test your tap water if that’s what you’re diluting with.
  6. Click “Calculate Buffer Adjustment.” You’ll see the amount of baking soda or RO/DI water needed, along with a gradual, staged dosing schedule.

Always retest KH and pH after making an adjustment, since real-world results can vary slightly from the calculated estimate depending on your water’s existing mineral content.

How pH, KH, and CO2 Relate

In a freshwater aquarium, pH, KH, and dissolved CO2 are locked together in a predictable chemical relationship often visualized as a reference chart in the planted tank hobby. Carbonate hardness acts as a buffer against acids, including the carbonic acid formed when CO2 dissolves in water. Higher KH resists pH change more strongly, which is why raising KH is the standard method for raising and stabilizing pH, while lower KH allows pH to drift more freely, including dropping in response to rising CO2 levels, such as from a pressurized CO2 injection system in a planted tank or simply from fish respiration overnight in any tank.

Practical takeaway: If your pH keeps swimming up and down over the course of a day without you doing anything, check your KH first — a low KH reading is very often the real culprit, not a mysterious pH problem.

Target KH and pH Ranges by Fish Type

Fish CommunityTarget KH (dKH)Typical pH Range
General Community4 – 86.8 – 7.6
African Cichlids & Livebearers10 – 187.8 – 8.5
Discus & South American Softwater0 – 36.0 – 6.8
Planted / Heavily CO2-Injected2 – 56.4 – 7.0
Goldfish6 – 127.2 – 7.8

These ranges are general starting points — individual species within each group can have more specific preferences, so cross-checking a target species’ exact requirements is always worthwhile before making a large chemistry adjustment.

How to Raise pH Safely

Raising pH almost always means raising KH first. Baking soda (sodium bicarbonate, with no added anti-caking agents or scents) is the standard hobbyist choice, since it’s inexpensive, predictable, and widely available. A commonly cited dosing rule is roughly 1 level teaspoon of baking soda per 5 gallons of water to raise KH by about 4 dKH, though this is an approximation that can vary slightly with your baking soda’s exact density and your water’s existing chemistry. Always dissolve baking soda in a cup of tank water before adding it, and split larger adjustments into two or three doses over 24–48 hours rather than adding the full amount at once.

How to Lower pH Safely

Lowering pH means lowering KH, and the most predictable method is dilution with RO/DI water, which carries essentially zero KH and hardness. This calculator’s “Lower pH” mode applies the same dilution math used for other water parameters: the more your source water’s KH differs from your target, the more water needs replacing. Beyond dilution, several natural methods gradually soften water and lower pH over time: driftwood and Indian almond leaves release tannins that lower pH and add beneficial compounds many soft-water species evolved alongside, while peat moss filtration has a similar softening effect. Commercial pH-down products are also available and can work quickly, but should be dosed exactly according to the manufacturer’s instructions, since overdosing can cause a rapid, dangerous pH crash.

Adjusting pH When Adding New Fish

New fish arriving from a store or online shipment are often coming from water with a different KH and pH than your display tank, sometimes significantly so if the source system runs its chemistry differently than yours. Drip acclimation, which slowly mixes your tank water into the shipping bag over 30 to 60 minutes, gives fish time to adjust gradually rather than facing an abrupt chemistry change the moment they’re released into a new environment. This matters most for species known to be sensitive to water chemistry swings, such as discus, wild-caught fish, and many invertebrates, but it’s a reasonable precaution for any new arrival.

If you know your target species needs meaningfully different KH or pH than your display tank currently has, it’s often better to gradually shift your tank’s chemistry toward the target range over one to two weeks before the fish arrive, rather than trying to acclimate them into a tank that still needs its own adjustment. This calculator’s staged dosing schedule is built with exactly that kind of gradual pre-adjustment in mind.

pH Buffering in Planted and CO2-Injected Tanks

Planted tanks running pressurized CO2 injection add an extra layer to the KH and pH relationship, since dissolved CO2 itself lowers pH by forming carbonic acid. Many planted tank keepers deliberately run a moderate KH, often in the 2–5 dKH range, which is high enough to prevent a dangerously unstable pH crash but low enough that CO2 injection can still produce a meaningful, plant-beneficial pH drop during the day when CO2 is running. Because CO2 levels rise and fall on a daily injection schedule, pH in these tanks naturally fluctuates somewhat even in a well-run system, which is normal and different from the erratic, unpredictable swings caused by inadequate KH in a non-CO2 tank. Testing KH before setting up a CO2 system, and choosing an injection rate appropriate for that KH level, helps keep the daily pH swing in a safe, predictable range rather than an excessive one.

Worked Examples

Applying the math to real tank scenarios shows how the dosing translates in practice.

Example 1 · 30-Gallon African Cichlid Tank

Raising KH From 3 dKH to 12 dKH

The gap is 9 dKH. Using the approximate ratio of about 0.23 grams of baking soda per gallon per dKH, this tank needs roughly 30 × 9 × 0.23 ≈ 62 grams (about 13.5 teaspoons) of baking soda, best split into three doses over two days and retested along the way.

Example 2 · 20-Gallon Discus Tank

Lowering KH From 8 dKH to 2 dKH With RO/DI Water

Using the dilution formula for a zero-KH source, the freshwater needed is roughly V × (1 − target/current) ≈ 20 × 0.75 = 15 gallons of RO/DI water, replacing most of the tank gradually across several water changes over a week or more, since discus are particularly sensitive to rapid chemistry shifts.

Example 3 · 55-Gallon Goldfish Tank

Raising KH From 4 dKH to 8 dKH

The gap is 4 dKH. At 0.23 g per gallon per dKH, this tank needs roughly 55 × 4 × 0.23 ≈ 51 grams (about 11 teaspoons) of baking soda, dosed in two stages a day apart to keep the shift gentle for a heavily stocked tank.

Enter your own tank’s numbers into the calculator above for amounts tailored to your exact volume and readings.

GH vs. KH vs. pH: Clearing Up the Confusion

Three water chemistry terms get mixed up constantly in the hobby, and understanding the difference makes every other water parameter conversation easier. pH measures acidity or alkalinity directly, on a scale of 0 to 14. KH, or carbonate hardness, measures the concentration of carbonate and bicarbonate ions, which function as your water’s pH buffer. GH, or general hardness, measures a separate set of dissolved minerals, mainly calcium and magnesium, and relates more to how “hard” water feels and how well certain plants, shrimp, and fish process minerals for shell and bone development. A tank can have high GH and low KH, or the reverse, since the two measure genuinely different mineral content, which is why serious water chemistry troubleshooting usually tests all three together rather than relying on pH alone.

Why Sudden pH Swings Are Dangerous

Fish physiology adapts gradually to a stable pH over time, regulating internal chemistry to match their environment. A rapid pH swing, whether from a large water change using very different source water, an overcorrected buffer dose, or a sudden KH crash, doesn’t give fish time to adjust, which can trigger pH shock: visible stress, erratic swimming, gasping at the surface, and in severe cases, death. This is the core reason every dosing schedule in this guide recommends gradual, staged adjustments over 24 to 48 hours rather than a single large correction, even when the total amount of baking soda or dilution water needed is well within generally safe limits.

Common pH Buffering Mistakes

  • 1Chasing pH directly instead of adjusting KH. A pH-only fix without addressing buffering capacity tends to be unstable and short-lived.
  • 2Making a large adjustment all at once. Split bigger corrections into staged doses over 24–48 hours to avoid pH shock.
  • 3Using baking soda with added anti-caking agents or scents. Stick to plain sodium bicarbonate meant for baking, not specialty blends.
  • 4Ignoring source water KH when diluting. Tap water with meaningful KH won’t lower your tank as much as pure RO/DI water would.
  • 5Letting KH run to zero in a CO2-injected planted tank. Some minimum KH buffer helps prevent an unstable, crashing pH even in low-KH soft-water setups.

Related Fish & Pet Calculators

If this pH buffer calculator helped you dial in your tank’s water chemistry, a few companion tools are worth bookmarking alongside it. Before adjusting water parameters for new fish, checking your stocking level with the Fish Inch Per Gallon Calculator helps avoid overcrowding a tank you’ve just carefully balanced. For households managing pet nutrition alongside a fish tank, the Pet Alliance Calorie Calculator keeps a dog or cat’s diet on track, and the Dog Age Calculator is a quick way to translate your dog’s age into human years. Browse the full library of free tools on the Pet Calculator Hub.

Fish Inch Per Gallon Calculator

Check safe stocking levels before adding new fish.

Pet Alliance Calorie Calculator

Estimate daily calorie needs for dogs and cats.

Dog Age Calculator

Convert your dog’s age into human years.

Pet Calculator Hub

Browse the full library of free pet-care calculators.

Frequently Asked Questions

How do I raise the pH in my aquarium?

Raise KH using baking soda (sodium bicarbonate), since KH acts as a buffer that holds pH at a higher, more stable level. A commonly cited rule is about 1 level teaspoon per 5 gallons, which raises KH by roughly 4 dKH.

How do I lower the pH in my aquarium?

Lower KH first, since a high-KH tank strongly resists pH changes. Diluting with RO/DI water is the most predictable method. Driftwood, peat moss, and Indian almond leaves naturally soften water and lower pH over time, and commercial pH-down products are also available.

What is the difference between pH and KH?

pH measures acidity or alkalinity on a scale of 0 to 14. KH measures your water’s buffering capacity, or resistance to pH change. High KH keeps pH stable but harder to shift; low KH allows pH to swing more easily.

What pH is safe for most freshwater fish?

Most community freshwater fish do well around 6.8 to 7.6. African cichlids and many livebearers prefer 7.8 to 8.5, while soft-water species like discus prefer about 6.0 to 6.8.

Why did my pH crash even though I did not add anything?

A pH crash usually happens in a tank with very low KH, where buffering capacity has been used up by ongoing biological acid production. Without enough carbonate hardness to resist the change, pH can drop suddenly, which is why maintaining a minimum KH buffer matters.

Is baking soda safe to use in an aquarium?

Plain sodium bicarbonate baking soda, with no added anti-caking agents or scents, is widely used and generally considered safe when dosed gradually and in reasonable amounts. Always dissolve it in tank water first and avoid large, sudden doses.

Can I use baking soda in a saltwater or reef tank?

It’s sometimes used by reef keepers to raise alkalinity in a pinch, but dedicated two-part alkalinity and calcium supplements are generally preferred, since they maintain the calcium-to-alkalinity balance corals need, which baking soda alone doesn’t provide.

How much does pH change per teaspoon of baking soda?

Baking soda’s effect on pH is indirect: it primarily raises KH, which raises and stabilizes pH toward neutral-to-alkaline. The actual pH result depends on starting KH, CO2 levels, and other minerals, which is why this calculator focuses on KH dosing.

How often should I test pH and KH?

Weekly testing is a reasonable baseline, with more frequent testing during a new tank’s nitrogen cycle, after any chemistry adjustment, or if you notice signs of fish stress. Testing both together gives a more complete picture than pH alone.

Why is a sudden pH change dangerous for fish?

Fish gradually adapt their internal chemistry to their water’s pH. A rapid swing doesn’t allow that adaptation, which can cause pH shock: stress, erratic swimming, and in severe cases, death. Gradual adjustments over several days are almost always safer.

About this guide: This pH buffer calculator and reference guide are maintained by an aquarium water-chemistry research team, based on widely used hobbyist baking soda dosing ratios and standard dilution math. It is provided for general informational and planning purposes and is not veterinary advice; for a persistent water chemistry issue or fish health concern, consult an experienced local fish store or aquatic veterinarian.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top