Free Statistics Calculator

Hand with a pen pointing at printed bar and line charts
Photo: Lukas Blazek / Pexels, Pexels licence

Published: 15 November 2026  ·  Updated: 15 November 2026

Paste your data and get the full summary instantly: mean, median, mode, quartiles, range, and both sample and population standard deviation — plus least-squares regression with correlation and predictions for paired data. It starts with 2, 4, 4, 5, 7, 9, 10 (mean 5.8571, sample SD 2.9114). Free, no sign-up.

MixKhazana · Quick answer

Paste data, read the summary. Mean, median, mode, quartiles and both standard deviations update as you type, and the regression box fits ŷ = a + bx to paired data with r, r² and a prediction at any x.

Researched by MixKhazana Team · Last updated 15 November 2026 · Data: OpenStax Statistics §12.2; OpenStax Introductory Business Statistics §2.7

Separate numbers with commas, spaces or new lines. Decimals and negatives are fine.

Linear regression (paired data)

Example: For 2, 4, 4, 5, 7, 9, 10 the mean is 5.8571, the median is 5, and the sample standard deviation is 2.9114. The regression example gives ŷ = 2.2 + 0.6x, so the prediction at x = 6 is 5.8.
Sample or population? Both are shown. Use the sample standard deviation (divide by n − 1) when your data are a sample from a bigger group — the usual statistics-class case. Use the population version (divide by N) only when you have every member of the group.

What is a statistics calculator?

A statistics calculator turns a list of numbers into its summary: the centre (mean, median, mode), the spread (range, quartiles, standard deviation), and — for paired data — the straight line that best fits the cloud of points. Statistics courses expect students to compute these by hand once, then use a calculator for real data sets, where hand calculation is slow and error-prone. The College Board expects a graphing calculator with statistical capabilities for AP Statistics. This free tool covers the same descriptive statistics and linear regression for homework and revision.

The standard deviation is the heart of descriptive statistics: a single number that says how far typical values sit from the mean. Two classes can share the same average score yet be completely different — one tightly bunched, one wildly spread — and only the spread measures reveal that.

How to use this statistics calculator

  1. Paste or type your numbers in the data box, separated by commas, spaces or new lines. The summary updates as you type.
  2. Read both standard deviations: sample (s) for data that are a sample, population (σ) when you have the whole group.
  3. For regression, enter paired x and y lists with the same count and order, then read the slope, intercept, correlation and prediction.
  4. Check the sorted data line under the results — a mistyped value is easy to spot there.

Statistics formulas

Let the data be x1, …, xn, with mean x̄ = (sum of all values) / n:

  • Sample variance: s² = Σ(x − x̄)² / (n − 1) — divide by n − 1
  • Sample standard deviation: s = √s²
  • Population variance: σ² = Σ(x − μ)² / N — divide by N
  • Population standard deviation: σ = √σ²
  • Median: the middle value when the data are sorted (the average of the two middle values when n is even)
  • Quartiles: Q1 and Q3 by linear interpolation on the sorted data, the method used by common spreadsheet percentile functions; IQR = Q3 − Q1
  • Least-squares line: ŷ = a + bx, where b = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)² and a = ȳ − b·x̄
  • Correlation: r = Σ(x − x̄)(y − ȳ) / √(Σ(x − x̄)² · Σ(y − ȳ)²), between −1 and 1

The sample formulas divide by n − 1 rather than n because the sample variance estimates the population variance: dividing by n − 1 gives the better estimate, a point every statistics textbook stresses. The regression line is the line that minimises the sum of squared errors (the SSE), which is why it is called the least-squares line.

Worked example

Find the mean and sample standard deviation of 2, 4, 4, 5, 7, 9, 10:

  • Sum = 41, n = 7, so the mean x̄ = 41 / 7 = 5.8571
  • Squared deviations: 14.8776 + 3.4490 + 3.4490 + 0.7347 + 1.3061 + 9.8776 + 17.1633 = 50.8571
  • Sample variance s² = 50.8571 / (7 − 1) = 8.4762; sample standard deviation s = √8.4762 = 2.9114
  • Population standard deviation would be √(50.8571 / 7) = 2.6954 — smaller, because it divides by 7 instead of 6

