Skip to content

Statistics Calculator

Creator

Sufi Inam Ul Hassan, Founder

Reviewer

Syeda Kinza Batool, Co-founder
Updated

Statistics Calculator

0

Values added (0), none yet

Type a number, then press ADD to add it to the data list above. C clears only the number you are typing; CAD clears the whole data list. Press EXP then a digit for scientific notation (e.g. 5 EXP 3 reads 5e3, meaning 5000). Once you've added a value, x̄, x̄², Σx, Σx², σ, σ², s, s² and GM each recall that figure onto the display.

Or Provide Values Separated by Comma Below

Any amount of numbers, e.g. test scores, measurements or survey responses. Separated by commas, spaces or new lines, in any combination.

Enter a list of numbers and this statistics calculator returns a full descriptive statistics report in one pass: count, sum, mean, median, mode, range, population and sample standard deviation and variance, and quartiles with the interquartile range. If you only need one specific figure, the mean, median, mode, range calculator and the standard deviation calculator each cover a narrower slice with a deeper explanation of that one concept. This page is built for when you want everything at once.

Numbers can be separated by commas, spaces or new lines, in any combination, so you can paste a list straight from a spreadsheet or a set of test scores.

What a full descriptive statistics report covers

A single average rarely tells the whole story about a data set. Descriptive statistics is the practice of summarizing a list of numbers from several different angles at once, so a full report is genuinely more useful than any one figure on its own, and it is what makes this page a complete descriptive statistics calculator rather than a single-number tool.

Count, sum and mean describe the data’s size and central tendency in the most familiar way: how many values there are, what they add up to, and their arithmetic average, so on its own this section works as a plain mean calculator too.

Sum of squares and geometric mean round out the report with two figures the sibling calculators do not compute. Sum of squares (Σx²) is every value squared and added together; it is less a number you read on its own and more a building block other formulas, including variance itself, are built from, which is also why this section doubles as a sum of squares calculator on its own. The same idea sits behind the mean squared error formula used in regression and forecasting: it averages squared differences between an actual value and a predicted one, the same way variance averages squared differences between each value and the mean. Geometric mean is the nth root of the product of all n values rather than their sum divided by n, using the geometric mean formula covered in full below, and it answers a genuinely different question than the arithmetic mean above: it is the right average for values that multiply together, such as growth rates or ratios on very different scales, and it is undefined, shown as such rather than a wrong number, whenever the data set contains a zero or a negative value.

Median and mode describe the center of the data from two other angles. The median is the middle value once the data is sorted, and resists being pulled around by a single unusually large or small value the way the mean can be, which makes this part of the report a stand-alone median calculator whenever that is all you need. The mode is whichever value repeats most often, which is useful whenever a data set clusters around a few recurring readings, and on its own this same section works as a simple mode calculator. Combined, mean, median, mode and range together make this a full mean median mode calculator with the range already included.

Range, variance and standard deviation describe how spread out the data is. Knowing how to find the range of a data set is the simplest place to start: subtract the smallest value from the largest, and that data set range is your answer. Standard deviation is more informative because it accounts for every value’s distance from the mean, not just the two extremes, and this report shows both the population and sample versions side by side, so it doubles as a combined average and standard deviation calculator, and on the sample side alone a dedicated sample standard deviation calculator, rather than two separate tools, since which one applies depends on whether your numbers are a complete group or a sample drawn from a larger one. Variance, standard deviation squared, is reported alongside it, so this same section works as a variance calculator too.

Quartiles and the interquartile range (IQR) describe spread from a different angle than standard deviation, one that resists extreme values. Instead of using every value directly, this section works as a stand-alone quartile calculator, splitting the sorted data into four equal-sized groups, and as an interquartile range calculator too: the IQR, the width of the middle half of the data, is far less affected by a handful of extreme outliers than the range or even the standard deviation can be.

The exclusive median quartile method, worked step by step

Quartile methods genuinely differ across tools, and the exact steps matter, so here is exactly how this calculator computes Q1 and Q3, using the 11-value data set already filled into the calculator above: 6, 7, 15, 36, 39, 40, 41, 42, 43, 47, 49. Once Q1 and Q3 are known, how to calculate interquartile range is a single subtraction, Q3 minus Q1, and because this report finds Q1, Q3 and that subtraction together with everything else in one pass, it works as a genuine IQR calculator, not just a range or standard deviation tool.

  1. Sort the data and find the median. The list is already sorted, with 11 values, so the middle one, the 6th value, is the median: 40.
  2. Split into a lower half and an upper half, excluding the median. Because the count is odd, the median itself is left out of both halves. The lower half is everything before it: 6, 7, 15, 36, 39. The upper half is everything after it: 41, 42, 43, 47, 49.
  3. Find the median of the lower half. The lower half, 6, 7, 15, 36, 39, has 5 values, so its middle value, 15, is Q1.
  4. Find the median of the upper half. The upper half, 41, 42, 43, 47, 49, has 5 values, so its middle value, 43, is Q3.
  5. Subtract to get the IQR. Q3 minus Q1 is 43 − 15 = 28.

