Data Trends>Data Visualization

How Do You Make a Histogram? Step-by-Step Guide, Examples, and Excel Tutorial

When working with numerical data, understanding how values are distributed is just as important as knowing their average. Two datasets might have the same average but very different distributions, making it difficult to identify patterns using summary statistics alone.

A histogram is a data visualization that groups numerical values into intervals, called bins, and uses adjacent bars to show how frequently values occur within each interval. It helps identify patterns, understand data distribution, recognize clusters, and detect potential outliers.

For example, an e-commerce company can use a histogram to understand how customer order values are distributed. The chart can reveal whether most customers make small purchases, whether a smaller group makes high-value purchases, or whether spending is spread across several ranges.

Histograms are widely used in business analytics, finance, healthcare, manufacturing, and scientific research to understand numerical data.

In this guide, you'll learn what a histogram is, how to make one step by step, how to create a histogram in Excel, and how to interpret different distribution patterns using practical examples.

What Is a Histogram and What Does It Show?

A histogram is a graphical representation of the distribution of numerical data. It groups individual observations into consecutive numerical intervals, known as bins, and displays the frequency of observations within each interval.

Each bar represents a numerical range, and its height indicates how many observations fall within that range.

Unlike a bar graph, which compares separate categories, a histogram shows how values are distributed across a continuous numerical scale.

For example, a company analyzing employee salaries might group salary values into ranges such as:

  • $20,000 to under $30,000.

  • $30,000 to under $40,000.

  • $40,000 to under $50,000.

  • $50,000 to under $60,000.

The height of each bar indicates how many employees fall within each salary range.

A histogram helps answer questions such as:

  • Where are most observations concentrated?

  • How widely are values distributed?

  • Is the distribution symmetrical or skewed?

  • Are there multiple groups within the dataset?

  • Are there unusually high or low observations?

What Are the Main Components of a Histogram?

Understanding the components of a histogram makes it easier to create and interpret one accurately.

1. X-axis

The horizontal axis represents the numerical variable being analyzed. It is divided into consecutive intervals called bins.

For example, if you're analyzing customer order values, the X-axis might show ranges such as $0–$50, $50–$100, and $100–$150.

2. Y-axis

The vertical axis represents the frequency or relative frequency of observations within each bin.

It may show:

  • Frequency: Number of observations in a bin.

  • Relative frequency: Proportion of observations in a bin.

  • Percentage: Percentage of observations in a bin.

  • Density: Frequency normalized by bin width and total observations.

3. Bins

Bins are the intervals used to group numerical values.

For example, a dataset containing delivery times could be divided into intervals of 0–10 minutes, 10–20 minutes, and 20–30 minutes.

4. Bars

Each bar represents the frequency or another chosen measure for a specific bin. The bars touch because the intervals are consecutive on a numerical scale.

5. Distribution shape

The overall arrangement of bars reveals how values are distributed. It can help identify concentration, spread, skewness, multiple peaks, and possible outliers.

When Should You Use a Histogram?

A histogram is useful when you want to understand the distribution of a numerical variable rather than compare separate categories.

Here are some common situations where histograms are particularly useful.

1. When do you need to understand data distribution?

Use a histogram when you want to understand how frequently different numerical values occur.

For example, a retailer can analyze customer purchase values to determine whether most transactions fall within lower, middle, or higher spending ranges.

This helps the business understand purchasing patterns and identify customer spending segments.

2. When should you use a histogram to identify outliers?

Histograms can help highlight unusually high or low values that fall away from the main concentration of observations.

For example, a delivery company might analyze delivery times and notice that most deliveries take between 20 and 40 minutes, while a small number take considerably longer.

These observations may require further investigation.

A histogram can highlight unusual values, although individual outliers are sometimes easier to identify using a box plot or by examining the underlying records.

3. When should you use a histogram to compare distributions?

Histograms can help compare numerical distributions across different groups when the same bin boundaries and scales are used.

