🏆 US-Registered Digital Marketing Agency
Advertisement
Advertisement
EDUCATION

Pie Chart Calculator — percentages, slice angles and the chart

Turn a list of category values into percentages and degree angles, draw the pie, and fix the rounding so the shares add to exactly 100%.

One per line as "label, value". A line with only a number gets an automatic label. Negative values are rejected.
Set 0 to keep every category. Setting 3 collapses everything under 3% into a single slice.
Largest slice
 
0
Total of all values
0
Slices drawn
0
Top slice angle
0
Shares add to
Tip: if your rounded percentages add to 99.9% or 100.1%, that is not an error in the data. It is rounding, and the largest remainder method fixes it without changing any share by more than one unit in the last decimal place.
Advertisement

A pie chart calculator converts a list of category totals into the two numbers a pie chart actually needs: each category's share of the whole as a percentage, and the angle in degrees that share occupies in the circle. It then draws the chart. The arithmetic is simple; what makes it worth a dedicated tool is everything around it — the rounding, the tiny slices, and the question of whether a pie is the right chart at all.

Arb Digital built this page to be honest about that last point. A pie chart is the correct choice for exactly one job: showing that a handful of parts make up a whole, when one or two of them clearly dominate. Outside that narrow case it is usually the weakest chart on the page, and this tool tells you when your own data has crossed the line rather than silently drawing something unreadable.

What This Pie Chart Calculator Does

Paste a list of labels and values, one per line, and the tool totals them, computes each category's percentage and degree angle, and renders the pie to scale. It reports the largest slice as the headline, and shows the total, the slice count, the top slice's angle and the sum of the displayed shares so you can see rounding drift the moment it appears.

The optional grouping threshold collapses every category below a percentage you choose into a single "Other" slice, which is the standard fix for a chart with a long tail of one-percent categories. The rounding button applies the largest remainder method so the displayed percentages add to exactly 100 without anyone editing a number by hand.

It is a different job from our histogram calculator, which bins a continuous measurement to show its shape, and from the frequency distribution calculator, which tallies how often each distinct value occurs. Those two summarise one variable's distribution. This page splits a single total across named categories.

How to Use It

  1. Paste your categories. Write each line as "label, value". A line with just a number is accepted and gets a generic label.
  2. Choose the slice order. Largest first is the convention for most published pie charts, because it makes the ranking readable without a legend lookup.
  3. Set the decimal places. One is usually right. Two implies a precision most category counts do not have.
  4. Group the tail if there is one. Any threshold above zero folds the small categories into a single "Other" slice, which is almost always more readable than eight slivers.
  5. Check the "shares add to" figure. If it is not exactly 100, press the rounding button and the largest remainder method will reconcile it.

The Formula: Percentages and Angles

Both quantities come from the same ratio. For a category with value v out of a total T: percentage = v ÷ T × 100 and angle = v ÷ T × 360 degrees. The angle is therefore always 3.6 times the percentage, which is a useful sanity check — a 25% slice is 90°, a 50% slice is 180°, and a 10% slice is 36°.

Work the default data. The values 35, 25, 20, 15 and 5 total 100, so the percentages are 35, 25, 20, 15 and 5, and the angles are 126°, 90°, 72°, 54° and 18°. Those five angles add to 360°, as they must. If your own angles do not sum to 360 within a rounding error, the arithmetic is wrong somewhere or a value has been left out of the total.

Slices are drawn starting from the twelve o'clock position and running clockwise, which is the near-universal convention. It matters because readers judge the first slice against the vertical, which is the one comparison the eye makes accurately, so the category you most want understood should be placed first.

Advertisement

Why Rounded Percentages Do Not Add to 100

Three categories of 1, 1 and 1 out of 3 are each 33.333…%. Round each to one decimal place and you get 33.3, 33.3 and 33.3, which sums to 99.9. Nothing is wrong with the data, and nothing is wrong with the rounding. Independently rounding several numbers that sum to a fixed total is simply not guaranteed to preserve the total.

The standard fix is the largest remainder method, and it is the same procedure used to allocate seats in proportional-representation elections. Deciding how many digits a reported share deserves in the first place is a related question, covered in NIST's guidance on the uncertainty of measurement results. Round every share down to the chosen precision, count how many units are left over to reach 100, then hand those leftover units one at a time to the categories with the largest discarded fractions. Every displayed figure moves by at most one unit in the last decimal place, and the total comes out exactly right.

The alternative that most spreadsheets encourage — nudging the biggest slice until the column adds up — is worse in two ways. It changes one number by the entire discrepancy rather than spreading it, and it always changes the same number, which biases the largest category across repeated reports. Use the button above instead, and say in your caption that shares are rounded. Our rounding calculator covers the general rules, and the percentage calculator handles the underlying arithmetic.

Angles Are Read Less Accurately Than Lengths

The reason experienced analysts avoid pie charts is not snobbery. It is that people compare lengths along a common baseline far more accurately than they compare angles or areas, so the same data encoded as bar lengths is read more precisely than as pie slices. That gap widens as slices get closer in size: two slices at 24% and 26% are effectively indistinguishable in a pie and obviously different in a bar chart.

The practical consequence is a rule about slice count. A pie with two or three slices works well, because the comparisons are coarse and the shape is instantly readable. A pie with five is usually acceptable. A pie with ten is a legend with a decorative circle attached, and the reader ends up reading the numbers you printed rather than the chart. If your categories exceed five or six, either group the tail into "Other" or switch chart type. The NIST/SEMATECH e-Handbook's gallery of graphical techniques shows the alternatives with worked examples.

