Grouped Data Standard Deviation

Calculate the standard deviation for grouped frequency data.

Calculator by SuperCalX: formulas, worked examples and 250+ free calculators.

Your values

Midpoint (x)
Frequency (f)

Result

Enter your values and the result appears here.

Analysis

Interpretation of the current calculator output

Enter values to see detailed analysis and insights.

How to Use

Step-by-step instructions
  1. 1Enter the midpoint for each group.
  2. 2Enter the frequency for each group.
  3. 3Add more rows as needed.
  4. 4The calculator will compute the mean and standard deviation.

Grouped SD Formula

For grouped data, we use the midpoint (x) of each class and its frequency (f) to estimate the standard deviation.
s = sqrt[(Sum(fx^2) - (Sum(fx))^2/n) / (n-1)]

Variables:

fFrequency
xMidpoint of class
nTotal frequency

Example

Class Data

Inputs:

Group 1:Mid: 5, Freq: 2
Group 2:Mid: 15, Freq: 3

Steps:

  1. 1.n = 5
  2. 2.Sfx = 10 + 45 = 55
  3. 3.Mean = 11
  4. 4.Sum(fx^2) = 50 + 675 = 725
  5. 5.Variance = (725 - 55^2/5) / 4 = (725 - 605) / 4 = 30
  6. 6.SD = sqrt(30) = 5.477
Result:
SD = 5.477

Grouped Data Standard Deviation Calculator: the short answer

For grouped (frequency table) data, use each class midpoint x and frequency f: s = √((Σfx² − (Σfx)² ÷ n) ÷ (n − 1)). With classes 0–10, 10–20, 20–30 and 30–40 holding 4, 10, 8 and 3 values, n = 25, the estimated mean is 19.0 and the sample standard deviation about 9.13.

  • Midpoint = (lower limit + upper limit) ÷ 2.
  • Grouped results are estimates, because values inside each class are assumed to sit at the midpoint.
  • Mean of grouped data = Σfx ÷ Σf.

By the SuperCalX team · Reviewed by Dr. Ahmed Mortuza Saleque, founder and editor · Last reviewed · How we check our calculators

Worked frequency table

ClassMidpoint xffxfx²
0 – 105420100
10 – 2015101502,250
20 – 302582005,000
30 – 403531053,675
Total2547511,025

Mean, median and mode from a frequency table

Sheppard's correction (subtract w²/12 from the variance, where w is the class width) can reduce the bias from grouping when classes are wide.

  • Mean = Σfx ÷ Σf = 475 ÷ 25 = 19.0 for the example table.
  • Median class: the 12.5th value falls in 10 – 20 (cumulative frequencies 4, 14). Median ≈ 10 + ((12.5 − 4) ÷ 10) × 10 = 18.5.
  • Modal class: the class with the highest frequency, 10 – 20.

Worked examples

From the table

  1. Mean = 475 ÷ 25 = 19.0.
  2. Σfx² − (Σfx)²/n = 11,025 − 475² ÷ 25 = 11,025 − 9,025 = 2,000.
  3. s = √(2,000 ÷ 24) = √83.33.

s ≈ 9.13.

Common mistakes

  • Using class limits instead of midpoints.
  • Dividing by the number of classes instead of the total frequency.

Grouped Data Standard Deviation Calculator FAQ

Why is grouped SD only an estimate?

Grouping loses the exact values. With the raw data, the dispersion calculator gives the exact figure.

Should I use n or n − 1?

n − 1 for a sample, n for a complete population.

What if the classes have different widths?

The SD formula still works with midpoints. For histograms, plot frequency density (frequency ÷ width) so bar areas stay honest.

What is the variance of the example?

About 83.3, the square of 9.13.

How do I find the midpoint?

The midpoint is the average of the lower and upper class limits. E.g., for class 10-20, midpoint is (10+20)/2 = 15.

Add this calculator to your website

Teachers, bloggers and businesses can show the Grouped Data Standard Deviation Calculator on their own pages for free. Copy this code and paste it into your page's HTML:

Please keep the credit link so readers can find the formula, worked examples and guide.