median at 2 n , Q 1 at 4 n , Q 3 at 4 3 n ( reading across from the curve )
On this page
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 2 n , 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.
Estimating the median and quartiles from grouped data. Drawing and reading cumulative frequency curves. Finding the number of values above or below a given value.
How to use cumulative frequency: median and quartiles
Find the running totals. Plot (upper boundary, cumulative frequency). Read across from 4 n , 2 n , 4 3 n . Subtract the quartiles for the IQR.
Graph Cumulative frequency curve 0 10 20 30 40 50 60 0 20 40 60 80 100 Cumulative frequency curve value cumulative frequency Graph 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.
Try this in the solver: cumulative frequency 0-10: 4, 10-20: 9, 20-40: 15, 40-60: 7
Cumulative frequency Answer checked
Answer
median ≈ 26 , Q 1 ≈ 15.277778 , Q 3 ≈ 37.666667 \text{median} \approx 26,\ Q_1 \approx 15.277778,\ Q_3 \approx 37.666667 median ≈ 26 , Q 1 ≈ 15.277778 , Q 3 ≈ 37.666667 I QR ≈ 22.388889
Cumulative frequency median 0 10 20 30 40 50 60 0 10 20 30 40 Cumulative frequency value cumulative frequency Graph with x from -9 to 69 and y from -5.25 to 40.25. Shows cumulative frequency (5); point median at (26, 17.5). Add up the frequencies as you go
Plot each cumulative frequency against the UPPER class boundary, starting from 0 with 0.
class 0 − 10 10 − 20 20 − 40 40 − 60 f 4 9 15 7 upper bound ≤ 10 ≤ 20 ≤ 40 ≤ 60 cumulative frequency 4 13 28 35
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.
n = 35 : Q 1 at 4 n = 8.75 , median at 2 n = 17.5 , Q 3 at 4 3 n = 26.25
Estimates
Q 1 ≈ 15.277778 , median ≈ 26 , Q 3 ≈ 37.666667 , I QR ≈ 22.388889
Check: put each estimate back into the graph and read the cumulative frequency
C F ( 26 ) = 17.5 = 2 n ✓
Example 2: different classes Find the median from this grouped data.
Try this in the solver: cumulative frequency 0-10: 5, 10-20: 12, 20-30: 18, 30-40: 5
Cumulative frequency Answer checked
Answer
median ≈ 21.666667 , Q 1 ≈ 14.166667 , Q 3 ≈ 27.222222 \text{median} \approx 21.666667,\ Q_1 \approx 14.166667,\ Q_3 \approx 27.222222 median ≈ 21.666667 , Q 1 ≈ 14.166667 , Q 3 ≈ 27.222222 I QR ≈ 13.055556
Cumulative frequency median -5 0 5 10 15 20 25 30 35 40 45 0 10 20 30 40 Cumulative frequency value cumulative frequency Graph with x from -6 to 46 and y from -6 to 46. Shows cumulative frequency (5); point median at (21.6667, 20). Add up the frequencies as you go
Plot each cumulative frequency against the UPPER class boundary, starting from 0 with 0.
class 0 − 10 10 − 20 20 − 30 30 − 40 f 5 12 18 5 upper bound ≤ 10 ≤ 20 ≤ 30 ≤ 40 cumulative frequency 5 17 35 40
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.
n = 40 : Q 1 at 4 n = 10 , median at 2 n = 20 , Q 3 at 4 3 n = 30
Estimates
Q 1 ≈ 14.166667 , median ≈ 21.666667 , Q 3 ≈ 27.222222 , I QR ≈ 13.055556
Check: put each estimate back into the graph and read the cumulative frequency
C F ( 21.666667 ) = 20 = 2 n ✓
Example 3: a smaller data set Find the median from this grouped data.
Try this in the solver: cumulative frequency 0-5: 3, 5-10: 7, 10-15: 6, 15-20: 4
Cumulative frequency Answer checked
Answer
median ≈ 10 , Q 1 ≈ 6.4285714 , Q 3 ≈ 14.166667 \text{median} \approx 10,\ Q_1 \approx 6.4285714,\ Q_3 \approx 14.166667 median ≈ 10 , Q 1 ≈ 6.4285714 , Q 3 ≈ 14.166667 I QR ≈ 7.7380952
Cumulative frequency median -2 0 2 4 6 8 10 12 14 16 18 20 22 0 5 10 15 20 Cumulative frequency value cumulative frequency Graph with x from -3 to 23 and y from -3 to 23. Shows cumulative frequency (5); point median at (10, 10). Add up the frequencies as you go
Plot each cumulative frequency against the UPPER class boundary, starting from 0 with 0.
class 0 − 5 5 − 10 10 − 15 15 − 20 f 3 7 6 4 upper bound ≤ 5 ≤ 10 ≤ 15 ≤ 20 cumulative frequency 3 10 16 20
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.
n = 20 : Q 1 at 4 n = 5 , median at 2 n = 10 , Q 3 at 4 3 n = 15
Estimates
Q 1 ≈ 6.4285714 , median ≈ 10 , Q 3 ≈ 14.166667 , I QR ≈ 7.7380952
Check: put each estimate back into the graph and read the cumulative frequency
C F ( 10 ) = 10 = 2 n ✓
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.
n 35 Position 17.5, in 20–40 (13 before) Interpolate 20 + (4.5 ÷ 15) × 20 = 26 Check: ✓ 26.
Lower quartile Higher Estimate Q₁ for the same data.
Position 8.75, in 10–20 (4 before) Interpolate 10 + (4.75 ÷ 9) × 10 Check: 15.28 ✓ 15.28.
Upper quartile Higher Estimate Q₃ for the same data.
Position 26.25, in 20–40 (13 before) Interpolate 20 + (13.25 ÷ 15) × 20 Check: 37.67 ✓ 37.67.
IQR Higher Find the IQR of the estimates.
Q₃ − Q₁ 37.67 − 15.28 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
Cumulative totals.
n/2, n/4, 3n/4.
Interpolate.
Upper boundaries.
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.
Foundation Higher Mixed New question
Solve: …
The practice generator needs JavaScript.
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.