Knowing how to find median with even numbers matters here too, since it changes how the quartile split works. For an even-sized data set there is no single middle value to exclude, so the split happens naturally. Take 1, 2, 3, 4, 5, 6, 7, 8: the median is the average of the two middle values, 4 and 5, which is 4.5. The lower half, 1, 2, 3, 4, and the upper half, 5, 6, 7, 8, each already have an even count of their own, so their medians are also averages of two values: Q1 is the average of 2 and 3, which is 2.5, and Q3 is the average of 6 and 7, which is 6.5, giving an IQR of 4.

Other quartile methods, such as Tukey’s hinges or linear interpolation, can include the median in one or both halves, or interpolate between values instead of always landing on an actual data point. That is the most common reason two different statistics tools disagree slightly on Q1 or Q3 for the same odd-sized data set, even though neither is making a mistake.

Geometric mean, worked step by step

Here is how to calculate geometric mean step by step, and how the geometric mean vs arithmetic mean comparison plays out on real numbers. The geometric mean answers “what single value, multiplied by itself n times, reproduces the same product as these n values?”, rather than the arithmetic mean’s “what single value, added to itself n times, reproduces the same sum?” The two questions usually have different answers, and the gap between them grows the more the data set’s values differ from each other in scale.

  1. Multiply every value together. For the data set 1, 5, 7, 9, 12, that product is 1 × 5 × 7 × 9 × 12 = 3,780.
  2. Take the nth root, where n is how many values there are. Five values means the fifth root: 3,7801/5 ≈ 5.194.
  3. Compare it against the arithmetic mean of the same data. The arithmetic mean of 1, 5, 7, 9, 12 is (1 + 5 + 7 + 9 + 12) ÷ 5 = 6.8, noticeably higher than the geometric mean’s 5.194. This is not a coincidence: the geometric mean of a set of positive numbers is never larger than its arithmetic mean, and the two are only equal when every value in the set is identical.

The gap between the two means is exactly why geometric mean exists as a separate statistic rather than a shortcut for the arithmetic mean. Picture averaging two different rating scales for the same product, a fuel-efficiency score from 0 to 5 and a safety score from 0 to 100. A product scoring 4 on fuel efficiency and 90 on safety has an arithmetic mean of (4 + 90) ÷ 2 = 47, a number dominated almost entirely by the larger-scale safety figure, since a one-point change in fuel efficiency barely moves it while a one-point change in safety moves it by half as much again. The geometric mean of the same two scores, √(4 × 90) ≈ 18.97, treats a given percentage change on either scale as equally significant, which is the more defensible way to combine measurements that were never on the same scale to begin with. This is also the reasoning behind using a geometric mean for growth rates: a portfolio that grows 10 percent one year and shrinks 10 percent the next has not broken even, since 1.10 × 0.90 = 0.99, a 1 percent overall loss that the geometric mean reflects correctly and a naive arithmetic average of the two percentage changes, 0 percent, would miss entirely. Growth-rate math like this is exactly why a genuine geometric mean calculator, not just an arithmetic average, is the right tool for the job.

When to use this calculator instead of a more focused one

If all you need is the mean, median, mode and range, the mean, median, mode, range calculator covers exactly that with a more detailed walk-through of each one, including how bimodal and no-mode results are handled. If all you need is the spread of your data as a standard deviation, the standard deviation calculator explains the population-versus-sample distinction in more depth, since that is the single most common source of a wrong answer in that category. This page exists for when a partial answer is not enough: it brings both of those reports together, adds quartiles and the IQR that neither of them computes, and shows the whole picture from one data set in a single pass.

Key formulas behind the statistics calculator

Sum of squares

Σ x^2 = x_1^2 + x_2^2 +... + x_n^2

where:

x
Each raw value, squared and then added up

Variance and standard deviation

σ^2 = (Σ (x - μ)^2)/n
σ = √(σ^2)
s^2 = (Σ (x - x̄)^2)/(n - 1)
s = √(s^2)

where:

μ
Population mean
x̄
Sample mean
n
Number of values
σ, σ ^2
Population standard deviation, variance
s, s^2
Sample standard deviation, variance

Geometric mean

GM = nth root of (x_1 × x_2 ×... × x_n)

where:

x_1... x_n
The values, all strictly positive
n
Number of values

