How to Calculate Relative Frequency

Divide each value's frequency by the total count. The formula, steps, worked examples for categories and numbers, and a check that totals equal 1.

What Relative Frequency Is Not

A common wrong assumption about relative frequency is that it is the same as probability. It is not, and the distinction matters the moment you try to use one to predict the other, which is why it helps to know how to calculate relative frequency. Relative frequency is a description of data you have already collected: it tells you what proportion of your observed values fall into a given class. Probability, by contrast, is a statement about the long-run behaviour of a random process. The two converge only when the number of observations grows very large, and even then they are never identical in practice. What you can say about relative frequency is that it is a pure number, a proportion between 0 and 1, and that every relative frequency in a table must sum to exactly 1 (or 100% if you convert to a percentage). That sum is not a convention; it is a logical necessity, because every observation must fall somewhere.

So when you learn how to calculate relative frequency, you are learning to summarise what happened in your sample, not to predict what will happen next. The formula itself is almost embarrassingly simple: divide the frequency of a specific value by the total number of observations. The difficulty is not the arithmetic; it is knowing which number goes where, and what the result means once you have it. Doing the calculation manually is the only way to see why the formula works. A calculator will give you an answer, but it will not show you that the denominator is the total count of everything, and that the numerator is a single class count. That understanding is what lets you catch a spreadsheet error before it poisons a report.

The Relative Frequency Formula

The relative frequency formula is written as relative frequency = f / n, where f is the frequency of the class you are looking at, and n is the total of all frequencies across every class. The variable f stands for the raw count of how many times a specific value or class appears in your dataset. The variable n is the sum of all those counts, which is also the total number of observations you started with. If you have 50 students and 12 of them prefer pizza, then f = 12 and n = 50, and the relative frequency of the pizza preference is 12 / 50 = 0.24. That decimal, 0.24, is a proportion: 24% of your students prefer pizza.

The formula requires n to be greater than zero. If n is zero, you have no data, and dividing by zero is undefined. That may sound too obvious to mention, but it is the first thing that goes wrong when someone feeds an empty list into a spreadsheet function. The formula also has no units. Relative frequency is a ratio of two counts, so the units cancel out. You are left with a pure number between 0 and 1, which you can express as a decimal, a percentage, or a fraction. The choice of representation does not change the underlying quantity. A relative frequency of 0.25, 25%, and 1/4 are all the same proportion, and the formula that produces them is identical in every case.

How to Find Relative Frequency: The Steps

Manual Calculation Steps

To find relative frequency by hand, you need a dataset and a way to count. The steps are always the same, and they work whether your data is a list of colours, a set of test scores, or a column of survey responses. Step one is to list every unique value or class that appears in your data. Step two is to count how many times each unique value appears; that count is the frequency, f. Step three is to add up all those frequencies to get the total, n. Step four is to divide each frequency by the total, giving you the relative frequency for that value. Step five, which is optional but common, is to multiply by 100 to express the result as a percentage.

Worked Example: Favourite Colours

Here is a worked example. Suppose you ask ten people their favourite colour and get these answers: red, blue, red, green, blue, red, blue, blue, red, green. The unique values are red, blue, and green. Red appears 4 times, blue appears 4 times, and green appears 2 times. So f for red is 4, f for blue is 4, and f for green is 2. The total n is 4 + 4 + 2 = 10. The relative frequency of red is 4 / 10 = 0.40, blue is 4 / 10 = 0.40, and green is 2 / 10 = 0.20. The sum of the relative frequencies is 0.40 + 0.40 + 0.20 = 1.00. If you convert to a percentage, you get 40%, 40%, and 20%, which sum to 100%. That check is the fastest way to know you have done the division correctly.

Relative Frequency Table Example

Favourite ColourFrequency (f)Relative Frequency (f/n)Percentage
Red40.4040%
Blue40.4040%
Green20.2020%
Total101.00100%

The table above shows the standard layout for a relative frequency table. The first column lists each unique value, the second column shows the raw frequency, and the third column gives the relative frequency as a decimal. The fourth column converts that decimal to a percentage. Notice that the relative frequency column sums to 1.00 and the percentage column sums to 100%. If either sum comes out to anything else, you have made an arithmetic error somewhere, and you should recheck your counts before proceeding.

Calculate Relative Frequency Percentage