Two variations make the problem worse rather than better. A 3D pie tilts the circle, which foreshortens the slices at the back and enlarges the ones at the front, so identical values look different depending on position — it introduces a distortion with no informational benefit whatsoever. An exploded pie pulls slices apart, which removes the shared centre the eye was using to judge the angles in the first place.

When a Pie Chart Is Actually the Right Choice

Three conditions have to hold together. First, the parts must genuinely sum to a meaningful whole — market share across all competitors, budget across all departments, traffic across all channels. If your categories can overlap, or if some of the total is missing, the circle is a lie about completeness before any slice is drawn.

Second, the values must be non-negative. There is no way to draw a negative slice, and a category of −5 has no angle. This tool rejects negative input for exactly that reason rather than taking the absolute value, which would silently misstate the total.

Third, the message must be about proportion rather than comparison. "Organic search is over a third of our traffic" is a proportion claim and a pie communicates it instantly. "Organic grew faster than paid this quarter" is a comparison and a change claim, and a pie chart cannot express either — you would need two pies, and comparing two pies is one of the least reliable reading tasks in data visualisation. For that job use the percentage change calculator and report the numbers directly.

Donut Charts, Legends and Labelling

A donut chart is a pie with the middle removed. It reads the same way, since the eye is judging the arc rather than the wedge, and it buys you a hole to put the total in — which is genuinely useful, because the total is the one number a pie chart otherwise hides completely. If you use one, put the total in the centre; an empty hole is decoration.

Labelling beats a legend almost every time. A legend forces the reader to match colours between two places on the page, and colour matching is slow and error-prone, especially for the roughly one in twelve men with a colour vision deficiency. Writing the label and the percentage directly on or beside each slice removes that step entirely. If slices are too small to label directly, that is another signal the tail should be grouped.

Sorting is the last free improvement. Ordering slices largest to smallest, starting at twelve o'clock, means the ranking is visible without reading a single number, and it makes two charts of the same categories comparable at a glance. The only common exception is a natural order the reader already knows, such as age bands, which should be kept in sequence. Our ratio calculator is often a better presentation for a simple two-part or three-part split, and the descriptive statistics calculator is the right tool when you need the shape of a distribution rather than a breakdown of a total.

Need more free data and statistics tools?

Arb Digital publishes hundreds of free calculators covering statistics, percentages, algebra and finance — all free to use, with no sign-up and no limit on how often you run them.

Browse All Free Tools Suggest a Tool

Common Mistakes to Avoid

  • Drawing a pie of categories that do not sum to a whole. The circle claims completeness. If part of the total is missing, the claim is false.
  • Using more than about six slices. Past that point the chart stops being read and the printed numbers do all the work.
  • Nudging one slice to make the column add to 100. Spread the rounding across categories with the largest remainder method instead.
  • Adding a 3D tilt. It changes apparent slice size by position, which introduces error and adds no information.
  • Comparing two pie charts side by side. Reading a change from two sets of angles is unreliable. Report the change as a number.

Related Free Tools From Arb Digital

Use the histogram calculator for the shape of a continuous variable, the frequency distribution calculator for counts of distinct values, the percentage calculator for the underlying arithmetic, the rounding calculator to decide how many digits to keep, and the box plot calculator when several groups have to be compared. More live in the free tools hub.

Frequently Asked Questions

How do I convert a value into a pie chart angle?

Divide the value by the total of all values and multiply by three hundred and sixty. The result is the slice angle in degrees. Because a percentage uses one hundred instead of three hundred and sixty, the angle is always exactly three point six times the percentage.

Why do my percentages add up to 99.9 instead of 100?

Because rounding several shares independently does not preserve their total. Three equal thirds each round to thirty three point three, which sums to ninety nine point nine. The largest remainder method reallocates the leftover units so the displayed figures total exactly one hundred.

What is the largest remainder method?

Round every share down to the chosen precision, count how many units are still needed to reach one hundred, and give those units one at a time to the categories with the largest discarded fractions. No displayed share moves by more than one unit in its last decimal place.

How many slices should a pie chart have?

Two or three works best, five is usually acceptable, and beyond about six the chart stops being readable. If you have a long tail of small categories, group everything below a threshold into a single Other slice or switch to a bar chart.

Can a pie chart show negative values?

No. A slice is a portion of a whole and there is no way to draw a negative portion. This calculator rejects negative input rather than taking absolute values, because doing so would silently inflate the total and misstate every other share.

Is a bar chart better than a pie chart?

For most comparisons, yes, because people judge lengths along a shared baseline more accurately than they judge angles. A pie is preferable only when the message is about a small number of parts making up one whole and one or two parts clearly dominate.

Should I use a 3D pie chart?

No. Tilting the circle foreshortens the slices at the back and enlarges those at the front, so equal values look unequal depending on where they sit. It adds a systematic reading error and contributes no extra information.

What is a donut chart for?

It is a pie with the centre removed, read the same way because the eye judges the arc rather than the wedge. Its one real advantage is the hole, which is a natural place to print the grand total that a plain pie chart otherwise hides entirely.

This calculator is provided for study and for preparing your own charts. It describes how each figure is computed and does not recommend which chart to publish in any particular report.

Advertisement
Advertisement

Take it further