Statistics Calculator
Mean, median, mode, variance, standard deviation, quartiles & outliers from a list of numbers
Last updated October 2026
Method: Standard descriptive-statistics definitions as given in the NIST/SEMATECH e-Handbook of Statistical Methods. Mean = ฮฃx / n; sample variance divides the sum of squared deviations by n−1 (Bessel's correction), population variance by n; standard deviation is the square root of each. Quartiles use the R7 rule (rank 1 + p(n−1) with linear interpolation, as in Excel's QUARTILE.INC). Outliers are values beyond the 1.5 × IQR fences.
Included: Count, sum, mean, median, mode (including ties), min, max, range, sample and population variance, sample and population standard deviation, Q1/Q2/Q3, the interquartile range, the inner fences and any mild or extreme outliers.
Not included: Inferential statistics (confidence intervals, t-tests, regression), weighted means, grouped-frequency tables and charts. Quartile values may differ slightly from tools that use a different quartile rule.
๐ Enter your data set
Separate values with commas, spaces, semicolons or new lines. Decimals and negatives are fine; do not use thousands separators (write 1200, not 1,200). Results update as you type.
๐ Mean (average)
๐ Spread & dispersion
๐ Range, quartiles & outliers
| Statistic | Value |
|---|---|
| Count (n) | 7 |
| Sum (ฮฃx) | 127 |
| Minimum | 12 |
| Maximum | 25 |
| Range | 13 |
| Q1 (25th percentile) | 15 |
| Q2 (median) | 18 |
| Q3 (75th percentile) | 21 |
| Interquartile range (IQR) | 6 |
| Inner fences (Q1 โ 1.5 IQR, Q3 + 1.5 IQR) | 6 to 30 |
| Outliers (outside the inner fences) | None |
Statistics calculator: everything you need to know
A statistics calculator turns a list of numbers into every descriptive measure at once. Paste 12, 15, 15, 18, 20, 22, 25 and it instantly returns the mean (18.14), median (18), mode (15), range (13), sample standard deviation (4.53) and quartiles (Q1 = 15, Q3 = 21), with no formulas, spreadsheet or separate mean-median-mode and variance tools needed.
Need only one piece? The Average Calculator covers mean, median and mode; the Standard Deviation Calculator and Variance Calculator focus on spread; the Quartile Calculator and Percentile Calculator work with positions in sorted data; and the Z-Score Calculator measures how far one value sits from the mean. This page is the one to reach for when you want the center, the spread and the outliers of a whole data set at once.
A full worked example
Take the data set 12, 15, 15, 18, 20, 22, 25 (n = 7). Here is how every result is produced, step by step.
Mean. Add the values and divide by the count:
mean = Σx ÷ n = 127 ÷ 7 ≈ 18.142857 Median. The data is already sorted and there are 7 values (odd), so the median is the 4th value: 18. If the count were even, the median would be the average of the two middle values.
Mode. The value 15 appears twice while every other value appears once, so the mode is 15. If no value repeated, there would be no mode.
Range. Maximum minus minimum = 25 − 12 = 13.
Variance and standard deviation. First find each value's deviation from the mean, square it, and add them up. The sum of squared deviations here is about 122.857. Then:
s² = Σ(x − mean)² ÷ (n − 1) = 122.857 ÷ 6 ≈ 20.476 So the sample variance is about 20.476 and the sample standard deviation is its square root, about 4.525. Dividing instead by n (= 7) gives the population variance of about 17.551 and a population standard deviation of about 4.189. The two differ only because one divides by n−1 and the other by n.
How to calculate standard deviation step by step
The table below shows exactly how the sum of squared deviations above is built for the data 12, 15, 15, 18, 20, 22, 25 with a mean of 18.142857. Subtract the mean from each value, square the result, then add the squares.
| Value (x) | Deviation (x − mean) | Squared deviation |
|---|---|---|
| 12 | −6.1429 | 37.7347 |
| 15 | −3.1429 | 9.8776 |
| 15 | −3.1429 | 9.8776 |
| 18 | −0.1429 | 0.0204 |
| 20 | 1.8571 | 3.4490 |
| 22 | 3.8571 | 14.8776 |
| 25 | 6.8571 | 47.0204 |
| Sum | 0 | 122.8571 |
Divide the total 122.8571 by n−1 = 6 for the sample variance (20.4762, sample SD 4.5251) or by n = 7 for the population variance (17.5510, population SD 4.1894). Notice the deviations always sum to zero: a quick check that you subtracted the mean correctly.
Quartiles and outliers. With the R7 rule, Q1 (25th percentile) is 15, Q2 (the median) is 18, and Q3 (75th percentile) is 21, giving an interquartile range of Q3 − Q1 = 6. The IQR describes the spread of the middle half of the data. The inner fences are 15 − 1.5 × 6 = 6 and 21 + 1.5 × 6 = 30, and every value lies between them, so this data set has no outliers.
Descriptive statistics for common data sets
Here is the full set of mean, median, mode, range, standard deviation and quartiles computed for six typical data sets, so you can see how the measures move together. Sample SD divides by n−1; population SD divides by n; quartiles use the R7 rule.
| Data set | n | Mean | Median | Mode | Range | Sample SD | Pop. SD | Q1 | Q3 | IQR |
|---|---|---|---|---|---|---|---|---|---|---|
| 72, 85, 90, 78, 88, 95, 82 | 7 | 84.29 | 85 | None | 23 | 7.72 | 7.15 | 80 | 89 | 9 |
| 12, 15, 15, 18, 20, 22, 25 | 7 | 18.14 | 18 | 15 | 13 | 4.53 | 4.19 | 15 | 21 | 6 |
| 120, 135, 150, 145, 160, 155 | 6 | 144.17 | 147.5 | None | 40 | 14.63 | 13.36 | 137.5 | 153.75 | 16.25 |
| 4, 8, 15, 16, 23, 42 | 6 | 18 | 15.5 | None | 38 | 13.49 | 12.32 | 9.75 | 21.25 | 11.5 |
| 68, 70, 72, 71, 69, 73, 70, 68 | 8 | 70.13 | 70 | 68, 70 | 5 | 1.81 | 1.69 | 68.75 | 71.25 | 2.5 |
| 200, 210, 205, 800, 215 | 5 | 326 | 210 | None | 600 | 265.03 | 237.05 | 205 | 215 | 10 |
The last row shows why the median matters: one outlier (800) drags the mean to 326 while the median stays at 210, and the range explodes to 600 even though the IQR is just 10. By the 1.5 × IQR rule, 800 lies far above the upper inner fence of 230 (215 + 15) and even the outer fence of 245 (215 + 30), so the calculator flags it as an extreme outlier.
The formulas, in plain notation
- Mean:
mean = Σx / n - Population variance:
σ² = Σ(x − mean)² / n - Sample variance:
s² = Σ(x − mean)² / (n − 1) - Standard deviation: the square root of the matching variance (σ or s).
- Range:
max − min - Quartile position (R7):
h = (n − 1)p + 1, then interpolate between the sorted values at ranks floor(h) and ceil(h). - IQR:
Q3 − Q1 - Outlier fences:
Q1 − 1.5·IQRandQ3 + 1.5·IQR(inner);Q1 − 3·IQRandQ3 + 3·IQR(outer).
How to use this statistics calculator
- Enter your numbers: type them or paste a column straight from a spreadsheet. Separate values with commas, spaces, tabs, semicolons or new lines, and leave out thousands separators.
- Check the count: the label shows how many valid values were detected, and any entries that are not plain numbers are listed in a warning, so nothing is dropped silently.
- Read the results: they update as you type, in three cards: the center, the spread, and the range, quartiles and outliers.
- Pick sample or population: read the sample figures (n−1) for data that is a sample, and the population figures (n) for data that is the whole group.
- Try the example buttons (test scores, daily sales, a set with an outlier, a small set) to see how the measures change with different data, then clear and enter your own.
Who this calculator is for
- Students in a statistics or math class checking homework answers for mean, median, mode, variance and standard deviation.
- Teachers building or verifying problem sets and worked examples.
- Researchers and analysts who want a quick descriptive summary of a column before deeper analysis.
- Business users summarizing sales, response times, ratings or survey scores without opening spreadsheet software.
- Anyone who has a list of numbers and wants the center and spread at a glance.
Key statistics terms explained
- Mean: the arithmetic average; the sum divided by the count. Sensitive to outliers.
- Median: the middle value of sorted data. Resistant to outliers, which makes it useful for skewed data like incomes.
- Mode: the most frequent value (or values). A data set can have one mode, several, or none.
- Variance: the average squared distance from the mean; spread in squared units.
- Standard deviation: the square root of variance; spread in the original units.
- Quartiles (Q1, Q2, Q3): the values that split sorted data into four equal parts; Q2 is the median.
- Interquartile range (IQR): Q3 − Q1, the spread of the middle 50% of values.
- Outlier: a value far from the rest; this calculator flags values beyond the 1.5 × IQR fences.
A second example: when the mean and median disagree
Consider the data 4, 8, 15, 16, 23, 42 (n = 6). The sum is 108, so the mean is 108 / 6 = 18. Because there are six values (even), the median is the average of the 3rd and 4th values: (15 + 16) / 2 = 15.5. The mean (18) sits above the median (15.5) because the large value 42 pulls the average upward. No value repeats, so there is no mode. This gap between the mean and median is a quick signal that the data is skewed: when they are far apart, the median often describes the "typical" value better than the mean. By the 1.5 × IQR rule, 42 is also a mild outlier: with Q1 = 9.75, Q3 = 21.25 and IQR = 11.5, it lies above the upper inner fence of 21.25 + 1.5 × 11.5 = 38.5 but below the outer fence of 55.75.
Scenarios: same center, different spread
Two data sets can share a mean yet behave very differently. Both 49, 50, 51 and 10, 50, 90 have a mean of 50, but the first has a tiny sample standard deviation (1.0) while the second has a large one (40.0). That is the whole point of measuring spread: the center alone hides how consistent or volatile the values are. When you compare two groups (say, two machines, two classes or two months of sales), look at the standard deviation alongside the mean, not just the average.
What changes the result the most
- Outliers: a single extreme value can swing the mean, range and standard deviation sharply, while barely moving the median.
- Sample vs. population: for small data sets the n vs. n−1 choice noticeably changes the variance and standard deviation; for large sets the difference shrinks.
- Count (n): more values generally produce a more stable, trustworthy estimate of center and spread.
- Repeated values: duplicates create or shift the mode and can pull the mean and median toward the repeated value.
Sample vs. population standard deviation: how much do they differ?
Sample standard deviation (divide by n−1) is always slightly larger than population standard deviation (divide by n) for the same data, by an exact factor of √(n / (n−1)). This quick reference shows how the gap shrinks as your data set grows, so you know when the choice actually matters.
| Count (n) | Multiply pop. SD by | Sample SD is larger by |
|---|---|---|
| 2 | 1.4142 | 41.42% |
| 3 | 1.2247 | 22.47% |
| 5 | 1.1180 | 11.80% |
| 10 | 1.0541 | 5.41% |
| 20 | 1.0260 | 2.60% |
| 30 | 1.0171 | 1.71% |
| 50 | 1.0102 | 1.02% |
| 100 | 1.0050 | 0.50% |
With only 2 values the sample SD is over 40% larger than the population SD, but by n = 100 the two agree to within half a percent. For small homework data sets the n vs. n−1 choice clearly matters; for large data sets it rarely changes a reported figure.
Tips for getting reliable statistics
- Confirm the count first. If the detected count does not match how many numbers you expected, look for a missing comma, a thousands separator or a label listed in the skipped-entries warning.
- Decide sample or population before you read the answer so you quote the right variance and standard deviation.
- Report the median for skewed data (incomes, prices, response times) and the mean for roughly symmetric data.
- Pair a center with a spread. "Mean 50, SD 2" tells a very different story from "mean 50, SD 40."
- Investigate outliers before deleting them. A flagged value may be a typo, or it may be the most important observation in the data set.
- Keep full precision for intermediate steps and round only the final answer to avoid rounding errors compounding.
Limitations and assumptions
- This is a descriptive calculator. It summarizes the data you enter; it does not perform inferential tests, confidence intervals, hypothesis tests or regression.
- Quartile method matters. This tool uses the R7 rule, the default in Excel's QUARTILE.INC and in R. The NIST/SEMATECH e-Handbook notes that there is no universally accepted rule and describes others (its own Dataplot software uses R6, based on (n + 1)p), so Q1, Q3 and the outlier fences can vary slightly between tools.
- It treats each number as equally weighted; there is no weighted mean or grouped-frequency support.
- Entries that are not plain numbers are skipped and listed in a warning, so always cross-check the count.
- Sample variance and sample standard deviation require at least two values; with a single number they are undefined and shown as n/a.
How it compares to related calculators
This page answers "what are all the descriptive statistics for my list of numbers?" If your question is narrower, a focused tool may be quicker:
- For just the center, use the Average Calculator (mean, median, mode).
- For spread on its own, use the Standard Deviation Calculator or the Variance Calculator.
- For quartiles, percentiles and box-plot values, use the Quartile Calculator or the Percentile Calculator.
- To see how far one value sits from the mean in standard deviations, use the Z-Score Calculator.
- For the chance of events, use the Probability Calculator.
About these formulas
The measures here are standard descriptive statistics, and the definitions follow the NIST/SEMATECH e-Handbook of Statistical Methods, so the core math is identical across any correct implementation. The conventions worth stating are the ones this tool follows: sample variance and standard deviation use Bessel's correction (divide by n−1), population versions divide by n, quartiles use the R7 rule, and outliers are values beyond the 1.5 × IQR inner fences (beyond 3 × IQR they are extreme). A different quartile rule is the usual reason Q1 and Q3 differ slightly between tools.
Sources
- NIST/SEMATECH e-Handbook of Statistical Methods: Measures of location (mean, median, mode).
- NIST/SEMATECH e-Handbook of Statistical Methods: Measures of scale (variance, standard deviation, range, interquartile range).
- NIST/SEMATECH e-Handbook of Statistical Methods: Percentiles (the R6, R7 and other interpolation rules).
- NIST/SEMATECH e-Handbook of Statistical Methods: What are outliers in the data? (inner and outer fences at 1.5 and 3 × IQR).
- U.S. Census Bureau: Income in the United States: 2024 (median household income as the headline income measure).
โ ๏ธ Common mistakes & edge cases
Using population stats when you have a sample
If your numbers are a sample of a larger group, divide by n−1, not n. Using the population formula on a sample underestimates the true spread. Read the "sample" figures for s and sยฒ.
Letting an outlier hide behind the mean
One extreme value can move the mean a lot while the median barely changes. If the mean and median disagree, the data is skewed: report the median or note the outlier, which the calculator flags with the 1.5 × IQR rule.
Confusing variance with standard deviation
Variance is in squared units; standard deviation is its square root, back in the original units. Quote the standard deviation when you want a number comparable to the data itself.
Forgetting that quartile rules differ
Different tools use different quartile definitions, so Q1 and Q3 can differ by a little between this calculator and another tool. This calculator matches Excel's QUARTILE.INC (R7); match the method your assignment or software expects.
❓ Frequently asked questions
What does this statistics calculator compute?
This statistics calculator takes a list of numbers and returns a full set of descriptive statistics: the count, sum, mean (average), median, mode, minimum, maximum, range, sample and population variance, sample and population standard deviation, the three quartiles (Q1, Q2, Q3), the interquartile range, and any outliers by the 1.5 ร IQR rule. You paste or type your data once and get every common summary measure at the same time.
How is the mean calculated?
The mean (arithmetic average) is the sum of all values divided by how many values there are: mean = ฮฃx / n. For example, the data 12, 15, 15, 18, 20, 22, 25 sums to 127 across 7 values, so the mean is 127 / 7 โ 18.14. The mean uses every data point, which is why a single very large or very small value can pull it noticeably up or down.
What is the difference between mean, median, and mode?
The mean is the average of all values. The median is the middle value when the data is sorted (or the average of the two middle values for an even count). The mode is the value that appears most often. They are all measures of the 'center' of a data set, but they answer slightly different questions: the median resists outliers, the mean reflects every value, and the mode shows the most common result.
What is the difference between sample and population standard deviation?
Population standard deviation (ฯ) divides the sum of squared deviations by n and is used when your data is the entire group you care about. Sample standard deviation (s) divides by n โ 1 (Bessel's correction) and is used when your data is a sample drawn from a larger population; dividing by n โ 1 corrects the tendency of a sample to underestimate the true spread. This calculator shows both so you can pick the right one.
When should I use sample vs. population statistics?
Use population formulas (divide by n) when your numbers represent every member of the group, for example the test scores of every student in one class you are describing. Use sample formulas (divide by n โ 1) when your numbers are a subset used to estimate a larger group, for example 30 customers surveyed to estimate all customers. When in doubt in research or statistics coursework, the sample versions are usually expected.
How are the quartiles calculated?
This calculator sorts the data and uses the R7 rule: the quartile for proportion p sits at rank 1 + p(n โ 1) in the sorted list, interpolating linearly between neighbors. This is the method of Excel's QUARTILE.INC and PERCENTILE.INC and the default in R. Q1 is the 25th percentile, Q2 is the median and Q3 is the 75th percentile; the interquartile range (IQR = Q3 โ Q1) is the spread of the middle 50% of the data. Other tools use other rules (the NIST/SEMATECH e-Handbook describes several), so quartiles can differ slightly between tools.
How does the calculator find outliers?
It uses the fences described in the NIST/SEMATECH e-Handbook: values below Q1 โ 1.5 ร IQR or above Q3 + 1.5 ร IQR are outliers (mild), and values beyond Q1 โ 3 ร IQR or Q3 + 3 ร IQR are extreme outliers. In 200, 210, 205, 800, 215, Q1 = 205, Q3 = 215 and IQR = 10, so the upper inner fence is 230 and the upper outer fence is 245; 800 is an extreme outlier.
What is variance and how does it relate to standard deviation?
Variance is the average of the squared deviations from the mean. It measures how spread out the data is, but in squared units. Standard deviation is simply the square root of the variance, which returns the measure to the original units of the data. A larger variance or standard deviation means the values are more spread out around the mean; a value near zero means they cluster tightly.
Can the data set have more than one mode?
Yes. A data set is bimodal when two values tie for the most frequent, and multimodal when three or more tie. This calculator lists every value that shares the highest frequency. If every value appears the same number of times (for example each value exactly once), no value is more common than the others, so the calculator reports 'None'.
What input formats does the calculator accept?
You can separate your numbers with commas, spaces, tabs, semicolons or new lines: paste a column from a spreadsheet or type a comma-separated list. Decimals (like 3.14) and negative numbers (like โ5) are supported. Anything that is not a plain number, such as a label, a unit or a currency symbol, is skipped and listed in a warning, so you can see exactly what was left out. Do not use commas as thousands separators, because commas separate values.
Is this a free statistics calculator?
Yes. This is a completely free statistics calculator with no sign-up, no fee, and no limit on the number of values or how many data sets you run. Everything is computed instantly in your browser, so your numbers are never uploaded to a server.
What is the range and why is it a weak measure of spread?
The range is the difference between the largest and smallest values (max โ min). It is the simplest measure of spread, but it depends only on the two extreme values, so a single outlier can make it misleading. Standard deviation and the interquartile range describe spread more reliably because they use more of the data.
Does this calculator round the results?
Results are shown to up to four decimal places, with at least four significant digits for very small values and scientific notation for extreme ones, and trailing zeros are trimmed for readability. The underlying math is done in full double precision before display. If you need more decimal places for a homework answer, keep the intermediate sum and sum of squares from the formulas rather than re-rounding the displayed figures.
How do I calculate standard deviation step by step?
Four steps: (1) find the mean; (2) subtract the mean from each value to get its deviation; (3) square each deviation and add them up to get the sum of squared deviations; (4) divide by n โ 1 (sample) or n (population) to get the variance, then take the square root. For the data 12, 15, 15, 18, 20, 22, 25 the mean is 18.142857, the squared deviations sum to 122.8571, so the sample variance is 122.8571 / 6 โ 20.4762 and the sample standard deviation is โ20.4762 โ 4.5251.
Can I paste data from Excel or Google Sheets?
Yes. Copy a column of numbers from Excel, Google Sheets or a CSV and paste it straight into the input; values on separate lines are read correctly, as are commas, spaces, tabs and semicolons. Cells with row labels, currency symbols or other text are skipped and listed in a warning, so remove symbols such as $ and thousands separators before pasting, and check that the detected count matches the number of cells you copied.
๐ก Good to know
The mean is not always the "typical" value
For skewed data like home prices or salaries, a few large values inflate the mean. The median usually describes the typical case better, which is why the U.S. Census Bureau reports median household income as its headline income measure.
Standard deviation has an intuitive meaning
For roughly bell-shaped (normal) data, about 68% of values fall within one standard deviation of the mean and about 95% within two. That "empirical rule" turns a single number into a quick sense of how spread out your data is.
Your data stays in your browser
Every calculation runs locally with JavaScript; nothing you type is uploaded. You can run as many data sets as you like, for free, with no sign-up.
Related Calculators
Standard Deviation Calculator
Calculate standard deviation, variance and mean
Variance Calculator
Sample and population variance with steps
Average Calculator
Calculate the mean, median and mode of numbers
Quartile Calculator
Q1, Q2, Q3, interquartile range and outliers of a data set
Percentile Calculator
Find the kth percentile or the percentile rank of a value
Z-Score Calculator
Calculate the z-score of a value
Probability Calculator
Calculate the probability of events