Audited 31 Jul 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Frequency Distribution Calculator

Build a frequency table from a list of numbers: each distinct value with its count and percentage share, plus the total and number of distinct values.

Frequency Distribution Calculator

Observation count
6
Total number of values entered, n, counting every repeat.
Distinct values
3
Frequency table
1: 1 (16.666667%) 2: 2 (33.333333%) 3: 3 (50%)
Model scope
Exact-value ungrouped frequencies; it does not choose histogram bins, infer a probability distribution, weight observations, or treat rounded measurements as identical unless their entered numbers are identical.

Background.

Raw data rarely says much in the order it was collected. Fifty answers to a question about household size read as a jumble of 2s, 4s and 3s until someone tallies them: how many households of one person, how many of two, and so on. That tally, value by value, is a frequency distribution. It is usually the first step with a fresh column of numbers, because it shows at a glance which values are common, which are rare, and whether something odd — a 44 among the 4s — has crept in.

The table built here is the exact-value kind. Every distinct number in your list gets its own row with two figures: its frequency, the number of times it occurs, and its relative frequency, that count as a percentage of all observations. Rows run from smallest to largest, and alongside the table come the total number of observations and the number of distinct values.

Exact-value tables suit data that naturally repeats: numbers of children or cars, dice rolls, marks on a short quiz, shoe sizes, survey answers coded 1 to 5. They suit continuous measurements badly. Record forty heights to the millimetre and nearly every value will be unique, giving forty rows each with a frequency of 1 — correct, and useless. Data like that needs grouping into class intervals for a histogram, and choosing the interval width is a judgement left to you.

Values are matched by numeric value, not by how they were typed, so 2, 2.0 and 02 share a row while 3.1 and 3.14 stay apart. Entries must be separated by commas; a space alone does not split them. There is no weighting column either, so a value seen 50 times has to appear 50 times.

What is frequency distribution calculator?

A frequency distribution lists each value that occurs in a data set together with how often it occurs. The absolute frequency f of a value is its count; the relative frequency is f divided by n, the total number of observations, often written as a percentage. Relative frequencies across all rows add up to 100%. An ungrouped distribution, like the one produced here, gives every distinct value its own row, whereas a grouped distribution pools values into class intervals.

How to use this calculator.

  1. Type or paste the observations into the Values box, separated by commas. Line breaks are fine as long as a comma still sits between each pair of numbers; a comma left dangling at the end is reported as an empty item.
  2. Include every observation, repeats and all: a value that occurred 12 times must appear 12 times, because there is no separate count column.
  3. For measurements recorded to many decimal places, round them to a sensible precision first, otherwise most rows will hold a single observation.
  4. Read the observation count and the number of distinct values, then the table, where each row gives a value, its frequency and its percentage of the total.

The formula.

f_j = count(x_i = v_j), relative f_j = f_j/n

For each distinct value vⱼ, the frequency is fⱼ = count(xᵢ = vⱼ), the number of observations xᵢ equal to it. The relative frequency is fⱼ ÷ n, where n is the total number of observations; the table shows it multiplied by 100 as a percentage, to eight significant figures, so one-sixth appears as 16.666667%. The frequencies always sum to n, and the percentages to 100% apart from that final rounding. Equality is numeric: 2.50 and 2.5 are the same value, but 2.5 and 2.49 are not, so any rounding or grouping has to happen before the data is entered. The table holds everything the usual summaries need. The mode is the row with the largest frequency, and the mean is Σ vⱼ fⱼ ÷ n, the values weighted by their counts.

A worked example.

Example

Six values are entered: 1, 2, 2, 3, 3, 3. Counting them gives n = 6 observations, of which three are distinct. The value 1 occurs once, so its relative frequency is 1 ÷ 6 = 16.666667%. The value 2 occurs twice: 2 ÷ 6 = 33.333333%. The value 3 occurs three times: 3 ÷ 6 = 50%. The frequencies add back to 1 + 2 + 3 = 6, and the percentages to 100%. The table makes the mode obvious — 3, holding half the observations — and gives the mean without retyping anything: (1 × 1 + 2 × 2 + 3 × 3) ÷ 6 = 14 ÷ 6 ≈ 2.333. Running totals turn it into a cumulative distribution: 16.67% of the values are at most 1, and 50% are at most 2.

values1, 2, 2, 3, 3, 3

Frequently asked questions.

How do I get cumulative frequencies from the table?
Add the frequencies down the rows. For 1, 2, 2, 3, 3, 3 the running totals are 1, 3 and 6, or 16.67%, 50% and 100% as cumulative relative frequencies. Each figure is the share of observations at or below that value, which is what you need for percentiles and for drawing an ogive.
Why does almost every value in my table appear only once?
Your data is probably continuous and recorded with many decimal places, so exact repeats are rare. Round to a precision that matters for your question — whole centimetres, say, rather than millimetres — or group the values into intervals before entering them. An exact-value table only becomes informative when values genuinely recur.
Can I group my data into class intervals here?
Not directly, because no bins are chosen for you. A simple workaround is to replace each observation by the lower limit of its interval before entering it — 162.4 and 167.9 both become 160 for a 160–169 class — and the resulting table is then a grouped frequency distribution with one row per class.
Why were 2 and 2.0 counted as the same value?
Entries are compared as numbers, not as text, so 2, 2.0, 2.00 and 02 all mean the same quantity and share one row. Values that differ in any digit, such as 3.1 and 3.14, stay separate. If the extra digits in your data are just measurement noise, round them away before entering the list.
When should I look at relative frequency rather than the raw counts?
Whenever you compare data sets of different sizes. A value seen 12 times among 40 observations makes up 30% of that sample, while 15 times among 75 is only 20%, even though 15 is the larger count. Relative frequencies put both samples on the same scale.
Can I enter words or categories instead of numbers?
No, only numbers are accepted. For categorical answers, code each category as a number first — for example 1 for disagree, 2 for neutral and 3 for agree — and keep the key beside your results. The table then gives the count and percentage for each category exactly as it would for numeric data.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
f_j = count(x_i = v_j), relative f_j = f_j/n
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon