ITEngineeringTools

Standard Deviation and Variance Calculator

Calculate sample and population variance, standard deviation, mean and median, and inspect a numeric histogram.

Input

Result

How it works

Paste numbers separated by commas or whitespace or select a UTF-8 CSV file. CSV mode uses a one-based column number and optional header row. The variance algorithm centers and scales deviations to preserve precision when values are close together or very small. A result below numeric precision is labeled explicitly. The final histogram bin includes its upper edge.

Formula

Population variance = Σ(x − mean)² / n. Sample variance divides by n − 1. Standard deviation is the square root. Median is the middle value or mean of the two middle values.

Practical examples

Four measurements

Observations or CSV text: 1,2,3,4
Input format: Numbers
CSV column (1-based): 1
CSV header: No headers
Histogram bins: 4

Population variance: 1.25

Response times from CSV

Observations or CSV text: id,ms
A,10
B,20
C,30
Input format: CSV
CSV column (1-based): 2
CSV header: First row has headers
Histogram bins: 5

Sample variance: 100

Identical observations

Observations or CSV text: 12 12 12
Input format: Numbers
CSV column (1-based): 1
CSV header: No headers
Histogram bins: 8

Population standard deviation: 0

Technical references