Frequency Distribution Calculator

Paste raw data for a frequency table with relative and cumulative frequency (grouped into classes, or one row per value), or enter classes with frequencies for the grouped mean, median, mode and SD.

Separate numbers with commas, spaces or line breaks. You can paste a column from Excel or Sheets. 20 values read.

Try:
Class width
Grouped mean
38
Grouped median
37.5
Grouped mode
36.6667
SD (sample)
9.2338

Total frequency N = 20. Modal class 30–40. Population SD 9.

Jump to table

From the raw values exactly: mean 38, median 37.5, SD 8.8852. Grouped values are estimates.

0246820–30: 4 (20%)30–40: 8 (40%)40–50: 6 (30%)50–60: 2 (10%)2030405060Frequency

Frequency distribution table

ClassMidpoint mfRelative fCumulative fCum. relativef·mf(m − x̄)²
20 – 3025420%420%100676
30 – 4035840%1260%28072
40 – 5045630%1890%270294
50 – 6055210%20100%110578
Σ20100%7601,620
  1. Mean ≈ Σf·m ÷ N = 760 ÷ 20 = 38
  2. Median: N/2 = 10 falls in the class whose cumulative frequency first reaches it; interpolating gives 37.5.
  3. Variance ≈ Σf(m − x̄)² ÷ (N − 1) = 85.2632, so s ≈ 9.2338.

Explain my result

An AI tutor reads your numbers and explains what they mean in plain words. Sends only the inputs and results shown above.

Grouped data formulas

x̄ ≈ Σf·m ÷ Σf   ·   Median ≈ L + ((N/2 − CF) ÷ f)·h   ·   Mode ≈ L + (f₁ − f₀)/(2f₁ − f₀ − f₂)·h

Grouped formulas trade a little accuracy for a compact summary. If you still have the raw values, the exact mean, median and mode and standard deviation are always better; the raw-data mode here shows both side by side so you can see the size of the approximation. To chart the table, use the histogram maker.

Frequently asked questions

What is the difference between grouped and ungrouped frequency distributions?

An ungrouped frequency distribution lists every distinct value with its count, which suits discrete data with few distinct values such as dice rolls or quiz scores. A grouped distribution counts values in class intervals such as 20–30, which suits continuous data or data with many distinct values. Choose “One row per value” above for ungrouped.

How do you calculate relative frequency?

Divide each frequency by the total number of observations: relative frequency = f ÷ N. Multiply by 100 for a percentage. The relative frequencies always add up to 1 (100%). Cumulative relative frequency is the running total of these shares.

How do you make a frequency distribution table?

Find the range of the data, choose a number of classes (often 5 to 15), and pick a convenient class width that covers the range. List the class intervals, then count how many values fall in each. Add columns for midpoints, relative frequency (count ÷ total) and cumulative frequency as needed.

How do you find the mean of grouped data?

Multiply each class midpoint by its frequency, add these products, and divide by the total frequency: x̄ ≈ Σ(f·m) ÷ Σf. It is an estimate, because every value in a class is treated as if it sat at the midpoint.

How do you find the median of grouped data?

Locate the median class, the first class whose cumulative frequency reaches N/2. Then interpolate: median = L + ((N/2 − CF) ÷ f) × h, where L is the lower boundary of that class, CF the cumulative frequency before it, f its frequency and h the class width.

How do you find the mode of grouped data?

The modal class is the one with the highest frequency. An estimate of the mode inside it is L + (f₁ − f₀) ÷ (2f₁ − f₀ − f₂) × h, where f₀ and f₂ are the frequencies of the classes before and after.

What is relative and cumulative frequency?

Relative frequency is a class’s share of the total (frequency ÷ N), often shown as a percent. Cumulative frequency is the running total up to and including that class; the last one always equals N.

How do I calculate standard deviation from a frequency table?

Use the midpoints: s² ≈ Σf(m − x̄)² ÷ (N − 1) for a sample, or divide by N for a population, then take the square root. The table on this page shows both.