Free Mean Calculator

Enter numbers separated by commas or spaces to calculate the mean.

Understanding the Three Pythagorean Means

This free online mean calculator serves as a versatile arithmetic mean calculator, geometric mean calculator, and harmonic mean calculator in one tool. Whether you need the standard average, a geometric rate of return, or a harmonic rate, you can obtain all three measures instantly. Enter your dataset using commas, spaces, or line breaks — just keep in mind that the geometric and harmonic means require all numbers to be positive. Choose the specific mean type you want, or request all three at once. The results appear immediately, saving you from manual computation.

What is a Mean?

A mean is a single value that summarizes a set of numbers by capturing the center of the data. The most familiar type is the arithmetic mean (often called the average), which is the sum of all values divided by the count. However, depending on the structure of your data — additive, multiplicative, or rate‑based — the geometric mean or harmonic mean may be more appropriate. Together, these three are known as the Pythagorean means and form the foundation of many statistical and financial analyses.

Arithmetic Mean

Formula and definition: For a set of nn values x1,x2,…,xnx_1, x_2, \dots, x_n, the arithmetic mean x‾\overline{x} is

x‾=1n∑i=1nxi.\overline{x} = \frac{1}{n} \sum_{i=1}^{n} x_i .

Example: For the numbers 12, 30, 25, 86, and 40, sum them: 12+30+25+86+40=19312 + 30 + 25 + 86 + 40 = 193. Dividing by 5 gives an arithmetic mean of 38.6.

Geometric Mean

Formula and definition: The geometric mean GG is the nn-th root of the product (all values must be positive):

G=(∏i=1nxi)1/n.G = \left( \prod_{i=1}^{n} x_i \right)^{1/n}.

Example: For 2, 4, 8, the product is 2×4×8=642 \times 4 \times 8 = 64. With n=3n = 3, the cube root of 64 is G=4G = 4.

Harmonic Mean

Formula and definition: The harmonic mean HH is the reciprocal of the arithmetic mean of the reciprocals:

H=n∑i=1n1xi.H = \frac{n}{\sum_{i=1}^{n} \frac{1}{x_i}} .

Example: For the values 6, 50, 75, compute the reciprocals: 16=16\frac{1}{6} = \frac{1}{6}, 150=150\frac{1}{50} = \frac{1}{50}, 175=175\frac{1}{75} = \frac{1}{75}. Their sum is 25150+3150+2150=30150=15\frac{25}{150} + \frac{3}{150} + \frac{2}{150} = \frac{30}{150} = \frac{1}{5}. Hence H=31/5=15H = \frac{3}{1/5} = 15.

How to Calculate the Means Manually

If you ever need to perform these calculations by hand, the steps are:

  • Arithmetic mean: Add all numbers, then divide by the count.
  • Geometric mean: Multiply all numbers, then take the nn-th root (or raise the product to the power 1/n1/n).
  • Harmonic mean: Take the reciprocal of each number, sum those reciprocals, and divide the total count by that sum.

The calculator automates these exact processes, giving you results instantly without error.

Relationships Among the Three Means

For any list of positive numbers, the means obey the inequality

H≤G≤x‾,H \leq G \leq \overline{x},

with equality only when all numbers are identical. This is the fundamental arithmetic‑geometric‑harmonic mean inequality. Additionally, the harmonic mean of a dataset is the reciprocal of the arithmetic mean of the reciprocals, and the logarithm of the geometric mean equals the arithmetic mean of the logarithms. These connections show how the three measures are mathematically intertwined.

Weighted Means

When each value contributes differently to the overall average, weighted means are used. Each value xix_i has an associated weight wiw_i.

  • Weighted arithmetic mean: ∑wixi∑wi\displaystyle \frac{\sum w_i x_i}{\sum w_i} — commonly used in GPA calculations where credits act as weights.
  • Weighted geometric mean (positive values only): (∏xiwi)1/∑wi\displaystyle \left( \prod x_i^{w_i} \right)^{1/\sum w_i}
  • Weighted harmonic mean: ∑wi∑(wi/xi)\displaystyle \frac{\sum w_i}{\sum (w_i / x_i)}

If all weights are equal, these formulas simplify to their standard (unweighted) versions.

Practical Applications

  • Arithmetic mean: The default estimator of the population mean, it minimizes the sum of squared deviations and is used in descriptive statistics, hypothesis testing, and everyday averaging.
  • Geometric mean: Ideal for multiplicative contexts, such as average growth rates or compound returns. For example, if an investment returns 10% in year 1 and 20% in year 2, the average annual return is the geometric mean: [(1.10)(1.20)]1/2−1≈14.9%[(1.10)(1.20)]^{1/2} - 1 \approx 14.9\%, not the arithmetic mean of 15%. In geometry, it appears in the right‑triangle altitude theorem.
  • Harmonic mean: The proper way to average rates over equal distances. If you travel from A to B at 60 km/h and return at 90 km/h, the average speed for the round trip is the harmonic mean: 2/(1/60+1/90)=722 / (1/60 + 1/90) = 72 km/h. In finance, it is used to average price‑earnings ratios across stocks.

Statistical Perspective: Population vs. Sample Mean

In statistics, the arithmetic mean appears in two forms:

  • Population mean (μ\mu): μ=1N∑i=1Nxi\displaystyle \mu = \frac{1}{N} \sum_{i=1}^{N} x_i, where NN is the population size.
  • Sample mean (xˉ\bar{x}): xˉ=1n∑i=1nxi\displaystyle \bar{x} = \frac{1}{n} \sum_{i=1}^{n} x_i, where nn is the sample size.

The sample mean is an unbiased estimator of the population mean, meaning its long‑run average equals the true population parameter. This property makes it a cornerstone of inferential statistics.

While the mean describes the center of a dataset, the interquartile range (IQR) describes its spread by covering the middle 50% of the data. Unlike the mean, the IQR is not influenced by extreme outliers. For example, when analyzing household income, the mean shows the average while the IQR reveals how income is distributed among most households — excluding the top and bottom extremes. Together, the mean and IQR provide a fuller picture of both centrality and variability.

FAQ

1. How do I manually calculate the arithmetic, geometric, and harmonic means?

For the arithmetic mean, sum all numbers and divide by the count. For the geometric mean, multiply all numbers and take the n-th root (or raise the product to the power of 1/n). For the harmonic mean, take the reciprocal of each number, sum those reciprocals, then divide the total count by that sum.

2. When should I use the geometric mean instead of the arithmetic mean?

Use the geometric mean for multiplicative data such as growth rates, investment returns, or ratios. It reduces the impact of extreme values and gives a more realistic average when numbers compound over time. The arithmetic mean is better for additive data and general central tendency.

3. Does the mean calculator work with negative numbers?

The arithmetic mean can handle any real numbers, including negatives. However, the geometric and harmonic means require all input values to be positive (zero or negative numbers will produce errors).

4. What is the difference between a weighted and an unweighted mean?

In an unweighted mean, every value contributes equally to the result. A weighted mean assigns a weight to each value, reflecting its importance. For example, GPA uses weighted arithmetic mean where course credits are weights. If all weights are equal, weighted and unweighted means give the same result.

5. How is the harmonic mean used in real situations?

The harmonic mean is commonly used to average speeds over equal distances (e.g., round‑trip average speed) and in finance to average price‑earnings ratios. It is also applied in geometry (incircle radius relationships) and acoustics (parallel resistance calculations).

How to Use

  1. Enter your numbers separated by commas or spaces in the Data Set field.
  2. The calculator automatically computes the arithmetic, geometric, and harmonic means in real-time.
  3. Review the results for each type of mean displayed in the result panel.