Descriptive Statistics & IQR Calculator
Free Descriptive Statistics & IQR Calculator. Free online tool with accurate results using verified formulas.
Descriptive Statistics & IQR Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Mean = Sum / n | Variance = Sum((xi - mean)^2) / (n-1) | Std Dev = sqrt(Variance)
Worked example — Mean: 82.5 | Median: 83.5 | Std Dev: 8.79 | IQR: 14
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer · Editorial policy
Descriptive Statistics & IQR Calculator Formula
Mean = Sum / n | Variance = Sum((xi - mean)^2) / (n-1) | Std Dev = sqrt(Variance)
This v2 version adds quartiles (Q1, Q2, Q3), interquartile range (IQR = Q3 − Q1), outlier detection (values outside 1.5×IQR from quartiles), skewness and kurtosis, and a frequency histogram alongside the standard mean/median/mode/variance/std dev. Paste comma-separated data to get the full descriptive summary.
Descriptive Statistics & IQR Calculator — Worked Examples
Example 1: Test Scores Analysis
Problem:A class of 10 students scored: 72, 85, 90, 68, 95, 78, 82, 88, 91, 76. Calculate descriptive statistics.
Solution:Sorted: 68, 72, 76, 78, 82, 85, 88, 90, 91, 95 Mean: 82.5 | Median: 83.5 Std Dev: 8.79 | Variance: 77.17 Q1: 76 | Q3: 90 | IQR: 14 Range: 27 (68 to 95)
Result:Mean: 82.5 | Median: 83.5 | Std Dev: 8.79 | IQR: 14
Example 2: Salary Distribution
Problem:Salaries (in thousands): 45, 50, 55, 55, 60, 65, 70, 75, 80, 120. Note the outlier at 120.
Solution:Mean: 67.5 | Median: 62.5 The mean is pulled up by the outlier (120). Median is more representative of the typical salary. Skewness is positive, confirming right-skewed distribution.
Result:Mean: 67.5 | Median: 62.5 | Positive skew due to outlier
Descriptive Statistics & IQR Calculator — Frequently Asked Questions
What are descriptive statistics?
Descriptive statistics summarize and describe the main features of a dataset. They include measures of central tendency (mean, median, mode), measures of spread (range, variance, standard deviation, IQR), and measures of shape (skewness, kurtosis). Unlike inferential statistics, descriptive statistics do not draw conclusions beyond the data at hand — they simply describe what is in the data.
When should I use mean vs. median?
Use the mean when your data is roughly symmetrical and has no extreme outliers. Use the median when your data is skewed or contains outliers — the median is robust to extreme values. For example, median household income is preferred over mean income because a few billionaires can drastically inflate the mean. As a rule of thumb, if the mean and median are close, the data is approximately symmetric.
What do skewness and kurtosis tell you?
Skewness measures asymmetry. Positive skew means the right tail is longer (data piled up on the left). Negative skew means the left tail is longer. A skewness near 0 indicates symmetry. Kurtosis (excess) measures tail heaviness compared to a normal distribution. Positive kurtosis (leptokurtic) means heavier tails and more outliers. Negative kurtosis (platykurtic) means lighter tails. The normal distribution has excess kurtosis of 0.
What is the interquartile range (IQR)?
The IQR is the difference between the third quartile (Q3, 75th percentile) and the first quartile (Q1, 25th percentile). It represents the middle 50% of the data and is a robust measure of spread that is not affected by outliers. The IQR is used in box plots and for detecting outliers: values below Q1 - 1.5 × IQR or above Q3 + 1.5 × IQR are typically considered outliers.
Why do Q1 and Q3 differ slightly between statistics packages?
There is no single agreed rule for interpolating a quartile when the sorted sample does not divide evenly into four. Hyndman and Fan catalogued nine distinct definitions in 1996, differing in how they place the quantile position and whether they average neighbouring order statistics or interpolate linearly. On large samples the discrepancies are negligible, but on ten or twenty values Q1 can shift by a full observation, which then moves the IQR and the outlier fences. Note which method a package uses before comparing quartiles across tools.
How does the 1.5 times IQR rule decide that a value is an outlier?
Tukey's fences sit at Q1 - 1.5 x IQR and Q3 + 1.5 x IQR; anything beyond them is flagged. The multiplier is a convention, not a probability statement, chosen so that for roughly normal data only a small fraction of genuine observations get flagged. A wider 3.0 x IQR fence marks extreme outliers. Because the rule is built from quartiles rather than the mean, it is not itself dragged around by the very points it is trying to detect.
What does the coefficient of variation add beyond the standard deviation?
The coefficient of variation is the standard deviation divided by the mean, usually shown as a percentage, so it expresses spread relative to typical size and is unitless. That makes it useful for comparing variability between quantities measured on different scales, such as rainfall in millimetres against yield in tonnes. It only makes sense for ratio-scale data with a positive mean; on a scale with an arbitrary zero, such as Celsius, the ratio changes meaninglessly when you change units.
How many bins should the frequency histogram use?
Too few bins hide structure such as bimodality; too many turn the histogram into noise. Sturges' rule sets the bin count to 1 + log2(n), which works for moderate, roughly normal samples but under-bins large datasets. The Freedman-Diaconis rule instead sets bin width to 2 x IQR / n^(1/3), adapting to spread and shape and resisting outliers. In practice, try two or three bin counts and keep the one where the shape is stable rather than trusting a single formula.
What is the five-number summary and how does a box plot show it?
The five-number summary is the minimum, Q1, median, Q3 and maximum. A box plot draws the box from Q1 to Q3 with the median as an internal line, so the box spans the IQR and the middle half of the data. Whiskers extend to the most extreme observations still inside the 1.5 x IQR fences, and points beyond them are drawn individually. The result shows location, spread, skew and outliers in one figure without assuming a distribution.
Why is kurtosis reported as excess kurtosis?
The raw fourth standardised moment of a normal distribution equals 3, which is an awkward reference point. Excess kurtosis subtracts that 3 so the normal distribution scores 0, positive values indicate heavier tails and more outlier-prone data, and negative values indicate lighter tails. Spreadsheet KURT functions and most statistical software report the excess form, so a value of 1.2 here means tails somewhat heavier than normal, not a near-normal shape.
Descriptive Statistics & IQR Calculator — Background & Theory
History of the Descriptive Statistics & IQR Calculator
References
Related Calculators
📈Correlation Calculator
Free online calculator
🔬Chi-Square Test
Free online calculator
🧮Escape Velocity Calculator
Calculate escape velocity with inputs, formulas, and instant results.
🧮Orbital Period Calculator
Calculate orbital period with inputs, formulas, and instant results.
🧮Hohmann Transfer Calculator
Calculate delta-v requirements for a Hohmann transfer orbit between two circular orbits.
🧮Satellite Speed Calculator
Calculate the orbital speed of a satellite at any altitude above Earth.