How to make a histogram
- Enter your data. Type or paste the numbers. A column copied from a spreadsheet works.
- 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.
- Label it. Add a title and a horizontal axis label so the chart makes sense on its own.
- 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.