For example, a business might compare customer order values across two geographic regions to understand whether purchasing behavior differs.

For multiple groups, consider overlaying distributions carefully or using separate charts with consistent axes.

4. When should you use a histogram to understand process variation?

Manufacturing and quality teams use histograms to understand how measurements vary across production processes.

For example, a manufacturer might analyze the diameter of components to determine whether measurements are concentrated around the desired specification or show excessive variation.

This can help identify processes that require further quality investigation.

How Do You Make a Histogram? A Step-by-Step Guide

Creating a histogram involves collecting numerical data, selecting suitable bins, calculating the frequency of observations, and plotting the results.

Let's walk through a practical example.

A customer support team wants to understand how long customers wait for their support requests to be answered.

It collects the following 20 response times, measured in minutes:

8, 12, 15, 18, 19, 22, 24, 25, 27, 29, 31, 33, 35, 37, 39, 42, 45, 48, 52, 58.

Here's how to create a histogram using this data.

Step 1: Collect and prepare your numerical data

Start by collecting the numerical observations you want to analyze.

Make sure:

  • All values represent the same measurement.

  • Units are consistent.

  • Duplicate records are handled appropriately.

  • Missing values are identified.

  • Incorrect or invalid entries are reviewed.

For this example, each observation represents the time taken to respond to a customer support request.

Step 2: Identify the minimum and maximum values

Determine the smallest and largest values in your dataset.

In our example:

  • Minimum response time: 8 minutes.

  • Maximum response time: 58 minutes.

The range is calculated as:

Range = Maximum value − Minimum value

Range = 58 − 8 = 50 minutes.

This tells us that the observations span 50 minutes.

Step 3: Choose the number of bins

Next, decide how many intervals you want to use to group the data.

The number of bins depends on:

  • Dataset size.

  • Data range.

  • Distribution characteristics.

  • Level of detail required.

For this example, let's use five bins.

A simple starting point for choosing the number of bins is Sturges' rule:

k = 1 + 3.322 log₁₀(n)

Where:

  • k = Number of bins.

  • n = Number of observations.

For our dataset of 20 observations:

k = 1 + 3.322 log₁₀(20)

k ≈ 5.32.

This suggests starting with approximately five bins.

Sturges' rule is a useful starting point, not a universal solution. Other approaches, such as the Freedman–Diaconis rule, may work better for larger datasets or skewed distributions.

Step 4: Calculate the bin width

Bin width determines the numerical range covered by each interval.

Use the following formula:

Bin width = Range ÷ Number of bins

For our example:

Bin width = 50 ÷ 5 = 10 minutes.

We can therefore create five consecutive intervals, each covering 10 minutes.

Step 5: Create a frequency table

Count how many observations fall within each interval.

For our support response-time dataset, the frequency table is:

Response time (minutes)Frequency
0 to under 101
10 to under 204
20 to under 305
30 to under 405
40 to under 503
50 to under 602
Total20

The intervals above use a width of 10 minutes. They produce six bins because the range is aligned to the chosen starting boundary of zero.

Notice that the frequencies add up to 20, matching the total number of observations.

This is an important validation step: every observation should belong to exactly one bin.

Step 6: Plot the histogram

Use the frequency table to create the histogram.

  • X-axis: Response-time intervals.

  • Y-axis: Frequency of responses.

  • Bars: Represent the number of observations in each interval.

The bars should touch because the bins represent consecutive numerical ranges.

Step 7: Interpret the histogram

Examine the overall distribution.

In this example, most support responses fall between 20 and 40 minutes.

The team can use this information to understand its typical response-time distribution and investigate whether longer response times indicate staffing or operational issues.

Key takeaway: A histogram transforms raw numerical observations into a visual distribution, making it easier to understand where values are concentrated and where further investigation may be needed.

How Do You Make a Histogram in Excel?

Microsoft Excel includes a built-in histogram chart feature that allows you to visualize numerical distributions without manually calculating every frequency.

Follow these steps.

