How to calculate a geometric mean for your MOR or DMR
Bacteria results such as E. coli and fecal coliform are usually reported as a geometric mean, not an ordinary average. It is easy to get wrong, especially when a result is zero or reported as less than a value. Here is the calculation, a worked example, and the rules that trip people up.
Why a geometric mean
Bacteria counts swing widely: 20 one day, 500 the next. An ordinary average lets one high result dominate the month. The geometric mean dampens that swing, which is why permits usually require it for microbiological results. EPA's DMR training notes that geometric means are calculated for microbiological organisms unless the permit says otherwise (EPA).
The calculation
For n results, multiply them together and take the nth root:
Geometric mean = (x1 × x2 × ... × xn)1/n
With many results the product gets very large, so the equivalent log method is easier: take the base-10 log of each result, average the logs, then raise 10 to that average.
Worked example
The Minnesota Pollution Control Agency uses four fecal coliform results: 450, 175, 0 and <20 (MPCA).
- Replace the zero with 1: 450, 175, 1, <20.
- Drop the less-than symbol: <20 becomes 20.
- Multiply: 450 × 175 × 1 × 20 = 1,575,000.
- Take the 4th root (four results): 1,575,0000.25 = 35.43.
The ordinary average of the same numbers would be 161, more than four times higher.
The rules that trip people up
- Zeros. You cannot take the log of zero, and one zero would make the whole product zero. EPA's NPDES reporting handbook says to substitute a value of one for any fecal coliform result of zero (EPA NPDES Reporting Handbook).
- Less-than and greater-than results. States differ in the details. Minnesota drops the "<" and uses the number. Kentucky's DMR manual says to use the upper value for "too numerous to count" results, such as 60,000 for >60,000 (Kentucky EEC). Follow your own state's instructions.
- Which samples. The monthly value normally uses the calendar month's samples. Some permits also have a weekly or 7-day geometric mean limit, which is calculated separately.
- Rounding. Round only the final answer, not the individual results.
Spreadsheet formulas
In Excel or Google Sheets, =GEOMEAN(B2:B31) works only if no cell is zero or text; a zero returns an error. Clean the values first (zeros to 1, symbols removed) in a helper column, then apply GEOMEAN to that column. The log method gives the same answer: =10^AVERAGE(LOG10(C2:C31)) in current Excel, or =10^AVERAGE(ARRAYFORMULA(LOG10(C2:C31))) in Google Sheets.
How TeamSolve handles it
TeamSolve builds monthly operating report tables from your daily WIMS values, with sums, averages, minimums, maximums and geometric means calculated for you. Every table carries a short written summary of what stands out, ready for your team to review.
Permit and state reporting rules vary. This guide is general information; follow your permit and your state's DMR instructions.