Histogram Mean Calculator

This histogram mean calculator estimates the mean, median, mode and standard deviation of grouped data from class boundaries and frequencies.

Checks on your data

  • These are estimates because the exact values inside each class are unknown, so every value is treated as sitting at the class midpoint.
  • The estimates improve with narrower classes.

Results

Estimated mean
25.6
Estimated median
25.555556
Estimated mode
25.384615
Modal class
20 to 30
Estimated standard deviation (sample)
10.956314
Estimated standard deviation (population)
10.846197
Total frequency n
50
Histogram of the grouped data
0510150 – 10: 4410 – 20: 111120 – 30: 181830 – 40: 121240 – 50: 5501020304050
Grouped frequency table
ClassMidpointFrequencyf × midpointCumulative
0 – 1054204
10 – 20151116515
20 – 30251845033
30 – 40351242045
40 – 5045522550
Show step-by-step solution
  1. Class midpoints: 5, 15, 25, 35, 45.
  2. Mean ≈ Σ(f × midpoint) ÷ n = 1280 ÷ 50 = 25.6.
  3. Median class is 20–30; median ≈ L + ((n/2 − CF) ÷ f) × w = 25.555556.
  4. Variance ≈ Σ f (midpoint − mean)² ÷ (n − 1) = 120.04082.
MeanΣ f·midpoint / n
Midpoint(lower + upper) / 2
MedianInterpolate in median class
ResultEstimate only

What Is Histogram Mean?

When data are shown in a histogram or grouped frequency table, you cannot recover the exact mean, but you can estimate it by treating every value as if it sat at its class midpoint.

Enter the class boundaries and the frequency of each class. The calculator gives the estimated mean, median, mode and modal class, the standard deviation, the total frequency and a table with midpoints, f × midpoint and cumulative frequencies, plus the histogram.

Below are the formulas, a worked example and answers on how accurate grouped estimates are.

How to Use the Histogram Mean Calculator

  1. Enter the class boundaries.
  2. Enter the frequency of each class.
  3. Read the estimated mean, median and mode.
  4. Check the grouped table.

Histogram Mean Formula

Estimated mean

xˉ≈∑f mn\bar x\approx\frac{\sum f\,m}{n}

Estimated median

median≈L+n/2−CFf w\text{median}\approx L+\frac{n/2-CF}{f}\,w

Histogram Mean Variables Explained

SymbolMeaningNotes
mClass midpoint
fClass frequency
nTotal frequency
wClass width

Histogram Mean Worked Example

Classes 0–10, 10–20, 20–30, 30–40, 40–50 with frequencies 4, 11, 18, 12, 5 have midpoints 5, 15, 25, 35, 45. Σ f·midpoint = 20 + 165 + 450 + 420 + 225 = 1280 and n = 50, so the mean ≈ 25.6.

With the example values loaded in the calculator above, the steps are:

  1. Class midpoints: 5, 15, 25, 35, 45.
  2. Mean ≈ Σ(f × midpoint) ÷ n = 1280 ÷ 50 = 25.6.
  3. Median class is 20–30; median ≈ L + ((n/2 − CF) ÷ f) × w = 25.555556.
  4. Variance ≈ Σ f (midpoint − mean)² ÷ (n − 1) = 120.04082.

Result: Estimated mean = 25.6; Estimated median = 25.555556.

How to Read a Mean Estimated From a Histogram

When data are grouped, the exact values are lost, so the calculator treats each value as sitting at the midpoint of its class. For classes 0–10 through 40–50 with frequencies 4, 11, 18, 12 and 5, the estimated mean is 1280 ÷ 50 = 25.6.

This is an estimate. The true mean could be a little higher or lower, depending on where the values sit inside each class. Narrower classes give a better estimate.

Where Histogram Mean Is Used

Grouped data

Estimate the mean, median and mode when you only have class boundaries and frequencies.

Exam questions

Check the midpoint working in a grouped frequency problem.

Reading charts

Recover summary statistics from a published histogram.

Spread

Get an estimated standard deviation from the same table.

Common Histogram Mean Mistakes to Avoid

  • Class midpoints stand in for the data, so the answer is always an estimate.
  • Boundaries must be in order, and there is one more boundary than there are classes.
  • Enter frequencies, not frequency densities. If your histogram has unequal class widths, convert density back to frequency first.
  • Open-ended classes have no midpoint. Choose a sensible cap before you calculate.

Histogram Mean Terms and Definitions

Midpoint
The centre of a class, used to represent all its values.

Histogram Mean FAQs

How do you find the mean from a histogram?

Find the midpoint of each class, multiply it by the class frequency, add the products and divide by the total frequency. In the example, 1280 ÷ 50 = 25.6.

Is the mean from a histogram exact?

No. Only the class a value falls in is known, so the midpoint is an approximation. The estimate improves as the classes get narrower.

How do I find the median from a histogram?

Find the class that holds the middle value and interpolate within it. The calculator gives the estimated median, found by interpolating inside the class that holds the middle value.

What is the modal class?

It is the class with the highest frequency. With equal class widths, it is the tallest bar.

Related calculators

Last updated 2026-11-09. See our disclaimer.