Short answer
- To calculate relative frequency, divide the frequency of one category by the total number of observations. The formula is: Relative frequency = frequency of the category / total number of observations For example, if 12 out of 30 students travel to school by bus, the relative frequency for bus travel is 12 divided by 30, which equals 0.4, or 40 percent. A relative frequency can be written as a fraction, a decimal, or a percentage, and the relative frequencies for all categories in a complete set add up to 1 as a decimal, or 100 percent. If you need only one value, you need only one division. If you need the full picture, build a frequency table first, find the total, and then divide each frequency by that total.
Introduction
Counts alone often hide the story in a set of data. If one class has 12 students who walk to school and another has 18, the second count is larger, but walking may not be more popular there: the second class might simply be larger. Relative frequency solves this by expressing each count as a share of its own total, so groups of different sizes can be compared fairly. It appears throughout school statistics, surveys, sports records, science experiments, and reports that use phrases such as “4 in 10” or “35 percent of respondents.”
This guide covers the definition and formula, a step by step method, worked examples, cumulative relative frequency, grouped data, two way tables, and the difference between relative frequency and probability, ending with common mistakes and practice questions with answers.
1. What Relative Frequency Means
A frequency is a count. It tells you how many times a value or category occurs. A relative frequency goes one step further: it tells you what share of the whole that count represents. The word “relative” matters, because the count is always judged relative to the total.
Imagine a survey of 30 students about how they travel to school. The results are: walk 8, bus 12, car 6, and bike 4. Those four numbers are frequencies. They add up to 30, the total number of students surveyed. The relative frequency for bus travel is 12 out of 30, or 0.4, or 40 percent. In plain language, 4 in every 10 students in this survey travel by bus.
Relative frequency is useful because it makes comparison possible between groups of different sizes, turns counts into shares that are easy to describe, and connects directly to probability, since an observed share is often used as an estimate of how likely an outcome is (see Section 10).
A relative frequency is always between 0 and 1 as a decimal or fraction, or between 0 percent and 100 percent as a percentage. A value of 0 means the category never occurred; 1, or 100 percent, means every observation fell in it. Any value outside that range signals a counting or division error.
2. The Formula and Its Parts
The formula for relative frequency is:
Relative frequency = f / n
Here, f is the frequency of the category you are interested in, and n is the total number of observations in the data set. Some textbooks write the total as N for a whole population and n for a sample. The calculation is the same either way: divide the part by the whole.
Two details deserve attention first. The total must include every observation, including categories you are not focusing on; using only part of the data as the denominator inflates every result. Each observation should also be counted exactly once, or the total and every relative frequency built on it will be wrong.
You can leave the answer as a fraction, such as 12/30 or its simplified form 2/5, or write it as a decimal, 0.4, or as a percentage, 40 percent. Fractions keep the original counts visible, decimals suit further calculation, and percentages are usually easiest for a general reader.
3. How to Calculate Relative Frequency, Step by Step
Follow these steps in order, and check the total before you divide.
Step 1: Collect and organize the data. List every category or value, and count how many observations fall in each one. A simple tally or a frequency table keeps this organized and makes errors easier to spot.
Step 2: Find the total. Add all the frequencies together. This total is the denominator for every relative frequency in the set. Write it down and double check it against the number of observations you started with, if you know that number.
Step 3: Divide each frequency by the total. Work through the categories one at a time. Keep enough decimal places during the calculation so that rounding at the end does not distort the result.
Step 4: Convert the result to the form you need. To change a decimal to a percentage, multiply by 100. To change a percentage to a decimal, divide by 100. To keep a fraction, write the frequency over the total, and simplify only if that helps the reader.
Step 5: Check your work. Add the relative frequencies for all categories. As decimals, they should total 1, or very close to it if you rounded; as percentages, 100 percent, or very close to it. A sum far from either points to a missed category, a miscounted total, or a division slip.
4. Worked Example 1: A Survey Frequency Table
Return to the travel survey of 30 students: walk 8, bus 12, car 6, and bike 4.
First, confirm the total: 8 + 12 + 6 + 4 = 30. That matches the number of students surveyed, so the total is correct.
Next, divide each frequency by 30:
| Travel method | Frequency | Calculation | Relative frequency | Percentage |
|---|---|---|---|---|
| Walk | 8 | 8 / 30 | 0.2667 | 26.67 percent |
| Bus | 12 | 12 / 30 | 0.4 | 40 percent |
| Car | 6 | 6 / 30 | 0.2 | 20 percent |
| Bike | 4 | 4 / 30 | 0.1333 | 13.33 percent |
| Total | 30 | 1.0 | 100 percent |
The decimals in the table are rounded to at most four decimal places, and the percentages to two decimal places. Adding the decimals gives 0.2667 + 0.4 + 0.2 + 0.1333 = 1.0, and adding the percentages gives 100 percent. The check passes.
Bus travel is the largest share at 40 percent, followed by walking at about 27 percent, car travel at 20 percent, and cycling at about 13 percent. For comparison across schools, use shares, not counts: if a second school surveyed 200 students and found 70 bus riders, its bus share is 70/200, or 35 percent, which is smaller than this survey’s 40 percent even though its count is larger.
5. Worked Example 2: An Experiment and a Single Category
Relative frequency is not limited to surveys. It also describes the outcome of an experiment repeated many times. Suppose you spin a spinner 80 times and it lands on blue 28 times. You do not need a full table to find the relative frequency for blue. You need only the frequency for blue and the total number of spins:
Relative frequency of blue = 28 / 80 = 0.35 = 35 percent
The same method works for a coin, a die, or any repeated trial. If a coin is flipped 50 times and lands on heads 27 times, the relative frequency of heads is 27/50 = 0.54, or 54 percent, and of tails is 23/50 = 0.46, or 46 percent. The trap is using the wrong total: the denominator is the total number of trials, not the number of categories. For the spinner it is 80 spins, not the number of colors; for the coin it is 50 flips, not 2 sides.
6. Fractions, Decimals, and Percentages
Most confusion about relative frequency comes from moving between its three forms, so it helps to state the conversions plainly.
To convert a fraction to a decimal, divide the top number by the bottom number. For example, 3/20 becomes 0.15. To convert a decimal to a percentage, multiply by 100. For example, 0.15 becomes 15 percent. To convert a percentage to a decimal, divide by 100. For example, 25 percent becomes 0.25. To convert a percentage to a fraction, write the percentage over 100 and simplify if you wish: 25 percent is 25/100, or 1/4.
Rounding needs care. Statistics teaching material often suggests at least three decimal places for decimals, because heavier rounding can make the column total noticeably different from 1. Carry three or four decimal places while you work and round only the final answer, or the error can carry into cumulative totals.
Small rounding differences are normal and do not mean your work is wrong. For example, three categories with frequencies that each produce repeating decimals may give percentages such as 33.33 percent, 33.33 percent, and 33.33 percent, which add up to 99.99 percent rather than exactly 100 percent. The missing 0.01 percent is a rounding effect, not a missing observation. If the total is off by much more than a few hundredths, however, recheck the counts and the divisions.
7. Cumulative Relative Frequency
Cumulative relative frequency answers a different question: what share of the data falls at or below a given point? To find it, add the relative frequencies row by row, accumulating the total as you go down the table.
Use a grouped example to see it clearly. Suppose 35 students take a test, and their scores fall into these ranges: 0 to 49, 3 students; 50 to 59, 5 students; 60 to 69, 8 students; 70 to 79, 10 students; 80 to 89, 7 students; and 90 to 100, 2 students. The total is 3 + 5 + 8 + 10 + 7 + 2 = 35.
| Score range | Frequency | Relative frequency | Cumulative relative frequency |
|---|---|---|---|
| 0 to 49 | 3 | 0.0857 | 0.0857 |
| 50 to 59 | 5 | 0.1429 | 0.2286 |
| 60 to 69 | 8 | 0.2286 | 0.4572 |
| 70 to 79 | 10 | 0.2857 | 0.7429 |
| 80 to 89 | 7 | 0.2 | 0.9429 |
| 90 to 100 | 2 | 0.0571 | 1.0 |
| Total | 35 | 1.0 |
Each cumulative value is the sum of that row’s relative frequency and all the rows above it. In this table, the cumulative column adds the rounded relative frequencies shown, so the printed cumulative shares follow the rounded column rather than the exact fractions. For example, the cumulative value for 60 to 69 is 0.0857 + 0.1429 + 0.2286 = 0.4572, or 45.72 percent. That tells you that 45.72 percent of the students scored below 70. The final cumulative value is always 1 in exact arithmetic, or very close to it when values are rounded, because by the last row every observation has been included.
The table also answers questions such as “what share scored below 80?” (0.7429, or 74.29 percent, the cumulative value for the row ending just below 80) and “what share scored at least 70?” (1 - 0.4572 = 0.5428, or 54.28 percent).
8. Relative Frequency for Grouped Data
When data take many different values, listing every single value makes a table long and hard to read. Grouped data solves this by collecting values into intervals, called classes. The test score example above is grouped data: instead of listing every individual score, scores are grouped into intervals, with 0 to 49 as a single fail band and the remaining bands ten points wide.
The calculation does not change for grouped data. Count how many observations fall in each interval, add those counts to find the total, and divide each count by the total. The only new skill is assigning each observation to exactly one interval. Decide in advance how the boundaries work: for example, a score of 70 belongs in the 70 to 79 interval, not in the 60 to 69 interval, and a score of 79 also belongs in 70 to 79. Consistent boundaries prevent double counting and gaps.
Intervals are usually equal in width and cover the whole range without overlap, but this example deliberately uses unequal widths, with the wide 0 to 49 fail band alongside ten point bands, to keep the failing scores together. Very wide intervals hide detail, while very narrow ones recreate a long, noisy table. For most school and survey data, five to ten intervals give a readable summary, and the table should state them clearly.
9. Two Way Tables: Joint, Marginal, and Conditional Relative Frequency
A two way table organizes data by two categories at once, and relative frequency in such a table can be read in three ways. A small example makes the distinction clear.
Suppose 200 students are asked whether they prefer reading or sport in their free time, and the results are split by class into Group A and Group B:
| Reading | Sport | Row total | |
|---|---|---|---|
| Group A | 48 | 32 | 80 |
| Group B | 42 | 78 | 120 |
| Column total | 90 | 110 | 200 |
A joint relative frequency divides one cell by the grand total of 200. For example, the joint relative frequency for Group A and reading is 48/200 = 0.24, or 24 percent of all students surveyed. The four joint values are 24 percent, 16 percent, 21 percent, and 39 percent, and they add up to 100 percent.
A marginal relative frequency divides a row or column total by the grand total. For example, the marginal relative frequency for reading is 90/200 = 45 percent, and for Group A it is 80/200 = 40 percent. Marginal values describe one category on its own, ignoring the other dimension.
A conditional relative frequency divides a cell by its row or column total, not by the grand total, and it answers a “within this group” question. Among Group A students, the share who prefer reading is 48/80 = 0.6, or 60 percent. Among Group B students, the share who prefer reading is 42/120 = 0.35, or 35 percent. The difference between 60 percent and 35 percent is the kind of comparison two way tables are built for, and it is easy to miss if you only look at the grand total.
Always name your denominator: joint means divided by the grand total, marginal means a row or column total divided by the grand total, and conditional means a cell divided by the total for the group you are conditioning on. Stating it in words, such as “60 percent of Group A students,” prevents the most common two way table error.
10. Relative Frequency Versus Probability
Relative frequency and probability look alike, and they are closely related, but they are not the same thing. Probability, in its theoretical form, is worked out from a model before any experiment happens. For a fair coin, the theoretical probability of heads is 1/2, or 50 percent, because the coin has two equally likely sides. For a fair six sided die, the theoretical probability of rolling a six is 1/6, or about 16.67 percent.
Relative frequency, by contrast, is worked out from observed results after an experiment happens. If you roll a die 120 times and a six appears 22 times, the relative frequency of a six is 22/120, or about 18.33 percent. That observed value is close to the theoretical 16.67 percent, but it is not identical, because real experiments vary.
With more trials, the relative frequency usually moves closer to the theoretical probability, though it is never guaranteed to match it exactly. With few trials, it can be far away: three heads in four coin flips gives a relative frequency of 75 percent, which says nothing reliable about the coin. This is why sample size matters. A relative frequency from 1,000 trials is far more trustworthy as an estimate of probability than the same share from 10 trials, and any report that quotes a percentage without its sample size should be read with that caution in mind.
In practice, relative frequency is often used to estimate probability when no theoretical model exists. If a survey finds that 40 percent of respondents prefer an option, that share is the best available estimate for a similar respondent, provided the sample fairly represents the wider group. A biased or tiny sample gives a shaky estimate, no matter how neatly the percentage is calculated.
11. How to Read and Compare Relative Frequencies
Once a table is complete, read it in a disciplined order. First, check the total and confirm the shares add up to 1 or 100 percent. Second, find the largest and smallest shares, and note the gap between them. Third, compare shares within the same table before you compare across tables, and when you do compare across tables, compare relative frequencies, not raw counts, if the totals differ.
Percentages can mislead when totals are hidden: “60 percent prefer option A” means something very different for 20 people than for 2,000. Always ask for the total, the sample, and the question asked before treating a share as strong evidence, and remember that a share describes only the group actually observed.
For charts, label the total and the number of observations behind each percentage, so the reader is not asked to trust a share without its base.
12. Common Mistakes
The following mistakes appear again and again in student work and in published summaries. Avoiding them covers most of what can go wrong.
Mistake 1: Using the wrong total. The denominator is the total number of observations, not the number of categories, the largest frequency, or the total for a subgroup. In the travel survey, the denominator is 30 students, not 4 travel methods.
Mistake 2: Forgetting a category. A missing category makes the total too small and every relative frequency too large. Include every observation, even a small “none of these” group.
Mistake 3: Counting an observation twice. Overlapping categories, such as age groups that both include age 20, double count boundary cases. Define categories so each observation fits in exactly one of them.
Mistake 4: Confusing frequency with relative frequency. A frequency of 12 is a count; a relative frequency of 0.4 is a share. Saying “the relative frequency is 12” omits the division entirely.
Mistake 5: Confusing relative frequency with cumulative relative frequency. A row’s relative frequency describes that row alone; its cumulative value describes that row plus all rows above it.
Mistake 6: Mixing up joint, marginal, and conditional values in a two way table. Always state the denominator in words. If you cannot state it, you do not yet know which value you calculated.
Mistake 7: Rounding too early. Rounding before adding cumulative values can push the final total noticeably away from 1. Carry extra decimal places and round only at the end.
Mistake 8: Treating a small sample share as a firm probability. A share from a handful of trials can swing sharply with one more observation, so report the sample size alongside it.
13. Practice Questions With Answers
Try each question before reading its answer. Show the total, the division, and the check.
Question 1: A bag contains 12 red balls, 18 blue balls, and 10 green balls. What is the relative frequency of drawing a blue ball, assuming each ball is equally likely to be drawn from the bag?
Answer 1: The total is 12 + 18 + 10 = 40. The relative frequency for blue is 18/40 = 0.45, or 45 percent. The three shares are 30 percent red, 45 percent blue, and 25 percent green, which add up to 100 percent.
Question 2: A die is rolled 120 times and a six appears 22 times. What is the relative frequency of a six, and how does it compare with the theoretical probability of 1/6?
Answer 2: The relative frequency is 22/120, or about 0.1833, or 18.33 percent. The theoretical probability is 1/6, or about 16.67 percent. The observed value is a little higher, by about 1.66 percentage points, which is the kind of gap that ordinary variation in 120 rolls can produce. It does not by itself show that the die is unfair.
Question 3: A data set has three categories with frequencies 4, 9, and 7. Find each relative frequency and each cumulative relative frequency.
Answer 3: The total is 4 + 9 + 7 = 20. The relative frequencies are 4/20 = 0.2, 9/20 = 0.45, and 7/20 = 0.35. The cumulative values are 0.2, then 0.2 + 0.45 = 0.65, then 0.65 + 0.35 = 1.0. As percentages, the cumulative values are 20 percent, 65 percent, and 100 percent.
Question 4: In a survey, 28 out of 80 spinner spins land on blue. In a second test, 35 out of 100 spins land on blue. Which test gives the higher relative frequency for blue?
Answer 4: The first gives 28/80 = 0.35, or 35 percent. The second gives 35/100 = 0.35, or 35 percent. The relative frequencies are equal, even though the counts and totals differ. This is exactly why relative frequency, rather than raw counts, is the right tool for comparing groups of different sizes.
Frequently Asked Questions
What is relative frequency in simple terms?
Relative frequency is the share of a whole that belongs to one category. You find it by dividing the number of times that category occurs by the total number of observations. A result of 0.25 means one quarter of the observations fall in that category.
What is the formula for relative frequency?
Relative frequency equals the frequency of the category divided by the total number of observations, written as f / n. The answer can be left as a fraction, written as a decimal, or converted to a percentage by multiplying the decimal by 100.
How do you calculate relative frequency from a table?
First add all the frequencies to find the total. Then divide each frequency by that total, one row at a time. Finally, check that the relative frequencies add up to 1 as decimals, or 100 percent as percentages.
What is the difference between frequency and relative frequency?
Frequency is a count of how many times something occurs. Relative frequency is that count divided by the total, so it expresses the count as a share of the whole, and only the share can be compared directly across groups of different sizes.
Can relative frequency be greater than 1?
No, when calculated correctly. A category cannot occur more times than the total number of observations, so a value above 1 means the frequency or the total has been miscounted.
What is cumulative relative frequency?
It is the running total of relative frequencies down a table. Each row’s cumulative value adds that row’s relative frequency to all rows above it, showing what share falls at or below that row. The final row reaches 1, or 100 percent, in exact arithmetic, or very close to it when values are rounded.
How do you convert relative frequency to a percentage?
Multiply the decimal by 100: 0.35 becomes 35 percent. To go back, divide by 100.
Is relative frequency the same as probability?
Not exactly. Theoretical probability comes from a model before an experiment, while relative frequency comes from observed results after one. Relative frequency is often used to estimate probability, but the estimate is only as good as the sample behind it.
Why do my relative frequencies not add up to exactly 100 percent?
Usually because of rounding: values rounded to two decimal places can total 99.99 percent or 100.01 percent. A larger gap points to a missing category, a wrong total, or a division error.
When should I use relative frequency instead of a plain count?
Use relative frequency to compare groups of different sizes or describe a share. Use plain counts when the absolute number matters on its own, such as how many items to order, and give both when both matter.
Sources & references
- Statistics LibreTexts, "2.2: Organizing Data - Frequency Distributions" (Las Positas College, Math 40: Statistics and Probability; OpenStax based material), opened and read 26 Oct 2026: definition of relative frequency as the ratio of the number of times a value occurs to the total number of outcomes; formula relative frequency = f / n; conversion among fractions, decimals, and percentages; cumulative relative frequency as the accumulation of previous relative frequencies; grouped frequency distributions and class boundaries; and the check that relative frequencies sum to 1. URL: https://stats.libretexts.org/Courses/Las_Positas_College/Math_40%3A_Statistics_and_Probability/02%3A_Frequency_Distributions_and_Graphs/2.02%3A_Organizing_Data_-_Frequency_Distributions
- All worked examples, tables, practice questions, and answers in this article are original arithmetic by the writer, computed from the stated counts and checked by hand and by calculation on 26 Oct 2026. No third party figure, quotation, or study is quoted or relied on.