/

Frequency Distribution Calculator – Table Generator with Relative & Cumulative Frequency

Statistics Tool Suite

Frequency Distribution Calculator

Generate complete frequency distribution tables with relative frequency, cumulative frequency, tally marks, and histogram charts from raw data. Our free frequency table generator handles ungrouped and grouped data instantly.

Enter Your Data
Data type:
Class Width
Starting Value
Sort Order
Decimal Places
Total n
observations
Mean
S(x·f)/n
Mode
most frequent
Median
middle value
Range
max - min
= S(x × f) / n = —
Frequency Distribution Table
Value Tally Frequency (f) Relative Freq (f/n) Relative Freq % Cumulative Freq (cf) Cumulative %
Step-by-Step Working
How To Use
1
Paste raw data values — any delimiter works.
2
Choose Ungrouped or Grouped (class intervals).
3
Set sort order and decimal places.
4
Click Generate for the full table.
5
Toggle chart overlays above the histogram.
6
Download as CSV or PNG, or copy to clipboard.
Key Formulas
rf
Relative Freq = f ÷ n
cf
Cumulative Freq = running total of f
Mean = S(x × f) / Sf
Mo
Mode = value with highest f
R
Range = max - min
Grouped Frequency Distribution Calculator

Enter class intervals with frequencies. Midpoints, mean, median, standard deviation, and histogram are calculated automatically with full working shown.

Lower Bound Upper Bound Frequency (f)
Total n
Mean
Modal Class
Estimated Median
Std Dev s
Grouped Frequency Table
Class Interval Midpoint (x) Tally Frequency (f) x × f Relative Freq % Cumulative f Cumulative %
Full Working — Mean, Median, Standard Deviation
Grouped Histogram
Grouped Formulas
mp
Midpoint = (lower + upper) / 2
Mean = S(mp × f) / Sf
M
Median = L + ((n/2 - cf) / fm) × w
s
Std Dev = v[Sf(x-)² / Sf]
When to Use Grouped Data
1
Large datasets with many unique values
2
Continuous data (heights, weights, times)
3
Data spanning a wide numerical range
4
When approximate statistics are acceptable
Two-Way Frequency Table Calculator

Two-way frequency tables show the relationship between two categorical variables simultaneously. Enter row and column labels, fill in the cell frequencies, and all joint, marginal, and conditional frequencies are computed automatically.

Number of Rows (2–5)
Number of Columns (2–5)
1. Frequency Table with Row & Column Totals
2. Joint & Marginal Relative Frequencies (÷ Grand Total)
3. Conditional Relative Frequencies — Row %
4. Conditional Relative Frequencies — Column %
Explanation & Working
Two-Way Table Guide
J
Joint frequency: count in each cell
M
Marginal frequency: row or column total
JR
Joint relative freq: cell ÷ grand total
CR
Conditional (row %): cell ÷ row total
CC
Conditional (col %): cell ÷ col total
Number Frequency Counter

Paste any list of numbers — from homework, a spreadsheet, or a dataset. Instantly see how many times each value appears, ranked by frequency. Works with decimals, negatives, and any delimiter. Also detects text/word frequency automatically.

Text detected. Showing word frequency count instead of number frequency.
Sort By
Show Top
Number Counter Tips
1
Paste exam scores, survey responses, or any list.
2
Any delimiter works — commas, spaces, new lines.
3
Mode is highlighted with a gold badge.
4
Supports decimals and negative numbers.
5
Paste text for word/character frequency counting.
6
Download as CSV for Excel or Google Sheets.
Applications
Finding the mode of a dataset
Identifying outliers and rare values
Checking data distribution shape
Quality control — spotting defect patterns
Survey response tallying

What is a Frequency Distribution?

A frequency distribution organises raw data to show how often each value or range of values occurs in a dataset. It turns a messy list of numbers into a structured, readable summary table — one of the most fundamental tools in descriptive statistics. Our frequency distribution calculator and frequency table generator above handle everything automatically, from counting tallies to computing cumulative percentages and drawing the histogram.

Frequency (f) is the raw count of occurrences for each value. Relative frequency expresses each count as a proportion of the total (f ÷ n). Cumulative frequency is a running total — each row adds the current frequency to the sum of all previous frequencies. Cumulative relative frequency expresses that running total as a percentage, always ending at exactly 100%.

