Draw a histogram from raw data, choose the number of bins by a standard rule or by hand, and read the shape from the mean, median and skewness.
bins = ⌈log₂ n + 1⌉ · width = range ÷ bins
A histogram is a bar chart of numerical data in which each bar covers a range of values and its height shows how many observations fall in that range. The bars touch, because the ranges run on from one another without gaps.
It's the quickest way to see a distribution's shape. You can spot where values cluster, whether there's one peak or two, and whether a long tail stretches out on one side.
The number of bins changes the picture. Too few hide the detail; too many turn the chart into noise. Rules like Sturges' and Freedman–Diaconis give a sensible starting point, but it's worth trying more than one.
As given in Sturges (1926) and Freedman & Diaconis (1981). See Sources.
Because it uses the IQR, a few extreme values don't make the bins too wide. It suits skewed data and large samples.
A few slow deliveries (40, 45, 58) stretch the right tail and drag the mean above the median. For a "typical" delivery time, quote the median.
The three rules applied to the delivery-time data.
| Rule | Bins | Width | Bar heights | Best for |
|---|---|---|---|---|
| Sturges | 6 | 6.67 | 11 9 1 1 1 1 | Bell-shaped data, n under ~200 |
| Square root | 5 | 8 | 13 7 2 1 1 | Quick default (Excel uses it) |
| Freedman–Diaconis | 8 | 5 | 7 9 4 1 1 1 0 1 | Skewed data, outliers, large n |
Usually 5 to 20. Sturges’ rule gives 6 for 24 values and 11 for 1,000; Freedman–Diaconis adapts to the spread.
A histogram shows numerical ranges with touching bars; a bar chart shows separate categories with gaps between bars.
The higher bin, except the maximum, which goes in the last bin so nothing falls off the end.
Above about +0.5 is right-skewed, below −0.5 left-skewed, and in between roughly symmetric. It’s the sample-adjusted value Excel’s SKEW gives.
Their positions show skew at a glance: in a right-skewed histogram the mean sits to the right of the median.
This page uses equal bins from the minimum to the maximum. For tidy edges like 10, 20, 30, use the frequency distribution calculator.
Use relative frequencies on the same bins, or a frequency polygon or box plot, which overlay more cleanly.
Then there is one bar holding everything; there is no spread to show.
Related Tools