Calculates on this device. File exports run online.
Statistics Calculator
Paste your numbers to get the mean, median, mode, standard deviation, quartiles and more. Other modes give percentiles, weighted and grouped means, z-scores, normal probabilities and confidence intervals.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use the statistics calculator
- Choose what you want to work out, for example Mean, median, mode, standard deviation and more.
- Type or paste your numbers. Commas, spaces and new lines all work. You can also type 6.02e23 or 1.5 × 10^3.
- Press Calculate. The results, the working and a table of the values appear below the form.
- For a full report with plots, normality tests, outlier checks and bootstrap intervals, use the box under the result.
The formulas
- Mean: x̄ = Σx ÷ n. Median: the middle value of the sorted list (the mean of the two middle values when n is even).
- Sample standard deviation: s = √(Σ(x − x̄)² ÷ (n − 1)). Population standard deviation: σ = √(Σ(x − x̄)² ÷ n). Use s when your numbers are a sample of a larger group.
- Standard error of the mean: s ÷ √n. Coefficient of variation (RSD): s ÷ |x̄| × 100%.
- Interquartile range: IQR = Q3 − Q1. Programs differ in how they find Q1 and Q3: choose the inclusive method (Excel QUARTILE.INC), the exclusive method (Excel QUARTILE.EXC) or the median of the halves (TI-83/84) under More options.
- z-score: z = (x − μ) ÷ σ. Weighted mean: Σ(value × weight) ÷ Σweight.
- Grouped data: the mean uses class midpoints; the median is L + (n ÷ 2 − CF) ÷ f × h.
Worked example
For 2, 4, 4, 4, 5, 5, 7, 9: n = 8, the sum is 40 and the mean is 5. The median is 4.5 and the mode is 4.
The squared differences from the mean add up to 32. The population variance is 32 ÷ 8 = 4, so σ = 2. The sample variance is 32 ÷ 7 = 4.571, so s = 2.138.
With the inclusive method Q1 = 4 and Q3 = 5.5, so the IQR is 1.5. With the median of the halves Q1 = 4 and Q3 = 6.
Limits you should know
- The calculator takes up to 100,000 numbers. Blank entries and text are refused, not read as zero.
- z-scores, percentiles from a z-score and normal probabilities assume a normal distribution. Check the shape of your data first (the full report has normality tests and a Q-Q plot).
- Hypothesis tests that compare groups (t tests, ANOVA) are on the Statistical Test Calculator. Growth-chart, exam and income percentiles need official reference tables and are not worked out here.
The full report
The report box sends only the list of numbers on screen to the Toolvito server. It gives every quartile method side by side, percentiles, the Shapiro-Wilk, D'Agostino and Anderson-Darling normality tests, Tukey fences and Grubbs' test for outliers, bootstrap confidence intervals for the mean, median and standard deviation (with a seed, so the same numbers give the same intervals), a frequency table, and a histogram, box plot and Q-Q plot, as CSV, JSON and SVG or PNG files.