Example Frequency Distribution Table — Data: 2, 3, 3, 4, 4, 4, 5, 5, 6  (n = 9)

ValueFreq (f)Relative FreqRelative Freq %Cumulative fCumulative %
210.11111.1%111.1%
320.22222.2%333.3%
430.33333.3%666.7%
520.22222.2%888.9%
610.11111.1%9100.0%

How to Make a Frequency Table — Step by Step

Building a frequency table by hand requires seven systematic steps. Understanding each step helps you verify the calculator's output and answer exam questions correctly. The frequency table generator above completes all seven steps automatically from pasted raw data.

  1. Collect your raw data values. Example dataset: 5, 3, 7, 5, 2, 3, 5, 7, 3, 5 — total n = 10 observations.
  2. Identify all unique values and list them in ascending order: 2, 3, 5, 7.
  3. Tally each occurrence using tally marks grouped in fives for easy counting: 2?I, 3?III, 5?IIII, 7?II.
  4. Record the frequency f for each value: value 2 ? 1, value 3 ? 3, value 5 ? 4, value 7 ? 2. Check: 1+3+4+2 = 10 = n ?
  5. Calculate relative frequency = f ÷ n: 1/10 = 0.100, 3/10 = 0.300, 4/10 = 0.400, 2/10 = 0.200. Check: sum = 1.000 ?
  6. Calculate cumulative frequency by adding each frequency to the running total: 1, 4 (1+3), 8 (4+4), 10 (8+2). Final value must equal n ?
  7. Calculate cumulative relative frequency %: 10%, 40%, 80%, 100%. Final row must be exactly 100% ?

Shortcut: Paste your raw data into the Frequency Table tool above — all seven steps complete instantly with tally marks, relative frequencies, cumulative columns, step-by-step working, and an automatic histogram.

Relative Frequency Calculator — Formula and Examples

Relative frequency expresses each value's count as a proportion of the total observations. It is always between 0 and 1 (or 0% to 100%), and all relative frequencies in a table must sum to exactly 1.000 (100%). Relative frequency allows fair comparison between datasets of different sizes — a count of 10 means very different things in a dataset of 20 versus 2,000. Use the relative frequency calculator tab above to compute these automatically.

Relative Frequency = Frequency (f) ÷ Total observations (n)

Example 1 — Simple Dataset

A dataset has 20 observations. Value X appears 5 times. Relative frequency = 5 ÷ 20 = 0.250 = 25.0%. This means value X accounts for one quarter of all observations in the dataset. The remaining 15 observations make up the other 75%.

Example 2 — Class Survey

A class of 30 students was asked their favourite subject. 12 chose mathematics. Relative frequency = 12 ÷ 30 = 0.400 = 40.0%. Using relative frequency instead of raw counts allows fair comparison with other classes of different sizes — if another class of 50 had 18 maths-preferrers, their RF = 18/50 = 36%, making the first class more maths-inclined despite the smaller absolute count.

Example 3 — Quality Control

A factory inspected 500 items and found 15 defective. Defect relative frequency = 15 ÷ 500 = 0.030 = 3.0%. This is the relative frequency distribution of defects — expressed as a proportion it can be directly compared to industry benchmarks regardless of batch size. The relative frequency table calculator above computes this for any dataset with a full relative frequency distribution table output.

Cumulative Frequency Calculator — Formula and Examples

Cumulative frequency is a running total of frequencies from the first class through to the current class. Each row's cumulative frequency equals the sum of all individual frequencies up to and including that row. The final row's cumulative frequency always equals n exactly — if it does not, there is an arithmetic error. The cumulative frequency calculator above verifies this automatically.

Cumulative Frequency (cf) = Sum of all frequencies up to and including the current class

Cumulative Relative Frequency % = (cf ÷ n) × 100

Cumulative frequency has several important applications: finding the median (the value at the 50th percentile), locating quartiles (Q1 at 25%, Q3 at 75%), identifying percentiles, and building the ogive — the S-shaped graph of cumulative frequency that visually shows the distribution of data. Use the Cumulative Ogive toggle on the histogram above to see this curve.

Worked Example — Test Scores (n = 30)

ClassFreq (f)Cumulative Freq (cf)Cumulative %
50–593310.0%
60–6971033.3%
70–79122273.3%
80–8962893.3%
90–99230100.0%

