Excel has a built-in histogram tool that takes three steps

A histogram is a chart that shows how often values fall into different ranges. To create one in Excel, you enter your data, select it, and use the Chart feature to pick the histogram type. Excel then groups your values into bins (ranges) and displays them as bars. The whole process takes about two minutes once your data is in the spreadsheet.

The method differs slightly depending on which version of Excel you use, but the core steps are the same in Excel 2016 and later on both Windows and Mac. Older versions require a different approach using the Data Analysis Toolpak, which is covered below.

Key Takeaways

  • Enter your data in a single column, then select all the values including the header.
  • Go to Insert > Chart, choose the Histogram option, and Excel automatically bins your data into ranges.
  • Adjust the bin width or number of bins by right-clicking the horizontal axis and selecting Format Axis.
  • Excel 2013 and earlier require the Data Analysis Toolpak add-in, which you must turn on in Options first.
  • A histogram works best with at least 20 to 30 data points; smaller datasets may not show meaningful patterns.

Prepare your data in a single column

Start by putting all your values in one column. Add a header in the first cell — something like "Sales" or "Test Scores" — then list your numbers below it. Excel reads this header when you create the chart, so it will label your axis correctly.

You do not need to sort the data or remove duplicates. Excel handles that automatically when it builds the histogram. If your data is spread across multiple columns, copy it into a single column first.

Select your data and insert a chart

Click on the header cell and drag down to select all your data, including the header. Then go to the Insert tab at the top of the ribbon and click Chart. A dialog box opens showing different chart types.

Look for the histogram icon — it looks like a bar chart but with bars touching each other. Click it, and Excel shows you a preview of the histogram. The preview uses default bin sizes, which you can change later. Click OK to insert the chart into your spreadsheet.

Adjust bin width to show your data clearly

After Excel creates the histogram, the bars may be too wide or too narrow to show what you want to see. Right-click on the horizontal axis (the numbers along the bottom) and select Format Axis from the menu.

In the Format Axis panel that opens, look for "Bin width" or "Number of bins." If you want to control how wide each range is, enter a bin width — for example, entering 10 means each bar represents a range of 10 units. If you want to control how many bars appear, enter the number of bins instead. Click the X to close the panel and see your updated chart.

Start with the number of bins set to the square root of your data count. If you have 100 data points, try 10 bins. Adjust from there until the pattern is clear.

Excel 2013 and earlier: enable the Data Analysis Toolpak

Older versions of Excel do not have a built-in histogram chart type. Instead, you use the Data Analysis Toolpak, which is an add-in that must be turned on first.

On Windows, go to File > Options > Add-ins. At the bottom, select Manage: Excel Add-ins and click Go. Check the box next to Analysis Toolpak and click OK. On Mac, go to Tools > Add-ins and check Analysis Toolpak.

Once it is enabled, go to the Data tab and click Data Analysis. Select Histogram from the list, then specify your input range (the cells with your data) and an output location. Excel creates a frequency table and a chart. You can format the chart the same way as a modern histogram.

Common reasons histograms look wrong

If your histogram shows only one tall bar or many bars with no pattern, your bin size is wrong. Right-click the horizontal axis again and try a different bin width. Smaller bin widths create more bars; larger ones create fewer.

If Excel treats your data as text instead of numbers, the chart will not work. Make sure your data column contains only numbers, not text that looks like numbers. Delete any cells with words or symbols mixed in.

If you have very few data points — fewer than 15 or so — a histogram may not show a meaningful pattern. A histogram works best when you have enough data to fill at least five or six bins with multiple values each.

When to use a histogram instead of other charts

A histogram shows the distribution of a single set of numbers. Use it when you want to see whether your data clusters around one value, spreads evenly, or has multiple peaks. Examples include test scores across a class, daily sales totals over a month, or customer ages.

Do not use a histogram to compare two groups or to show change over time. For comparing groups, use a bar chart. For showing change over time, use a line chart. A histogram only works for one continuous variable.

Frequently Asked Questions

Can I create a histogram from data in multiple columns?

No, a histogram requires data in a single column. If your data is spread across multiple columns, copy all the values into one column first, then create the histogram from that column.

How do I change the colors of the histogram bars?

Right-click on one of the bars and select Format Data Series. Choose a fill color from the options. You can also add a border, change transparency, or apply a gradient if you want the chart to match your spreadsheet style.

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

A bar chart compares separate categories — like sales by region or product type. A histogram shows the distribution of one continuous variable across ranges. Histogram bars touch each other; bar chart bars have gaps between them.

Can I add a title or labels to my histogram?

Yes. Click the chart to select it, then look for the Chart Elements button (a plus sign) in the top right corner. Check the boxes for Chart Title, Axis Titles, and Legend to add them. Click each element to edit the text.

Why does my histogram have gaps between the bars?

Excel may have inserted the chart as a bar chart instead of a histogram. Right-click the chart, select Change Chart Type, and make sure Histogram is selected. If it is already selected, try deleting the chart and creating it again from the Insert menu.