AI Math Solver

Statistics Calculator with Step-by-Step Solutions

Paste a list of numbers to get the mean, median, mode, range, variance and standard deviation, with every formula and calculation shown.

How to use the statistics calculator

  1. Enter your data. Type or paste the numbers separated by commas, spaces or new lines, for example 72, 85, 90, 66, 85, 78. Decimals and negative numbers are fine.
  2. Press Solve Now. The calculator sorts the data, counts the values and works through each measure of centre and spread.
  3. Read the summary. Each statistic appears with its formula and the numbers substituted in, and the final box lists the mean, median, mode, range and both standard deviations.

Free Statistics Calculator for Mean, Median, Mode and Standard Deviation

Descriptive statistics turn a list of raw numbers into a few values that describe it. Where is the centre of the data? How spread out is it? Which value appears most often? These questions come up in every science class, in business reports, in sports analysis and in everyday decisions such as comparing prices or test results. Calculating the answers by hand is not difficult, but it is long, and a single mistake in the sum of squares ruins the standard deviation.

This statistics calculator does the arithmetic exactly and shows every step, from sorting the data to taking the final square root. It reports both the population and the sample versions of variance and standard deviation, so you can use the one your teacher or textbook asks for and understand why they differ.

Measures of central tendency

A measure of central tendency is a single value that represents the middle or typical value of a data set. There are three common ones, and each tells a slightly different story.

  • Mean (average): add all the values and divide by how many there are. It uses every data point, which makes it informative but also sensitive to extreme values. For 4, 8, 6, 5, 7 the sum is 30 and the count is 5, so the mean is 6.
  • Median: sort the values and take the middle one. With an even number of values, take the average of the two middle ones. The median is not affected by a few very large or very small values, which makes it a better summary for skewed data such as incomes or house prices.
  • Mode: the value that appears most often. A data set can have one mode, several modes or no mode at all when every value appears equally often. The mode is the only measure of centre that works for categories such as favourite colours.
Statistics calculator bar chart of test scores with the mean marked
The mean is the balance point of the data: the bars above and below it even out.

Comparing the three is often revealing. When the mean is much larger than the median, a few high values are pulling the average up. When they are close, the data is roughly symmetric.

Measures of spread

Two data sets can have the same mean and look completely different. The scores 49, 50, 51 and 0, 50, 100 both average 50, but the second set is far more spread out. Measures of spread describe this variability.

  • Range: the largest value minus the smallest. It is quick to calculate but depends only on the two extremes.
  • Variance: the average of the squared distances from the mean. Squaring makes every distance positive and gives more weight to values far from the centre.
  • Standard deviation: the square root of the variance. It is measured in the same units as the data, which makes it easier to interpret than the variance. Roughly speaking, it is the typical distance of a value from the mean.

Population and sample standard deviation

This is the point that confuses most students, so the calculator shows both versions side by side.

If your numbers are the entire population you care about, such as the marks of every student in one class, divide the sum of squared deviations by n, the number of values. This gives the population variance σ² and the population standard deviation σ.

If your numbers are a sample taken from a larger population, such as 50 people surveyed out of a whole city, divide by n − 1 instead. This gives the sample variance s² and the sample standard deviation s. Dividing by a slightly smaller number makes the result slightly larger, which corrects for the fact that a sample tends to underestimate the true spread. This adjustment is known as Bessel's correction.

As a rule of thumb, school exercises that describe "the data" usually want the population formula, while statistics courses that talk about estimating or inferring usually want the sample formula. When in doubt, check which symbol your course uses: σ for population, s for sample.

How the standard deviation is calculated

For the data 4, 8, 6, 5, 7, the calculator works through these steps:

  1. Find the mean: 30 / 5 = 6.
  2. Subtract the mean from each value: −2, 2, 0, −1, 1.
  3. Square each difference: 4, 4, 0, 1, 1.
  4. Add the squares: 10.
  5. Divide by n for the population variance, 10 / 5 = 2, or by n − 1 for the sample variance, 10 / 4 = 2.5.
  6. Take the square root: σ = √2 ≈ 1.414 and s = √2.5 ≈ 1.581.

The steps on screen show the sum of squares, the division and the square root, with the exact value next to the decimal approximation.

Normal distribution curve with the mean and one standard deviation marked by the statistics calculator
In a normal distribution, about 68% of values lie within one standard deviation of the mean.

Interpreting the standard deviation

A small standard deviation means the values are clustered tightly around the mean, and a large one means they are widely scattered. For data that is roughly bell-shaped, the empirical rule gives a useful picture: about 68% of values fall within one standard deviation of the mean, about 95% within two and about 99.7% within three. If test scores have a mean of 70 and a standard deviation of 8, most students scored between 62 and 78, and a score of 94 is three standard deviations above the mean, which is unusually high.

The standard deviation is also the basis of the z-score, z = (x − mean) / σ, which tells you how many standard deviations a value lies from the mean. Z-scores let you compare results from different tests with different scales.

How to enter data

  • Separate numbers with commas, spaces, semicolons or line breaks. Pasting a column from a spreadsheet works.
  • Use a dot for decimals, such as 3.75, so the comma can separate values.
  • Negative numbers are written with a minus sign: -2.5.
  • You can start with a word such as mean of or standard deviation of, but it is not needed on this page.
  • Repeat a value as many times as it occurs; frequency tables should be expanded into a list.
  • At least two numbers are required to calculate a spread.

Choosing the right average

  • Use the mean for symmetric data without extreme values, such as heights of adults or repeated measurements in a lab.
  • Use the median when the data is skewed or contains outliers, such as salaries, house prices or response times.
  • Use the mode for the most common category or value, such as the most popular shoe size in a shop.

