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.
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.