What a stacked bar chart shows and when to use one
A stacked bar chart displays multiple data series as segments within a single bar, with each segment representing a different category. Instead of showing bars side by side, the segments stack on top of each other (for vertical bars) or next to each other (for horizontal bars). This layout makes it easy to see both the total across all categories and how each part contributes to that total.
Use a stacked bar chart when you want to show composition — for example, how different product lines contributed to total revenue, or how various expense categories made up a department budget. The format works well when you have two to four data series; more than that and the smaller segments become hard to read.
A standard grouped bar chart, by contrast, places bars side by side, which makes it easier to compare individual segments across categories but harder to see the total. Choose stacked when the total matters as much as the parts.
Key Takeaways
- Arrange your data in columns with one column for category labels and one column for each data series you want to stack.
- Select all your data including headers, then go to Insert > Chart and choose the Stacked Bar or Stacked Column chart type.
- Use vertical stacked columns when comparing totals across categories; use horizontal stacked bars when category names are long.
- Add data labels to show the actual values for each segment, since the visual height alone does not always make exact numbers clear.
- A stacked chart works best with two to four data series; beyond that, smaller segments become difficult to distinguish and compare.
Setting up your data the right way
Before you create the chart, your spreadsheet needs to be organized in a specific layout. Put your category labels in the first column — for example, months, regions, or product names. Put each data series in its own column to the right, with a header row at the top that names each series.
Here is a concrete example. If you are tracking sales by product across four quarters, your layout would look like this:
| Quarter | Product A | Product B | Product C |
| Q1 | 15000 | 12000 | 8000 |
| Q2 | 18000 | 14000 | 9500 |
| Q3 | 22000 | 16000 | 11000 |
| Q4 | 25000 | 18000 | 12500 |
Do not leave blank rows or columns within your data range. Excel needs a clean rectangle of data to build the chart correctly. If you have a total column, you can include it, but it is not required — Excel will calculate the stack height from the individual series.
Selecting your data and inserting the chart
Click on the first cell of your data (the top-left corner, including the header) and drag to select the entire range. In the example above, you would select from "Quarter" through the last number in the Product C column. You can also click the first cell and then Shift+Click the last cell to select the range.
Once your data is selected, go to the Insert tab at the top of the ribbon. Click Chart (or Insert Chart depending on your Excel version). A dialog box will open showing chart type options.
Look for Bar or Column in the list on the left. Click it, then look for the Stacked option — it is usually the second or third thumbnail in the row. Click the stacked version (not the 100% stacked, which shows percentages instead of actual values). Then click OK or Next to proceed.
Choosing between stacked columns and stacked bars
Excel offers two orientations: stacked columns (vertical bars) and stacked bars (horizontal bars). The choice depends on your data and how you want to present it.
Use stacked columns when your categories are short labels like months or years, or when you have many categories and want to fit them across the width of the page. Columns make it natural to read left to right and compare totals at a glance.
Use stacked bars when your category labels are long — for example, region names or product descriptions. Horizontal bars give you room to write out the full label on the left without crowding. They also work well when you have fewer categories but want to emphasize the composition of each one.
Both show the same information; the difference is purely about readability and space. If you are unsure, start with columns and switch to bars if your labels do not fit.
Adding labels so readers can see the actual numbers
By default, a stacked chart shows only the visual segments without numbers. Readers can estimate the total height of each bar, but they cannot easily tell the exact value of a middle segment — the one that does not start at zero.
To add data labels, right-click on one of the bars in the chart and select Add Data Labels. Excel will place a number on each segment. If the labels overlap or look crowded, right-click them again, choose Format Data Labels, and adjust the position (inside end, outside end, or center) or the number format.
You can also add a total label at the top of each bar. Right-click the chart, select Add Chart Element (or Chart Elements depending on your version), then choose Data Labels and pick the layout that shows totals. This makes it immediately clear what the full height of each bar represents.
Adjusting colors, legend, and titles
Once the chart is created, you can customize its appearance. Double-click the chart to enter edit mode. The chart will have a default color scheme, but you can change it by right-clicking a segment and selecting Format Data Series, then choosing a new color.
The legend on the right (or bottom) shows which color represents which data series. If the legend is in the way, right-click it and select Delete, or drag it to a new position. You can also right-click the legend and choose Format Legend to change its placement or appearance.
Add a title by right-clicking the chart and selecting Add Chart Element > Chart Title. Type a clear, descriptive title that explains what the chart shows — for example, "Total Sales by Product, Q1–Q4 2024". You can also add axis titles the same way to label what each axis represents.
Common mistakes and how to fix them
The most common mistake is including a total column in your data range. If you select a column that already adds up the other columns, Excel will treat it as another data series and stack it on top, which doubles your numbers. Delete the total column from your selection before creating the chart, or delete the series from the chart after it is created by right-clicking it and choosing Delete.
Another frequent issue is selecting data that includes blank rows or columns. Excel may misinterpret the structure and create an incorrect chart. Always select a clean, unbroken rectangle of data with no gaps.
If your segments are too small to read or compare, you may have too many data series. Consider removing the smallest or least important series, or breaking the data into two separate charts — one for major categories and one for minor ones.
If the order of the segments does not match your preference, right-click the chart, select Select Data, and use the up and down arrows to reorder the series. The series at the top of the list will appear at the bottom of the stack (or on the left for horizontal bars).
Frequently Asked Questions
Can I change the order of the segments in the stack?
Yes. Right-click the chart and select Select Data. In the dialog, you will see a list of data series on the left. Click a series and use the up or down arrow buttons to move it. The order in this list determines the stacking order in the chart, with the top series appearing at the bottom of the stack.
What is the difference between a stacked chart and a 100% stacked chart?
A regular stacked chart shows actual values, so the bar height varies based on the total. A 100% stacked chart converts each segment to a percentage of the total, so all bars are the same height. Use 100% stacked when you want to compare the proportion of each segment across categories, not the absolute amounts.
How do I show the total value at the top of each bar?
Right-click the chart, select Add Chart Element, then Data Labels. Choose the option that displays totals or outside end labels. You may need to format the labels to show only the total, not every segment value, depending on your Excel version.
Can I use a stacked chart with more than four data series?
Technically yes, but readability suffers. With more than four series, the smaller segments become thin and hard to distinguish by color. Consider grouping related series together, creating multiple charts, or using a different chart type like a line chart or table.
What if my category labels are too long and overlap?
Right-click the category axis (the bottom or left side), select Format Axis, and look for text or label options. You can rotate the labels 45 degrees, increase the font size of the chart area, or switch from columns to bars to give the labels more horizontal space.