Pie Chart Making: A Complete Guide
In this article
Making a pie chart is the process of dividing a circle into sectors whose angles are proportional to the parts of a whole, so each slice visually represents a percentage of the total. The chart works best when you have a single dataset that sums to 100% and a small number of categories—typically five to seven—because too many slices make the chart hard to read.
What a Pie Chart Is and When It Works
A pie chart displays data as a circle divided into slices. Each slice's central angle is calculated by multiplying the category's share of the total by 360 degrees. For example, if a category accounts for 25% of the total, its slice will span 90 degrees. The entire circle represents 100% of the data, so pie charts are ideal for showing part-to-whole relationships at a single point in time.
Pie charts work well when:
- You have a single data series that adds up to a meaningful whole (e.g., market share, budget allocation, survey responses).
- The number of categories is small—five to seven is a common guideline; more than that and the slices become too thin to compare.
- You want to emphasize a few large slices rather than compare many small differences.
- The data does not overlap; each item belongs to exactly one category.
They are poor choices for showing changes over time, comparing multiple datasets, or displaying data with many categories of similar size. In those cases, bar charts or line charts are more effective.
How to Calculate Slice Angles and Percentages
To build a pie chart, you first need the total of all categories. Then, for each category, compute its percentage of the total and convert that percentage to degrees.
- Sum the values. Add up all the numbers in your dataset to get the total.
- Find each category's percentage. Divide each category's value by the total and multiply by 100.
- Convert to degrees. Multiply each percentage by 3.6 (since 100% = 360°). Alternatively, divide the category value by the total and multiply by 360.
- Draw the slices. Starting from the 12 o'clock position, use a protractor or software to mark each angle in sequence around the circle.
For example, suppose a small bakery's daily sales are: bread 40 loaves, pastries 30, cakes 20, and cookies 10. The total is 100. Percentages are 40%, 30%, 20%, and 10%. Angles are 144°, 108°, 72°, and 36°, respectively. These sum to 360°.
Always verify that your percentages add to 100% (allow for rounding) and that your angles sum to 360°. Rounding can cause small discrepancies; adjust the largest slice slightly to absorb the difference.
Step-by-Step: Making a Pie Chart by Hand or in Software
Whether you draw by hand or use a spreadsheet, the process follows the same logic.
- Prepare your data. List categories and values in a table. Ensure no category is negative and that the total is meaningful.
- Calculate percentages and angles as described above.
- Draw a circle with a compass or use a software chart tool.
- Mark the first slice from the top (12 o'clock) and proceed clockwise. This is the conventional starting point and makes charts easier to compare.
- Label each slice with its category name and percentage. If a slice is too small, use a leader line or place labels outside the circle.
- Add a title and legend if needed. A legend is helpful when labels don't fit inside slices.
- Check for clarity. Ensure colors contrast and that the largest slices are easy to identify.
In spreadsheet software like Excel or Google Sheets, you can select your data and insert a pie chart directly; the software calculates angles automatically. You can then customize labels, colors, and explode a slice for emphasis.
Choosing the Right Chart Type: Pie vs. Alternatives
Pie charts are not always the best choice. Consider these alternatives:
- Bar chart: Better for comparing many categories or when differences are small. Bars are easier to read accurately than angles.
- Donut chart: A pie chart with a hole in the middle; it can be more visually appealing and allows space for a central label, but it shares the same limitations.
- Stacked bar chart: Useful for showing part-to-whole across multiple groups or time periods.
- Treemap: Good for hierarchical data with many categories.
Use a pie chart only when you have a single whole and a few categories, and when the message is about the relative size of one or two slices.
Common Mistakes and How to Avoid Them
Even experienced chart makers fall into traps. Watch for these:
- Too many slices. More than seven slices become indistinguishable. Group small categories into an "Other" slice if necessary.
- Using 3D or exploded slices excessively. These distort perception; 3D pie charts can make slices appear larger or smaller than they are. Use 2D and explode only one slice for emphasis.
- Starting at an arbitrary angle. Starting at 12 o'clock and going clockwise is standard; other starting points can confuse readers.
- Missing a total. A pie chart implies a whole; if your data doesn't sum to a meaningful total, use a different chart.
- Poor color choices. Use distinct, accessible colors. Avoid red-green combinations that are hard for colorblind viewers.
- Not labeling slices. Without labels or a legend, readers cannot identify categories.
Also, be cautious with data that includes negative values or zero values; pie charts cannot represent them meaningfully.
Tools and Techniques for Better Pie Charts
Modern tools make pie chart creation easy, but good design still matters. Here are some tips:
- Sort slices by size (largest to smallest clockwise) to make comparisons easier, unless the categories have a natural order.
- Use data labels with percentages rather than raw values if the whole is not obvious.
- Keep it simple: avoid unnecessary gridlines, borders, or shadows.
- Test readability by viewing the chart at the size it will be displayed; small slices may need external labels.
For hand-drawn charts, use a protractor and ruler for accuracy. For digital charts, explore chart templates and customize to your needs.
Frequently Asked Questions
How many slices should a pie chart have?
A common guideline is five to seven slices. More than that makes the chart cluttered and hard to read; consider grouping small categories into an "Other" slice or using a bar chart instead.
Can a pie chart show negative values?
No. Pie charts represent parts of a whole, and negative values have no meaningful representation in a circle. If your data includes negatives, use a bar chart or other chart type.
What is the difference between a pie chart and a donut chart?
A donut chart is a pie chart with a hole in the center. The hole can hold a label or total, but the data representation is the same. Donut charts are often used for aesthetic reasons.
How do I calculate the angle for each slice?
Divide each category's value by the total, then multiply by 360 degrees. For example, a category that is 25% of the total gets 0.25 × 360 = 90 degrees.
Why is my pie chart not adding up to 100%?
Rounding errors can cause percentages to sum to slightly more or less than 100%. Adjust the largest slice by a small amount to make the total exact, or note that percentages are rounded.
When should I avoid using a pie chart?
Avoid pie charts when you have many categories, when comparing multiple datasets, when showing changes over time, or when the data does not represent parts of a whole. Bar charts or line charts are usually better in those cases.