Try it above: the default data give exactly these numbers. For regression, the default pairs (1,2), (2,4), (3,5), (4,4), (5,5) give slope 0.6, intercept 2.2 and r = 0.7746.

Deviation table for the worked example

xx − x̄(x − x̄)²
2−3.857114.8776
4−1.85713.4490
4−1.85713.4490
5−0.85710.7347
71.14291.3061
93.14299.8776
104.142917.1633
Total0.000050.8571

The deviations always add to zero — that is why they must be squared before averaging. Squaring also punishes far-out values: the single value 10 contributes more than a third of the total.

Reading the regression output

The slope b says how much ŷ changes, on average, for a one-unit increase in x: in the default example, 0.6. The intercept a is the predicted y when x = 0, which often has no real-world meaning — it is just where the line crosses the axis. The correlation r measures the strength and direction of the straight-line relationship: 0.7746 is a fairly strong positive association. And r² = 0.6 means 60% of the variation in y is explained by the line. None of this proves causation: a strong r between two variables never, by itself, shows that one causes the other.

Frequently asked questions

What is the difference between sample and population standard deviation?

The sample version divides the squared deviations by n - 1, and the population version divides by N. Use the sample version when your data are a sample from a larger group, which is the usual case in class. Use the population version only when you have measured every member of the group.

Why divide by n - 1 for a sample?

Because the sample variance is an estimate of the population variance, and dividing by n - 1 gives the better estimate. Textbooks call this Bessel's correction in spirit: with n - 1 the average of many sample variances equals the population variance.

How is the median different from the mean?

The mean adds all values and divides by the count; the median is the middle value when the data are sorted. The median resists outliers: one huge value pulls the mean up but barely moves the median.

What does the correlation coefficient r tell me?

r measures the strength and direction of a straight-line relationship, from -1 (perfect falling line) through 0 (no straight-line relationship) to +1 (perfect rising line). It says nothing about causation.

What is the least-squares regression line?

It is the line y-hat = a + bx that makes the sum of squared vertical distances from the points to the line as small as possible. Any other line has a larger sum of squared errors.

How do I know if my regression prediction is trustworthy?

Predictions inside the observed x range are interpolations and are the most trustworthy. Predictions far outside it are extrapolations: the straight-line pattern may not continue. Also check r-squared: a low value means the line explains little of the variation.

Which quartile method does this tool use?

Linear interpolation on the sorted data (the common spreadsheet percentile method): the position is (n - 1) x p, interpolating between neighbours. Different textbooks use slightly different quartile rules, so small differences from your textbook are normal.

Can I paste data from a spreadsheet?

Yes. Copy a column from a spreadsheet and paste it into the data box: values separated by new lines, commas, spaces or semicolons are all accepted.

Sources

Disclaimer: a study aid for homework and revision. Quartiles use linear interpolation; textbooks differ slightly in quartile rules, so small differences are normal. It is not an approved exam-room device.

Related tools

Function graph plotted on axes on paper with a pencil beside it
📈

Free Graphing Calculator

Plot functions and read values from the curve.

Open →
Matrix algebra written in chalk on a green blackboard
🔢

Free Matrix Calculator

Add, multiply, determinant and inverse for 2×2 and 3×3 matrices.

Open →
Scientific calculator close-up on a green background
🔬

Free Scientific Calculator

Trig, logs and powers with degree and radian modes.

Open →
Electronic calculator
%

Free Percentage Calculator

Percentages, increases and decreases in one step.

Open →

Card photos: Sergey Meshkov / Pexels, Pexels licence · Yulia Meshkova / Wikimedia Commons, CC BY 4.0 · Joost J. Bakker / Wikimedia Commons, CC BY 2.0 · Coyau / Wikimedia Commons, CC BY-SA 3.0

Your next step

Need the picture too? Plot your regression line with the Free Graphing Calculator, or crunch trig and logs with the Free Scientific Calculator.

Share: