Pie chart: when it works and when to use a bar chart instead

Updated

A pie chart shows how a whole divides into parts: a circle split into slices, each with an angle proportional to its share of the total. It is good at one message, "this part is about half" or "these two make up two thirds", and poor at most others. With more than five or six slices, or when you need to compare similar shares, a bar chart shows the same numbers more clearly.

When to use it

  • The parts add up to a meaningful whole: total scrap cost, total downtime, all complaints in a quarter.
  • You have a few categories, ideally two to five, after grouping small ones into "Other".
  • The message is about one or two large shares compared with the total, not about fine differences between parts.

Avoid a pie chart when the values do not add up to a whole (such as rates or averages), when categories overlap, when you need to rank similar shares, or when you want to compare two periods side by side.

How it works

  1. Add up the values to get the total.
  2. Each category's share is its value divided by the total.
  3. Each slice gets an angle of share × 360°, so a 25% share is a 90° quarter.
  4. Start the first slice at the 12 o'clock position and go clockwise, largest first, so the biggest share is easy to judge against the vertical.
  5. Label each slice with its category and percentage, directly on or beside the slice rather than in a separate legend.
share = value / total angle = share × 360°

The eye judges a slice by its angle and area, which is much harder than judging bar lengths on a common scale. Shares close to 25%, 50% and 75% are easy to recognize because they are quarters; shares of 13% and 16% look almost alike.

Example

A molding plant totals its scrap cost for the quarter by defect type:

Defect typeScrap cost (USD)ShareSlice angle
Short shots18,00043.5%156.5°
Flash9,60023.2%83.5°
Sink marks6,20015.0%53.9°
Contamination3,2007.7%27.8°
Warp1,9004.6%16.5°
Burn marks1,5003.6%13.0°
Color streaks1,0002.4%8.7°
Total41,400100.0%360°

The shares are computed as value / total; for short shots, 18,000 / 41,400 = 43.5%, and 0.435 × 360° = 156.5°. (The angles in the table add to 359.9° because each is rounded.)

A pie of these seven slices delivers one message well: short shots and flash together cover two thirds of the circle (66.7% of the cost), so that is where improvement work should start. Beyond that the pie struggles. The warp, burn-mark and color-streak slices are thin wedges of 16.5°, 13.0° and 8.7°; few readers could rank them, or say that warp costs almost twice as much as color streaks, without the labels.

Two changes make the chart honest:

  • Group the small slices. Warp, burn marks and color streaks become "Other" at 10.6%, which leaves five slices that each can be read.
  • Or switch to bars. A Pareto chart of the same seven costs, sorted from largest to smallest with a cumulative line, shows the ranking, the exact differences and the two-thirds point at once. For a defect analysis, that is the better tool.

If the plant wanted to compare this quarter with the last, two pies side by side would be the worst choice: the slices move around the circle and their angles cannot be compared directly. Clustered bars or a small table with both quarters work far better.

How to read the results

  • Read the labels, not the angles. Use the slice sizes for the big picture and the printed percentages for the numbers.
  • Look for the dominant share. A slice near half the circle, or two slices that fill most of it, is the main message.
  • Check that the slices add to a real whole. Percentages must sum to 100%, apart from rounding.
  • Check what "Other" hides. A large "Other" slice may contain a category that deserves its own place.

Common mistakes

  • Too many slices. Beyond five or six, thin slices become unreadable. Group them or use a bar chart.
  • 3D or exploded pies. Tilting the circle makes front slices look bigger than back slices of the same share. Pulling slices out distorts them further.
  • Pies of things that are not parts of a whole. Defect rates by line, or average scores, cannot be added into a total; a pie of them has no meaning.
  • Overlapping categories. If one complaint can count under two causes, the slices add to more than 100%.
  • Comparing pies. Side-by-side pies for two periods or plants hide the changes you want to show.

Frequently asked questions

When is a pie chart better than a bar chart?

When there are only a few parts, they form a real whole, and the message is a large share of that whole, such as "two thirds of scrap cost comes from two defects". For almost everything else, bars are easier to read.

How many slices should a pie chart have?

Ideally no more than five. Group the smallest categories into "Other" and say what it contains.

How do I calculate the angle of each slice?

Divide the category's value by the total and multiply by 360°. A 15% share is 0.15 × 360° = 54°.

What is the difference between a pie chart and a donut chart?

A donut chart is a pie with the center removed. The slices are read by arc length rather than angle, which is about as hard. The same advice applies.

Try it with your own data

StatLab SPC is free, open-source statistics for engineers. It runs in your browser, works offline, and never uploads your data.

Open StatLab