# Histogram

**Category:** charts  
**Short Description:** A chart that displays the distribution of continuous data using adjacent bars.  
**Last Updated:** 2026-05-30T00:00:00Z

## Definition

Histograms are statistical charts that show the frequency distribution of continuous data by dividing it into bins and displaying the count in each bin as adjacent bars.

## Examples

- Age distribution of users

## FAQs

### What is a histogram?

A histogram shows the distribution of a single continuous variable by dividing its range into consecutive intervals (bins) and drawing a bar for each, where the bar's height is the count of values falling in that bin. The bars touch because the bins are contiguous. It reveals the shape of the data — where values cluster, how spread out they are, whether the distribution is skewed, and where outliers sit.

### What's the difference between a histogram and a bar chart?

A bar chart compares values across distinct categories and its bars have gaps because the categories are separate. A histogram shows the distribution of one numeric variable by binning it into ranges, and its bars touch because the bins are continuous. Rule of thumb: categorical x-axis → bar chart; numeric x-axis split into ranges → histogram.

### How do I choose the number of bins?

Bin count controls the story. Too few bins hide the shape (everything looks like one lump); too many make it noisy and spiky. Common starting points are the square-root rule (bins ≈ √n) or Sturges' / Freedman–Diaconis rules, but the best move is to try a few widths and pick the one that shows the real structure without exaggerating noise. Keep bin widths equal so heights are comparable.

### What can I learn from a histogram's shape?

A lot: a single central peak suggests one dominant group; two peaks (bimodal) hint at two underlying populations; a long right tail means right-skew (a few large values), common in revenue or session-length data; a flat shape means values are spread evenly. The center tells you the typical value, the width tells you variability, and isolated bars far out flag outliers.

### Histogram vs box plot — when to use each?

A histogram shows the full shape of one distribution in detail — peaks, skew, gaps — which is ideal when the shape matters. A box plot summarizes a distribution into median, quartiles, and outliers, which is more compact and far better for comparing several groups side by side. Use a histogram to understand one distribution deeply; use box plots to compare many distributions at a glance.

## Related Terms

### Alternatives

- **[Box Plot](/resources/glossary/charts/box-plot)**: Shows statistical distribution details that histograms may obscure
- **[Density Plot](/resources/glossary/charts/density-plot)**: Provides smoother visualization of the distribution than histogram bins

### Similar Terms

- **[Vertical Bar Chart](/resources/glossary/charts/vertical-bar-chart)**: Uses similar bar visualization but for discrete categories rather than continuous bins
- **[Horizontal Bar Chart](/resources/glossary/charts/horizontal-bar-chart)**: Horizontal variant that can be better for comparing distribution categories

## Featured in topic hubs

- [Data Visualization](/resources/topics/data-visualization)
