Skip to content
Matheminate
TopicsProgressWorksheetsGamesLabToolsAbout
← Back to tools

Statistics Calculator

Find mean, median, mode, range, and population or sample standard deviation from your data.

Calculations run on your device. Nothing is uploaded.

Data values
24469

5 values detected: 2, 4, 4, 6, 9

Type a value, then press Enter or Space to add it as a box. Paste a list to add several at once. Up to 1,000 values.

Practice statistics →

How to use this calculator

Type a value and press Enter or Space to turn it into a box, then press Calculate. Paste a list to add several values at once. The summary gives count, mean, median, mode, range and both standard deviations, with the working a click away.

How the calculation works

Each measure summarises the same list in a different way, and the calculator also shows the deviations that the standard deviations are built from.

Mean

Add every value, then divide by how many values there are. For 3, 5, 8 and 10 the values add to 26, so the mean is 26 ÷ 4 = 6.5.

xˉ=∑xn\bar{x} = \frac{\sum x}{n}xˉ=n∑x​

Median

Sort the values first. An odd count gives the middle value; an even count averages the two middle values. For 3, 5, 8 and 10 the middle pair is 5 and 8, so the median is (5 + 8) ÷ 2 = 6.5.

median=x(k)+x(k+1)2\text{median} = \frac{x_{(k)} + x_{(k+1)}}{2}median=2x(k)​+x(k+1)​​

Mode

The mode is the value that occurs most often. Two or more values can tie for it, and when every value appears once there is no mode to report.

Range

Range is the largest value minus the smallest: for 3, 5, 8 and 10 that is 10 − 3 = 7.

range=xmax⁡−xmin⁡\text{range} = x_{\max} - x_{\min}range=xmax​−xmin​

Standard deviation

Measure how far each value sits from the mean, square those distances, add them, divide, then take the square root. Dividing by n gives the population standard deviation σ; dividing by n − 1 gives the sample standard deviation s, which is slightly larger and undefined for a single value. Identical values have a standard deviation of zero.

σ=∑(x−μ)2ns=∑(x−xˉ)2n−1\sigma = \sqrt{\frac{\sum (x - \mu)^2}{n}} \qquad s = \sqrt{\frac{\sum (x - \bar{x})^2}{n - 1}}σ=n∑(x−μ)2​​s=n−1∑(x−xˉ)2​​

The working table

It lists each distinct value once, how often it occurs, its deviation from the mean, and that squared deviation multiplied by the frequency — so 2, 4, 4, 6, 9 totals 9 + 2 + 1 + 16 = 28. These summaries describe a dataset; they do not predict the probability of a future value.

Worked examples

  1. 1. Summarise four values with an even count and no mode

    Enter 3, 5, 8, 10.

    • Sum 26 with 4 values, so mean = 26 ÷ 4 = 6.5.
    • Sorted, the middle pair is 5 and 8, so median = (5 + 8) ÷ 2 = 6.5.
    • Every value appears once, so there is no mode. Range = 10 − 3 = 7.
    • Deviations from 6.5 are −3.5, −1.5, 1.5 and 3.5, whose squares add to 29.
    • Population σ = √(29 ÷ 4) ≈ 2.693; sample s = √(29 ÷ 3) ≈ 3.109.
  2. 2. Handle identical values and one observation

    For 7, 7, 7, the mean is 7 and every deviation is zero, so both population and sample standard deviations are 0. For one value, 7, population standard deviation is 0; sample standard deviation is undefined because n − 1 = 0.

Frequently asked questions

How do I find the mean of a data set?

Add all the values, then divide by how many there are. For 3, 5, 8 and 10 the values add to 26 and there are four of them, so the mean is 26 ÷ 4 = 6.5. Step 1 shows that sum and division. The mean uses every value, so an unusually large or small observation pulls it; the median, the middle of the sorted list, is less affected.

How do I calculate variance?

Variance is the average of the squared deviations from the mean. Population variance divides that total by n, and sample variance divides by n − 1. Both appear under More numbers and are the squares of the matching standard deviations: for 3, 5, 8 and 10, σ² = 7.25 and s² ≈ 9.667.

Can a dataset have more than one mode?

Yes. If two or more repeated values tie for the highest frequency, all are shown. If every value occurs once, this tool reports no mode.

Can I enter negative numbers and decimals?

Yes, as long as each value is finite. Each value you add becomes its own box, so a minus sign or a decimal point is never mistaken for a separator. A pasted list is split on commas, spaces, semicolons or new lines, and there a comma between digits followed by exactly three digits is read as thousands grouping: 1,000 is one number and 1,000, 5 is two. The field below shows what it read before you calculate and offers a one-click split at every comma.

What is the difference between population and sample standard deviation?

Population standard deviation divides the sum of squared deviations by n; sample standard deviation divides by n − 1 to estimate spread from a sample. Both are shown. Sample standard deviation is undefined for one value; if all values are identical, both results are zero. Q1, Q3 and the interquartile range sit beside them under More numbers, and the Box Plot Calculator draws the same five-number summary if you would rather see it.

Keep learning with related tools

Use a box plot to visualize spread and quartiles, or the Probability Calculator for outcome counts rather than data summaries. The statistics lesson explains when each measure is useful. Related tools: Box Plot Calculator, Probability Calculator. Read the Statistics lesson or practice statistics to build confidence without relying on a calculator.

Matheminate

Free math practice for Grades 4–12.

© 2026 Matheminate. All rights reserved.

Practice

  • Topics
  • Interactive Lab
  • Math Articles
  • Olympiad Practice

Site

  • About
  • Contact
  • Support
  • Privacy
  • Terms

Follow

  • Instagram
  • X