Yes, you can create a nested pie chart in Excel, and the quickest way is to use the Doughnut chart type with two data series. A nested pie chart (also called a multi-level pie chart or doughnut chart) displays two or more rings of data, where the inner ring represents the first category and the outer ring breaks that category down further. This is useful for showing a part-to-whole relationship across two levels, like sales by region and then by product within each region. Excel doesn't have a one-click 'nested pie' button, but you can build one in a few minutes using a doughnut chart and adding a second data series. The steps below work in Excel 2016, 2019, 365, and most online versions. Menu labels can differ slightly by version and region, but the core process is the same.
What You'll Need
- Excel installed on your computer (or access to Excel for the web).
- A dataset with two levels of categories. For example, column A: Region (North, South, East, West), column B: Product (A, B, C), column C: Sales amount.
- Your data should be in a table or a contiguous range with headers.
Step-by-Step
- Prepare your data. Arrange your data in a flat table with columns for the first-level category, second-level category, and the numeric value. For instance:
Region | Product | Sales
North | A | 100
North | B | 150
South | A | 80
South | B | 120
East | A | 90
East | B | 110
West | A | 70
West | B | 130
Make sure there are no blank rows or columns in the range. - Create a pivot table (optional but recommended). If your raw data is not already aggregated, select your data, go to Insert > PivotTable, and drag the first-level field (e.g., Region) to the Rows area, the second-level field (e.g., Product) to the Columns area, and the numeric field to the Values area. This gives you a matrix where each row is a region and each column is a product. If your data is already in that matrix form, you can skip this step.
- Select the data for the chart. Click and drag to select the entire matrix including the headers. For the example above, select A1:C9 (or the pivot table output). If you have a pivot table, select the pivot table's data range.
- Insert a doughnut chart. Go to the Insert tab on the ribbon. In the Charts group, click the Insert Pie or Doughnut Chart icon (it looks like a pie with a hole). From the dropdown, choose Doughnut. Excel will insert a doughnut chart with one ring for the first data series (which is the first column of numbers in your selection).
- Add the second data series. Right-click on the chart and select Select Data. In the dialog, click Add to add a new series. For the series name, click the cell that contains the header for the second column (e.g., 'Product B'). For the series values, select the range of numbers for that column (e.g., C2:C5). Click OK. You now have two rings in the doughnut chart. The inner ring is the first series, the outer ring is the second series.
- Reverse the order of the rings (if needed). By default, the first series you added becomes the outer ring, and the second becomes the inner ring. If you want the first category (e.g., Region) to be the inner ring, you need to switch the order. In the Select Data dialog, select the first series and click the down arrow to move it to the bottom, or select the second series and click the up arrow to move it to the top. The series at the top of the list will be the outer ring. Adjust until the inner ring represents your first-level category.
- Format the hole size. Right-click on the inner ring (or the chart area) and choose Format Data Series. In the pane that opens, adjust the Doughnut Hole Size slider to around 40-60% to make the rings visible and distinct. A smaller hole makes the rings thicker; a larger hole makes them thinner.
- Add data labels. Click on the chart, then click the + button (Chart Elements) next to the chart. Check Data Labels. To show labels for both rings, you may need to add them separately: right-click on a slice in the inner ring, choose Add Data Labels, then repeat for the outer ring. You can format the labels to show the category name and value by right-clicking a label and choosing Format Data Labels.
- Customize colors and style. Click on any slice to select the entire series, then use the Format tab or the right-click menu to change fill colors, borders, and effects. You can also apply a quick style from the Chart Styles group on the Design tab.
- Add a legend or titles. Use the + button to add a chart title and legend. The legend will show the categories from the data series, but it may be confusing with two rings. Consider adding a text box to explain which ring is which, or use the legend to identify the series names.
Common Mistakes
- Using a regular pie chart instead of doughnut. A pie chart only shows one series. You must use a doughnut chart to have multiple rings.
- Selecting the wrong data range. If you select a single column of numbers, Excel will only create one series. Make sure you select the entire matrix with headers.
- Forgetting to add the second series. After inserting the doughnut, if you only see one ring, you haven't added the second series. Use Select Data to add it.
- Ring order reversed. If the outer ring shows your first-level category instead of the inner, you need to reorder the series in the Select Data dialog.
- Not aggregating data. If your raw data has multiple rows per category, the chart will show each row as a separate slice. Use a pivot table or SUMIF to aggregate first.
Tips
- Use a pivot table for dynamic data. If your dataset updates, a pivot table will automatically refresh the chart when you refresh the pivot (right-click > Refresh).
- Limit the number of slices. Too many categories make the chart unreadable. If you have more than 5-6 slices per ring, consider grouping smaller categories into an 'Other' bucket.
- Adjust the doughnut hole size. A hole size of 50% is a good starting point. If the rings are too thin, reduce the hole size.
- Use consistent colors. Make the inner ring slices distinct from the outer ring to avoid confusion. For example, use shades of the same color for each inner category, and different shades for the outer subcategories.
- Add data labels carefully. Labels can overlap. Use the Label Options in the Format Data Labels pane to set the label position to 'Center' or 'Best Fit' for each ring.
Troubleshooting
If the chart only shows one ring: You haven't added the second series. Right-click the chart, choose Select Data, and click Add to add the second column of numbers as a new series.
If the rings are in the wrong order: In the Select Data dialog, the series at the top of the list is the outer ring. Use the up/down arrows to reorder them so the first-level category is at the bottom (inner ring).
If the chart looks like a mess with too many slices: Check your data range. You might have selected extra rows or columns. Also verify that your data is aggregated (no duplicate categories).
If data labels are overlapping or not showing: Right-click on a specific slice and choose Add Data Labels. Then right-click the labels and choose Format Data Labels to adjust position and number format. You may need to manually drag some labels.
If the chart doesn't update when you change data: Ensure your data range includes the new data. If using a pivot table, refresh the pivot. If using a regular range, you may need to edit the chart data range in Select Data.
Frequently Asked Questions
Can I make a true nested pie chart (not doughnut) in Excel?
No, Excel does not have a built-in nested pie chart type. The doughnut chart with multiple series is the closest and most common workaround. It visually shows concentric rings, which is effectively a nested pie.
How do I add a third level to the nested chart?
You can add more series to the doughnut chart. In the Select Data dialog, add another series with the third column of numbers. The chart will display another ring. However, with three or more rings, the chart becomes very hard to read, so it's usually better to use a different chart type like a treemap or stacked bar.
Why is my doughnut chart showing percentages that don't add up to 100%?
In a doughnut chart with multiple series, each ring represents its own series, and the percentages are calculated per ring. So the inner ring may sum to 100% of the first series, and the outer ring to 100% of the second series. They are not meant to add up across rings.
Can I use a nested pie chart to show hierarchical data like a treemap?
Yes, but Excel also has a built-in Treemap chart (Insert > Treemap) that is specifically designed for hierarchical data. It may be a better choice if you have more than two levels or many categories.
How do I change the color of a single slice in the outer ring?
Click once on the outer ring to select the entire series, then click again on the specific slice you want to change. Right-click and choose Format Data Point, then select a fill color.
Can I create a nested pie chart in Excel for Mac?
Yes, the steps are essentially the same. In Excel for Mac, the Select Data option is found under the Chart Design tab or by right-clicking the chart. The interface may look slightly different, but the process of adding a series and adjusting the doughnut hole size is identical.