Statistics Calculator: Mean, Median, Mode, Standard Deviation

Paste a list of numbers and get the mean, median, mode, spread, quartiles, shape measures and outliers at once.

Loading tool…

How to use the Statistics Calculator

  1. Type or paste your numbers separated by commas, spaces or new lines.
  2. Pick the quartile method (interpolated QUARTILE.INC or median of halves) if you need a specific one.
  3. Read the summary cards and the full table of results.
  4. Click Copy all results to paste them into a report.

About this tool

The mean is the sum divided by the count. The median is the middle value of the sorted list, or the average of the two middle values. The mode is the most frequent value, and a list can have several modes or none. The range is the maximum minus the minimum.

Variance measures how far values spread from the mean. For a whole population you divide the sum of squared deviations by n, and for a sample you divide by n - 1, which corrects for the bias of estimating the mean from the same data. The standard deviation is the square root of the variance. Use the sample figures when your data is a subset of a larger group.

Quartiles split sorted data into four parts. Textbooks and software disagree on the method, so two are offered: interpolated (the default in Excel's QUARTILE.INC and NumPy) and median of halves. IQR is Q3 minus Q1. Non-numeric entries are ignored and listed so you can fix typos.

Beyond the basics, the tool reports the geometric mean (the n-th root of the product, for growth rates; needs all values above 0), the harmonic mean (for averaging rates; also needs positive values), the standard error of the mean (sample SD / sqrt(n)), and the coefficient of variation (SD / mean, shown as a percentage, only meaningful for ratio-scale data with a non-zero mean). Skewness and excess kurtosis describe the shape: population g1 and g2 use the moments of the data, and the sample versions match Excel's SKEW and KURT. Outliers are values beyond the fences Q1 - 1.5 x IQR and Q3 + 1.5 x IQR. A single value has no sample variance or sample standard deviation (they need at least 2 values), and the tool says so instead of showing an error.

Formulas

Mean = Sum / n

Population variance = Sum of (x - mean)^2 / n

Sample variance = Sum of (x - mean)^2 / (n - 1)

Geometric mean = (x1 x x2 x ... x xn)^(1/n)

Harmonic mean = n / (1/x1 + 1/x2 + ... + 1/xn)

Example: 2, 4, 4, 4, 5, 5, 7, 9 has mean 5, sum of squared deviations 32, population SD 2 and sample variance 4.571.

Frequently asked questions

What is the difference between population and sample standard deviation?

Population divides by n and is used when you have every value. Sample divides by n - 1 and is used when your data is a sample of a bigger group.

Why do I get different quartiles in different tools?

There are several accepted methods. Switch the quartile method here to match the tool or textbook you are comparing with.

What if there is no mode?

If every value appears once, the list has no mode and the tool says so. If two values tie, both are shown.

How many numbers can I enter?

Thousands work fine. Everything is calculated in your browser.

How are outliers found?

Values below Q1 minus 1.5 times the IQR or above Q3 plus 1.5 times the IQR are listed as outliers, the standard Tukey fence rule. The result depends on the quartile method you pick.

Why does it say needs 2+ values?

The sample standard deviation divides by n - 1, which is zero for a single value, so it is undefined.

Need a custom tool or website?

IDM Valley builds web apps, calculators, AI chatbots and automation for businesses. Fixed prices, code in your name.

Get a free quote

Have a project in mind?

Tell us what you need: a website, landing page, AI chatbot or automation. You get a clear scope and a fixed price within one working day. Free, no obligation.


  • avshack
  • DivineBamboo
  • goldleaf
  • janapril
  • kaizen
  • kwc
  • modv
  • pixelrush
  • revital
  • riderzplanet
  • sandsfashions
  • avshack
  • DivineBamboo
  • goldleaf
  • janapril
  • kaizen
  • kwc
  • modv
  • pixelrush
  • revital
  • riderzplanet
  • sandsfashions