HistogramHow numbers spread.
Touching bars, one per range of a number, each as tall as the count of values inside it. The shape of your data in one picture.
- Answers How are the values spread?
- Your data many values of one number
- Values about 30 or more
- Bins about 5 to 20
- Excel and Power BI built in
What is a histogram?
A histogram splits the range of one number into equal bins and draws a bar for each, as tall as the count of values in it. The bars touch and stay in order from low to high, so together they show the shape of the data: where values bunch up, how far they spread and whether a long tail runs off to one side.
A pizza place timed its last 40 deliveries. The average says 40 minutes, but the histogram shows more: most orders arrive in 30 to 40 minutes, and a thin tail of late ones reaches 85.
Why use a histogram?
Because an average hides the shape, and the shape is often the story.
- Shows the spread. Tight or wide, one peak or two, a tail or none.
- Finds the typical range. The tallest bars are where most values sit.
- Shows the outliers. Lonely bars far from the rest stand out.
- Works on any amount of data. Forty values or forty million draw the same few bars.
How does a histogram work?
Four steps turn a list of numbers into its shape.
- Step 1 of 4One number, many valuesForty delivery times, each a dot on one line.
- Step 2 of 4Equal binsCut the range into equal steps of 10 minutes.
- Step 3 of 4Count each binEach bar is as tall as the number of orders in its bin.
- Step 4 of 4Write the countsThe numbers on top give the exact count.
The bins are equal and in order, which is why the bars touch: together they cover the whole range with no gaps.
What are the parts of a histogram?
Four parts, and each one has a job.
- Binone equal range of the number, here 10 minutes
- Barits height is how many values fall in the bin
- Count axishow many values, from zero
- Peakthe bin with the most values
How do you read a histogram?
Three looks, in this order.
- Find the peakThe tallest bar: 18 orders took 30 to 40 minutes.
- Read the spreadFrom the first bar to the last: 20 to 90 minutes.
- Look at the tailsThe bars thin out slowly to the right: a few orders were very late.
What kinds of histogram are there?
The same 40 orders, cut three ways.
- Kind 1Wide binsFour bars: simple, but the peak and the tail blur together.
- Kind 2Medium binsSeven bars: the peak and the tail both show.
- Kind 3Narrow binsFourteen bars: more detail, and more random bumps.
The bin width changes the picture, so try two or three before you pick one.
When should you use a histogram?
When you have many values of one number and want to see how they spread.
- one number has many values
- the shape matters (peaks, spread, tails)
- you want to spot outliers
- there are about 30 values or more
- the bars would be categories, not ranges (a bar chart)
- there are only a few values (a strip plot)
- you compare many groups (box plots)
Histogram or box plot?
A histogram for the shape, a box plot for the summary.
The histogram shows the full shape: one peak and a long tail to the right. The box plot shrinks the same orders to five numbers and a few dots, which is less detail but fits many groups side by side.
How do you make a histogram?
Built into Excel and Power BI.
In Excel, select the column of numbers and choose Insert > Statistic Chart > Histogram; right-click the axis to set the bin width. In Power BI, group the number into bins and draw a column chart with no gaps. The steps are in histograms in Power BI, and what a histogram shows explains why its bars touch.
What goes wrong with histograms?
The most common mistake, and its fix: a bin width that hides the shape.
- too wide and the shape flattens into a block
- too narrow and every value is its own spike
- about 5 to 20 bins
- round steps (5, 10, 25)
- try two widths and keep the one that tells the truth
| Mistake | Why it hurts | Fix |
|---|---|---|
| Bins too wide or too narrow | The shape disappears or turns to noise | About 5 to 20 bins, round steps |
| Gaps between the bars | It looks like categories | Bars that touch |
| Unequal bins | Wide bins look bigger than they are | Equal widths |
| Sorting the bars by height | The order of the number is lost | Keep low to high |
| Too few values | The shape is chance | About 30 values or more |
Every chart for “How are the values spread?”
- One groupDensity plotA smooth curve of where values bunch up.
- One groupStrip plotEvery value as a dot along one line.
- One groupBeeswarm plotDots that push apart instead of overlapping, so every value shows.
- Comparing groupsBox plotThe middle half as a box, the median as a line, the rest as whiskers.
- Comparing groupsViolin plotA box plot with the shape of the values drawn around it.
- Comparing groupsRidgeline plotDensity curves stacked and overlapping, one per group.
- Comparing groupsRaincloud plotHalf a violin, a box and the dots, in one picture.
- Comparing groupsPopulation pyramidTwo histograms back to back, by age and sex.
- CumulativeCumulative distributionA rising line of the share of values at or below each point.
- CumulativePareto chartBars from biggest to smallest with a running total line.
- Fit checkQ-Q plotDots along a line when the data fits the shape you expect.
Read on, step by step.
Does it fit your data? Try it.
Paste your table into Chart Compass, say what the chart should show, and see the charts that fit, drawn with your own numbers. It runs in your browser, so the data stays with you.