Statistics Calculator

Calculate mean, median, mode, range, standard deviation, variance from a dataset. Numbers separated by comma.

Was this tool helpful? Rate it:

What is descriptive statistics?

Descriptive statistics are summary numbers that describe a dataset: where the values are centred (mean, median, mode), how spread out they are (range, variance, standard deviation) and their extremes (minimum and maximum). Paste a list of numbers into this statistics calculator and it instantly returns the count, sum, mean, median, mode, range, min/max, population and sample standard deviation and population and sample variance, plus the data sorted in ascending order. It is useful for homework, exam marks, sales figures, survey results, lab readings and any quick data check. Each measure tells a different story: the same average with a small standard deviation means consistent values, while a large one means wide variation.

How to use this tool

  1. Enter numbers — separated by commas, spaces or new lines. Decimals and negative numbers are fine.
  2. Read all statistics — count, sum, mean, median, mode, range, min/max, standard deviation and variance (population and sample).
  3. Check the sorted view — the data in ascending order, useful for spotting outliers and finding the median by eye.

Statistical formulas

  • Mean (μ or x̄): sum ÷ count
  • Median: middle value when sorted, or the average of the two middle values for an even count
  • Mode: the most frequent value(s); ‘None’ if nothing repeats
  • Range: max − min
  • Variance (population): Σ(x − mean)² ÷ N
  • Standard deviation (population): √(population variance)
  • Variance (sample): Σ(x − mean)² ÷ (N − 1) — Bessel's correction
  • Standard deviation (sample): √(sample variance)

Worked example: mean, median, mode and standard deviation

Dataset (the tool's default): 23, 45, 12, 67, 34, 89, 23, 56, 78, 45

  • Count: 10   Sum: 472   Mean: 472 ÷ 10 = 47.2
  • Sorted: 12, 23, 23, 34, 45, 45, 56, 67, 78, 89
  • Median: the 5th and 6th values are 45 and 45, so (45 + 45) ÷ 2 = 45
  • Mode: 23 and 45 (each appears twice)
  • Range: 89 − 12 = 77

For the spread, subtract the mean from each value, square the result and add the squares:

Value (x)x − mean(x − mean)²
12-35.21239.04
23-24.2585.64
23-24.2585.64
34-13.2174.24
45-2.24.84
45-2.24.84
568.877.44
6719.8392.04
7830.8948.64
8941.81747.24
Sum = 47205759.60
MeasurePopulation (divide by N = 10)Sample (divide by N − 1 = 9)
Variance5759.6 ÷ 10 = 575.965759.6 ÷ 9 = 639.956 (to 3 dp)
Standard deviation√575.96 = 23.999 (tool)√639.956 = 25.297 (tool)

Interpretation: the values average 47.2 and typically sit about 25 away from it. Seven of the ten values (23, 23, 34, 45, 45, 56 and 67) lie within one sample standard deviation of the mean, between 21.903 and 72.497.

Sample vs population: which standard deviation?

  • Population: your data is the entire group you care about — every student in one class, every month of a year's sales. Divide by N.
  • Sample: your data is a subset used to estimate a bigger group — 50 customers surveyed out of thousands. Divide by N − 1, which gives a slightly larger, less biased estimate.

With small datasets the difference is noticeable (23.999 vs 25.297 above); with hundreds of values it becomes tiny. Excel's STDEV.P and STDEV.S match the population and sample figures here.

More examples (tool output)

  • Exam marks 72, 85, 90, 66, 85, 78, 92, 85, 70, 88: mean 81.1, median 85, mode 85, range 26, SD 8.573 (population) / 9.036 (sample).
  • Textbook set 2, 4, 4, 4, 5, 5, 7, 9: mean 5, median 4.5, mode 4, population SD exactly 2, sample SD 2.138.
  • Monthly salaries in ₹ 25,000, 28,000, 30,000, 32,000, 35,000, 40,000, 2,50,000: mean 62,857.143 but median 32,000 — one very high salary pulls the mean far above what a typical person earns, so the median describes this group better.
  • Negatives -3, -1, 0, 2, 5: mean 0.6, median 0, range 8.

Tips & best practices

  • Use the median when there are outliers — it is not dragged by extreme values the way the mean is
  • Standard deviation is in the same units as the data, which makes it easier to interpret than variance
  • Coefficient of variation = SD ÷ mean × 100 lets you compare spread across datasets with different scales
  • Z-score = (value − mean) ÷ SD tells you how many standard deviations a value is from the mean
  • Symmetric data has mean ≈ median; mean above median suggests a long right tail (as with incomes)

Limitations & notes

These are descriptive statistics only — no hypothesis tests, p-values or confidence intervals; use R, Python or a spreadsheet for those. Results are displayed to at most 3 decimal places (values smaller than 0.001 are shown to 4 significant digits). With a single value the sample SD and sample variance show n/a, because they are undefined for one value. Mode is often meaningless for continuous measurements where exact repeats are rare.

Frequently Asked Questions

How do I find the mean, median and mode?

Mean: add all values and divide by the count. Median: sort the values and take the middle one (or average the two middle ones). Mode: the value that appears most often. For 23, 45, 12, 67, 34, 89, 23, 56, 78, 45 these are 47.2, 45 and 23 & 45.

Mean vs median — which should I use?

Use the mean for roughly symmetric data without outliers, such as most test scores. Use the median for skewed data like salaries or property prices, where a few very large values inflate the mean.

What does standard deviation tell me?

It measures typical distance from the mean. Small SD: values cluster tightly. Large SD: values are spread out. For roughly normal data, about 68% of values lie within 1 SD of the mean, 95% within 2 SD and 99.7% within 3 SD.

Why is sample SD divided by N − 1, not N?

Because the mean was estimated from the same data, one degree of freedom is used up. Dividing by N − 1 (Bessel's correction) corrects the tendency of a sample to underestimate the population's spread.

Should I use the population or the sample standard deviation?

Use population if your list contains every member of the group you are describing; use sample if the list is a subset you want to generalise from. Survey and experiment data almost always call for the sample SD.

What is the mode of 1, 2, 3, 4, 5?

There is no mode because no value repeats, and the calculator shows ‘None’. If two or more values tie for the highest count, all of them are listed.

Why do I get different answers from Excel?

Check which function you used: STDEV.S (or STDEV) is the sample SD, STDEV.P is the population SD. VAR.P matches the population variance shown here and VAR.S the sample variance.

What does it mean if the mean is much bigger than the median?

The data is right-skewed: a few large values pull the mean up. In the salary example the mean is ₹62,857 while the median is ₹32,000.

Related tools

Percentage Calculator · Percentage Change · GCD & LCM · Probability Calculator

Copied