Finding the median: n/2 = 15. The first class where cf = 15 is 70–79 (cf = 22). So the median lies in the 70–79 class. Using the interpolation formula: Median = 70 + ((15 - 10) / 12) × 10 = 70 + 4.17 = 74.2

Grouped Frequency Distribution Calculator

Use a grouped frequency distribution when your dataset is large, contains continuous measurements, or spans a wide numerical range where listing every individual value would be impractical. Raw values are sorted into equal-width class intervals (also called bins or classes). The class midpoint — calculated as (lower bound + upper bound) ÷ 2 — represents all values within that class and is used to estimate the mean, median, and standard deviation.

When choosing class width, aim for 5 to 20 classes. Too few classes lose important detail; too many classes defeat the purpose of grouping. A common guideline is class width ˜ Range ÷ vn. The Grouped Data tab above calculates all statistics automatically with full formula working shown.

= S(midpoint × f) / Sf

Median = L + ((n/2 - cfbefore) / fmedian) × w

s = v[Sf(x - )² / Sf]

Worked Example — Heights of 35 Students (class width = 5 cm)

Class (cm)Midpoint (x)fx × f(x - f(x - cf
150–155152.54610.0102.01408.044
155–160157.581260.027.04216.3212
160–165162.5132112.52.0726.9125
165–170167.571172.527.10189.7032
170–175172.53517.5102.13306.3935

S(x·f) = 5672.5  |  Sf = 35  |  Mean = 5672.5 / 35 = 162.07 cm
n/2 = 17.5 ? median class = 160–165 (cf before = 12, f = 13, w = 5)
Median = 160 + ((17.5 - 12) / 13) × 5 = 160 + 2.12 = 162.12 cm
Sf(x-)² = 1147.36  |  Variance = 1147.36/35 = 32.78  |  s = v32.78 = 5.73 cm

Two-Way Frequency Table Calculator

A two-way frequency table (also called a contingency table or cross-tabulation) simultaneously cross-tabulates two categorical variables, revealing the relationship between them. Each cell in the body of the table shows the joint frequency — the number of observations that fall into both that row category and that column category. Row totals and column totals show the marginal frequencies for each variable independently.

Three types of relative frequencies are derived from a two-way table: joint relative frequencies (each cell divided by the grand total), marginal relative frequencies (row or column totals divided by grand total), and conditional relative frequencies (cell divided by its row total for row %, or divided by its column total for column %). The Two-Way Table tab above calculates all four tables automatically.

Worked Example — 100 Students: Gender vs Favourite Subject

ScienceMathsEnglishRow Total
Male18221050
Female12152350
Col Total303733100

Joint RF (Male, Science) = 18/100 = 0.18 = 18%
Marginal RF (Male) = 50/100 = 0.50 = 50%
Conditional RF — Row % (Male who prefer Science) = 18/50 = 0.36 = 36%
Conditional RF — Col % (Science preferrers who are Male) = 18/30 = 0.60 = 60%

Number Frequency Counter

The number frequency counter is the fastest way to count how many times each unique value appears in any list of numbers. It is the highest-volume search term on this page because students constantly need to count repeated values from homework datasets, exam papers, and lab results without tedious manual tallying.

Simply paste your numbers into the Number Counter tab above — the tool handles any mix of commas, spaces, and new lines. It immediately produces a ranked frequency table showing each value, its count, relative frequency percentage, cumulative frequency, and cumulative percentage. A visual horizontal bar chart shows which values appear most frequently at a glance, with the mode (most frequent value) highlighted in gold.

The tool also detects non-numeric text automatically and switches to word frequency counting — paste a paragraph and instantly see which words appear most often, useful for text analysis and linguistics exercises.

Example use case: Paste 50 exam scores ? instantly see that 85 appears 7 times (14%), 78 appears 5 times (10%), mode = 85. Teachers share this tool with students because it eliminates manual counting errors entirely.

Worked Examples

1. How to create a frequency distribution table from raw data

List all unique values in ascending order, count how many times each appears using tally marks, record the frequency f for each value, then compute relative frequency as f/n and add cumulative columns. For data 2, 3, 3, 4, 4, 4 (n=6): unique values are 2, 3, 4 with frequencies 1, 2, 3. Relative frequencies are 1/6=0.167, 2/6=0.333, 3/6=0.500. Cumulative frequencies are 1, 3, 6. Cumulative percentages are 16.7%, 50.0%, 100.0%.

2. How to calculate relative frequency from a frequency table

Relative frequency = f ÷ n, where f is the frequency of that value and n is the total number of observations. The formula is: RF = f/n. If value 7 appears 4 times in a dataset of 25 observations: RF = 4/25 = 0.160 = 16.0%. All relative frequencies in the complete table must sum to exactly 1.000 (100%). Apply a rounding correction to the final row if needed to absorb any decimal remainder.

3. How to find cumulative frequency step by step

Cumulative frequency is built row by row by adding each frequency to the running total. Formula: cfi = fi + cfi-1. For frequencies 3, 5, 7, 4, 2: cumulative frequencies are 3, 8 (3+5), 15 (8+7), 19 (15+4), 21 (19+2). The final cumulative frequency (21) must equal n (total observations = 21). Cumulative relative frequency % = (cf/n)×100 = 14.3%, 38.1%, 71.4%, 90.5%, 100.0%.

4. How to calculate mean from a frequency distribution table

The mean from a frequency table uses the formula = S(x × f) / Sf. Multiply each value by its frequency, sum all products to get S(x·f), then divide by the total frequency Sf. Example — values 2, 3, 5 with frequencies 1, 3, 2: S(x·f) = 2(1)+3(3)+5(2) = 2+9+10 = 21; Sf = 1+3+2 = 6; = 21/6 = 3.500. For grouped data, substitute the class midpoint for x in the same formula.

5. How to find the median from a grouped frequency distribution

First find n/2 (the target cumulative frequency for the median). Locate the median class — the first class where cumulative frequency reaches or exceeds n/2. Then apply the interpolation formula: Median = L + ((n/2 - cfbefore) / fmedian) × w. For n=40, median class 160–165 with L=160, cfbefore=13, fm=14, w=5: Median = 160 + ((20-13)/14)×5 = 160 + 2.50 = 162.50. The Grouped Data tab calculates this with full substituted working shown.

6. How to make a frequency chart (histogram) from data

Draw a horizontal axis labelled with values or class intervals and a vertical axis labelled with frequency. Draw a bar above each value or class, with the bar's height equal to the frequency for that value. For continuous data, bars touch each other with no gaps; for discrete data, small gaps may separate bars. The Y-axis should start at zero and extend to the maximum frequency plus 10% headroom. The Frequency Table tool above generates a professional histogram automatically with gridlines, hover tooltips, and optional overlays for the frequency polygon and cumulative ogive.

7. How to create a two-way frequency table

List one categorical variable as rows and the second as columns. Count how many observations fall into each combination of row and column categories and enter these joint frequencies into the cells. Sum each row for row totals (marginal frequencies), sum each column for column totals, and confirm the sum of all row totals equals the sum of all column totals equals the grand total N. For a survey of 80 students (Male/Female × Maths/Science/English): if Male-Maths=15, Male-Science=12, Male-English=8 ? row total Male = 35.

8. How to calculate cumulative relative frequency

Cumulative relative frequency = (cumulative frequency ÷ n) × 100%. It represents the percentage of observations at or below each value. Formula: CRF% = (cf/n) × 100. For a dataset with n=50 and cumulative frequency 35 at value X: CRF% = (35/50)×100 = 70.0% — meaning 70% of all observations are equal to or less than value X. The final row always gives exactly 100.0%.

9. How to find the mode from a frequency distribution

The mode is the value with the highest frequency in the frequency distribution. In the frequency table, scan the frequency column (f) and identify the largest value. The corresponding data value is the mode. For a frequency table with values 3?f=4, 5?f=7, 6?f=3, 8?f=7: the dataset is bimodal (two modes: 5 and 8, both with f=7). For grouped data, the modal class is the class interval with the highest frequency. The Number Counter tool highlights the mode automatically in gold.

10. How to convert a frequency table to a relative frequency table

Divide each frequency f by the total n to get the relative frequency as a decimal: RF = f/n. Multiply by 100 for percentage form. Apply a rounding correction to the final row: compute the sum of all rounded relative frequencies; if it does not equal exactly 100%, add or subtract the difference from the last row. For example, with n=7 and frequencies 1,2,4: RF = 0.143, 0.286, 0.571; percentages = 14.3%, 28.6%, 57.1% — sum = 100.0% ?. The frequency table generator above applies this correction automatically.

Frequently Asked Questions

What is a frequency distribution?
A frequency distribution is a table that shows how often each value or range of values occurs in a dataset. It organises raw data into a structured summary with columns for frequency, relative frequency, and cumulative frequency. The frequency distribution calculator above generates this table automatically from any pasted raw data, handling both ungrouped (individual values) and grouped (class interval) data formats.
How do you calculate relative frequency?
Relative frequency = frequency (f) ÷ total number of observations (n). For example, if a value appears 6 times in a dataset of 30 observations: relative frequency = 6/30 = 0.200 = 20.0%. All relative frequencies in a complete frequency table must sum to exactly 1.000 (100%). If rounding causes the sum to differ slightly, absorb the remainder in the final row.
What is cumulative frequency?
Cumulative frequency is a running total of frequencies, where each row's cumulative frequency equals the sum of all individual frequencies from the first row through to that row. The final cumulative frequency in the table always equals n (total observations). Cumulative frequency is used to find medians, quartiles, and percentiles, and its graph — the ogive — produces the characteristic S-shaped curve. Toggle the Cumulative Ogive overlay on the histogram above to see this.
How do you make a frequency distribution table?
List all unique values, count how many times each appears (frequency), divide each count by n to get relative frequency, and add cumulative frequency as a running total. Verify: (1) all frequencies sum to n; (2) all relative frequencies sum to 1.000; (3) final cumulative frequency equals n; (4) final cumulative % equals 100%. Alternatively, paste your data into the frequency table generator above — it completes all steps automatically with tally marks and step-by-step working.
What is the difference between frequency and relative frequency?
Frequency is the raw count of how many times a value appears. Relative frequency is that count expressed as a proportion of the total (f/n). The key advantage of relative frequency is comparability: a frequency of 10 means very different things in a dataset of 20 vs. 2,000, but relative frequencies of 50% and 0.5% immediately show the difference. Use relative frequency when comparing distributions across datasets of different sizes.
How do you find the mean from a frequency table?
Use the formula: = S(x × f) / Sf. For each row in the table, multiply the value x by its frequency f. Sum all these products to get S(x·f). Divide by the total frequency Sf (which equals n). For grouped data, use the class midpoint as x. This formula is shown with fully substituted numbers in the Step-by-Step Working section after you generate a table above.
What is a grouped frequency distribution?
A grouped frequency distribution organises continuous or wide-ranging data into equal-width class intervals (bins) instead of listing every individual value. Each class has a lower bound, upper bound, class width, and midpoint = (lower+upper)/2. The midpoint is used in formulas for mean, standard deviation, and other statistics. The Grouped Data tab above calculates mean, median, and standard deviation from class intervals with complete formula working shown for each statistic.
How do you read a two-way frequency table?
Each interior cell shows the joint frequency — how many observations share both the row category and column category. Row totals (rightmost column) show the marginal frequency for each row variable. Column totals (bottom row) show the marginal frequency for each column variable. The grand total (bottom-right cell) equals the total number of observations N. To find conditional frequency: divide any cell by its row total (row %) or by its column total (column %) to see proportions within each category.
What is cumulative relative frequency?
Cumulative relative frequency is the running total of relative frequencies, showing what proportion of all observations fall at or below each value. It is calculated as cumulative frequency ÷ n, expressed as a percentage. The final row always shows exactly 100.0%. Cumulative relative frequency is used to read off percentiles directly: the value where cumulative relative frequency first reaches 50% is the median; at 25% is Q1; at 75% is Q3.
How do you draw a histogram from a frequency table?
Draw a horizontal axis for values or class intervals and a vertical axis for frequency. Draw a rectangular bar above each value or class with height equal to its frequency. For continuous grouped data, bars must touch (no gaps). The Y-axis should begin at zero. Scale the Y-axis to the maximum frequency plus approximately 10% headroom for readability. The Frequency Table tool above draws the histogram automatically from any pasted data, with auto-scaled axes, gridlines, hover tooltips, optional frequency polygon overlay, and cumulative ogive on a secondary axis.

Related Calculators

Share This Tool

Share the Frequency Distribution Calculator with students and teachers!

Free chemistry, physics, biology & math calculators with step-by-step solutions. Trusted by 100,000+ students. Solve any science problem instantly!

Newsletter

Subscribe to our Newsletter to be updated. We promise not to spam.

Copyright © 2026 SciSolveLab. All Rights Reserved

Scroll to Top