Step 1: Organize your data in Excel

Enter your numerical observations into a single column.

For example, create a column titled Response Time and enter the 20 support response-time observations.

Step 2: Select your data

Highlight the numerical values you want to visualize.

Ensure that the selected range contains the correct observations and does not include unrelated information.

Step 3: Open the Insert tab

Navigate to the Insert tab in the Excel ribbon.

Look for the Insert Statistic Chart option.

Step 4: Select Histogram

Choose Histogram from the available statistical chart options.

Excel will automatically generate a histogram using its default bin settings.

Step 5: Adjust the bin settings

Right-click the horizontal axis and select Format Axis.

Under Axis Options, you can adjust:

  • Bin width.

  • Number of bins.

  • Overflow bin.

  • Underflow bin.

Review these settings rather than automatically accepting Excel's default intervals.

Step 6: Add chart titles and labels

Give the chart a descriptive title and label both axes.

For example:

  • Chart title: Distribution of Customer Support Response Times.

  • X-axis: Response Time (Minutes).

  • Y-axis: Number of Support Requests.

Step 7: Interpret the distribution

Examine the resulting histogram to identify where observations are concentrated, how widely values are distributed, and whether any unusual patterns are present.

Excel tip: Try a second reasonable bin width to see whether the main distribution pattern remains consistent. Avoid selecting bin settings simply because they produce a more visually appealing chart.

How Do You Choose the Right Histogram Bin Size?

Choosing the right bin size is one of the most important decisions when creating a histogram.

The bin size determines how much detail the chart displays and can significantly influence how the distribution appears.

If bins are too wide, meaningful variations may disappear. If they are too narrow, the chart may become noisy and difficult to interpret.

Here are three approaches to choosing an appropriate bin size.

1. Sturges' rule

Sturges' rule estimates the number of bins based on the number of observations.

Formula:

k = 1 + 3.322 log₁₀(n)

It is a simple starting point for relatively small datasets, although it may produce too few bins for large or highly skewed datasets.

2. Square-root rule

The square-root rule estimates the number of bins using the square root of the number of observations.

Formula:

k = √n

For example, if your dataset contains 100 observations:

k = √100 = 10 bins.

This provides a straightforward starting point when choosing the number of intervals.

3. Freedman–Diaconis rule

The Freedman–Diaconis rule calculates bin width using the interquartile range and the number of observations.

Formula:

Bin width = 2 × IQR × n⁻¹/³

Where:

  • IQR = Interquartile range.

  • n = Number of observations.

This method uses the spread of the middle 50% of observations and can be more robust when the dataset contains extreme values.

How do you know if your bin size is appropriate?

After choosing an initial bin size:

  1. Create the histogram.

  2. Examine whether the distribution is easy to understand.

  3. Check whether meaningful clusters or gaps are visible.

  4. Try a slightly wider or narrower bin size.

  5. Compare the resulting distributions.

  6. Choose the interval that communicates the underlying pattern without hiding important detail.

There is no single bin size that works for every dataset. The best choice depends on the data and the analytical question.

How Do You Read and Interpret a Histogram?

Once you've created a histogram, the next step is to understand what its shape reveals about the data.

Here are six characteristics to examine.

1. Center

The center indicates where most observations are concentrated.

For example, if a histogram of customer spending has its highest concentration around $50 to $100, this suggests that many customers make purchases within that range.

2. Spread

Spread describes how widely observations are distributed.

A narrow distribution indicates that values are relatively concentrated, while a wider distribution indicates greater variation.

For example, two production lines may have similar average output measurements but different levels of variation.

3. Symmetry

A symmetrical histogram has a distribution that is approximately balanced around its center.

Values are distributed in a similar pattern on either side of the central region.

4. Skewness

Skewness describes whether a distribution has a longer tail on one side.

Right-skewed distribution: Most observations are concentrated toward lower values, with a longer tail extending toward higher values.

Example: Household income distributions often show right skewness because a relatively small number of households have very high incomes.

