Skip to content
LoveToCalc

Pie charts

The circle is the whole, and each slice is a share of it: the share of 100% is the share of 360°.

What the chart shows

A pie chart divides a circle into slices, one for each category. A slice’s share of the circle is the category’s share of the whole, and since a full turn is 360°, the slice’s angle is the share times 360°. UNECE’s guide to presenting statistics describes the pie chart as a way to show the percentage distribution of one variable.

Apples: 40%Bananas: 25%Pears: 20%Oranges: 15%
Which fruit do you like best? 20 pupils, one answer each.
The data behind the figure
CategoryCountShare (%)Angle (°)
Apples840%144°
Bananas525%90°
Pears420%72°
Oranges315%54°

Two conditions follow. Each unit is counted in exactly one slice, and the slices together are the whole group. In the chart above each of the 20 pupils gave one answer, so the shares 40%, 25%, 20% and 15% add up to 100%.

How to read and calculate

Without numbers on the chart, half a circle and a quarter of a circle can be seen, but hardly the difference between 20% and 25%. UNECE therefore advises labelling the slices with their values and writing the category names on the chart itself, so that no legend is needed.

When it fits and when it does not

A pie chart fits when the parts of one whole are shown, when each unit belongs to one category, and when the categories are few: UNECE says that usually no more than six can be shown. The guide notes that many statisticians advise against pie charts and that a bar chart is more appropriate in most cases, but also that the pie chart should not be ruled out completely, because it shows well how large one category is relative to the whole.

It does not fit when:

When each person can give several answers

Forty pupils were asked Which pets do you have at home? and could tick every answer that applied: dog 14, cat 12, rabbit 6, fish 4 and no pet 10. That is 46 ticks from 40 pupils. As shares of the pupils they are 35%, 30%, 15%, 10% and 25%, which add up to 115%.

A circle holds 100%. There are two ways of forcing the survey into a pie chart anyway, and both give the wrong picture:

  1. Drawing the slices by the share of pupils. They add up to 115% and do not fit in a circle.
  2. Taking shares of the ticks instead of the pupils. Dog becomes 14 out of 46, about 30%, and the circle adds up. But the chart now shows shares of ticks, and the reader reads them as shares of pupils: that 30% have a dog, when the share is 35%. A pupil with both a dog and a cat also appears as two parts of the whole.

A bar graph shows the survey correctly: one bar per answer, and a line under the chart saying that more than one answer was allowed and that the shares of the 40 pupils therefore add up to more than 100%.

02468101214DogCatRabbitFishNo pet
Which pets do you have at home? 40 pupils, more than one answer allowed.
The data behind the figure
CategoryCount
Dog14
Cat12
Rabbit6
Fish4
No pet10

Common mistakes

Going deeper: drawing a pie chart by hand

The angles come from the counts: the count divided by the whole, times 360°. With 20 pupils each pupil is 18°, and the angles are whole degrees. With other wholes they are not always. If each angle is rounded on its own, the sum can come to 359° or 361°; then the largest slice is adjusted, where one degree shows least.

UNECE advises ordering the slices by size rather than mixing large and small ones. The chart above starts at twelve o’clock and runs clockwise from the largest slice to the smallest.

The pie chart is more than two hundred years old. According to Ian Spence, who has written on its origins, it first appears in William Playfair’s The Statistical Breviary of 1801. Playfair had already devised the bar chart in 1786 and was the first to advocate the line graph for time series.

See also

Sources

Updated November 7, 2026