Skip to content
Pie Chart Maker
Learn

Why chart percentages don't add up to 100% and how to fix it

Three equal slices, each labelled 33%. Sooner or later someone adds them up and asks where the other 1% went. Nothing is wrong with the data. The labels were rounded one at a time, and the small errors did not cancel out. Here is why it happens and the fixes worth using.

Rounding each share on its own

Every rounded label is off from its true value by up to half a unit. With whole percentages, that is up to 0.5 points per slice. Sometimes the errors cancel, sometimes they pile up. With four slices, the total can land anywhere from 98 to 102.

Small data sets that break the 100% total
ValuesExact sharesRounded on its ownSum
1, 1, 133.33% each33, 33, 3399
1, 712.5%, 87.5%13, 88101
2, 2, 2, 322.22% × 3, 33.33%22, 22, 22, 3399
Seven slices of 114.2857% each14 × 798
Seven slices of 1, one decimal14.2857% each14.3 × 7100.1

The last two rows show that more decimals reduce the gap but do not close it. 100.1% looks just as odd in a report as 98%.

Bar of 33%, 33% and 33% with a 1% gap, above a bar of 34%, 33% and 33% that fills 100%
Rounding each share on its own leaves a gap. Largest remainder hands the missing point to one slice.

The largest remainder method, step by step

This is the fix I use for any published chart. It is the same rule used to share out seats in some proportional elections (Hamilton's method). Take 87 people asked how they get to work: Car 31, Bus 26, Bike 19, Walk 11.

  1. Work out each exact share: value ÷ 87 × 100.
  2. Round every share down to the number of decimals you want.
  3. Add up the rounded-down shares and see how many points are missing from 100.
  4. Give one point each to the shares with the largest leftover fractions, until the total is 100. If two fractions are equal, the larger value gets the point first.
Commute survey, 87 answers, whole percentages
AnswerCountExact %Rounded on its ownRounded downLeftoverFinal
Car3135.6323635.63235
Bus2629.8853029.88530
Bike1921.8392221.83922
Walk1112.6441312.64413
Total8710010197100

Rounded down, the shares total 97, so three points are missing. The three largest leftovers are Bus (.885), Bike (.839) and Walk (.644), and they get one point each. Car keeps 35, although 35.632 would normally round up. That is the trade-off: one label moves the “wrong” way, by less than one point, so the set adds up.

The same steps work with decimals. At one decimal, the shares above round down to 35.6, 29.8, 21.8 and 12.6, which is 99.8. The two largest leftovers go to Bus and Walk, so the final labels are 35.6, 29.9, 21.8 and 12.7.

The tie rule matters in small data. With Yes 1 and No 7, both exact shares end in .5 (12.5% and 87.5%). Rounded down, they total 99, so one point is free. It goes to the larger value, and the labels read 12% and 88%.

Other fixes and when they fit

FixWhat you doGood forWatch out for
Largest remainderRound down, hand out the missing points by leftover sizeCharts and tables that will be added upOne label can sit just under its normally rounded value
More decimalsShow 35.6% instead of 36%Technical reportsShrinks the gap without closing it, and adds clutter
Footnote“Percentages may not total 100 due to rounding.”Long tables taken from official dataReaders still notice, and a pie label set rarely has room for footnotes
Adjust the largestAdd or take the difference from the biggest sliceA quick fix by handWith several points missing, one slice takes all the error
Show valuesLabel slices with counts or money, not percentagesBudgets, small surveysReaders have to work out the shares themselves

My default for a pie is largest remainder with whole percentages, or one decimal when two slices are within a point of each other.

When the total really is over 100%

Sometimes the numbers are not a rounding problem at all. Ask 200 people “Which streaming services do you pay for?” and let them tick several boxes. 62% tick one, 48% another, 27% a third. The answers add up to 137%, because many people are counted more than once.

That data is not parts of one whole, and no rounding method can make it one. A pie would draw each answer's share of 137, which nobody asked about. Show each percentage as its own bar instead, out of the number of people who answered. The pie chart maker warns you when the values you typed with a % sign do not add up to 100, and the guide pie, donut or bar chart covers the switch.

The same goes for percentages with different bases: growth rates, pass rates of different classes, or shares of different totals. A useful test is to ask what the 100% is. If you cannot name one total, it is not a pie.

Getting exactly 100% in the tool

Enter the raw counts rather than rounded percentages, and choose Decimals: 0, 1 or 2. The labels on the chart and the Percent column of the results table always add up to exactly 100, using the steps above. If you group small slices, Other is treated as one slice for rounding. The chart itself is drawn from exact values, so the rounding never changes the size of a slice. Copy table takes the rounded figures into your spreadsheet, so the table in your report matches the chart.

Datawrapper's academy also recommends showing a pie only when the parts truly make up one total. That is the first check before any rounding question.

Questions and answers

Why do my percentages add up to 99%?

Each percentage was rounded on its own and the rounding errors happened to fall the same way. Three equal shares of 33.33% all round down to 33.

How do I make rounded percentages add up to 100?

Round every share down, count the missing points and give them one by one to the shares with the largest leftover fractions. This is the largest remainder method.

Is it acceptable to show 101% in a chart?

In tables, many publishers add a note that totals may not equal 100 due to rounding. In a pie chart it is better to fix the labels, because readers add them up.

My survey percentages add up to 150%. What went wrong?

Probably nothing: people could choose more than one answer. That data belongs in a bar chart, not a pie.

Try the Pie Chart Maker

Related reading