Guides · The math

The math · 3 min read

Pie chart percentage calculator

The percentage on a slice is the value divided by the total of the values, multiplied by 100. You do not convert the numbers into percents before you start. The maker with percentages does this on every keystroke. The arithmetic below is the same one.

Formula

Percentage = value ÷ total × 100. The total is the sum of the values you are plotting, not a target of 100, and not a totals row you also plot.

A traffic example that already sums to 100

SourceVisitsPercent
Organic search4242%
Direct2323%
Social1818%
Referral1111%
Email66%
Total100100%

The same chart from counts that do not sum to 100

Suppose the visits are 120, 80, and 40. The total is 240. Organic-style first row: 120 ÷ 240 × 100 = 50%. Second: 80 ÷ 240 × 100 = 33.333…%. Third: 40 ÷ 240 × 100 = 16.666…%. The table in the maker shows 50.0%, 33.3%, and 16.7%. Labels on the slices round to 50%, 33%, and 17%. Those rounded labels add to 100 only by luck. 33 + 17 + 50 happens to work; three slices of 33.3% round to 33, 33, and 33, which add to 99. Trust the one-decimal column when the difference matters.

A number that is already a percent can be pasted too. If the column is 50, 30, and 20, the total is 100 and the chart shows those shares. If the column is 50, 30, and 40, the total is 120 and the shares become 41.7%, 25%, and 33.3%. The maker does not assume the cells were percents.

Make a pie chart