Histogram Maker

Make a histogram from a list of numbers: tidy bins (Sturges’ rule or your own count), counts per bin, and the mean, median and standard deviation. SVG or PNG.

Marks in the class test

Histogram of Value: 5 bins from 40 to 90; the most values, 8, are in 60 to under 70. Use the arrow keys to read each point, or switch to the table.

25 values · mean 63.08 · median 62 · standard deviation 12.315 · from 40 to 88. Each bin counts values from its lower edge up to, but not including, its upper edge.

Left empty, Sturges’ rule picks it; bins are rounded to tidy widths.

Paste numbers, one a line (a heading on the first line is fine), or copy a column from a spreadsheet.

How is this calculated?
Bins: Sturges’ k = ⌈log₂ n⌉ + 1, rounded to a tidy width. Mean = Σx ÷ n. Standard deviation = √(Σ(x − mean)² ÷ (n − 1)).

Runs in your browser — nothing you enter leaves this device.

About this tool

What it does

Histogram Maker shows how a set of numbers is spread out — marks in a class, delivery times, ages, prices. Paste the numbers, one a line (a heading on the first line is fine), or copy a column from a spreadsheet. The range is cut into bins of a tidy width — 1, 2, 2.5 or 5 times a power of ten — and a bar shows how many values fall in each, from its lower edge up to, but not including, its upper edge. The number of bins is chosen by Sturges’ rule (one more than the base-2 logarithm of the count) unless you set it; fewer bins show the overall shape, more show detail. Under the chart are the count, mean, median, sample standard deviation, lowest and highest, so you can see at a glance whether the values are symmetric (mean close to median) or skewed. Hover over a bar or use the arrow keys to read its range and count; the table lists every bin. Download as SVG or PNG, or the bins as CSV.

How to use it
  1. Paste the numbers, one a line, or a column of a table.
  2. Give the chart a title; set the number of bins if you want.
  3. Read the bins with the pointer or the arrow keys.
  4. Download SVG, PNG or CSV.
Limits and your data
  • The bin width is rounded to a tidy number, so you may get one bin more or fewer than you ask for.
  • One set of values at a time.
  • The standard deviation is the sample one (n − 1); for a whole population it is a little smaller.
  • The histogram and the figures are worked out in your browser. Your numbers are not uploaded or kept.

Questions

What is the difference between a histogram and a bar chart?

A histogram counts how many values fall in each range of one measure, with touching bars; a bar chart compares separate categories.

How many bins should I use?

Sturges’ rule, used by default, suits up to a few hundred values. Try more bins for detail, fewer for the overall shape.

Which bin does a value on an edge go in?

The one it starts: 60 goes in 60 to under 70, not 50 to 60.

What do mean and median tell me?

When they are close the values are spread evenly around the middle; a mean well above the median means a few high values pull it up.