Last verified · v1.0
Calculator · math
Mean Calculator (Arithmetic, Geometric, Harmonic)
Calculate arithmetic, geometric, or harmonic mean for up to 10 values. Select mean type, enter your data, and get instant results with step-by-step formulas.
Inputs
Mean
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
What Are the Three Types of Mean?
A mean summarizes a set of numbers into one representative value. Three distinct formulas exist — arithmetic, geometric, and harmonic — each suited to different data types and analytical goals. Selecting the correct mean is critical for accurate statistical interpretation, as documented by StatPearls on NCBI Bookshelf and supported by NIH NLM's statistics education resource. Using the wrong mean can lead to misleading conclusions in finance, science, and public health. For instance, calculating investment returns using arithmetic instead of geometric mean overestimates actual portfolio growth; analyzing water quality with arithmetic mean instead of geometric mean fails to account for bacterial measurements that span multiple orders of magnitude.
Arithmetic Mean
The arithmetic mean is the standard average: add all values and divide by the count of values. It is the most commonly used mean in everyday statistics and forms the foundation for many advanced statistical techniques.
Formula: x̄ = (x₁ + x₂ + … + xₙ) / n
Example: Test scores of 70, 85, 90, and 95 produce an arithmetic mean of (70 + 85 + 90 + 95) / 4 = 340 / 4 = 85. This mean works best for equally weighted, linear-scale measurements such as temperatures, heights, and exam results. The arithmetic mean is ideal when each data point contributes equally to the overall picture and when the data follows a normal distribution or can be reasonably assumed to be additive in nature.
Geometric Mean
The geometric mean multiplies all values together and takes the nth root of their product. This type of mean is essential for analyzing data that grows or shrinks exponentially, where percentage changes or ratios are more meaningful than absolute differences.
Formula: x̄geom = (x₁ × x₂ × … × xₙ)1/n
Example: Annual investment returns expressed as growth factors — 1.10, 1.20, and 1.30 — yield a geometric mean of (1.10 × 1.20 × 1.30)1/3 = (1.716)0.333 ≈ 1.197, representing a 19.7% true compound annual growth rate. According to the California Water Boards guidance on calculating geometric means, this formula is the standard method for analyzing bacterial colony counts in water quality testing, where measurements span several orders of magnitude. The geometric mean is also used in calculating pH values, interest rate comparisons, and any scenario involving exponential growth or decay.
Harmonic Mean
The harmonic mean equals the reciprocal of the arithmetic mean of the reciprocals of all values. It is particularly valuable when dealing with rates, ratios, or any situation where the average of reciprocals is the meaningful statistic.
Formula: x̄harm = n / (1/x₁ + 1/x₂ + … + 1/xₙ)
Example: A vehicle travels 60 km at 60 km/h, then another 60 km at 40 km/h. The harmonic mean speed = 2 / (1/60 + 1/40) = 2 / 0.04167 ≈ 48 km/h. The arithmetic mean of 50 km/h would overestimate the true average speed because more time is spent at the slower pace — the harmonic mean is the correct choice for equal-distance, varying-rate problems. This principle applies equally to fuel efficiency calculations, average cost per unit when purchasing quantities differ, and financial metrics like price-to-earnings ratios.
When to Use Each Mean
- Arithmetic mean: Temperatures, test scores, heights — any additive measurement on a linear scale where all values carry equal weight. Also appropriate for normally distributed data and situations where extreme outliers do not dominate the dataset.
- Geometric mean: Compound interest, population growth rates, investment returns, pH values, and any multiplicative or log-scale dataset. Use this whenever percentage changes, ratios, or exponential behavior characterize your data.
- Harmonic mean: Average speed over equal distances, average cost per unit when quantities vary, fuel efficiency, and price-to-earnings ratios in portfolio analysis. Apply this whenever rates or reciprocals form the natural unit of measurement.
The AM-GM-HM Inequality
For any set of positive, non-equal values, the relationship Harmonic Mean ≤ Geometric Mean ≤ Arithmetic Mean always holds. All three means are equal only when every value in the dataset is identical. This fundamental result, discussed in Yale's course on mean and variance of random variables, shows that the harmonic mean always produces the most conservative estimate — making it essential for avoiding overestimation in rate-based problems. Understanding this hierarchy helps analysts choose the most appropriate mean: if you need a lower bound estimate, the harmonic mean is safest; if you need the typical additive average, arithmetic mean applies; if you need to capture exponential behavior, geometric mean is correct.
How to Use This Calculator
- Select the Type of Mean — Arithmetic, Geometric, or Harmonic — from the dropdown.
- Set How Many Values to the number of data points to include (1 through 10).
- Enter each number in the corresponding Value fields.
- Read the calculated mean displayed instantly in the result area.
Reference