Mean, median, mode, variance and standard deviation — paste your numbers and get a step-by-step solution

Data

Separate with spaces, commas, semicolons or new lines — you can paste a column from a spreadsheet.

Variance:
Try:
📚 Theory: mean, median, mode, variance and standard deviation

The mean x̄ is the sum of all the values divided by how many there are, n. For a frequency table, multiply each value by its frequency first: x̄ = (x₁n₁ + x₂n₂ + …)/n. The mean is the balance point of the data: on the chart it sits on the triangle, and the dots on either side balance each other.

The median is the middle value of the ordered data — always put the numbers in order first. If n is odd, the median is the value in position (n + 1)/2; if n is even, it is the mean of the two middle values. Unlike the mean, the median hardly changes when one value is extremely large or small.

The mode is the value that occurs most often. There can be several modes; if every value occurs equally often, there is no mode. The range is the largest value minus the smallest.

Quartiles split the ordered data into four parts: a quarter of the values are at or below Q₁, half at or below the median, three quarters at or below Q₃. The interquartile range is IQR = Q₃ − Q₁. Textbooks in different countries use different rules, so answers can differ slightly: medians of the two halves (USA, Japan, Vietnam, Russia), position (n + 1)/4 (Indonesia, India, the UK), position n/4 with the mean of two when it is whole (Germany, China), position n/4 rounded up (France). Choose the rule your textbook uses. An outlier is a value more than 1.5·IQR below Q₁ or above Q₃; the box plot shows it as a separate dot.

Variance is the mean of the squared deviations from the mean: σ² = Σ(xᵢ − x̄)²/n. When the mean is awkward, use σ² = Σxᵢ²/n − x̄². Standard deviation σ = √σ² shows how far the values typically are from the mean, in the same units as the data. Divide by n when the data are the whole population; when they are a sample from a larger population (as in AP Statistics and at university), divide by n − 1 to get the sample variance s² and the sample standard deviation s. The calculator gives both.

Common mistakes: taking the median of unordered data; taking one middle value instead of the mean of two when n is even; mixing up variance and standard deviation; dividing by n − 1 when your teacher expects n (or the other way round); dividing by the number of rows of a frequency table instead of the sum of the frequencies.

Frequently asked questions

Is it free to use?

Yes, this calculator is free and needs no sign-up. Everything is calculated right in your browser, not on a server.