Skip to content

Statistics Calculator: Descriptive Statistics of a Data Set

Full descriptive statistics of a data set: mean, median, mode, quartiles, IQR, variance, standard deviation, outliers and a frequency table.

Your details

Separate values with commas, spaces or new lines. You can paste a column from a spreadsheet.

Textbooks and TI calculators split the data into halves; Excel QUARTILE.INC and most software interpolate.

Results update as you type

Mean

17.666667

Median
15
Mode
15 (3 times)
Count (n)
12
Sum
212
Minimum
11
Maximum
41
Range
30
First quartile (Q1)
13.5
Third quartile (Q3)
19
Interquartile range (IQR)
5.5
Standard deviation (sample, s)
8.003787
Standard deviation (population, σ)
7.663043
Variance (sample, s²)
64.060606
Variance (population, σ²)
58.722222
Skewness (sample)
2.576
Outliers (1.5 × IQR rule)
41

Step-by-step solution
  1. Sorted data: 11, 12, 13, 14, 15, 15, 15, 16, 18, 20, 22, 41
  2. Mean = 212 ÷ 12 = 17.666667
  3. Median = average of values 6 and 7 = 15
  4. Q1 = 13.5, Q3 = 19, IQR = Q3 − Q1 = 5.5
  5. Outlier fences: Q1 − 1.5 × IQR = 5.25, Q3 + 1.5 × IQR = 27.25
  6. Σ(x − x̄)² = 704.666667; sample variance = 704.666667 ÷ 11 = 64.060606; population variance = 704.666667 ÷ 12 = 58.722222

Frequency table

Paste a list of numbers and this statistics calculator returns a complete descriptive summary in one go: the count and sum, the mean, median and mode, the minimum, maximum and range, the quartiles Q1 and Q3 with the interquartile range, the sample and population variance and standard deviation, the skewness, and any outliers flagged by the 1.5 × IQR rule. A frequency table lists every distinct value with its count, relative frequency and cumulative frequency.

It is built for homework, lab results, survey answers or sales figures — anywhere you need to describe a data set rather than compute a single number. Because textbooks, calculators and spreadsheets do not all agree on how to compute quartiles, you can choose the quartile method and see exactly which convention produced your answer. The steps show the sorted data, where the median sits and how each figure was obtained, so you can check your own working.

How to use this calculator

  1. Type or paste your data set: numbers separated by commas, spaces or new lines (a spreadsheet column works).
  2. Choose the quartile method: the textbook method (median of each half, median excluded) is the default; pick linear interpolation to match Excel QUARTILE.INC, Google Sheets or R.
  3. Read the results. Use the sample standard deviation and variance when your data is a sample from a larger group, the population ones when it is the whole group.
  4. Open the steps and the frequency table for the detailed working.

The formula

For nn values x1,…,xnx_1, \dots, x_n:

xˉ=1n∑xis2=∑(xi−xˉ)2n−1σ2=∑(xi−xˉ)2n\bar{x} = \frac{1}{n}\sum x_i \qquad s^2 = \frac{\sum (x_i - \bar{x})^2}{n - 1} \qquad \sigma^2 = \frac{\sum (x_i - \bar{x})^2}{n}

The median is the middle value of the sorted data (the average of the two middle values when nn is even), the mode is the most frequent value, and the range is max⁡−min⁡\max - \min.

Quartiles. With the default method, Q1 is the median of the lower half and Q3 the median of the upper half, leaving the median out when nn is odd. Linear interpolation takes the value at position h=(n−1)p+1h = (n-1)p + 1 in the sorted list, interpolating between neighbours. IQR=Q3−Q1\text{IQR} = Q_3 - Q_1, and values below Q1−1.5 IQRQ_1 - 1.5\,\text{IQR} or above Q3+1.5 IQRQ_3 + 1.5\,\text{IQR} are flagged as outliers.

Skewness (adjusted Fisher–Pearson): G1=n(n−1)(n−2)∑(xi−xˉs)3G_1 = \dfrac{n}{(n-1)(n-2)} \sum \left(\dfrac{x_i - \bar{x}}{s}\right)^3.

Worked example

Twelve delivery times in minutes: 12, 15, 11, 18, 15, 20, 14, 15, 22, 13, 16, 41.

  • Sorted: 11, 12, 13, 14, 15, 15, 15, 16, 18, 20, 22, 41. Sum 212, mean 17.6667.
  • Median = average of the 6th and 7th values = 15; mode = 15 (3 times); range = 41 − 11 = 30.
  • Lower half 11…15 → Q1 = 13.5; upper half 15…41 → Q3 = 19; IQR = 5.5.
  • Fences: 5.25 and 27.25, so 41 is an outlier.
  • Sample standard deviation s = 8.0038 (variance 64.0606); population σ = 7.663; skewness 2.576.

With linear interpolation (Excel), Q1 = 13.75 and Q3 = 18.5 instead — the same data, a different convention.

How to find the median, mode and range

To find the median, sort the values from smallest to largest. With an odd count, the median is the middle value; with an even count, it is the average of the two middle values. The median is not pulled by extreme values, which is why it is often a better "typical value" than the mean for incomes, house prices or waiting times — in the example, the single 41-minute delivery lifts the mean above the median.

The mode is the value that occurs most often; a data set can have several modes, or none when every value appears equally often. The range is simply the largest value minus the smallest, which makes it easy to compute but very sensitive to outliers. The interquartile range, which covers the middle 50% of the data, is a more robust measure of spread.

Why quartile calculators disagree

There is no single definition of a quartile. Hyndman and Fan (1996) list nine methods used by statistical software. School textbooks and TI calculators usually take the median of each half of the data; Excel’s QUARTILE.INC, Google Sheets and R interpolate linearly; Tukey’s hinges include the median in both halves. On large data sets the results are almost identical, but on small ones they can differ noticeably, as the example shows. Use the method your course or software expects. For any other percentile (the 90th, for example), use the percentile calculator.

Which tool for which job?

This page gives the whole picture of one data set. If you only need an average, including a weighted average, the average calculator is quicker; for standard deviation from a frequency table, or the coefficient of variation, use the standard deviation calculator; and to locate a single value within a distribution, the z-score calculator.

Frequently asked questions

What is the difference between sample and population standard deviation?

The population formula divides the sum of squared deviations by n and describes the whole group. The sample formula divides by n − 1 (Bessel’s correction), which gives an unbiased estimate of the variance when your data is a sample of a larger population.

How do I find the median of an even number of values?

Sort the data and take the average of the two middle values. For 3, 5, 8, 10 the median is (5 + 8) ÷ 2 = 6.5.

Can a data set have more than one mode?

Yes. If two or more values share the highest frequency, all of them are modes (bimodal or multimodal data). If every value appears the same number of times, there is no mode.

Which quartile method should I use?

Use the one your teacher, textbook or software uses. The default here matches most textbooks and TI calculators; choose linear interpolation to reproduce Excel QUARTILE.INC, Google Sheets QUARTILE or R’s default.

How are outliers detected?

With Tukey’s rule: any value more than 1.5 interquartile ranges below Q1 or above Q3 is flagged. It is a screening rule, not proof that the value is an error.

Sources

Last updated:

More Statistics calculators

People also use