Create a histogram

Applies To
Excel for Microsoft 365 Word for Microsoft 365 Outlook for Microsoft 365 PowerPoint for Microsoft 365 Excel for Microsoft 365 for Mac Word for Microsoft 365 for Mac Outlook for Microsoft 365 for Mac PowerPoint for Microsoft 365 for Mac Excel 2024 Word 2024 Outlook 2024 PowerPoint 2024 Excel 2024 for Mac Word 2024 for Mac Outlook 2024 for Mac PowerPoint 2024 for Mac Excel 2021 Word 2021 Outlook 2021 PowerPoint 2021 Excel 2021 for Mac Word 2021 for Mac Outlook 2021 for Mac PowerPoint 2021 for Mac Excel 2019 Word 2019 Outlook 2019 PowerPoint 2019 Excel 2016 Word 2016 Outlook 2016 PowerPoint 2016 Excel for iPad Excel for iPhone

A histogram is a column chart that shows frequency data. 

Note

This topic only talks about creating a histogram. For information on Pareto (sorted histogram) charts, see Create a Pareto chart.

Excel

Create a histogram chart

  1. Select your data.
    (This is a typical example of data for a histogram.)

    Excel histogram data example

  2. Select Insert > Insert Statistic Chart > Histogram.
    Histogram command reached from the Insert Statistic Chart button
    You can also create a histogram from the All Charts tab in Recommended Charts.

Tip

  • Use the Chart Design and Format tabs to customize the look of your chart.
  • If you don't see these tabs, click anywhere in the histogram to add them to the ribbon.

Configure histogram bins

  1. Right-click the horizontal axis of the chart, select Format Axis, and then select Axis Options.

    Format Axis command on shortcut menu

  2. Use the information in the following table to decide which options you want to set in the Format Axis task pane.

    Option Description
    By Category Choose this option when the categories (horizontal axis) are text-based instead of numerical. The histogram will group the same categories and sum the values in the value axis.
    Tip: To count the number of appearances for text strings, add a column and fill it with the value “1”, then plot the histogram and set the bins to By Category.
    Automatic This is the default setting for histograms. The bin width is calculated using Scott’s normal reference rule.
    Bin width Enter a positive decimal number for the number of data points in each range.
    Number of bins Enter the number of bins for the histogram (including the overflow and underflow bins).
    Overflow bin Select this check box to create a bin for all values above the value in the box to the right. To change the value, enter a different decimal number in the box.
    Underflow bin Select this check box to create a bin for all values below or equal to the value in the box to the right. To change the value, enter a different decimal number in the box.

    Format Axis task pane

Tip

To read more about the histogram chart and how it helps you visualize statistical data, see this blog post on the histogram, Pareto, and box and whisker chart by the Excel team. You may also be interested learning more about the other new chart types described in this blog post.

Formulas used to create histograms

Automatic option (Scott’s normal reference rule)

Formula for Automatic option Scott’s normal reference rule tries to minimize the bias in variance of the histogram compared with the data set, while assuming normally distributed data.

Overflow bin option

Formula for Overflow bin option Underflow bin option

Formula for Underflow bin option

Outlook, PowerPoint, Word

Create a histogram chart

  1. Select Insert > Chart.
  2. In the Insert Chart dialog box, under All Charts, select Histogram, and select OK.
  3. From the Chart Design tab, Select your Data.
    (This is a typical example of data for a histogram.)
    Excel histogram data example

Tip

  • Use the Design and Format tabs on the ribbon to customize the look of your chart.
  • If you don't see these tabs, click anywhere in the histogram to add them to the ribbon.

Configure histogram bins

  1. Right-click the horizontal axis of the chart, select Format Axis, and then select Axis Options.

    Format Axis command on shortcut menu

  2. Use the information in the following table to decide which options you want to set in the Format Axis task pane.

    Option Description
    By Category Choose this option when the categories (horizontal axis) are text-based instead of numerical. The histogram will group the same categories and sum the values in the value axis.
    Tip: To count the number of appearances for text strings, add a column and fill it with the value “1”, then plot the histogram and set the bins to By Category.
    Automatic This is the default setting for histograms.
    Bin width Enter a positive decimal number for the number of data points in each range.
    Number of bins Enter the number of bins for the histogram (including the overflow and underflow bins).
    Overflow bin Select this check box to create a bin for all values above the value in the box to the right. To change the value, enter a different decimal number in the box.
    Underflow bin Select this check box to create a bin for all values below or equal to the value in the box to the right. To change the value, enter a different decimal number in the box.

    Format Axis task pane

About histogram data

To create a histogram in Excel, you provide two types of data — the data that you want to analyze, and the bin numbers that represent the intervals by which you want to measure the frequency. You must organize the data in two columns on the worksheet. These columns must contain the following data:

  • Input data This is the data that you want to analyze by using the Histogram tool.
  • Bin numbers These numbers represent the intervals that you want the Histogram tool to use for measuring the input data in the data analysis.

When you use the Histogram tool, Excel counts the number of data points in each data bin. A data point is included in a particular bin if the number is greater than the lowest bound and equal to or less than the greatest bound for the data bin. If you omit the bin range, Excel creates a set of evenly distributed bins between the minimum and maximum values of the input data.

The output of the histogram analysis is displayed on a new worksheet (or in a new workbook) and shows a histogram table and a column chart that reflects the data in the histogram table.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in Communities.

See Also

Create a waterfall chart

Create a Pareto chart

Create a sunburst chart in Office

Create a box and whisker chart

Create a treemap chart in Office