Reporting more than one measure is often the most honest summary. A mean with a standard deviation describes both the centre and the spread, and a median with the range or the interquartile range does the same for skewed data.

Worked example with test scores

Suppose six students scored 72, 85, 90, 66, 85 and 78 on a test. Sorted, the data reads 66, 72, 78, 85, 85, 90. There are six values and their sum is 476, so the mean is 476 / 6 ≈ 79.33. With an even count, the median is the average of the third and fourth values, (78 + 85) / 2 = 81.5. The value 85 appears twice, so the mode is 85. The range is 90 − 66 = 24.

For the spread, the squared deviations from the mean add up to about 411.33. Dividing by 6 gives a population variance of about 68.56 and a population standard deviation of about 8.28. Dividing by 5 gives a sample variance of about 82.27 and a sample standard deviation of about 9.07. Notice that the median is higher than the mean, which tells you the lowest score of 66 is pulling the average down slightly.

Quartiles and the interquartile range

The median splits the sorted data into two halves. The quartiles split it into four quarters. The first quartile Q1 is the median of the lower half, and the third quartile Q3 is the median of the upper half. The interquartile range, IQR = Q3 − Q1, measures the spread of the middle 50% of the data and, like the median, is not affected by extreme values. That makes it the natural partner of the median for skewed data, and it is the basis of box plots, which show the minimum, Q1, median, Q3 and maximum in a single picture. Different textbooks use slightly different conventions for quartiles of small data sets, so check which one your course follows.

Weighted mean

Sometimes values do not count equally. A course grade might weight the final exam at 50%, coursework at 30% and quizzes at 20%. The weighted mean multiplies each value by its weight, adds the products and divides by the total weight. With an exam score of 80, coursework of 90 and quizzes of 70, the weighted mean is (0.5·80 + 0.3·90 + 0.2·70) / 1 = 81. A grouped frequency table works the same way, with each value weighted by how often it occurs. To use this calculator with a frequency table, write each value as many times as it appears.

Outliers and their effect

An outlier is a value that sits far away from the rest of the data. It might be a genuine extreme or a recording mistake. Outliers pull the mean and inflate the standard deviation, while the median barely moves. Try adding a large value to one of the examples and solving again: the mean jumps, the standard deviation grows, and the median changes very little. That simple experiment shows why the median is preferred for skewed data. A common rule flags values more than 1.5 times the interquartile range below the first quartile or above the third quartile as possible outliers.

Common mistakes in statistics homework

  • Forgetting to sort the data before finding the median.
  • Using the wrong divisor, n instead of n − 1 or the other way round.
  • Forgetting the square root and reporting the variance as the standard deviation.
  • Averaging the two middle values incorrectly for an even number of data points.
  • Rounding too early. Keep full precision until the final step, as the calculator does.
  • Reporting a mode when none exists. If every value appears once, there is no mode.

Where these statistics are used

Teachers use the mean and standard deviation to understand class results. Quality engineers track the standard deviation of product measurements to keep manufacturing consistent. Investors use it as a measure of risk, scientists to describe the precision of their experiments, and sports analysts to compare the consistency of players. For a broader introduction, the standard deviation article on Wikipedia explains the theory in more depth.

Practice problems with answers

Calculate these yourself, then paste each list into the calculator to check your working.

  1. Data 2, 4, 4, 4, 5, 5, 7, 9. Answer: mean 5, median 4.5, mode 4, range 7, population standard deviation 2.
  2. Data 10, 20, 30. Answer: mean 20, median 20, no mode, sample standard deviation 10.
  3. Data 3, 7, 7, 2, 9. Answer: mean 5.6, median 7, mode 7, range 7.
  4. Data 1, 1, 2, 2, 3, 3. Answer: no single mode, because every value appears twice; mean 2 and median 2.
  5. Data 12, 15, 11, 30, 14. Answer: mean 16.4 but median 14, because 30 is an outlier.
  6. Data −3, 0, 3. Answer: mean 0, population variance 6, sample variance 9.

Study tips for statistics

Before you calculate anything, look at the data. Sort it, find the smallest and largest values and notice any value that stands far apart from the rest. That quick look tells you whether the mean or the median is the better summary and helps you catch typing errors. When you calculate a standard deviation by hand, organise the work in a table with columns for x, x minus the mean and the square of that difference. A table keeps the arithmetic tidy and makes the sum of squares easy to check. Always write the units next to your answer, because a mean of 79 means very little without knowing whether it is points, kilograms or minutes.

Related tools

For percentages of a total or percentage change between two values, use the Percentage Calculator. For algebra and equations, try the Equation Solver, and for matrices, which are used in regression and multivariate statistics, the Matrix Calculator. The main AI Math Solver handles any mixed problem.

Frequently asked questions

What is the difference between population and sample standard deviation?

The population formula divides by n and is used when you have every value of interest. The sample formula divides by n − 1 and is used when your data is a sample from a larger group. The calculator shows both.

How do I enter numbers into the statistics calculator?

Type or paste them separated by commas, spaces or new lines, for example 72, 85, 90, 66. Use a dot for decimals.

What happens if there is no mode?

If every value appears the same number of times, the calculator states that there is no mode instead of choosing one.

How is the median found for an even number of values?

The data is sorted and the two middle values are averaged. The calculator shows both middle values and their average.

Can I use decimals and negative numbers?

Yes. Any real numbers work, including decimals such as 3.75 and negatives such as -2.

Is the statistics calculator free?

Yes. It is free, has no sign-up and runs in your browser, so your data never leaves your device.

Scroll to Top