Relative Frequency Calculator

Enter any frequency table and instantly see relative frequencies, percentages, and cumulative relative frequencies.

Science Cumulative RF Auto bars
Rate this calculator · 4.0 (2)

Relative Frequency

RF, percent, cumulative · any class count · bar visual

Instructions — Relative Frequency Calculator

Relative frequency is the count for a class divided by the total. The calculator handles any number of classes and shows percentages, cumulative relative frequencies, and a quick bar visual.

  1. Enter the frequencies as a comma- or space-separated list (e.g. 15, 20, 10, 3, 2).
  2. Optionally label the classes (e.g. A, B, C, D, F). The number of labels should match the number of frequencies.
  3. Or try a preset: grade distribution, survey response, or star rating example.
  4. Read the table: each row shows the raw count (f), relative frequency (RF), percentage, cumulative relative frequency (CRF), and a proportional bar.

Formulas

All relative-frequency math is built on a single ratio.

Relative frequency: $$ RF_i = \frac{f_i}{n} $$

where fi is the count in class i and n is the total of all counts.

Relative frequency as percentage: $$ RF_i\% = \frac{f_i}{n} \times 100 $$

Cumulative relative frequency: $$ CRF_i = \sum_{j=1}^{i} RF_j = \frac{f_1 + f_2 + \ldots + f_i}{n} $$

Closure property: $$ \sum_{i=1}^{k} RF_i = 1.0 $$

If the relative frequencies do not add to exactly 1.0, a class is missing or the totals are wrong. The calculator forces the closure by dividing every count by the same total.

Reference

A class of 50 students has the following grade distribution. Relative frequencies show the share of each grade, and cumulative relative frequencies show "at least this grade or better".

GradeCount (f)RFPercentCum RF
A (90-100)150.3030%0.30 (30%)
B (80-89)200.4040%0.70 (70%)
C (70-79)100.2020%0.90 (90%)
D (60-69)30.066%0.96 (96%)
F (0-59)20.044%1.00 (100%)
Total501.00100%

Read the cumulative column as: 70 percent of students earned a B or better; 90 percent earned a C or better.

Article — Relative Frequency Calculator

Relative Frequency Calculator: Counts to Proportions

Relative frequency is the count for a class divided by the total: RF = fi / n. If 15 of 50 students earn an A, the relative frequency is 15 ÷ 50 = 0.30, or 30 percent. All relative frequencies in a complete table sum to exactly 1.0.

The metric exists to make different-sized samples comparable. A class with 15 A grades out of 50 (RF 0.30) outperformed a class with 25 A grades out of 100 (RF 0.25), even though the second class has more A grades in absolute terms. Relative frequency surfaces that difference; raw counts hide it.

What is relative frequency?

Relative frequency is the proportion of observations that fall into a particular class or category. It is always a number between 0 and 1 (or 0 and 100 percent when expressed as a percentage). Multiplied by the total sample size, it returns the original count.

The concept is older than the formal probability theory built around it. Demographers and bookkeepers were using ratios of counts to totals long before Jacob Bernoulli formalized the Law of Large Numbers in 1713. The modern formula simply gives the practice a name.

The relative frequency formula

One ratio drives the entire calculation.

Relative frequency cheat sheet
RF = f / n class count ÷ total
% = RF × 100 express as percentage
CRF = running total of RF cumulative
Σ RF = 1.0 closure check

If the relative frequencies fail to sum to 1.0, either a class is missing or the data has been mis-counted. The calculator enforces closure by computing a single total once and dividing every count by it.

Relative frequency vs frequency: when each matters

Frequency is the raw count: 15 students, 200 customers, 12 defective parts. It is fast to compute and easy to understand. Its weakness is incomparability. A factory producing 12 defects per shift is doing better than one producing 30 per shift only if both make the same number of parts. If the first makes 200 parts (6 percent defect rate) and the second makes 1000 (3 percent), the second is actually higher quality.

Relative frequency normalizes for sample size, which is why every quality-control system, every survey, every clinical trial reports proportions. Once you have RF, you can compare cohorts, periods, and groups regardless of how many observations each one contains.

Cumulative relative frequency in distributions

Cumulative relative frequency adds up the relative frequencies from the first class to the current one. It answers a different question: "what share of observations fall in this class or any earlier class?" CRF is fundamental to the empirical distribution function used in statistics and to the percentile rank used in education.

RF (in class)
0.40
B grade alone = 40%
CRF (B or better)
0.70
A + B = 70%

In a grade distribution where 30 percent earn an A and 40 percent earn a B, the cumulative relative frequency at the end of B is 0.70 — 70 percent of students scored at least a B. The final cumulative value is always 1.0 (every observation is included), which is a useful sanity check.

Relative frequency and empirical probability

Relative frequency is the bridge between sample data and probability. The Law of Large Numbers, proved by Jacob Bernoulli around 1700, states that the relative frequency of an event converges to its true probability as sample size grows. Flip a coin 10 times and you might see 7 heads (RF = 0.70). Flip 10,000 times and you will see around 5,000 heads (RF ≈ 0.50, the true probability).

Did you know

Insurance pricing and casino margins both depend on the Law of Large Numbers. An insurer cannot predict whether you will file a claim, but it can predict with extreme accuracy what fraction of a million policyholders will. Long-run relative frequency lets actuaries set premiums that cover claims plus expenses plus profit.

Where relative frequency is used in practice

  • Surveys — share of respondents picking each option (Yes 60%, No 30%, Undecided 10%)
  • Quality control — defect rate per production run, used in SPC charts
  • Grade distributions — share of students at each grade level
  • Marketing — conversion rate by channel, customer segment, or A/B variant
  • Risk analysis — historical loss-day frequency, used in VaR models
  • Healthcare — disease prevalence, treatment success rate, side-effect incidence
  • Sports analytics — shooting percentage, on-base percentage, completion rate
  • Polling — vote share, candidate preference, issue support

Relative frequency and sample size

A relative frequency is only as reliable as the sample it comes from. With n = 10, a single observation moves each RF by 0.10 — too much noise for inference. With n = 100, a single observation moves an RF by 0.01, which is usable but still wide. For polling-grade precision (a margin of error around ±3 percent at 95 percent confidence), you typically need n around 1,000.

Tip

The expected absolute margin of error on a proportion is approximately 1 / √n at 95 percent confidence. For n = 100, that is ±10 percent. For n = 1,000, it is ±3.1 percent. For n = 10,000, it is ±1 percent. Doubling precision requires quadrupling sample size.

Common relative frequency mistakes

Watch out for

Comparing relative frequencies from samples of very different sizes (a 50 percent rate based on n = 4 is meaningless), forgetting to include all classes (totals won't sum to 1.0), mixing cumulative and non-cumulative columns, and treating relative frequency as exact probability when the sample is small or unrepresentative.

The most frequent error is presenting RF without n. A headline like "60 percent of users prefer feature A" is uninformative if it's based on 5 users. A second common mistake is failing to include every class in the table: if your data has 12 percent missing or "other" responses, leaving them out forces the remaining classes to sum to 1.0 incorrectly and inflates every reported share.

The third mistake is over-interpreting cumulative relative frequency. CRF says "this share is at or below this class," not "exactly this share is here." A CRF of 0.70 at the end of B does not mean 70 percent earned exactly a B — it means 70 percent earned a B or better.

The fourth and final pitfall is dropping the denominator. Reporting "feature A wins 60-40" without disclosing whether the contest had 10 voters or 10,000 is not statistics, it is rhetoric. Always carry n alongside the percentages, and prefer to show the underlying counts when space allows.

FAQ

Divide the count for each class by the total of all counts. For 15 A grades out of 50 students total, RF = 15 ÷ 50 = 0.30 (30 percent). The calculator does this for every class at once and shows the percentages and cumulative relative frequencies.
Frequency is the raw count (15 students got an A). Relative frequency is that count divided by the total (15 ÷ 50 = 0.30, or 30 percent). Relative frequency makes it possible to compare groups of different sizes, because raw counts depend on sample size.
Every observation belongs to exactly one class. The sum of all counts equals the total (n), so the sum of all relative frequencies is n ÷ n = 1.0 (or 100 percent). If your totals do not match, you have either missed a class or made an arithmetic error.
Cumulative relative frequency (CRF) is the running sum of relative frequencies up to and including a given class. If RF for A is 0.30 and RF for B is 0.40, then CRF at the end of B is 0.30 + 0.40 = 0.70. CRF answers "what share is in this class or earlier?"
Relative frequency is the empirical estimate of probability. If a survey of 100 customers shows 65 prefer brand A, the relative frequency 0.65 estimates P(prefers A). The Law of Large Numbers guarantees that as sample size grows, the relative frequency converges toward the true probability.
No. By definition, relative frequency is bounded between 0 and 1 (or 0 and 100 percent). A value of 0 means the class never occurred; 1 means every observation fell into that class. Values outside that range indicate a calculation error or misuse.
Teachers use relative-frequency tables to compare classes of different sizes. A 50-student class with 15 A grades (RF 0.30) and a 100-student class with 25 A grades (RF 0.25) shows the smaller class actually had a higher A rate. Raw counts alone (15 vs 25) hide that finding.
Rule of thumb: relative frequency is reliable when the count for each class is at least 5 and the total sample is at least 30. With n = 10, a single observation shifts each relative frequency by 0.10 — too noisy for inference. For 95 percent confidence on a proportion within ±5 percent, you usually want n around 400.