Relative Frequency Calculator

Enter a class count and the total to find its relative frequency.

Result

28.33%
0.2833

How it is calculated

You enter two counts: value is the number of times the class occurs and total is the number of all observations in the data set.

relative frequency = value ÷ total
percentage = relative frequency × 100

The proportion is shown to four decimals and the percentage to two. Both entries must be whole numbers, since they are counts of observations: a fractional value or total such as 34.5 shows no result. The total must be above 0, and the value must be between 0 and the total inclusive; a class count larger than the total or a negative count also shows no result. A value of 0 gives 0.0000 (0.00%) and a value equal to the total gives 1.0000 (100.00%). The total must include every class, not only the ones you are interested in.

Worked example

In a survey of 120 customers, 34 chose the blue option. Relative frequency = 34 ÷ 120 = 0.2833 (shown as 0.2833). As a percentage: 0.2833 × 100 = 28.33%. In other words, a little over 28 out of every 100 respondents picked blue. If every class in the survey is listed, the relative frequencies of all classes add up to 1, or 100%.

Try this example →

Common mistakes

  • Dividing by the size of another class instead of by the grand total. Relative frequency compares one class with all observations; dividing by another class gives a ratio, not a frequency.
  • Entering a percentage or a proportion in the value field (for example 28.5 for 28.5 %). The field is a whole-number count, so a fractional entry shows no result, and a whole percentage would be read as a count and divided by the total.
  • Using the total of one subgroup (for example only the women in the survey) while the class count comes from everyone. The count must be part of the total.
  • Entering a class count larger than the total, which cannot be a share and produces no result.
  • Expecting the relative frequency of a small sample to equal the true probability. With few observations the figure can change a lot when more data arrives.

About this calculator

Relative frequency is how often a category or value occurs in a data set, expressed as a proportion of the total rather than a raw count: relative frequency equals the class count divided by the total number of observations, and multiplying by 100 turns it into a percentage. A class that appears 15 times in a sample of 60 has a relative frequency of 15/60 = 0.25, or 25%.

Unlike a raw frequency count, relative frequency lets you compare groups of different sizes on equal footing — comparing 15 out of 60 against 40 out of 200 only makes intuitive sense once both are converted to the same percentage scale. It is the statistical foundation of empirical probability — repeating an experiment many times and using the relative frequency of an outcome as an estimate of its true probability — and it is the basis for relative frequency tables and histograms used throughout introductory statistics, market research, and quality control reporting.

Was this helpful?

You can pick up to 3 reactions.

Comments

  • Be the first to comment.

Popular calculators

All Calculators