Overview

A frequency distribution groups your data into classes and counts how many values fall in each, along with percentages and running totals.

Paste your numbers, separated by spaces, commas or new lines. A column copied from a spreadsheet works too.

Worked examples

InputsResult
Your numbers12, 15, 15, 18, 21, 22, 22, 22, 25, 27, 28, 31, 34, 34, 38, 41, 45, 52Number of bins4Most common class: 22 to 32 (7 values)18 valuesmean 27.889lowest 12highest 5212 to 22: 5 (27.8%, cumulative 5)22 to 32: 7 (38.9%, cumulative 12)32 to 42: 4 (22.2%, cumulative 16)42 to 52: 2 (11.1%, cumulative 18)

How it works

Automatic bins use Sturges' rule, which suggests about 1 + log₂(n) groups, then round the width to a tidy number. Pick a number of bins yourself to get exactly that many equal groups. A value on the edge between two bins counts in the higher one, except the largest value, which stays in the last bin.

The formula

Bins ≈ 1 + log₂(n), width ≈ range ÷ bins
nHow many values you have
rangeHighest value minus lowest value

Practical tips

  • The percentages add up to 100, apart from rounding.
  • The last cumulative count always equals your total number of values.
  • Round class edges are easier to read, which is why automatic mode tidies them.

Frequently asked questions

What is relative frequency?

A class's count as a share of all the values, shown here as a percentage.

What is cumulative frequency?

The running total of counts up to and including that class.

How many classes should I use?

Automatic suits most data sets. Between 5 and 15 classes is a common range.