Here are the most-used statistics formulas on one page, in simple words. Each one has a short meaning and a quick example. Save it, print it, or keep it open while you solve problems with the mean, median and mode calculator.
Averages: mean, median and mode
| Measure | Formula | What it means |
|---|---|---|
| Mean | x̄ = Σx ÷ n | Add all values, divide by how many there are. |
| Median (odd n) | value at position (n + 1) ÷ 2 | The middle value of the sorted list. |
| Median (even n) | (value at n ÷ 2 + value at n ÷ 2 + 1) ÷ 2 | The mean of the two middle values. |
| Mode | most frequent value | Can be one, many, or none. |
| Weighted mean | Σ(w × x) ÷ Σw | Mean where some values count more (w = weight). |
Example with 3, 5, 5, 7, 10: mean = 30 ÷ 5 = 6, median = 5, mode = 5. Learn more: mean formula, median formula, mode formula, weighted mean.
Spread: range, quartiles and outliers
| Measure | Formula | What it means |
|---|---|---|
| Range | max − min | How far apart the smallest and biggest values are. |
| Midrange | (max + min) ÷ 2 | The value halfway between the smallest and biggest. |
| Interquartile range | IQR = Q3 − Q1 | The spread of the middle half of the data. |
| Outlier fences | Q1 − 1.5 × IQR and Q3 + 1.5 × IQR | Values outside these fences are possible outliers. |
Different books and tools find quartiles in slightly different ways, so Q1 and Q3 can differ a little. Use the method your teacher or course asks for. See the five-number summary guide and the range calculator.
Variance and standard deviation
| Measure | Formula | Use it for |
|---|---|---|
| Population variance | σ² = Σ(x − μ)² ÷ N | When you have the whole group. |
| Sample variance | s² = Σ(x − x̄)² ÷ (n − 1) | When your data is a sample of a bigger group. |
| Standard deviation | σ = √σ² or s = √s² | The typical distance of values from the mean. |
Grouped data (class intervals)
| Measure | Formula | Symbols |
|---|---|---|
| Class midpoint | x = (lower + upper) ÷ 2 | The middle of each class. |
| Mean | Σ(f × x) ÷ Σf | f = frequency, x = midpoint. |
| Median | L + [(N ÷ 2 − cf) ÷ f] × h | L = lower limit of median class, cf = cumulative frequency before it, f = its frequency, h = class width. |
| Mode | L + [(f1 − f0) ÷ (2f1 − f0 − f2)] × h | f1 = modal class frequency, f0 = class before, f2 = class after. |
Practice it with the grouped data calculator and the mean median mode worksheet.
Which average should I use?
| Situation | Best choice |
|---|---|
| Values are fairly even, no extreme numbers | Mean |
| A few very big or very small values (outliers) | Median |
| You want the most common value, or the data is a category | Mode |
For lopsided data, a rough estimate is Mode ≈ 3 × Median − 2 × Mean. It is only an estimate, not an exact answer. More in mean vs median vs mode.
Frequently asked questions
What is the formula for the mean?
Mean = sum of all values ÷ number of values. For 2, 4, 6 the mean is 12 ÷ 3 = 4.
See also: practice problems to try.
How do I find the median of an even number of values?
Sort the list, take the two middle values, add them and divide by 2. For 2, 4, 6, 8 the median is (4 + 6) ÷ 2 = 5.
What is the difference between sample and population standard deviation?
Population standard deviation divides by N and is used when you have every value. Sample standard deviation divides by n − 1 and is used when your data is only a sample.
Can I print this statistics formulas cheat sheet?
Yes. Use the print button at the top of the page. It is free to print and share for study or teaching.
Why do quartile answers differ between calculators?
There is more than one accepted method for finding quartiles, so results can differ slightly. Follow the method used in your course.
Related reading: finding mean, median and mode in Excel or Google Sheets.
Last updated:
How are these results calculated?
The calculator uses the median-of-halves method for quartiles. For an odd number of values, the middle value is included in both halves. Percentiles use linear interpolation with position (p ÷ 100) × (n − 1). Other tools may use different rules.
Method and references
For an independent explanation of statistical methods, see the NIST/SEMATECH e-Handbook of Statistical Methods. This is a reference for general methods, not a claim of endorsement or external review. Check the calculator’s displayed steps for the exact operation used.