Left-skewed distribution: Most observations are concentrated toward higher values, with a longer tail extending toward lower values.

Example: A very easy examination may produce scores concentrated near the maximum, with a smaller number of much lower scores.

5. Modality

Modality refers to the number of peaks in a histogram.

Common patterns include:

  • Unimodal: One prominent peak.

  • Bimodal: Two prominent peaks.

  • Multimodal: More than two prominent peaks.

For example, a customer support team may notice two peaks in response times. This could indicate separate groups of tickets handled by different support teams or under different service conditions.

Further investigation is needed to establish the reason for the pattern.

6. Gaps and potential outliers

Gaps indicate ranges with few or no observations.

Potential outliers are values that fall far away from the main concentration of observations.

For example, a manufacturing company may notice that most product measurements fall within a narrow range, while a few observations are significantly higher or lower.

These values may indicate unusual production conditions, measurement errors, or genuine process variation.

A histogram can help identify where to investigate, but examining the underlying observations is necessary to understand individual outliers.

What Are the Different Types of Histogram Distributions?

Histogram distributions can take different shapes depending on how numerical observations are spread across the dataset.

Understanding these shapes helps analysts recognize patterns and ask more informed questions.

1. Normal distribution

A normal distribution is approximately symmetrical and bell-shaped, with most observations concentrated around the center.

Values become less frequent toward both extremes.

Example: Certain physical measurements, such as adult heights within a sufficiently comparable population, may approximate a normal distribution.

2. Uniform distribution

A uniform distribution occurs when observations are spread relatively evenly across a range of values.

The bars have approximately similar heights.

Example: A simulated dataset generated from a uniform random distribution may have similar frequencies across equally sized intervals.

3. Right-skewed distribution

A right-skewed distribution has most observations concentrated toward lower values and a longer tail extending to the right.

Example: Customer transaction values may follow a right-skewed pattern when most purchases are relatively small and a few are significantly larger.

4. Left-skewed distribution

A left-skewed distribution has most observations concentrated toward higher values and a longer tail extending to the left.

Example: Test scores from an examination that most students find easy may show a left-skewed distribution.

5. Bimodal distribution

A bimodal distribution contains two prominent peaks.

Example: A company analyzing customer purchase amounts might identify two distinct spending groups: budget-conscious customers and premium customers.

6. Multimodal distribution

A multimodal distribution contains multiple prominent peaks.

Example: A business analyzing delivery times across several service types might observe multiple peaks corresponding to standard, express, and scheduled deliveries.

These patterns can help analysts identify potential segments within a dataset.

What Is the Difference Between a Histogram and a Bar Graph?

Histograms and bar graphs look similar because both use rectangular bars, but they represent different types of data and answer different analytical questions.

A histogram displays the distribution of continuous numerical data, while a bar graph compares separate categories.

FeatureHistogramBar graph
Data typeContinuous numerical dataCategorical data
Main purposeShow data distributionCompare categories
Horizontal axisNumerical intervalsCategory names
Bar spacingBars touchBars are separated
Bar orderFollows numerical orderCan be rearranged
ExampleDistribution of customer agesSales by product category

When should you use a histogram instead of a bar graph?

Use a histogram when you want to understand how numerical observations are distributed across ranges.

Use a bar graph when you want to compare separate categories, such as sales by department, website traffic by channel, or customers by region.

For example, comparing employee salaries across numerical ranges requires a histogram. Comparing the number of employees in different departments requires a bar graph.

Choosing the right visualization depends on the type of data and the question you want to answer.

For more guidance, explore different types of charts and graphs.

What Are the Advantages and Limitations of Histograms?

Histograms are useful for summarizing large numerical datasets, but they also have limitations that analysts should understand.

Advantages of histograms

1. Simplify large datasets

Histograms group individual observations into intervals, making large datasets easier to understand.

2. Reveal distribution patterns

They help identify the center, spread, skewness, and modality of a dataset.

