Statistics Calculator

About this calculator

The Statistics Calculator summarizes a list of numbers in one step. Paste or type your values and it returns the count, sum, mean, median, mode, largest and smallest values, range, geometric mean, plus both the population and sample standard deviation and variance, along with the data sorted in ascending order.

Separate values with commas, spaces or new lines.
Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

What this statistics calculator reports

Descriptive statistics condense a list of numbers into a handful of figures that describe its center, its spread and its shape. This calculator works out the most widely used ones at once, so you can check homework, summarize survey responses or sanity-check a spreadsheet column without writing a single formula.

  • Count: how many values you entered.
  • Sum: all values added together.
  • Mean: the sum divided by the count, the familiar arithmetic average.
  • Median: the middle value once the data is sorted, or the average of the two middle values when the count is even.
  • Mode: the value or values that occur most often.
  • Largest, smallest and range: the extremes and the distance between them.
  • Geometric mean: the nth root of the product of n values.
  • Standard deviation and variance: measures of spread, given for both a full population and a sample.

Measures of center

The mean uses every value, which makes it efficient but also sensitive to outliers. A single very large salary can pull the mean income of a small office far above what a typical employee earns. The median ignores how extreme the tails are, so it is usually the better summary for skewed data such as house prices or incomes. The mode is the only measure of center that also works for categories, and a data set can have one mode, several, or none if every value appears once.

Geometric mean

The geometric mean multiplies the values together and takes the nth root:

GM = (x1 × x2 × … × xn)1/n

It is the right average for quantities that compound, such as growth rates, investment returns or ratios. If an investment grows 10% one year and 50% the next, the growth factors are 1.10 and 1.50, and the geometric mean is √(1.10 × 1.50) ≈ 1.2845, meaning an average of about 28.45% per year. The arithmetic mean of 30% would overstate the result. The geometric mean is always less than or equal to the arithmetic mean, and it is only defined for data with no negative values.

Measures of spread

Variance is the average squared distance of each value from the mean. Standard deviation is its square root, which puts it back into the units of the data.

Population: σ² = Σ(x − μ)² / N    Sample: s² = Σ(x − x̄)² / (N − 1)

Use the population figures when your list is the entire group of interest. Use the sample figures when the list is a subset and you want to estimate the spread of the larger group. Dividing by N − 1 corrects the tendency of a sample to understate variability.

Worked example

Take the data 10, 12, 23, 23, 16, 23, 21, 16.

StatisticWorkingResult
Count8 values8
Sum10 + 12 + 23 + 23 + 16 + 23 + 21 + 16144
Mean144 / 818
Mediansorted: 10, 12, 16, 16, 21, 23, 23, 23; (16 + 21) / 218.5
Mode23 appears three times23
Range23 − 1013
Population variancesum of squared deviations 192 / 824
Population SD√244.899
Sample variance192 / 727.4286
Sample SD√27.42865.2372

Because the mean (18) sits slightly below the median (18.5), the data leans a little toward lower values, a mild left skew.

Tips for entering data

You can separate values with commas, spaces or line breaks, so a column copied from a spreadsheet works as is. Negative numbers and decimals are fine. If any value is negative, the geometric mean is not defined and is reported as such. With only one value, sample statistics cannot be estimated because there is no spread to measure.

Frequently asked questions

What is the difference between mean and median?
The mean is the sum divided by the count. The median is the middle value of the sorted data. The median is less affected by extreme values, so it often describes skewed data better.
When should I use the geometric mean?
Use it for values that multiply together over time, such as growth rates, interest rates or ratios. For ordinary additive data, the arithmetic mean is the usual choice.
Why are there two standard deviations?
The population standard deviation divides by N and describes a complete data set. The sample version divides by N − 1 and estimates the spread of a larger population from a sample.
What if no value repeats?
Then the data has no mode. The calculator reports that all values appeared just once.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.