A stacked bar chart shows multiple data series in a single bar, with each series displayed as a colored segment
A stacked bar chart combines related values into one bar instead of showing them as separate bars side by side. Each segment of the bar represents a different category or data series, and the segments are stacked 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 and how each part contributes to that total.
You build a stacked bar chart in Excel by selecting your data, inserting a bar chart, and then changing the chart type to stacked. The process takes about two minutes once you have your data organized correctly.
Key Takeaways
- Your data must be organized with categories in one column and each data series in its own column before you insert the chart.
- You insert a chart by selecting your data range, clicking the Insert tab, and choosing Bar from the Charts group.
- After the chart appears, you right-click it, select Change Chart Type, and pick Stacked Bar to convert a regular bar chart.
- Stacked bar charts work best when you have two to four data series; more than that makes individual segments hard to read.
Organize your data in rows and columns
Before you insert any chart, arrange your data so that categories appear in the first column and each data series gets its own column to the right. For example, if you are tracking sales by region and quarter, your first column should list the regions (North, South, East, West), and columns B, C, D, and E should hold Q1, Q2, Q3, and Q4 sales figures. Include a header row at the top with labels for each column.
The chart will read this layout automatically: it will treat the first column as category labels and each subsequent column as a separate data series to stack. If your data is scattered across the sheet or mixed with other information, select only the cells you need for the chart — do not include empty cells or unrelated numbers.
Select your data and insert a bar chart
Click on the first cell of your data (usually the header in the top-left corner) and drag to select the entire range including headers, categories, and all values. You can also click the first cell, hold Shift, and click the last cell to select the range. Make sure you include the header row — Excel uses it to label the legend.
With your data selected, click the Insert tab at the top of the ribbon. In the Charts group, click Bar Chart (the icon shows horizontal bars). A dropdown menu appears with chart subtypes. For now, click the first option, which is a regular clustered bar chart — you will change it to stacked in the next step. Excel inserts the chart into your sheet.
Change the chart type to stacked
Right-click anywhere on the chart itself (not on the legend or axis labels). A context menu appears. Click Change Chart Type. The Chart Type dialog box opens, showing different bar chart options.
On the left side of the dialog, make sure Bar is selected. Then in the middle section, look for the stacked option — it is usually the second thumbnail in the row, showing bars with colored segments stacked horizontally. Click it, then click OK. Your chart instantly converts to a stacked bar chart, with each data series displayed as a colored segment within each bar.
Adjust the chart title and labels
By default, Excel may label your chart "Chart Title" or leave it blank. Click on the title text to select it, then type a new title that describes what the chart shows. For example, "Sales by Region and Quarter" or "Budget Allocation by Department."
You can also click on the axis labels (the numbers along the bottom or the category names along the left) to format them if needed. Right-click the legend on the right side of the chart if you want to move it, resize it, or change its formatting. These adjustments are optional but make the chart clearer to read.
Resize and position your chart
Click once on the chart to select it (you will see a border around it with resize handles at the corners and edges). Drag a corner handle to resize the chart while keeping its proportions, or drag an edge handle to stretch it in one direction. Drag the chart itself to move it to a different location on the sheet.
Make the chart large enough that the segment colors are distinct and the axis labels are readable. A chart that is too small makes it hard to see which color represents which data series. Position it below or to the side of your data so it does not cover the numbers you used to build it.
Common mistakes and how to fix them
If your chart shows separate bars instead of stacked bars, you selected the wrong chart subtype. Right-click the chart, choose Change Chart Type, and make sure you click the stacked option (not the clustered option). If the segments are in the wrong order or the colors do not match your data, the issue is usually in how your data is organized — check that each data series is in its own column and that the header row is included in your selection.
If a segment is so small you cannot see it, your data values may be very different sizes. For example, if one quarter has sales of 50,000 and another has 5,000, the smaller one becomes a thin line. This is not a mistake — it accurately represents the data. If you want to see the smaller values more clearly, consider using a different chart type or splitting the data into separate charts.
Frequently Asked Questions
Can I make a vertical stacked bar chart instead of horizontal?
Yes. When you insert the chart, click Column Chart instead of Bar Chart. A column chart is the same as a bar chart but rotated 90 degrees, so the bars stand upright. The process for changing it to stacked is identical — right-click, Change Chart Type, and select the stacked option.
How do I change the colors of the segments?
Right-click on one of the colored segments in the chart. Click Format Data Series. A panel opens on the right side where you can change the fill color, border, and other formatting options. You can also right-click a specific segment to format only that data series.
What if I want to add more data to my chart after I create it?
Click the chart to select it. A small icon appears in the top-right corner (three horizontal lines with a plus sign). Click it and choose Select Data. You can then add new rows or columns to the data range. Alternatively, right-click the chart and choose Select Data to open the dialog manually.
Can I show the actual numbers on each segment?
Right-click on the colored segments in the chart and click Add Data Labels. Excel places the values on each segment. If the labels overlap or are hard to read, right-click them again, click Format Data Labels, and adjust the label position or font size.
Is there a limit to how many data series I can stack?
Technically no, but readability suffers quickly. With more than four or five data series, individual segments become too thin to see clearly, and the legend becomes crowded. If you have many data series, consider splitting them into multiple charts or using a different chart type like a line chart.