Standard error of the mean

SE = s/(√n)

where:

s
Sample standard deviation
n
Number of values

Mean squared error (MSE)

MSE = (Σ (y - ŷ)^2)/n

where:

y
Observed value
ŷ
Predicted value
n
Number of pairs

Frequently asked questions

What are quartiles?

Quartiles split a sorted data set into four equal-sized groups. The first quartile, Q1, is the value below which roughly a quarter of the data falls. The second quartile is the median, the halfway point. The third quartile, Q3, is the value below which roughly three-quarters of the data falls. Together they describe how a data set is spread out beyond what a single average can show.

Why do different calculators sometimes give different Q1 and Q3 values?

There is more than one accepted method for computing quartiles, and they can disagree on smaller data sets, especially odd-sized ones. This calculator uses the exclusive median method, which finds the overall median, removes it from the data if the count is odd, then splits what remains into a lower half and an upper half and takes the median of each. Other tools use Tukey's hinges, linear interpolation, or other methods, which can shift Q1 and Q3 by a value or two. None of these methods is "wrong", they are just different conventions, so if two tools disagree, check which method each one is using before assuming either is broken.

What is the interquartile range (IQR) used for?

The IQR is Q3 minus Q1, the width of the middle 50 percent of the data. It is a measure of spread that, unlike the range, ignores extreme values at the very top and bottom, which makes it useful for spotting outliers. A common rule of thumb flags any value more than 1.5 times the IQR below Q1 or above Q3 as a potential outlier.

Should I use population or sample standard deviation from this report?

Use population standard deviation when your numbers are the complete group you care about, and sample standard deviation when your numbers are a subset standing in for a larger group. This calculator reports both side by side so you can pick the one that matches your data, and marks the sample figures as undefined when only one value is entered, since dividing by zero is not meaningful.

Why does the calculator show mode as "No mode" sometimes?

That happens when every number in your list appears exactly once, so no value repeats more often than any other. It is a normal, correct result rather than an error. If two or more values are tied for the most repeats, the calculator lists all of them instead of picking just one.

What happens if I only enter one number?

Most of the report is still well defined: the mean, median, min, max and mode all equal that single value, and population standard deviation comes out to 0 since a single value has no spread from its own mean. Sample standard deviation is undefined with only one data point. Because there is no data below or above the single value to form a lower and upper half, Q1 and Q3 also fall back to that same value, and the IQR is 0.

Should I use this calculator or one of the more focused ones?

If you only need one specific figure, such as just the mean, median and mode, or just the standard deviation, with a more detailed explanation of that single concept, the mean-median-mode-range calculator or the standard deviation calculator will get you there faster and explain the reasoning behind that one number in more depth. This page is built for when you want everything, including quartiles and the IQR, in a single report.

What is sum of squares, and what is it used for?

Sum of squares (written Σx²) is every value in the data set squared, then added together. It shows up as a building block inside other formulas rather than being read on its own very often: variance, standard deviation and linear regression all use a sum of squares at some stage of their calculation. Unlike a geometric mean, it is always defined, since squaring a negative number simply makes it positive rather than causing any mathematical problem.

What is a geometric mean, and how is it different from the mean shown above?

The geometric mean is the nth root of the product of n values, instead of their sum divided by n. It answers a different question than the arithmetic mean: where the arithmetic mean treats every unit of change the same regardless of the starting size, the geometric mean is built for values that multiply together, such as growth rates, investment returns, or ratios measured on very different scales, where a plain average would let the largest-scale number dominate the result unfairly.

Does this page calculate mean absolute deviation, relative standard deviation, or standard error of the mean?

Not directly, though each is easy to work out from the numbers already shown above. If you specifically need a mean absolute deviation calculator, that statistic, the average distance of every value from the mean without squaring anything, is not part of this report; standard deviation measures a similar kind of spread and is the more commonly used figure in practice. Relative standard deviation is just the standard deviation divided by the mean, usually expressed as a percentage, so you can compute it yourself from the two figures already displayed. Likewise, the standard error of mean formula is the sample standard deviation divided by the square root of your count, and both of those numbers are already sitting in the report above.

Why does the calculator say geometric mean is undefined for my data?

A geometric mean needs every value to be strictly positive. A zero in the data set collapses the entire product to zero, no matter what the other values are, which makes the result meaningless rather than just small. A negative value is worse: taking an even root of a negative product is not a real number at all. Rather than showing NaN or a silently wrong answer, the calculator reports geometric mean as undefined whenever any value in the data set is zero or negative.

Related tools: Binary Calculator, Factor Calculator and Fraction Calculator. More are grouped under Math Calculators, and every tool on the site is listed at all calculators.