WaterCalculator

Grains Per Gallon Calculator

Find the hardness number to program into your water softener. Enter your hardness in any unit, plus iron and manganese if your water has them, and get the compensated hardness in grains per gallon that the softener needs.

Your water test

Use the hardness, iron and manganese from a water test or lab report.

Hardness

Only have calcium and magnesium? Get total hardness with the hardness converter first.

Iron & manganese

Enter 0 if your test shows none. Clear (ferrous) iron is the kind a softener can take out.

Compensation factors

Softener makers commonly use 4–5 for iron and a similar figure for manganese. Use your softener manual's numbers if it gives them.

Softener hardness setting

—

Compensated hardness in other units

    In short: set your softener to compensated hardness = hardness (gpg) + 4 × iron (ppm) + 4 × manganese (ppm), rounded up. Water with 15 gpg hardness and 2 ppm iron needs a setting of 23 gpg, not 15. To get gpg from ppm, divide by 17.1.

    Compensation factors vary by manufacturer. Use your softener manual's figures where it gives them, and check its maximum iron rating.

    What a grain per gallon is

    A grain is an old unit of mass, 64.8 milligrams. Water softeners in the U.S. are rated and programmed in grains: a "32,000-grain" softener removes about 32,000 grains of hardness between regenerations, and you set it with your water's hardness in grains per gallon (gpg).

    gpg = ppm (mg/L as CaCO₃) ÷ 17.1

    1 gpg = 64.8 mg ÷ 3.785 L = 17.12 mg/L. Lab and utility reports usually give ppm or mg/L, so this is the first conversion most people need.

    For conversions between every hardness unit, with USGS and WQA classes, use the hardness PPM to GPG calculator.


    Why iron and manganese are added

    A softener's resin exchanges sodium for calcium and magnesium, and it grabs dissolved (ferrous) iron and manganese too. Those metals use up exchange capacity and foul the resin, so the softener must regenerate sooner than hardness alone suggests. Setting a higher "compensated" hardness makes it regenerate often enough to keep up and to clear the metals before they build up.

    compensated hardness = hardness (gpg) + iron (ppm) × 4 + manganese (ppm) × 4

    Common factors are 4–5 gpg per ppm of iron, with a similar allowance for manganese. Manufacturers differ, so the factors are adjustable in the calculator.

    Softeners have an iron limit. Softeners remove only clear, dissolved iron, and each model has a maximum it's rated for. Rusty (oxidized) iron, iron bacteria, or iron above the rating needs an iron filter ahead of the softener; size one with the iron filter sizing calculator.


    Worked examples

    Compensated hardness at 4 gpg per ppm for iron and manganese.
    Water testHardness+ Iron+ ManganeseSetting
    City water, 171 ppm10 gpg0010 gpg
    Well, 15 gpg, 2 ppm iron15 gpg8023 gpg
    Well, 257 ppm, 1.5 ppm iron, 0.3 ppm Mn15 gpg61.223 gpg
    Hard well, 25 gpg, 3 ppm iron25 gpg12037 gpg

    Settings are rounded up because most softener controls take whole numbers, and rounding down would let it run out of capacity before regenerating.


    After you set it

    • Sizing. Compensated hardness is also the figure to size with: daily grains = compensated gpg × gallons per day. The water softener size calculator does the rest.
    • Regeneration. A higher setting means more frequent regenerations; see the regeneration frequency calculator and the salt usage calculator.
    • Check the result. Test softened water after a few days. It should read 0–1 gpg. Hardness slipping through before regeneration means the setting is too low.
    • Retest yearly. Well water hardness and iron change seasonally, so re-test and update the setting at least once a year.


    Frequently asked questions

    What should I set my water softener hardness to?

    Set it to your compensated hardness in grains per gallon: hardness plus about 4 gpg for each ppm of iron and each ppm of manganese, rounded up to a whole number. With no iron or manganese, it's simply your hardness in gpg.

    How do I convert ppm to grains per gallon?

    Divide ppm (or mg/L as CaCO₃) by 17.1. 171 ppm is 10 gpg; 257 ppm is 15 gpg.

    What is compensated hardness?

    It's the hardness figure adjusted upward for iron and manganese, which use up softener capacity just as calcium and magnesium do. Programming the softener with compensated hardness makes it regenerate often enough to remove the metals as well.

    Is it bad to set the softener hardness too high?

    A modestly high setting only costs extra salt and water from more frequent regeneration. Setting it too low is the bigger problem: hard water and iron slip through before the softener regenerates.

    Can a softener remove iron?

    It can remove clear, dissolved (ferrous) iron up to the model's rated limit, which is why iron is added to the setting. Oxidized red iron, iron bacteria, or iron above the rating needs an iron filter first.

    Why is my setting different from my hardness?

    Because iron and manganese are included. A test with 15 gpg hardness and 2 ppm iron gives a setting of 23 gpg.


    Sources & references

    1. SoftPro Water Systems. What Is Compensated Hardness and How Do I Calculate It? (iron × 4–5 added to hardness in gpg).
    2. U.S. Geological Survey. Hardness of Water.
    3. Unit definition: 1 grain = 64.79891 mg; 1 US gallon = 3.785412 L; 1 gpg = 17.118 mg/L.

    Sarah Bennett, MS

    Sarah Bennett, MS

    Water Quality & Sustainability Specialist · Portland, Oregon

    Environmental scientist (MS, Water Resources) with 9+ years in residential water quality, treatment, and usage efficiency, and 150+ completed assessments. Sarah writes and reviews the treatment, usage, and cost calculators on watercalculator.us. Read full bio

    MS Environmental Science, Water Resources (2018) · BS Environmental Engineering (2016)

    Published Updated Methodology Editorial policy