How to make a histogram in 4 easy steps
- Add your data. Type or paste your raw numbers into the data box, separated by commas, spaces or new lines. Copying a column from Excel or Google Sheets works too, or import an .xlsx / .csv file and pick a column.
- Choose your bins. The histogram maker picks sensible bins automatically. Open the Bins tab to use a different rule, or set the exact bin width, number of bins and starting value.
- Label and style it. Add a title and axis labels, pick a theme or color palette, and switch on extras like a normal curve, frequency polygon or mean line.
- Download or share. Export a sharp PNG, JPG, SVG or PDF up to 4K, copy the frequency table into your report, or send a link so others can open and edit a copy.
What is a histogram?
A histogram is a chart that shows the distribution of numerical data. The range of values is split into equal intervals called bins (or classes), and the height of each bar shows how many values fall into that bin. Because the bins sit next to each other on a continuous number line, the bars of a histogram touch, unlike the separate bars of a bar graph.
A histogram lets you see at a glance where most values lie, how spread out they are, whether the data is symmetric or skewed, and whether there are gaps or outliers. Read more in What is a histogram?
Why this is the easiest histogram maker online
- Paste anything: comma-, space- or line-separated numbers, a column from a spreadsheet, or an Excel / CSV file. Files are read on your device, never uploaded.
- Smart bins: Sturges, square-root, Rice, Scott and Freedman–Diaconis rules, rounded to clean numbers like 10, 20, 30, or your own bin width and start.
- Every histogram type: frequency, relative frequency, percent, density and cumulative.
- Built-in analysis: a frequency distribution table plus mean, median, mode, standard deviation, quartiles and skewness.
- Overlays: normal curve, frequency polygon or ogive, and mean and median lines.
- Compare data sets: up to 6 data sets on shared bins, overlapping, side by side or stacked.
- High-resolution export: PNG, JPG, SVG and PDF up to 3840px wide, with no watermark.
- Autosave, share & embed: your work is saved in your browser, and a link or embed code puts an interactive histogram on any website.
How to choose the number of bins
The number of bins changes the story a histogram tells. Too few bins hide the shape of the data; too many make it look noisy. These are the rules built into the tool:
| Rule | Formula | Best for |
|---|---|---|
| Sturges | k = log₂(n) + 1 | Small to medium, roughly normal data (the default) |
| Square root | k = √n | Quick estimates; used by Excel and many textbooks |
| Rice | k = 2·∛n | Larger data sets |
| Scott | h = 3.49·s·n^(−1/3) | Normally distributed data |
| Freedman–Diaconis | h = 2·IQR·n^(−1/3) | Skewed data and data with outliers |
Here n is the number of values, k the number of bins, h the bin width and s the standard deviation. Whatever rule you pick, try a few bin widths: if the overall shape stays the same, you can trust it.
How to read the shape of a histogram
- Symmetric (bell-shaped): most values sit in the middle and taper off evenly on both sides, like heights or exam scores. The mean and median are close together.
- Skewed right: a long tail stretches to the right, as with incomes, house prices or reaction times. The mean is larger than the median.
- Skewed left: the tail stretches to the left, as with scores on an easy test. The mean is smaller than the median.
- Bimodal: two peaks, which often means two different groups are mixed together.
- Uniform: bars of roughly equal height, as with rolls of a single fair die.
Load the examples under the data box (exam scores, reaction times, customer ages, dice rolls) to see each shape.
Histogram vs. bar graph
| Histogram | Bar graph |
|---|---|
| Shows the distribution of numerical (continuous) data | Compares separate categories |
| Bars touch, because bins cover a continuous range | Bars have gaps between them |
| Bin order is fixed by the number line | Bars can be sorted in any order |
| Built from raw values grouped into bins | Each bar is one value you already have |
Making a histogram in other software
| Software | How |
|---|---|
| Excel | Insert › Insert Statistic Chart › Histogram. Full Excel guide |
| Google Sheets | Insert › Chart, then Chart type › Histogram. Google Sheets guide |
| TI-84 | STAT PLOT › histogram › ZOOM 9. TI-84 guide |
| Desmos | histogram(L, 5). Desmos guide |
| Python | plt.hist(data, bins=10). Python guide |
Tips for a clear histogram
- Use clean bin edges. Widths like 5, 10 or 0.5 starting at a round number are far easier to read than 7.31.
- Keep bins equal width. Unequal bins distort the picture unless you switch the y-axis to density.
- Label the axes with units, such as “Height (cm)”, and say what the y-axis counts.
- State the sample size in the subtitle, for example “n = 120 students”.
- Compare fairly. When comparing groups with different sizes, use relative frequency or percent instead of counts.
Related tools: Relative Frequency Histogram, Cumulative Frequency Histogram, Double Histogram Maker, Histogram from a Frequency Table and Frequency Polygon Maker.