Cumulative Frequency: Median and Quartiles Equation Solver with Worked Examples

On a cumulative frequency graph, the median is read at , the lower quartile at and the upper quartile at . Type “cumulative frequency 0-10: 4, 10-20: 9, 20-40: 15, 40-60: 7” and the solver estimates them.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Cumulative frequency: median and quartiles means

A cumulative frequency table adds the frequencies as you go up the classes. Plot each running total against the upper class boundary and join with a smooth curve.

To estimate the median, go up the vertical axis to , across to the curve, and down to the horizontal axis. Do the same for the quartiles.

The estimates come from interpolation within the class, so they are approximate. The quartiles give the interquartile range and the five-number summary.

This page is part of Charts and diagrams in Statistics. Topics that work alongside it: Quartiles and interquartile range, Five-number summary (box plot), Estimated mean of grouped data, Pie chart angle, Outliers (rule of thumb) and Moving average.

What is it used for?

A cumulative frequency graph shows the running total of frequencies. You can read the median and quartiles from it at ½, ¼ and ¾ of the total.

How to use cumulative frequency: median and quartiles

  1. Find the running totals.
  2. Plot (upper boundary, cumulative frequency).
  3. Read across from , , .
  4. Subtract the quartiles for the IQR.

Graph

Cumulative frequency curve0102030405060020406080100Cumulative frequency curvevaluecumulative frequencyGraph with x from 0 to 60 and y from 0 to 105. Shows cumulative frequency (6).

The curve rises slowly, then quickly, then slowly again. For a total of 100, the median is read from the curve at height 50.

Worked examples

The examples marked with a button were worked out by the solver on this page. You can try each one yourself.

Example 1: estimate the median and quartiles

Estimate the median and quartiles of the grouped data 0–10: 4, 10–20: 9, 20–40: 15, 40–60: 7.

Cumulative frequency Answer checked
Answer
median≈26, Q1≈15.277778, Q3≈37.666667\text{median} \approx 26,\ Q_1 \approx 15.277778,\ Q_3 \approx 37.666667
Cumulative frequencymedian0102030405060010203040Cumulative frequencyvaluecumulative frequencyGraph with x from -9 to 69 and y from -5.25 to 40.25. Shows cumulative frequency (5); point median at (26, 17.5).
  1. Add up the frequencies as you go
    Plot each cumulative frequency against the UPPER class boundary, starting from 0 with 0.
  2. Read off the quartiles
    On a cumulative frequency graph the positions are n/4, n/2 and 3n/4 (not (n+1)/4). Linear interpolation inside a class gives the estimates.
  3. Estimates
  4. Check: put each estimate back into the graph and read the cumulative frequency

Example 2: different classes

Find the median from this grouped data.

Cumulative frequency Answer checked
Answer
median≈21.666667, Q1≈14.166667, Q3≈27.222222\text{median} \approx 21.666667,\ Q_1 \approx 14.166667,\ Q_3 \approx 27.222222
Cumulative frequencymedian-5051015202530354045010203040Cumulative frequencyvaluecumulative frequencyGraph with x from -6 to 46 and y from -6 to 46. Shows cumulative frequency (5); point median at (21.6667, 20).
  1. Add up the frequencies as you go
    Plot each cumulative frequency against the UPPER class boundary, starting from 0 with 0.
  2. Read off the quartiles
    On a cumulative frequency graph the positions are n/4, n/2 and 3n/4 (not (n+1)/4). Linear interpolation inside a class gives the estimates.
  3. Estimates
  4. Check: put each estimate back into the graph and read the cumulative frequency

Example 3: a smaller data set

Find the median from this grouped data.

Cumulative frequency Answer checked
Answer
median≈10, Q1≈6.4285714, Q3≈14.166667\text{median} \approx 10,\ Q_1 \approx 6.4285714,\ Q_3 \approx 14.166667
Cumulative frequencymedian-2024681012141618202205101520Cumulative frequencyvaluecumulative frequencyGraph with x from -3 to 23 and y from -3 to 23. Shows cumulative frequency (5); point median at (10, 10).
  1. Add up the frequencies as you go
    Plot each cumulative frequency against the UPPER class boundary, starting from 0 with 0.
  2. Read off the quartiles
    On a cumulative frequency graph the positions are n/4, n/2 and 3n/4 (not (n+1)/4). Linear interpolation inside a class gives the estimates.
  3. Estimates
  4. Check: put each estimate back into the graph and read the cumulative frequency

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

Totals

frequencies 4, 9, 15, 7: n = 35

Cumulative 4, 13, 28, 35.

Median

position 17.5 in 20–40: 26

Interpolate.

Lower quartile

position 8.75 in 10–20: 15.28

Interpolate.

Upper quartile

position 26.25 in 20–40: 37.67

Interpolate.

Word problems

Find n, then read the median at n/2, Q₁ at n/4 and Q₃ at 3n/4, interpolating within the class that contains each position.

Median

Classes 0–10: 4, 10–20: 9, 20–40: 15, 40–60: 7. Estimate the median.

  1. n35
  2. Position17.5, in 20–40 (13 before)
  3. Interpolate20 + (4.5 ÷ 15) × 20 = 26
  4. Check: ✓26.

Lower quartile Higher

Estimate Q₁ for the same data.

  1. Position8.75, in 10–20 (4 before)
  2. Interpolate10 + (4.75 ÷ 9) × 10
  3. Check: 15.28 ✓15.28.

Upper quartile Higher

Estimate Q₃ for the same data.

  1. Position26.25, in 20–40 (13 before)
  2. Interpolate20 + (13.25 ÷ 15) × 20
  3. Check: 37.67 ✓37.67.

IQR Higher

Find the IQR of the estimates.

  1. Q₃ − Q₁37.67 − 15.28
  2. Check: 22.39 ✓22.39.

Common mistakes

Using n + 1

n + 1 ÷ 2 ✗

n ÷ 2 for grouped data ✓

Use n/2.

Not using cumulative totals

using f directly ✗

add up the frequencies ✓

Cumulative first.

Plotting at the lower bound

points at 0, 10, 20… ✗

plot at the upper class boundary ✓

Cumulative frequency is up to the boundary.

Not interpolating

median = 20 ✗

26 ✓

Interpolate within the class.

Exam tips

  1. Cumulative totals.
  2. n/2, n/4, 3n/4.
  3. Interpolate.
  4. Upper boundaries.
  5. IQR = Q₃ − Q₁.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. Frequencies 5, 10, 15: find n Foundation

30

2. n = 40: find the median position Foundation

20

3. n = 40: find the Q₃ position Foundation

30

4. CF 10 before a class, f = 20, lower bound 30, width 10, position 25: estimate the value Higher

37.5

5. Q₁ = 12.5 and Q₃ = 30.5: find the IQR Higher

18

6. n = 60: find the Q₁ position Higher

15

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Cumulative frequency
Running total.
Class boundary
Edge of a class.
Median
Value at n/2.
Quartile
Values at n/4, 3n/4.
Interpolation
Estimating within a class.
Ogive
The cumulative frequency graph.

Frequently asked questions

How do I find the median from a cumulative frequency graph?

Read across at n/2.

Where do I read the quartiles?

At n/4 and 3n/4.

Where do I plot the points?

At the upper class boundaries.

Why interpolate?

The exact values are unknown.

Which page covers quartiles?

quartiles and IQR.

Which page covers the five-number summary?

five-number summary.

More in Statistics and the formula sheets.