How to calculate a geometric mean for your MOR or DMR

TeamSolve · November 2026 · 6 min read

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).

  1. Replace the zero with 1: 450, 175, 1, <20.
  2. Drop the less-than symbol: <20 becomes 20.
  3. Multiply: 450 × 175 × 1 × 20 = 1,575,000.
  4. 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

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.

More guides

VideoRequest a demo