Statistics Calculator — Mean, Median, Mode & More

Free statistics calculator — compute mean, median, mode, standard deviation, variance, and range from any dataset. Essential for students, researchers, and analysts who need quick descriptive statistics without software like Excel or SPSS.

📊

Statistics Calculator

Mean, median, mode, standard deviation & more

Mean (Average)
Count (n)
Sum
Median
Mode
Minimum
Maximum
Range
Std Deviation (s)
Variance (s²)
Std Deviation (σ)
Variance (σ²)

Mean, Median, Mode, and Standard Deviation: A Practical Statistics Guide

Descriptive statistics summarize and describe the key features of a dataset. The mean (average), median (middle value), and mode (most frequent value) tell you where data is centered. Standard deviation and variance measure how spread out values are around the mean. Range shows the distance from the minimum to the maximum value. Together, these measures paint a complete picture of any dataset — whether you're analyzing test scores for 30 students, comparing monthly sales figures for a small business, or processing survey results from a research study. This statistics calculator handles datasets of any size: just paste your numbers (comma or space separated) and click Calculate.

The difference between sample standard deviation (s) and population standard deviation (σ) matters for research validity. When your data represents a sample from a larger population — which is almost always the case in practice — use sample standard deviation (s), which divides by n−1 (Bessel's correction). This calculator computes both. The US Census Bureau, for instance, reports income statistics using sample data from hundreds of thousands of households — the 2024 median US household income was approximately $80,610, a figure where median is far more useful than mean because a handful of billionaires would skew the average income dramatically upward. The mode is especially useful in retail and manufacturing quality control, where you want to know the most frequently occurring measurement or defect type.

📏

Mean (Average)

The arithmetic mean sums all values and divides by count. It's sensitive to outliers — add one extreme value and the mean shifts dramatically. For the dataset {1, 2, 3, 100}, the mean is 26.5 but the median is 2.5, which better represents the "typical" value in a skewed distribution.

🔢

Median

The middle value when sorted in order. More robust than mean when outliers exist. The US Census and Federal Reserve both report median household income and median home prices specifically because medians resist distortion from extreme values — the same reason realtors cite median sale price instead of average price.

🔍

Standard Deviation

Measures dispersion — how spread out values are from the mean. A standard deviation of 0 means all values are identical. In a normal distribution, 68% of data falls within 1 standard deviation of the mean, and 95% within 2 standard deviations. Low std dev = consistent data. High std dev = highly variable data.

📐

Variance

Standard deviation squared (s² or σ²). While standard deviation is expressed in the same units as your data (making it intuitive), variance is used mathematically in ANOVA, regression, portfolio risk analysis, and statistical testing. In finance, portfolio variance drives modern portfolio theory and the Sharpe ratio calculation.

Formula & Logic

Descriptive statistics summarise a dataset with a measure of centre and a measure of spread, and the choice between them matters. The mean uses every value and is therefore sensitive to outliers; the median is the middle value and is robust to them. When mean and median diverge sharply the distribution is skewed, which is why median household income is always quoted rather than mean. For spread, the critical technical detail is Bessel's correction: dividing by n−1 rather than n when the data are a sample rather than the whole population, because a sample's spread systematically understates the population's.

Mean x̄ = Σx ÷ nSample variance s² = Σ(x − x̄)² ÷ (n − 1)Population variance σ² = Σ(x − x̄)² ÷ nStandard deviation = √variance

where:

n
number of observations
n − 1
degrees of freedom — Bessel's correction, used for samples
median
middle value when sorted; the mean of the two middle values if n is even

Assumptions: Use the sample formula unless you genuinely have every member of the population. The two diverge most at small n — with 7 observations the difference is around 8%, and it becomes negligible above about 100.

Step-by-Step Example: Seven Observations, Centre and Spread

Compute mean, median and both standard deviations for a small sample.

  • Data12, 15, 15, 18, 22, 27, 31
  • n7
  1. Sum: 12 + 15 + 15 + 18 + 22 + 27 + 31 = 140.
  2. Mean: 140 ÷ 7 = 20.0.
  3. Median: already sorted, so the 4th of 7 values — 18.
  4. Mode: 15, the only repeated value.
  5. Squared deviations from the mean: 64, 25, 25, 4, 4, 49, 121 — summing to 292.
  6. Sample SD: √(292 ÷ 6) = √48.67 = 6.976. Population SD: √(292 ÷ 7) = √41.71 = 6.459.

ResultMean 20.0, median 18, sample SD 6.976

The mean exceeds the median by 2, indicating a mild right skew — the 31 pulls the average up while leaving the middle untouched. The two standard deviations differ by 8%, which is exactly the small-sample effect Bessel's correction exists to address.

Frequently Asked Questions

Mean = sum divided by count (the arithmetic average). Median = middle value when sorted (resistant to outliers). Mode = most frequent value. For data: 1, 2, 3, 4, 100. Mean = 22 (skewed by 100). Median = 3 (better represents the center). Mode = none (all values appear once). Use median when data has extreme outliers — income, home prices, and test scores often use median for this reason.
Standard deviation measures the typical distance from the mean. Low std dev = data points cluster near the average. High std dev = data is widely spread. Example: test scores with mean 75 and std dev 5 means most students scored 70--80. If std dev is 20, scores spread widely from 55--95. In a normal distribution, 68% of data falls within 1 std dev, 95% within 2.

Related Calculators

✔ Reviewed by the True Value Calc editorial team📅 Last updated May 2026📚 Sources: Peer-reviewed formulas & official U.S. government data📑 How we build & check these