Mean Calculator
Enter a list of numbers to get the arithmetic, geometric, harmonic, and quadratic mean all at once.
μ 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
📖 How to Use This Calculator
All Means Mode
💡 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)
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)
Example 3 - Student CGPA (Weighted Mean)
Three subjects: 8.0 (4 credits), 7.5 (3 credits), 9.0 (5 credits)
❓ Frequently Asked Questions
🔗 Related Calculators
What is the arithmetic mean and how do you calculate it?
The arithmetic mean is the sum of all values divided by the count. For example, the arithmetic mean of 4, 8, and 12 is (4 + 8 + 12) / 3 = 8. It is the most common type of average and works best for symmetric datasets without extreme outliers.
What is the geometric mean and when should you use it?
The geometric mean is the nth root of the product of n values. For example, the geometric mean of 4 and 9 is the square root of 36, which equals 6. Use the geometric mean for growth rates, investment returns, and ratios because it correctly handles multiplicative relationships.
What is the harmonic mean?
The harmonic mean is n divided by the sum of the reciprocals of each value. For three values a, b, c, the harmonic mean equals 3 divided by (1/a + 1/b + 1/c). The harmonic mean is best for averaging rates, such as speeds over equal distances or unit costs at varying volumes.
What is the quadratic mean (root mean square)?
The quadratic mean, also called the root mean square (RMS), is the square root of the arithmetic mean of the squared values. It is widely used in physics and engineering, especially for alternating current (AC) power calculations and statistical error analysis.
What is the AM greater than or equal to GM greater than or equal to HM inequality?
For any set of positive numbers, the arithmetic mean (AM) is always greater than or equal to the geometric mean (GM), which is always greater than or equal to the harmonic mean (HM). All three are equal only when every value in the dataset is identical.
What is a weighted mean and how is it different from a regular mean?
A weighted mean assigns different importance (weights) to different values. Formula: weighted mean equals the sum of (value times weight) divided by the sum of all weights. A regular mean treats all values equally, whereas a weighted mean gives higher-weighted values more influence on the result.
When should I use the geometric mean instead of the arithmetic mean?
Use the geometric mean when dealing with percentage changes, growth rates, or ratios. For example, if an investment grows by 50% in year one and falls by 33% in year two, the arithmetic mean return is 8.5%, but the correct annualized return is 0% (geometric mean), because you end up where you started.
Why does the harmonic mean require no zeros in the dataset?
The harmonic mean formula divides by the sum of reciprocals. If any value is zero, its reciprocal (1/0) is undefined, making the harmonic mean mathematically impossible to compute.
Can the geometric mean handle negative numbers?
No. The geometric mean requires all values to be strictly positive. Taking the nth root of a negative product can produce imaginary numbers, which have no practical meaning for most real-world applications.
What is the difference between mean and average?
In everyday language the two terms are interchangeable and both refer to the arithmetic mean. In mathematics, mean is a broader term that includes the arithmetic mean, geometric mean, harmonic mean, and quadratic mean. Average most commonly refers specifically to the arithmetic mean.
How do I calculate a weighted mean for grades or CGPA?
Assign each subject a credit weight and enter your grade points as values. For example, a course worth 4 credits scored at 8.0 contributes 32 to the numerator. Sum all (grade times credit) products and divide by the total credits to get your weighted CGPA.
What is the quadratic mean used for in statistics?
The quadratic mean, or root mean square, is used to measure the magnitude of varying quantities. In statistics it relates to standard deviation: if the mean is zero, the RMS equals the standard deviation. In signal processing it measures effective signal amplitude.