How the Pie Chart Calculator works
A pie chart splits a full circle into wedges, one per category, where each wedge's size is proportional to that category's share of the whole. This calculator takes the raw value of each category, adds them into a total, and then converts every value into two things: the percentage of the total it represents, and the angle in degrees that its slice occupies.
The two formulas are simple and exact:
- Percentage of a slice = (category value ÷ total of all values) × 100
- Angle of a slice = (category value ÷ total of all values) × 360°
Because a full circle is 360°, every category's share of the circle equals its share of the total. If a category is 25% of the data, its slice is 25% of the circle, which is 0.25 × 360 = 90°. The percentages of all slices always sum to 100%, and the angles always sum to 360°.
A worked example
Suppose a household budget is Rent 30, Food 20, and Transport 10. The total is 30 + 20 + 10 = 60. Rent's share is 30 ÷ 60 = 0.5, so its slice is 50% and 0.5 × 360 = 180°. Food is 20 ÷ 60 = 0.333, giving 33.33% and 120°. Transport is 10 ÷ 60 = 0.167, giving 16.67% and 60°. The percentages add to 100% (50 + 33.33 + 16.67) and the angles add to 360° (180 + 120 + 60).
Why the angle matters
If you are drawing a pie chart by hand or in a design tool, the angle is what you actually measure with a protractor to mark each wedge. Spreadsheet and charting software does this conversion automatically, but knowing the formula lets you verify a chart, reproduce one manually, or check that a graphic is drawn to scale rather than eyeballed.
Common reference points
- Half the total → 50% → 180° (a semicircle).
- A quarter of the total → 25% → 90° (a right angle).
- A third of the total → 33.33% → 120°.
- A tenth of the total → 10% → 36°. In fact, every 1% of the total equals exactly 3.6°.