Mean Calculator

Enter a list of numbers to get the arithmetic, geometric, harmonic, and quadratic mean all at once.

μ Mean Calculator
Numbers (comma or space separated)
Arithmetic Mean (AM)
Geometric Mean (GM)
Harmonic Mean (HM)
Quadratic Mean (RMS)
Count (n)
Sum
Values (comma separated)
Weights (same order as values)
Weighted Mean
Simple Mean
Weighted Sum
Sum of Weights
Difference from Simple

μ What is a Mean?

A mean is a single value that represents the center or typical value of a dataset. While most people are familiar with the everyday arithmetic mean, mathematics defines four classical means: the arithmetic mean (AM), geometric mean (GM), harmonic mean (HM), and quadratic mean (QM, also called root mean square or RMS). Each type of mean is the correct choice for a different kind of data.

The arithmetic mean is the one you use most often: add all values and divide by the count. It works best for symmetric data like test scores, temperatures, and ages where values cluster around a center. The geometric mean is the correct average for growth rates and ratios because it reflects multiplicative relationships. If an investment grows 100% one year and falls 50% the next, the arithmetic mean return is 25%, but the true annualized return is 0%, which only the geometric mean captures. The harmonic mean is ideal for averaging rates, speeds, and unit prices where the denominator (distance, time, quantity) is fixed. The quadratic mean (RMS) is used in physics, engineering, and statistics to measure the magnitude of varying quantities, especially when values can be positive or negative.

A key mathematical relationship links the three positive-value means: the arithmetic mean is always greater than or equal to the geometric mean, which is always greater than or equal to the harmonic mean. This is called the AM-GM-HM inequality and it holds for any set of positive numbers. All three means are equal only when every value in the dataset is identical. The quadratic mean is always at least as large as the arithmetic mean.

This calculator computes all four classical means simultaneously from a single dataset, so you can instantly compare them. The Weighted Mean mode lets you assign different importance to each value, which is essential for grade point averages, index weighting, and survey analysis where not all observations carry equal significance.

📐 Formulas

AM  =  (x&sub1; + x&sub2; + ... + xₙ) ÷ n
xᵢ = each value in the dataset
n = total count of values
Example: AM of 2, 8, 14 = (2 + 8 + 14) / 3 = 8
GM  =  (x&sub1; × x&sub2; × ... × xₙ)1/n
GM = nth root of the product of all values
Requires all values to be strictly positive
Example: GM of 4 and 9 = √(4 × 9) = √36 = 6
HM  =  n ÷ (1/x&sub1; + 1/x&sub2; + ... + 1/xₙ)
HM = n divided by the sum of reciprocals
Requires all values to be non-zero
Example: HM of 4 and 6 = 2 / (1/4 + 1/6) = 2 / (5/12) = 4.8
QM (RMS)  =  √[(x&sub1;² + x&sub2;² + ... + xₙ²) ÷ n]
QM = square root of the mean of squared values
Works with positive, negative, and zero values
Example: RMS of 3, 4 = √[(9 + 16) / 2] = √12.5 = 3.536
Weighted Mean  =  (w&sub1;x&sub1; + w&sub2;x&sub2; + ... + wₙxₙ) ÷ (w&sub1; + w&sub2; + ... + wₙ)
wᵢ = weight assigned to value xᵢ
Example: Values 70, 90 with weights 1, 3: WM = (70×1 + 90×3) / (1+3) = 340 / 4 = 85

📖 How to Use This Calculator

All Means Mode

1
Choose a mode - Click "All Means" to compute all four classical means, or "Weighted Mean" to assign custom weights.
2
Enter your numbers - Type your dataset in the box separated by commas, spaces, or semicolons. Any mix of positive and negative numbers is accepted for the arithmetic and quadratic means.
3
Click Calculate - All four means appear instantly along with the count, sum, and the AM ≥ GM ≥ HM inequality verification for positive datasets.
4
For weighted mean - Switch to the Weighted Mean tab, enter values in the top box, then enter one weight per value in the same order in the weights box, and click Calculate.

💡 Example Calculations

Example 1 - Investment Returns Over Four Years

Annual returns: 10%, 20%, 5%, 15% (use decimal multipliers 1.10, 1.20, 1.05, 1.15)

1
Arithmetic mean: (1.10 + 1.20 + 1.05 + 1.15) / 4 = 4.50 / 4 = 1.125 (implies 12.5% average return).
2
Geometric mean: (1.10 × 1.20 × 1.05 × 1.15)1/4 = (1.5939...)0.25 = 1.1238 (true annualized return: 12.38%).
3
The geometric mean (12.38%) is the correct annualized return. The arithmetic mean (12.5%) slightly overstates performance due to volatility drag.
Geometric Mean = 1.1238 (12.38% annualized return)
Try this example →

Example 2 - Average Speed Over Two Legs

