Skip to main content
KalkuNet

Grouped Data Calculator: Mean, Median, Mode

Mean, median, mode, quartiles and variance from a frequency table.

Calculated in your browserStatistics
Frequency tableOne row per class: lower limit, upper limit and frequency, from the smallest class up.
#Lower limitUpper limitFrequency
1
2
3
4
5
6
Mean
69.25
Median
68.8333
Mode
67.6429
Lower quartile (Q1)
60.5
Upper quartile (Q3)
78.5
Total frequency (n)
40
Variance (population, ÷ n)
163.4375
Standard deviation (population)
12.7843
Sample variance (÷ n − 1)
167.6282
Sample standard deviation
12.9471

Working table

ClassfLower boundaryMidpoint (x)f × xCumulative frequency
41–50340.545.5136.53
51–60750.555.5388.510
61–701260.565.578622
71–801070.575.575532
81–90680.585.551338
91–100290.595.519140

Working

  1. 1.Class width p = 10, boundary = limit ∓ 0.5
  2. 2.x̄ = Σfx ÷ n = 2,770 ÷ 40 = 69.25
  3. 3.Me = 60.5 + ((20 − 10) ÷ 12) × 10 = 68.8333
  4. 4.Mo = 60.5 + (5 ÷ (5 + 2)) × 10 = 67.6429

Formula and sources

x̄ = Σ(f × x) ÷ Σf, x = class midpoint Median = L + ((n/2 − F) ÷ f) × w; Qi = L + ((i·n/4 − F) ÷ f) × w Mode = L + (d₁ ÷ (d₁ + d₂)) × w L = lower class boundary, F = cumulative frequency before the class, w = class width, d₁/d₂ = frequency difference from the class before/after

  • Grouped-data statistics — upper-secondary mathematics

When to use the Grouped Data

  • High-school statistics problems

    Enter the frequency table as it appears in the book or exam. The calculator works out class boundaries, midpoints and cumulative frequencies in a working table.

  • Median and quartiles with class boundaries

    The median uses the lower boundary of the median class, the lower limit minus half a data unit. The steps are shown so you can match your teacher's method.

  • Decimal data

    For classes like 1.5–1.9 and 2.0–2.4 the gap between classes is 0.1, so boundaries move by 0.05. The calculator reads the gap from your table.

  • Population and sample variance

    School books usually divide by n for variance, while research uses n − 1 for a sample. Both are shown so you can pick the right one.

Frequently asked questions

How does this differ from raw data?

Grouped data assume values are spread within each class, so the results are estimates. When the raw data are available, the descriptive statistics calculator gives exact values.

What if two classes share the highest frequency?

The calculator uses the first class with the highest frequency. Such data are bimodal, and the second mode is worth computing from the other class.

How many classes should there be?

Sturges' rule suggests about 1 + 3.3 log n classes, so 7 classes for 60 values. All classes should have the same width.

How do I choose the class width?

Divide the range of the data by the number of classes and round up. Data from 41 to 100 in 6 classes give a width of 10, as in this calculator's example.

Why do the results differ from the raw data?

Every value in a class is represented by its midpoint, so the spread inside the class is lost. The difference is usually small when classes are narrow and the data are many.

Related calculators