terican

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.

FreeInstantNo signupOpen source

Inputs

Mean

Explain my result

0/3 free

Get a plain-English breakdown of your result with practical next steps.

Mean

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: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.3331.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: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

  1. Select the Type of Mean — Arithmetic, Geometric, or Harmonic — from the dropdown.
  2. Set How Many Values to the number of data points to include (1 through 10).
  3. Enter each number in the corresponding Value fields.
  4. Read the calculated mean displayed instantly in the result area.

Reference

Frequently asked questions

What is the difference between arithmetic, geometric, and harmonic mean?
The arithmetic mean sums all values and divides by the count, making it ideal for linear data like test scores or temperatures. The geometric mean takes the nth root of the product of all values, suited for growth rates and ratios. The harmonic mean is the reciprocal of the average of reciprocals, best for rates such as speed or fuel efficiency. For any set of positive values, Harmonic Mean is always less than or equal to Geometric Mean, which is always less than or equal to Arithmetic Mean.
When should the geometric mean be used instead of the arithmetic mean?
Use the geometric mean whenever data represents multiplicative growth, ratios, or percentages — such as annual investment returns, population growth rates, or bacterial colony counts in water quality testing. For example, if an investment grows by 10%, 50%, and 20% in three consecutive years, the geometric mean of the growth factors (1.10 × 1.50 × 1.20) raised to the power of 1/3 equals approximately 1.256, indicating a true compound annual growth rate of 25.6%. The arithmetic mean of 26.7% would overstate actual performance.
How does the harmonic mean calculator work for average speed problems?
When a vehicle covers equal distances at different speeds, the correct overall average speed is the harmonic mean of the individual speeds, not the arithmetic mean. Enter each speed as a separate value and select Harmonic Mean. For instance, traveling 60 km/h for the first leg and 40 km/h for the second leg yields a harmonic mean of 2 divided by (1/60 + 1/40), which equals approximately 48 km/h. The arithmetic mean of 50 km/h overestimates true average speed because more time is spent at the slower rate.
Can this mean calculator handle negative numbers or zeros?
The arithmetic mean accepts any real numbers, including negative values and zero. The geometric mean requires all inputs to be strictly positive, because a negative number under an even root produces an imaginary result and a zero collapses the entire product to zero. The harmonic mean also requires all values to be non-zero and positive, since a zero in the denominator of any reciprocal is undefined. Always enter positive, non-zero numbers when selecting the geometric or harmonic mean modes.
What is the AM-GM-HM inequality and why does it matter?
The AM-GM-HM inequality states that for any set of positive numbers, the arithmetic mean is always greater than or equal to the geometric mean, which is always greater than or equal to the harmonic mean. Equality holds only when all values in the dataset are identical. This inequality matters because it identifies which average produces the most conservative estimate: the harmonic mean always gives the lowest result, making it the safest option for rate-based comparisons, preventing overestimation in problems involving speed, cost per unit, or financial ratios.
How many values can the mean calculator accept, and what are the input limits?
This mean calculator accepts between 1 and 10 numeric values per calculation. Use the How Many Values field to specify exactly how many data points to include — only fields up to that count are used in the computation. For datasets larger than 10 values, split the data into batches of up to 10, compute the arithmetic mean of each batch, then combine the batch means using a weighted average based on the number of values in each batch to obtain the overall mean.