Histogram Maker

Paste your data to draw a histogram with a frequency table. Pick the bins yourself or let the calculator choose, then download the chart.

Separate numbers with commas, spaces or new lines. You can paste a column from a spreadsheet.

25 numbers read

Bins (class intervals)

Leave blank to start at the smallest value.

Test scores02468102109460708090100ScoreFrequency

Frequency table

BinFrequencyRelativeCumulative
60 to under 7028%2
70 to under 801040%12
80 to under 90936%21
90 to 100416%25

Each bin includes its lower edge and stops just under its upper edge. The last bin includes both edges, so the largest value is counted.

How the histogram was built

  1. Find the smallest and largest values and the range. There are n = 25 values.Range = 98 − 62 = 36
  2. Start at 60 and step by 10 until the largest value is covered. That takes 4 bins.
  3. Count how many values fall in each bin (the frequency), then draw one bar per bin with no gaps between bars, because the bins cover a continuous number line. Relative frequency is each count divided by 25.

How to make a histogram

  1. Enter your data. Type or paste the numbers. A column copied from a spreadsheet works.
  2. Choose the bins. Automatic splits the range into equal parts with Sturges' rule. Bin width lets you choose round intervals like 60 to 70, 70 to 80; set where the first bin starts so the edges land on round numbers.
  3. Label it. Add a title and a horizontal axis label so the chart makes sense on its own.
  4. Check the frequency table under the chart, then download the histogram as a PNG or SVG.

Worked example: 25 test scores

The example in the tool is 25 test scores from 62 to 98. With a bin width of 10 starting at 60, you get 4 bins:

  • 60 to under 70: 2 scores (8%)
  • 70 to under 80: 10 scores (40%)
  • 80 to under 90: 9 scores (36%)
  • 90 to 100: 4 scores (16%)

Most scores (19 of 25) fall in the 70s and 80s, with fewer at either end, so the shape has a single peak and is roughly symmetric.

Bin width formula

Equal-width bins

bin width = (largest value − first bin start) ÷ number of bins

Sturges' rule

number of bins k = ⌈log₂ n⌉ + 1

For a quick summary of the same data, use the mean, median and mode calculator or the standard deviation calculator. Working out a class's test results? The test score charts convert raw points to percentages.

Frequently Asked Questions

More statistics calculators