Pie Chart Calculator
Enter your groups and values to get each slice's percentage and angle in degrees—rounded to add up to exactly 100% and 360°—and a pie chart you can download.
Up to 20 groups, values or percentages
Type counts, amounts, or scores and the calculator finds the shares. Already have percentages? Switch the input to Percentages; anything under 100% is shown as an "Unassigned" slice. You can also paste two columns straight from a spreadsheet.
Total
—
—
Slices
—
Non-zero groups
Largest
—
—
Smallest
—
—
Your Pie Chart
Starts at 12 o'clock and runs clockwise. Hover a slice for details.
Chart tips for this data
| Group | Value | Percent | Angle | From → To |
|---|
—
How it was calculated
How to Use This Calculator
- Choose Values for raw numbers (counts, money, hours) or Percentages if your data is already in percent.
- Type a label and a value for each group. Use Add group for more rows, or paste two columns from Excel or Google Sheets.
- Pick a pie or donut style and the number of decimals. Keep Order slices largest to smallest on for the easiest-to-read chart.
- Press Make Pie Chart. Changes update the chart instantly after that.
- Read each slice's percent and angle from the table, or download the chart as a PNG and the table as a CSV.
What Is a Pie Chart?
A pie chart calculator converts numerical data into percentages and corresponding angles for a pie chart. Each category forms a sector proportional to its share of the total, with all sectors adding up to 100% and 360°. Enter category values to calculate percentages and sector angles for constructing a pie chart.
A pie chart shows how a whole splits into parts, with the full circle standing for the total. A group worth a quarter of the total gets a quarter of the circle: 25% and 90°.
Pie charts work only when the parts belong to one whole and add up to it—budget categories, survey answers to a single-choice question, market share, or time spent on tasks in a day. They are not suited to values that overlap, such as multiple-choice answers where people can pick several options, or to values that do not form a total, such as temperatures.
100%
All slice percentages together
360°
All slice angles together
3.6°
The angle for each 1%
Pie Chart Formulas
Total
T = v₁ + v₂ + … + vₙ
Percentage
% = v ÷ T × 100
Central angle
θ = v ÷ T × 360° = % × 3.6
To draw a pie chart by hand, add the values to get the total, convert each value to an angle, then mark the angles one after another with a protractor. Start at the top of the circle (12 o'clock) and work clockwise; the end angle of one slice is the start angle of the next. The From → To column in the results gives these cumulative angles directly.
Method reference: Math is Fun — Pie Chart.
Worked Example: How 40 Students Get to School
14 walk, 12 take the bus, 9 come by car, and 5 cycle. The total is 40, so each student is worth 360° ÷ 40 = 9° of the circle.
| Group | Students | Percent | Angle |
|---|---|---|---|
| Walk | 14 | 14 ÷ 40 = 35% | 14 × 9 = 126° |
| Bus | 12 | 30% | 108° |
| Car | 9 | 22.5% | 81° |
| Bike | 5 | 12.5% | 45° |
| Total | 40 | 100% | 360° |
Percent to Degrees Reference
Common shares and the angles they take up. Multiply any percentage by 3.6 to get its angle.
1%
3.6°
5%
18°
10%
36°
12.5% (⅛)
45°
15%
54°
20% (⅕)
72°
25% (¼)
90°
33.3% (⅓)
120°
40%
144°
45%
162°
50% (½)
180°
75% (¾)
270°
Why Rounded Percentages Don't Always Add Up to 100%
Three equal groups are each 33.333…%. Round each to a whole number and you get 33% + 33% + 33% = 99%. Readers notice, and it looks like an error.
This calculator uses the largest remainder method to avoid that. It rounds every share down, works out how many units are missing to reach 100%, and gives one extra unit to the groups whose cut-off decimals were largest. The three equal groups become 34% + 33% + 33%. Angles are handled the same way so they always total exactly 360°.
1. Round down
33.33 → 33, 33.33 → 33, 33.33 → 33. Sum = 99.
2. Count the gap
100 − 99 = 1 unit left to hand out.
3. Give it out
Largest remainders first; ties go to the larger value, then the first row.
The rounded numbers are for display. The chart itself is drawn from the exact shares, so slice sizes are never distorted.
How to Make a Pie Chart Easy to Read
Do
- Keep it to about five or six slices; combine the rest into "Other".
- Start at 12 o'clock and order slices from largest to smallest, clockwise.
- Label slices directly with their names and percentages.
- Use it when one or two groups clearly dominate the whole.
Avoid
- 3D effects and exploded slices, which distort the angles.
- Comparing groups of nearly equal size—a bar chart shows small differences far better.
- Placing several pies side by side to compare them over time.
- Pies with only two slices; a single percentage says the same thing.
Guidance reference: UK Government Analysis Function — Data visualisation: charts.
Pie Chart vs. Bar Chart vs. Stacked Bar
People judge lengths along a common baseline more accurately than angles or areas, so a pie is the right choice only when the part-to-whole message matters more than precise comparison.
| Chart | Shows best | Groups | Weak at |
|---|---|---|---|
| Pie / donut | Share of one whole at a glance | 2–6 | Close values, many groups, change over time |
| Bar chart | Ranking and exact comparison | 2–20+ | Showing that parts make a whole |
| 100% stacked bar | Comparing shares across several wholes | 2–5 per bar | Middle segments have no common baseline |
| Table | Exact values for lookup | Any | Seeing the pattern quickly |
Further reading: Stephen Few — Save the Pies for Dessert (Perceptual Edge).
Frequently Asked Questions
How do I calculate the angle of a slice?
Divide the group's value by the total. That fraction is the slice's proportion of the whole; multiply it by 360 to get the sector angle in degrees. If you already have the percentage, multiply it by 3.6. For example, 45% of a pie is 45 × 3.6 = 162°.
How do I turn an angle back into a percentage?
Divide the angle by 3.6, or work out its ratio to the full 360° and multiply by 100. A 54° slice is 54 ÷ 3.6 = 15% of the whole. To get the original quantity—for survey data, the frequency of that answer—multiply the share by the total.
What does a 75–25 pie chart look like?
Three quarters of the circle (270°) for the larger segment and one quarter (90°) for the smaller one—the shape of a clock face from 12 to 9 versus 9 to 12. With only two groups, the comparison is simple enough that a single statement such as "75% said yes" is often clearer than a chart.
Can a pie chart show negative values?
No. A slice cannot have a negative angle, so the calculator rejects negative input. For data such as profit and loss by department, where some components are negative, use a bar graph with a zero line instead.
What if my percentages don't add up to 100%?
In Percentages mode, a total below 100% gets an "Unassigned" slice for the remainder, so the gap stays visible. A total above 100% is flagged as an error, because it usually means overlapping categories or a typing mistake. If the difference is only rounding in your dataset, enter the original values in Values mode instead, and the result will add up exactly.
How many slices should a pie chart have?
Ideally no more than five or six. Beyond that, thin slices become hard to label and colors start to look alike, which is why most data visualization guides, including UK government statistics guidance, recommend keeping pies small. Turn on "Combine slices under 3% into Other," or switch to a bar chart if every group matters.
What is the difference between a pie chart and a donut chart?
A donut chart is a pie with the center removed. Readers then judge slices by arc length rather than angle, and the empty center can hold the total. Both show the same distribution of shares; choose whichever fits your layout.
How do I use the chart in a report or slide?
Press PNG to download the chart with its legend—every category name and percentage—on a white background at double resolution, ready for Word, Google Slides, or PowerPoint; add your own chart title there. Press CSV to output the full value set with percentages and angles as a table for Excel or Google Sheets.
Other Useful Calculators
Negative Binomial Distribution Calculator
Probability of the r-th success on a given trial.
Lognormal Distribution Calculator
Probabilities, quantiles, and measures for skewed data.
Empirical Rule Calculator
Find the 68–95–99.7% ranges of a normal distribution.
Elimination Method Calculator
Solve two-variable linear systems step by step.
Generic Rectangle Calculator
Calculate common rectangle measurements.
Polynomial Division Calculator
Find a polynomial quotient and remainder.