Statistics Free Tool Updated July 25, 2026
BY: Statistics Fundamentals Team
Reviewed By: Minsa A (Senior Statistics Editor)

Mean Calculator

Enter any set of numbers and instantly find the mean, median, mode, range, variance, and standard deviation — with full step-by-step working shown. Supports comma-separated, space-separated, or one-per-line input.

Mean Calculator — x̄ = Σxᵢ / n

Enter numbers separated by commas, spaces, or new lines

Arithmetic Mean (x̄)
Median
Mode
Range
Count (n)
Sum (Σ)
Min / Max
Variance (s²)
Std Deviation (s)
Q1 / Q3
IQR
Value distribution

Step-by-Step Solution

What Is the Mean?

The mean (also called the arithmetic mean or average) is the sum of all values in a dataset divided by the number of values. It is the most widely used measure of central tendency in statistics, data analysis, business, science, and everyday life.

Mean Formula — Arithmetic Mean
x̄ = Σxᵢ / n
= sample mean (pronounced "x-bar")
Σxᵢ = sum of all values
n = number of values

For a population mean (when you have data on every member of the group, not just a sample), the notation changes to μ = Σxᵢ / N, where N is the population size. The formula is identical — only the notation differs.

How to Calculate the Mean — 3 Steps

Step-by-Step Example

Find the mean of: 4, 8, 6, 5, 3

1
Add all values (Σxᵢ)
4 + 8 + 6 + 5 + 3 = 26
2
Count the values (n)
There are 5 numbers in the dataset.
3
Divide sum by count
x̄ = 26 / 5 = 5.2

✓ Mean = 5.2. The average of 4, 8, 6, 5, 3 is 5.2.

Mean Calculator for Grouped Data

When your data is given as a frequency distribution table (class intervals with frequencies), you cannot simply average the raw values. Instead, you use the midpoint of each class interval and weight it by frequency.

Mean Formula — Grouped Data
x̄ = Σ(f · x) / Σf
f = frequency of each class
x = midpoint of each class interval
Σ(f·x) = sum of all (frequency × midpoint)
Σf = total frequency (= n)
Grouped Data Example

Student test scores — find the mean from this frequency table:

Marks (Interval) Frequency (f) Midpoint (x) f × x
0 – 103515
10 – 2051575
20 – 30825200
30 – 40435140
40 – 5024590
TOTALΣf = 22Σ(f·x) = 520

Mean = Σ(f·x) / Σf = 520 / 22 = 23.64

✓ The mean mark is 23.64.

💡
How to use the calculator above for grouped data

Enter the midpoint of each class interval multiplied by its frequency as your dataset. For the example above, enter: 5, 5, 5, 15, 15, 15, 15, 15, 25, 25, 25, 25, 25, 25, 25, 25, 35, 35, 35, 35, 45, 45 — the calculator will return 23.64.

Types of Mean

There are three primary types of mean, each suited to different data situations. The arithmetic mean is the most common and is what most people mean when they say "average."

Most Common

Arithmetic Mean

x̄ = Σxᵢ / n

Sum of all values divided by count. Used for general datasets: exam scores, temperatures, sales figures. Sensitive to outliers.

Growth Rates

Geometric Mean

G = (x₁×…×xₙ)^(1/n)

The nth root of the product of all values. Used for compound growth, investment returns, and multiplicative processes. Requires all positive values.

Rates & Ratios

Harmonic Mean

H = n / Σ(1/xᵢ)

Number of values divided by the sum of reciprocals. Used for averaging rates like speed (distance/time) and price-to-earnings ratios. Always ≤ arithmetic mean.

💡
Which mean should you use?

For most everyday situations, use the arithmetic mean. For comparing growth rates over time (e.g., annual investment returns), use the geometric mean. For averaging rates where the denominator changes (e.g., average speed over different distances), use the harmonic mean. Always arithmetic ≥ geometric ≥ harmonic for positive values.

Mean vs Median vs Mode

Mean, median, and mode are all measures of central tendency — they each describe the "typical" value in a dataset, but in different ways. Knowing which to use is one of the most important skills in statistics.

Measure Definition Best When Affected by Outliers?
Mean (x̄) Sum ÷ Count Symmetric data without extreme values Yes — strongly
Median Middle value when sorted Skewed data or data with outliers (e.g., income) No — robust
Mode Most frequent value Categorical data or finding the most common value No
Outlier Impact Example

Why the median is better than the mean for income data

Five salaries: $30,000 · $35,000 · $40,000 · $42,000 · $1,000,000

!
Mean = ($30,000 + $35,000 + $40,000 + $42,000 + $1,000,000) / 5 = $229,400 — misleading! The $1M outlier drags the mean far from the typical salary.
Median = middle value when sorted = $40,000 — much more representative of what a typical person earns.

✓ When data has extreme outliers, use the median. For symmetric data without outliers, the mean is ideal. See our Mean vs Median vs Mode guide for more.

Sample Mean vs Population Mean

The distinction matters in inferential statistics, where you draw conclusions about a large group (population) from a smaller group (sample).

FeatureSample Mean (x̄)Population Mean (μ)
Symbolx̄ (x-bar)μ (mu)
FormulaΣxᵢ / nΣxᵢ / N
When usedWorking with a subset of dataHave data on entire group
PurposeEstimate the population meanExact description of population
ExampleAverage height of 100 surveyed studentsAverage height of all students in a school

The variance formula also differs: sample variance divides by n−1 (Bessel's correction) while population variance divides by N. The calculator on this page uses the sample formula (n−1).

Common Mistakes When Calculating the Mean

Mistake 1

Forgetting to include zeros

Zero is a valid data point. If a student scores 0 on a test, that 0 must be included in both the sum and the count. Leaving it out inflates the mean. Example: mean of 0, 5, 10 is 5, not 7.5.

Mistake 2

Using the mean when data has extreme outliers

A single extreme value can drag the mean far from the typical value. Always check for outliers first. If they exist and aren't errors, report the median alongside the mean, or use the median as your primary measure.

Mistake 3

Averaging means without weighting for group size

If Class A (10 students) has a mean of 70 and Class B (30 students) has a mean of 80, the combined mean is NOT (70+80)/2 = 75. The correct combined mean is (10×70 + 30×80) / 40 = 77.5. Use a weighted mean whenever groups have different sizes.

Mistake 4

Confusing sample variance with population variance

Sample variance divides by n−1; population variance divides by N. Using the wrong denominator produces a biased estimate. Most statistical software and this calculator use n−1 by default (sample formula).

Mistake 5

Using arithmetic mean for growth rates

If an investment grows 50% in year 1 and falls 50% in year 2, the arithmetic mean of the returns is 0% — implying you broke even. But $100 → $150 → $75 means you lost 25%. The geometric mean correctly captures this: G = √(1.5 × 0.5) − 1 = −13.4%.

How to Calculate Mean in Excel and Google Sheets

Both Excel and Google Sheets have identical functions for calculating the mean and related statistics:

What to CalculateExcel / Google Sheets FormulaNotes
Arithmetic mean=AVERAGE(A1:A10)Replace range with your cells
Geometric mean=GEOMEAN(A1:A10)Requires all positive values
Harmonic mean=HARMEAN(A1:A10)Requires all positive values
Median=MEDIAN(A1:A10)
Mode=MODE(A1:A10)Returns most frequent value
Sample variance=VAR(A1:A10)Divides by n−1
Sample std deviation=STDEV(A1:A10)Divides by n−1
Weighted mean=SUMPRODUCT(values,weights)/SUM(weights)No built-in function