Mean, Median, Variance & Standard Deviation Calculator

Paste any list of numbers to compute mean, median, sample/population variance, standard deviation, and a live histogram.

Input Parameters

ℹ️ Format: 2+ numbers separated by commas, spaces, or new lines · e.g. 12, 15, 18, 21, 24
Numbers Dataset (comma / space / brackets OK)
Mean (x̄)
20.75 (n = 8)
Sample Std Dev (s)
6.3189
Population Std Dev (σ)
5.9108
Median
19.5
Sample Variance (s²)
39.9286
Min ~ Max
12 ~ 31
✨ Auto-scaled live diagram

Formula & Step-by-Step Calculation

x̄ = (1/n)∑xᵢ, s = √(∑(xᵢ − x̄)² / (n − 1))
  1. 1
    Calculate arithmetic mean
    Sum = 166, n = 8 → Mean x̄ = 20.75
  2. 2
    Sum squared deviations from mean
    ∑(xᵢ − x̄)² = 279.5
  3. 3
    Calculate sample & population std dev
    Sample s = √(279.5 / 7) = 6.3189, Population σ = 5.9108
\bar{x} = 20.75,\quad s = 6.3189,\quad \sigma = 5.9108

Embed This Calculator (Free)

Copy this HTML snippet to embed this interactive calculator on your blog, course, or website.

Worked Example

Sample inputs and verified result: Enter or paste numbers = 12, 15, 18, 18, 21, 24, 27, 31

Mean (x̄): 20.75 (n = 8)

Frequently Asked Questions

When should I use sample (s) vs population (σ) standard deviation?

Use sample standard deviation (dividing by n − 1) when your numbers are a sample from a larger group, and population σ (dividing by n) when you have the entire dataset.