3. Highlight potential outliers

Unusual concentrations or isolated ranges can indicate observations that deserve further investigation.

4. Support quality analysis

Manufacturing and operations teams can use histograms to understand process variation and measurement consistency.

5. Make comparisons easier

Histograms with consistent bin boundaries and scales can help compare distributions across different groups.

Limitations of histograms

1. Bin selection influences interpretation

Different bin widths can produce different visual patterns, potentially hiding or exaggerating certain features.

2. Individual values are not displayed

Histograms summarize observations into intervals, so exact data points cannot usually be identified from the chart alone.

3. Less effective for small datasets

With very few observations, a histogram may not provide enough information to reveal a meaningful distribution.

4. Multiple groups can create visual complexity

Comparing several histograms in one chart can become confusing, particularly when colors and labels are not clearly differentiated.

5. They do not explain causation

A histogram shows how values are distributed but does not explain why a particular distribution exists.

What Are the Best Practices for Creating an Effective Histogram?

A well-designed histogram should make the distribution easy to understand without introducing unnecessary visual complexity.

Follow these best practices:

1. Choose meaningful bin intervals

Use consistent bin widths unless there is a specific analytical reason to use another approach.

Ensure that the intervals match the scale and context of the data.

2. Label both axes clearly

Include descriptive labels and measurement units.

For example, use Response Time (Minutes) instead of simply Time.

3. Use an appropriate scale

Avoid misleading axis scales that exaggerate or hide variation.

The frequency axis should begin at zero when displaying counts or percentages.

4. Avoid unnecessary colors

Use a simple color palette unless color represents a meaningful additional variable.

If different colors indicate categories, include a clear legend.

5. Provide context

Include a descriptive title that explains what the histogram represents.

For example, Distribution of Customer Support Response Times is more informative than Histogram 1.

6. Compare distributions carefully

When comparing multiple groups, use consistent bin boundaries and appropriate scales.

This helps ensure that differences between distributions are not caused by inconsistent chart settings.

7. Test alternative bin widths

Review the histogram with more than one reasonable bin width.

This helps identify whether the overall distribution pattern is stable or sensitive to the choice of intervals.

How Can Interactive Analytics Help You Explore Data Distributions?

A histogram provides a useful overview of how numerical values are distributed, but business users often need to investigate the factors behind the patterns they see.

For example, a histogram may reveal that customer order values are concentrated within a particular range.

The next questions might include:

  • Do purchasing patterns differ across geographic regions?

  • Which product categories generate higher-value orders?

  • Does customer spending change over time?

  • Are certain customer segments responsible for unusually high transactions?

Interactive analytics helps users explore these questions by filtering data, examining different segments, and investigating individual records.

ThoughtSpot combines interactive data visualization with search-driven and AI-powered analytics to help users explore business data and ask follow-up questions.

Rather than relying only on static charts, teams can investigate the patterns behind their data and move toward more informed business decisions.

Explore visual analytics to learn how interactive data exploration supports business intelligence.

How Can Histograms Help You Make Better Data-Driven Decisions?

Histograms help businesses understand the distribution and variation within numerical datasets.

From analyzing customer spending and employee salaries to monitoring manufacturing quality and delivery times, they provide a practical way to identify patterns that may be hidden by averages or raw data tables.

However, creating a histogram is only the first step. Choosing appropriate bin intervals, understanding distribution shapes, and investigating unusual observations are equally important.

By combining effective data visualization with interactive analytics and AI-powered exploration, organizations can move beyond identifying patterns to understanding the factors behind them.

Ready to explore your data and uncover actionable insights? Start your free trial of ThoughtSpot and discover how AI-powered analytics can help your team make better data-driven decisions.

The Leader in Agentic Analytics

2026 Leader

2026 Leader

2026 G2 Enterprise

2026 G2 Enterprise

2026 G2 SMB

2026 G2 SMB

2026 G2 Momentum

2026 G2 Momentum