To calculate relative frequency percentage, you take the relative frequency you already computed and multiply it by 100. That is the entire operation. If the relative frequency of a value is 0.24, then the percentage is 0.24 × 100 = 24%. The percentage is not a new calculation; it is the same proportion expressed on a scale from 0 to 100 instead of 0 to 1. The reason to bother with the percentage is that it is easier for most people to grasp. Saying that 24% of students prefer pizza is more immediately meaningful than saying the relative frequency is 0.24.

There is a common trap here that trips up students and spreadsheet users alike: confusing a percentage point increase with a percentage increase. If a relative frequency goes from 0.25 to 0.30, that is a 5 percentage point increase, not a 5% increase. The relative frequency rose by 0.05, which is 20% of the original 0.25. If you are reporting this change to someone else, you need to say which one you mean. A relative frequency of 0.30 is 20% larger than 0.25, but it is only 5 percentage points higher. Mixing those two up will distort your conclusion.

Cumulative Relative Frequency and When It Applies

Cumulative relative frequency is the running total of relative frequencies as you go down a list of values in order. You add each value's relative frequency to the sum of everything before it. The last cumulative relative frequency in the table must equal 1.00 (or 100%), because by the time you reach the bottom you have accounted for all the data. This column is only meaningful when your data has a natural order, such as test scores, ages, or income brackets. For nominal classes like colours or brand names, a cumulative column is nonsense; there is no meaningful way to say that red plus blue is 'less than' green.

When you do use cumulative relative frequency, be careful about rounding. If you round each relative frequency to two decimal places before adding them, your cumulative sum may not end exactly at 1.00. For example, if you have three values with relative frequencies 0.33, 0.33, and 0.34, the cumulative sums are 0.33, 0.66, and 1.00. But if the true relative frequencies are 1/3, 1/3, and 1/3, rounding each to 0.33 gives a cumulative sum of 0.99, not 1.00. The standard fix is to round only the final displayed value, not the intermediate steps. If you are doing this by hand, keep one or two extra decimal places in your working and round only the last number you write down.

Common Mistakes and How to Avoid Them

The most frequent error in calculating relative frequency is confusing it with plain frequency. Frequency is a count: 12 students prefer pizza. Relative frequency is that count divided by the total: 12 out of 50, or 0.24. If someone asks you for the relative frequency and you answer '12', you have given the frequency. If they ask for the percentage and you answer '24', you have given the relative frequency as a percentage. These are three different numbers that describe the same fact, and using the wrong one changes the meaning.

A second common mistake is forgetting that a value with zero occurrences still has a relative frequency. If a class does not appear in your data, its frequency is 0, and its relative frequency is 0 / n = 0. You should still list that class in your relative frequency table, because its absence may be meaningful. For example, if you surveyed 100 people and nobody chose 'other' as their gender, that tells you something about your sample. A third mistake is binning continuous data incorrectly. If your data is a range like '10-20', you need to decide whether the boundary value 10 belongs in the lower bin or the upper bin. Be consistent, and state your rule so someone reading your table knows how you treated the edges.

Why Bother Doing This by Hand?

You can always paste your data into a spreadsheet and let the software compute relative frequencies for you. The spreadsheet will be faster, and it will not make arithmetic errors. But there are two good reasons to do at least one example by hand. The first is that doing the calculation manually forces you to understand what the denominator is. In a spreadsheet, you type a formula like =A2/SUM($A$2:$A$10) and you get a number, but you may not notice that the SUM covers the wrong range. When you do it by hand, you count the observations yourself, and you see exactly which numbers feed the division.

The second reason is that hand calculation is the fastest way to catch a data entry error. If your relative frequencies do not sum to 1.00, something is wrong with either your counts or your total. A spreadsheet will happily give you a column of numbers that sums to 0.98, and it will not tell you which one is wrong. Doing one pass by hand, even for a small dataset, builds the habit of checking that sum. Once you have verified your method on one small set, you can trust the spreadsheet for the rest. This is the same reason you learn long division before you are allowed to use a calculator: the skill is not about the arithmetic, it is about knowing whether the answer makes sense.

Failure Case: When the Usual Route Is Closed

What do you do when you need a relative frequency and you cannot use the standard path? The standard path is a spreadsheet function like FREQUENCY in Excel or Google Sheets. That function is an array formula, which means you have to select a range of cells, type the formula, and press Ctrl+Shift+Enter instead of just Enter. If you press Enter by mistake, you get a #N/A error or only the first value. The fix is to select the full output range before you type the formula, or to use a dynamic array function if your spreadsheet version supports it. If you are on a phone or a tablet with no keyboard shortcut, the array formula route may be closed to you entirely.