Car travels 60 km/h on the way out and 90 km/h on the return (equal distances)

1
Arithmetic mean speed: (60 + 90) / 2 = 75 km/h (incorrect for equal-distance trips).
2
Harmonic mean speed: 2 / (1/60 + 1/90) = 2 / (0.01667 + 0.01111) = 2 / 0.02778 = 72 km/h.
3
The car spends more time on the slower leg, so 72 km/h is the true average. The arithmetic mean overstates by 3 km/h.
Harmonic Mean = 72 km/h (correct average speed)
Try this example →

Example 3 - Student CGPA (Weighted Mean)

Three subjects: 8.0 (4 credits), 7.5 (3 credits), 9.0 (5 credits)

1
Weighted sum: (8.0 × 4) + (7.5 × 3) + (9.0 × 5) = 32 + 22.5 + 45 = 99.5.
2
Total credits: 4 + 3 + 5 = 12.
3
Weighted mean (CGPA): 99.5 / 12 = 8.292. Simple mean would give (8.0 + 7.5 + 9.0) / 3 = 8.167, which underrepresents the high-credit subject.
Weighted Mean (CGPA) = 8.292
Try this example →

❓ Frequently Asked Questions

What is the most commonly used type of mean?+
The arithmetic mean is by far the most common. When people say "the mean" or "the average" without qualification, they almost always mean the arithmetic mean: the sum of all values divided by their count. It is appropriate for symmetric data without extreme outliers.
When should I use the geometric mean instead of the arithmetic mean?+
Use the geometric mean for growth rates, percentage returns, and ratios. If an investment doubles (100% gain) then halves (50% loss), the arithmetic mean return is 25%, which is misleading because you are back to the starting value. The geometric mean correctly gives 0% annualized return, reflecting reality.
What is the harmonic mean used for in real life?+
The harmonic mean is used when averaging rates where the denominator is fixed. Classic examples include average speed over equal distances, average cost when buying equal dollar amounts of a stock at varying prices (dollar-cost averaging), and averaging fuel efficiency in miles per gallon across equal mileage segments.
What does the AM greater than or equal to GM greater than or equal to HM inequality tell me?+
For any set of positive numbers, the arithmetic mean is always at least as large as the geometric mean, which is at least as large as the harmonic mean. This inequality tells you that using the wrong mean always overestimates. If your values are all equal, all three means are identical. A large gap between AM and HM signals high variability in your data.
Why does the geometric mean require all positive values?+
The geometric mean multiplies all values together and takes the nth root. If any value is zero, the product is zero and the mean is zero regardless of other values. If any value is negative, the product can be negative, and the nth root of a negative number is not a real number for even n.
How is the quadratic mean different from standard deviation?+
The quadratic mean (RMS) is the square root of the mean of squared values. The standard deviation is the square root of the mean of squared deviations from the arithmetic mean. If the arithmetic mean is zero, RMS equals standard deviation. Otherwise they differ. RMS measures the magnitude of values; standard deviation measures spread around the mean.
How do I calculate a weighted mean for a university grade point average?+
Enter your grade points as values and your credit hours as weights. For example, grades 8.0, 7.0, 9.0 with credit hours 4, 3, 5 give a weighted mean of (8.0 times 4 + 7.0 times 3 + 9.0 times 5) divided by (4 + 3 + 5) = 99.5 / 12 = 8.292. Switch to Weighted Mean mode in this calculator and enter both lists.
Can this calculator handle negative numbers?+
Yes, with restrictions. The arithmetic mean and quadratic mean (RMS) accept any real numbers, including negatives. The geometric mean and harmonic mean require all-positive values; the calculator will display "N/A" for those means if your dataset contains zeros or negatives.
What is the difference between mean and median?+
The mean is a calculation (sum divided by count), while the median is the middle value when data is sorted. For symmetric data they are nearly equal. For skewed data with outliers, the median better represents the typical value. Income data is a classic example: a few billionaires pull the mean salary far above what most people actually earn.
How many numbers can I enter in this calculator?+
There is no fixed limit. The calculator processes any list of numbers you paste or type, separated by commas, spaces, or semicolons. For very large datasets (thousands of values), paste the data and click Calculate; results appear instantly without any size restriction.
Why is the weighted mean different from the simple arithmetic mean?+
The simple mean treats all values as equally important. The weighted mean gives values with higher weights more influence on the result. For example, if one assessment is worth 60% of a grade and another is worth 40%, the weighted mean correctly reflects that importance difference, whereas the simple mean would treat both assessments as equal.
What is the formula for the quadratic mean?+
The quadratic mean (QM), also called root mean square (RMS), equals the square root of the arithmetic mean of the squared values. For values x1, x2, ..., xn: QM = square root of [(x1 squared + x2 squared + ... + xn squared) divided by n]. For the values 3 and 4, QM = square root of [(9 + 16) / 2] = square root of 12.5 = 3.536.