Use this free statistics calculator to analyze a set of numbers. Paste or type your data, separated by commas, spaces, or new lines, and the calculator shows the count, sum, mean, median, mode, range, variance, standard deviation, quartiles, and outliers. It also gives z-scores, a confidence interval for the mean, and, for two sets of data, the correlation and a best-fit line. No signup needed.
Enter your numbers to calculate mean, median, mode, standard deviation, quartiles, outliers and more.
Enter two lists with an equal number of values.
For correlation and regression, enter two lists of equal length, one for X and one for Y.
In these formulas, n is the number of values, x̄ is the mean, and Σ means “add up.”
| Measure | Formula |
|---|---|
| Mean | x̄ = Σx ÷ n |
| Median | The middle value of the sorted data (the average of the two middle values if n is even) |
| Mode | The value that appears most often |
| Range | Maximum − Minimum |
| Population variance | σ² = Σ(x − x̄)² ÷ n |
| Sample variance | s² = Σ(x − x̄)² ÷ (n − 1) |
| Standard deviation | The square root of the variance |
| Standard error of the mean | s ÷ √n |
| Coefficient of variation | s ÷ x̄ × 100% |
| Z-score | z = (x − x̄) ÷ s |
| Interquartile range (IQR) | Q3 − Q1 |
| Outlier fences | Q1 − 1.5 × IQR and Q3 + 1.5 × IQR |
| Confidence interval for the mean | x̄ ± t × (s ÷ √n) |
| Weighted mean | Σ(w × x) ÷ Σw |
| Geometric mean | (x₁ × x₂ × … × xₙ)^(1/n) |
| Harmonic mean | n ÷ Σ(1/x) |
| Correlation (r) | Σ(x − x̄)(y − ȳ) ÷ √(Σ(x − x̄)² × Σ(y − ȳ)²) |
| Regression line | y = a + b × x, where b = r × (sy ÷ sx) and a = ȳ − b × x̄ |
The t value in the confidence interval depends on the sample size and the confidence level. For 95% confidence and 7 degrees of freedom, t is about 2.365.
All examples use this data set of 8 values: 12, 15, 11, 18, 15, 20, 15, 13
Sorted: 11, 12, 13, 15, 15, 15, 18, 20
The data has 8 values, so the median is the average of the 4th and 5th sorted values.
A data set can have no mode, one mode, or several modes.
First, find each value’s difference from the mean (14.875), square it, and add up the results.
Use the sample version when your data is a sample from a larger group. It divides by n − 1, which corrects for the fact that a sample tends to underestimate the spread of the whole group.
The lower half is 11, 12, 13, 15, and the upper half is 15, 15, 18, 20.
Different programs use slightly different methods to find quartiles, so results can differ a little.
With 95% confidence and 7 degrees of freedom, t = 2.365.
This means that, if the data are a random sample and meet the assumptions, we are 95% confident that the true mean of the whole group is in this range.
Data: 10, 12, 12, 13, 12, 14, 13, 15, 50
When data has outliers, the median can describe the center better than the mean.
Your scores are 90, 80, and 70, with weights of 50%, 30%, and 20%.
X = 1, 2, 3, 4, 5 and Y = 2, 4, 5, 4, 5.
Correlation does not prove that one thing causes another. Be careful about predicting far outside your data.
For data that follow a normal (bell-shaped) distribution:
In the data set above, 3 of the 8 values are below 15.
| Measure | Best for | Watch out for |
|---|---|---|
| Mean | Data without big outliers, and symmetric data | Pulled by extreme values |
| Median | Skewed data or data with outliers, such as incomes or house prices | Ignores the size of the values |
| Mode | Categories and the most common value | May not exist or may not be unique |
If you are unsure, the sample version is the safer choice, since most real data sets are samples.
The standard deviation measures how spread out the values are around the mean. A small standard deviation means the values are close to the mean. A large one means they are spread out. It is in the same units as the data, which makes it easy to read: for the data above, a typical value is about 3 away from the mean of 14.9.
| r | Meaning |
|---|---|
| 1 | Perfect positive relationship |
| 0.7 to 0.99 | Strong positive |
| 0.3 to 0.69 | Moderate positive |
| −0.29 to 0.29 | Weak or no linear relationship |
| −0.69 to −0.3 | Moderate negative |
| −0.99 to −0.7 | Strong negative |
| −1 | Perfect negative relationship |
These labels are a rough guide, and what counts as strong depends on your field.
Add up all the values and divide by the number of values. For 12, 15, 11, 18, 15, 20, 15, 13, the sum is 119 and the mean is 119 ÷ 8 = 14.875.
Sort the values and take the middle one. If there are two middle values, take their average. The median of the data above is 15.
Find the value that appears most often. In the data above, 15 appears three times.
Find the mean, subtract it from each value, square the differences, add them up, divide by n (population) or n − 1 (sample), and take the square root. For the data above, the sample standard deviation is 2.997.
Population standard deviation divides by n and is used when you have every member of the group. Sample standard deviation divides by n − 1 and is used when your data is a sample of a larger group.
The average of the squared differences from the mean. It is the square of the standard deviation.
Calculate Q1 and Q3, find the IQR (Q3 − Q1), and flag values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR.
How many standard deviations a value is from the mean: z = (x − mean) ÷ standard deviation.
A range that is likely to contain the true value of the mean. A 95% confidence interval for the data above is about 12.37 to 17.38.
A number from −1 to 1 that shows how closely two variables move together in a straight line. It does not show that one causes the other.
If data is skewed or has outliers, the mean is pulled toward the extreme values, and the median is not.
Yes. It is free, with no registration and no limits.
It uses standard formulas and the numbers you enter. Quartiles may differ slightly from other programs because there are several accepted methods.
A few of the most-used tools in each hub.
This calculator is for general informational and educational purposes only. Results depend on the numbers you enter and the assumptions behind each method. For research, medical, financial, or other important decisions, consult a qualified statistician or professional.