Formula Sheet: Mean, Median, Mode and Standard Deviation

Each formula with what it means in words, when to use it and a worked example, on one page here and on two printed pages.

Download the formula sheet (PDF, 2 pages)

Free to print and copy. It is a tagged PDF with real text, so a screen reader can read it and the formulas can be copied.

Every example uses the same five values, 2, 4, 4, 5, 9, except the weighted mean, which has its own.

Symbols: x is a value; n is how many values there are (N for a whole population); Σ means add up over all the values; w is a weight; x̄ is the mean of a sample, μ the mean of a whole population.

Arithmetic mean

x̄ = Σx ÷ n = (x1 + x2 + … + xn) ÷ n

In words: Add the values and divide by how many there are.

Use it when the values add up to a meaningful total and each should count the same: test scores, heights, journey times. One very large or small value pulls it towards itself.

Example: (2 + 4 + 4 + 5 + 9) ÷ 5 = 24 ÷ 5 = 4.8

Weighted mean

x̄w = Σwx ÷ Σw

In words: Multiply each value by its weight, add the results, and divide by the sum of the weights.

Use it when some values should count more than others: grades weighted by credits or by their share of the course, survey answers weighted by how many people gave them. Weights cannot be negative.

Example: Scores 85, 78 and 92 with weights 20, 30 and 50:
(85 × 20 + 78 × 30 + 92 × 50) ÷ (20 + 30 + 50) = 8640 ÷ 100 = 86.4

Geometric mean

G = (x1 × x2 × … × xn)1/n

In words: Multiply the values together and take the nth root of the product (the 5th root for 5 values).

Use it when values multiply together: growth rates and returns written as growth factors (+10% is 1.10, −5% is 0.95), and ratios. The values must be zero or positive, and one zero makes it zero.

Example: 2 × 4 × 4 × 5 × 9 = 1440
The 5th root: 1440^(1/5) ≈ 4.2823

Harmonic mean

H = n ÷ Σ(1/x)

In words: Divide the number of values by the sum of their reciprocals (1 divided by each value).

Use it when averaging rates, an amount per something, where that amount is the same each time: speeds over equal distances, prices per unit when the same sum is spent. The values must be greater than zero.

Example: 1/2 + 1/4 + 1/4 + 1/5 + 1/9 ≈ 1.3111
5 ÷ 1.3111 ≈ 3.8136

For positive values, H ≤ G ≤ x̄. Here 3.8136 ≤ 4.2823 ≤ 4.8.

Median

Odd n: median = x((n + 1)/2)

Even n: median = (x(n/2) + x(n/2 + 1)) ÷ 2

x(k) is the kth value once the values are sorted from smallest to largest.

In words: Sort the values. With an odd count, the median is the middle value; with an even count, it is the mean of the two middle values.

Use it when a few very large or very small values would pull the mean away from what is typical: house prices, salaries, waiting times. It also suits ordered categories, such as ratings.

Example: Sorted: 2, 4, 4, 5, 9. The middle position is (5 + 1) ÷ 2 = 3, so the median is 4.
One more value, 12: 2, 4, 4, 5, 9, 12. The two middle values are 4 and 5, so the median is (4 + 5) ÷ 2 = 4.5.

Mode

mode = the most frequent value

In words: Count how often each value occurs. The mode is the value that occurs most often; there can be more than one, and when every value occurs equally often there is no mode.

Use it when the most common value or category is what matters: shoe sizes, the most popular answer in a survey. It is the only one of these averages for categories with no order, such as colours.

Example: In 2, 4, 4, 5, 9 the value 4 occurs twice and every other value once, so the mode is 4.

Range

range = xmax − xmin

In words: Subtract the smallest value from the largest.

Use it when a quick measure of spread is enough. It depends on the two most extreme values alone, so one outlier changes it; the standard deviation uses every value.

Example: 9 − 2 = 7

Variance and standard deviation

Sample: s² = Σ(x − x̄)² ÷ (n − 1)

s = √s²

Population: σ² = Σ(x − μ)² ÷ N

σ = √σ²

In words: Find the mean, subtract it from each value, square each difference and add the squares. Divide by n − 1 for a sample, or by N for a whole population, to get the variance; the standard deviation is its square root.

Use it when measuring how far values typically lie from the mean. Use the sample formulas (n − 1) when the data are a sample from a larger group, the usual case, and the population formulas (N) when they are the whole group. The standard deviation is in the units of the data.

Example: Mean: 24 ÷ 5 = 4.8
Deviations x − x̄: −2.8, −0.8, −0.8, 0.2, 4.2
Squares: 7.84 + 0.64 + 0.64 + 0.04 + 17.64 = 26.8
Sample: s² = 26.8 ÷ 4 = 6.7, s = √6.7 ≈ 2.5884
Population: σ² = 26.8 ÷ 5 = 5.36, σ = √5.36 ≈ 2.3152

More on each measure

To choose between the means, see how to choose the right mean; for the median and mode, mean vs median vs mode; for spread, quartiles and outliers, the statistics guide.

Download the formula sheet (PDF, 2 pages)

Cite this page

Formula Sheet: Mean, Median, Mode and Standard Deviation. https://meancalculator.com/formula-sheet.html