The workaround is to count by hand. Take your raw data list and tally each value. If you have 50 observations, this takes five minutes. If you have 500, it takes longer, but it still works. The alternative is to use COUNTIF, which is a simple single-cell function that does not require array entry. For each class, you write =COUNTIF(range, category) and divide by the total. This is slower than FREQUENCY because you have to write one formula per class, but it is more robust to input mistakes and works on any device. If you are at 1am and the spreadsheet will not cooperate, this is the route that gets you to an answer before your deadline.

When Relative Frequency Fits and When It Does Not

Relative frequency suits anyone who needs to describe what proportion of a sample falls into each class. It is the natural tool for a student building a two-way table, a researcher summarising survey responses, or a manager comparing defect rates across production lines. If your question is 'what share of my observations are X?', relative frequency is the answer. It also suits anyone comparing two datasets of different sizes, because dividing by the total removes the effect of having more observations in one group than another.

It does not suit someone who needs to predict the future. Relative frequency describes the past; it does not tell you what will happen next. For prediction, you need probability theory, which models long-run behaviour under uncertainty. It also does not suit someone working with a tiny sample where a single observation shifts the proportion dramatically. If you have 10 observations and one changes, the relative frequency swings by 10 percentage points. In that situation, a single number can mislead more than it informs. Use relative frequency when you have enough data for the proportions to be stable, and when your question is about describing what you have observed, not about guessing what comes next.

Relative Frequency FAQ

What is the relative frequency formula?

The relative frequency formula is relative frequency = f / n, where f is the frequency of a specific value and n is the total number of observations.

How do I find relative frequency from a frequency table?

Take the frequency of the value you are interested in and divide it by the total of all frequencies in the table. That quotient is the relative frequency.

What does it mean if my relative frequencies sum to 0.98 instead of 1.00?

It means you have a rounding error. Each relative frequency was rounded before adding, and the rounding accumulated. Recompute using unrounded values, or adjust the last value to force the sum to 1.00.

How do I calculate relative frequency for grouped data like '10-20'?

Decide whether the boundary value belongs to the lower or upper bin, then count how many observations fall in each bin. Divide each bin count by the total. State your boundary rule so the table is reproducible.

What is the difference between relative frequency and probability?

Relative frequency describes data you have collected; probability models long-run behaviour of a random process. They converge as the number of observations grows, but they are not the same thing.

How many decimal places should I use?

Use one more decimal place than the raw data, or match the precision of the original measurements. For percentages, round to one or two decimal places. Keep extra digits in intermediate steps to avoid cumulative rounding errors.

Can I use a pie chart for relative frequencies?

Pie charts work for nominal data with few classes. For ordinal data or many classes, a bar chart is usually clearer because it makes the order and the magnitude of each proportion easier to read.

Frequently Asked Questions

What is the difference between relative frequency and plain frequency?

Frequency is the raw count of how many times a value appears, such as 12 students. Relative frequency is that count divided by the total number of observations, such as 12/50 = 0.24. They are different numbers describing the same fact, and confusing them changes the meaning.

What should the sum of all relative frequencies in a table equal?

The sum must equal exactly 1.00 (or 100% if expressed as percentages). This is a logical necessity because every observation must fall into some class, so if your sum is anything else, you have made an arithmetic error.

How do I calculate the relative frequency percentage from a decimal?

Multiply the relative frequency decimal by 100. For example, a relative frequency of 0.24 becomes 24%. This is not a new calculation, it is the same proportion expressed on a scale from 0 to 100 instead of 0 to 1.

What is cumulative relative frequency and when is it meaningful?

Cumulative relative frequency is the running total of relative frequencies as you go down an ordered list. It is only meaningful when data has a natural order like test scores or ages, for nominal categories like colours, a cumulative column makes no sense because there is no meaningful ordering.

What should I do if a class has zero occurrences in my data?

List it anyway with a frequency of 0 and a relative frequency of 0/n = 0. Its absence may be meaningful, for example, if 100 people surveyed and none chose 'other', that tells you something about your sample.

How do I handle rounding when computing cumulative relative frequencies?

Round only the final displayed value, not intermediate steps. If you round each relative frequency to two decimals before adding, your cumulative sum may not end at exactly 1.00, for example, three values of 1/3 each round to 0.33, giving a cumulative sum of 0.99 instead of 1.00.