Relative Frequency Calculator - Frequency Distribution
Enter any numeric data set and instantly get frequency, relative frequency, and cumulative frequency for each value — sorted and ready to use.
Type or paste your comma-separated numbers into the data field, then click Calculate to see a complete frequency distribution table.
Relative Frequency Calculator - Frequency Distribution
Enter any numeric data set and instantly get frequency, relative frequency, and cumulative frequency for each value — sorted and ready to use.
About the Relative Frequency Calculator
Frequency is one of the most fundamental concepts in statistics: it simply counts how many times each value appears in a data set. Relative frequency goes one step further by expressing each count as a proportion of the total number of observations, turning raw counts into fractions or percentages that remain meaningful regardless of how large or small the data set is. A frequency of 6 is hard to interpret in isolation; a relative frequency of 30% immediately tells you that nearly a third of all observations took this value.
The calculation is straightforward. For each distinct value in your data set, count the number of times it appears — this is the absolute frequency. Then divide that count by the total number of data points. Multiply by 100 to express it as a percentage. For a data set of 20 die rolls where the value 3 appears 4 times, the frequency is 4 and the relative frequency is 4/20 = 0.20, or 20%. Across all distinct values, the relative frequencies always sum to 1 (or 100%), which is a useful sanity check.
Cumulative frequency builds on this by adding up the frequencies as you move through the sorted values. The cumulative frequency at value v is the total number of observations that are less than or equal to v. Similarly, cumulative relative frequency (also called the empirical CDF) at v is the proportion of observations that are ≤ v. The cumulative relative frequency at the largest value in the data set is always exactly 1.0 (100%).
In education and assessment, relative frequency tables are used to describe the distribution of test scores, grades, or survey responses. A teacher with 30 students can instantly see what fraction earned each score level and whether the distribution is roughly symmetric, left-skewed, or right-skewed. In market research, relative frequencies summarise customer satisfaction ratings, product preferences, and demographic categories in a format that executives and clients can immediately understand.
In quality control and manufacturing, frequency distributions are the foundation of Statistical Process Control (SPC). By plotting the relative frequency of defect counts, dimensions, or process measurements over time, engineers can identify drift, unusual variation, or systematic shifts before they affect product quality. The Pareto chart — a bar chart sorted by frequency — is a standard tool for identifying the few defect types that account for most of the problems, based on the principle that 20% of causes often explain 80% of defects.
In probability theory, the Law of Large Numbers states that as the number of trials of a random experiment increases, the observed relative frequencies converge toward the theoretical probabilities. This connection makes the relative frequency table an empirical bridge between experimental data and theoretical probability distributions. With a small data set of 10 coin flips, the relative frequency of heads might be far from 0.5; with 10,000 flips it will be very close. The relative frequency calculator lets you explore this convergence directly with any data set you supply.
One practical tip: the calculator sorts values in ascending numerical order before computing frequencies. If your data set contains categorical labels rather than numbers, you will need to encode them as numbers (e.g., survey responses of Never/Sometimes/Always encoded as 1/2/3) before entering them.
Relative frequency examples
Worked examples from dice rolling, student scores, and survey data to show what the frequency distribution output looks like.
| Data Set | Sample Output | Notes |
|---|---|---|
| 1, 6, 2, 4, 3, 5, 2, 6, 4, 1 (10 die rolls) | Each value 1–6 appears; rel. freq. = count/10 | Simulating 10 die rolls. Values near 1/6 ≈ 16.7% confirm the die is approximately fair, though small samples show variation. |
| 8, 7, 9, 8, 10, 7, 5, 8, 9, 7, 8, 6, 10, 8, 7 (15 scores) | Score 8: freq=5, rel.freq=33.3%; Score 7: freq=4, rel.freq=26.7% | Student test scores out of 10. The most common score is 8 (33% of students) — the teacher can see the class is performing well overall. |
| 5, 4, 5, 3, 2, 4, 5, 1, 3, 5, 4, 4, 2, 5, 4 (15 survey responses) | Response 5: freq=5, rel.freq=33.3%; Response 4: freq=5, rel.freq=33.3% | Likert-scale survey (1=Never to 5=Always). Two-thirds of responses are 4 or 5, showing strong positive sentiment. |
| 0, 1, 0, 2, 0, 1, 1, 0, 3, 0, 1, 0, 1, 2, 0 (15 batch defect counts) | 0 defects: freq=7, rel.freq=46.7%; 1 defect: freq=5, rel.freq=33.3% | Manufacturing defect counts per batch. Nearly half of batches are defect-free; only 1 batch had 3 defects — a fairly low defect rate overall. |
How to use the Relative Frequency Calculator
- Enter your data set in the text area as a comma-separated list of numbers (e.g. 1, 2, 2, 3, 3, 3). Spaces around commas are ignored.
- Click Calculate. The tool counts the occurrences of each distinct value, sorts them in ascending order, and builds the frequency distribution table.
- Read the Frequency column for raw counts, the Rel. Freq. (%) column for proportions, and the Cumulative columns to see how the distribution builds up.
- Check that the relative frequencies sum to 100% — if they do not, verify that your data is correctly formatted with no stray text.
- Use the example buttons to load pre-built data sets and explore what the output looks like before entering your own data.
Relative Frequency FAQ
What is the difference between frequency and relative frequency?
Frequency is the raw count of how many times a value appears in a data set. Relative frequency is that count divided by the total number of observations, giving a proportion between 0 and 1 (or 0% and 100%). Relative frequencies are more useful when comparing data sets of different sizes because they normalise the counts to a common scale.
Must the data values be whole numbers (integers)?
No. The calculator accepts any numeric values, including decimals. However, keep in mind that if your data contains many unique decimal values (e.g. continuous measurements), the resulting frequency table will have many rows, each with a frequency of 1. For continuous data it is more informative to first group values into class intervals and use a grouped frequency distribution instead.
How do I use relative frequency to estimate probability?
The relative frequency of an outcome in an experiment is an empirical estimate of its probability. If you rolled a die 100 times and the number 4 appeared 18 times, the relative frequency is 18% — an estimate of the true probability of rolling a 4 (theoretically 16.7%). As the number of trials increases, the relative frequency converges to the true probability by the Law of Large Numbers.
What does cumulative relative frequency tell me?
Cumulative relative frequency at value v is the proportion of observations that are less than or equal to v. It is the empirical cumulative distribution function (CDF) of your data. For example, if the cumulative relative frequency at score 7 is 40%, it means 40% of students scored 7 or below. This is useful for finding median values, percentile ranks, and for comparing observed distributions against theoretical ones.
Why do my relative frequencies not sum exactly to 100%?
Rounding each relative frequency to a fixed number of decimal places before summing can introduce small discrepancies. The calculator displays rounded values in each cell but uses full-precision values internally. If you need exact 100% totals for a report, apply rounding only after you have summed the full-precision values and then adjust the last row by the residual rounding error.
Can I use this calculator for categorical (non-numeric) data?
The calculator requires numeric input. To use it for categorical data — such as colours, grades (A/B/C), or yes/no responses — assign each category a numeric code (e.g. 1 = Red, 2 = Blue, 3 = Green) and enter the coded values. The output will correctly show the frequency and relative frequency for each numeric code, which you can then relabel in your report.