Pie Chart Angle Calculator

Calculate the exact angle in degrees for each slice of a pie chart. Shows start/end angles, arc lengths, mid-angles, and step-by-step formulas.

Pie Chart Angle Calculator

360 for full circle, 180 for semi-circle
Total Value
100.00
Sum of all data values
Number of Slices
5
Categories in the chart
Sum of Angles
360.00°
Should equal 360°
Average Angle
72.00°
Mean angle per slice
Largest Slice
126.00°
A
Smallest Slice
18.00°
E

Angle Breakdown

CategoryValue%Angle (°)Start°End°Mid°Arc (rad)
A35.0035.00%126.00°0.00°126.00°63.00°2.1991
B25.0025.00%90.00°126.00°216.00°171.00°1.5708
C20.0020.00%72.00°216.00°288.00°252.00°1.2566
D15.0015.00%54.00°288.00°342.00°315.00°0.9425
E5.005.00%18.00°342.00°360.00°351.00°0.3142

Visual Representation

126.0°
A
90.0°
B
72.0°
C
54.0°
D
18.0°
E

Formulas Used

A: (35.00 / 100.00) × 360° = 126.00°
B: (25.00 / 100.00) × 360° = 90.00°
C: (20.00 / 100.00) × 360° = 72.00°
D: (15.00 / 100.00) × 360° = 54.00°
E: (5.00 / 100.00) × 360° = 18.00°
Planning notes, formulas, and examples

About the Pie Chart Angle Calculator

The Pie Chart Angle Calculator computes the exact central angle for each slice of a pie chart based on your data values. Enter categories and their values, and the tool calculates the proportional angle in degrees, the start and end positions around the circle, mid-point angles for label placement, and arc lengths in radians.

Understanding how to convert data values to angles is a fundamental skill in data visualization and geometry. Each slice's angle equals (value / total) × 360°, but tracking cumulative start and end angles, especially with custom offsets, requires careful arithmetic. This calculator handles all the math and shows the step-by-step formulas.

The tool supports custom total angles (use 180° for a semi-circle chart) and start offsets (to rotate the chart). This flexibility makes it useful for both standard data visualization and specialized chart designs where non-standard configurations are needed.

When This Page Helps

Converting data values to pie chart angles is one of the most common practical applications of proportional reasoning. This calculator is essential for students learning about circle graphs, designers creating custom data visualizations, and developers who need precise angle values for SVG or Canvas rendering.

The formula display shows every step, making it a powerful learning tool. The mid-angle and arc length columns provide the exact values needed for programmatic chart rendering, saving developers time and reducing errors in SVG path calculations.

How to Use the Inputs

  1. Enter data as Label:Value pairs separated by commas.
  2. The total angle defaults to 360° (full circle) — change to 180° for semi-circle charts.
  3. Optionally set a start offset angle to rotate the chart.
  4. Review the angle breakdown table with exact start, end, and mid angles.
  5. Check the formula display to see each calculation step.
  6. Use the arc length column for SVG or canvas drawing calculations.
Formula used
Slice Angle = (Value / Total) × Full Angle. Start Angle = Previous End Angle (or offset). End Angle = Start Angle + Slice Angle. Mid Angle = Start + Slice/2. Arc Length = (Angle/360) × 2π.

Example Calculation

Result: A: 126°, B: 90°, C: 72°, D: 54°, E: 18°

With total = 100 and full circle (360°): A = (35/100)×360 = 126°, B = (25/100)×360 = 90°, C = (20/100)×360 = 72°, D = (15/100)×360 = 54°, E = (5/100)×360 = 18°. Sum = 360°.

Tips & Best Practices

  • For a full circle, all angles must sum to exactly 360°.
  • Use the mid-angle for optimal label placement — it's the center of each slice.
  • Semi-circle charts (180°) work well for gauges and meters.
  • Arc length in radians is needed for SVG path commands (d attribute).
  • The start offset is useful for emphasizing a particular slice by rotating it to the top.
  • Verify your calculations — the sum of all angles should match the total angle.

How Pie Chart Angles Work

A pie chart is a circular graph divided into sectors, where each sector's central angle is proportional to the quantity it represents. Since a full circle has 360 degrees, the angle for any slice is: angle = (value / total) × 360°. This proportional relationship means that a category representing 25% of the total gets exactly 90° (one quarter of the circle).

The cumulative nature of the angles means each slice starts where the previous one ends. The first slice starts at the top (0° or the offset angle), and subsequent slices are placed clockwise. Tracking these start and end angles is essential for accurate chart drawing.

Drawing Arcs with SVG

When creating pie charts in SVG, you need to convert angles to coordinates on the circle. For a circle centered at (cx, cy) with radius r, the endpoint of an angle θ (measured from 12 o'clock clockwise) is: x = cx + r × sin(θ), y = cy - r × cos(θ). SVG arc commands use the large-arc flag (1 if angle > 180°) and sweep direction to draw the curved path.

Angle Accuracy and Rounding

In practice, calculated angles may not sum to exactly 360° due to floating-point arithmetic. A common solution is to derive the last slice's angle as 360° minus the sum of all previous angles, ensuring a perfect circle. For display purposes, rounding to 1-2 decimal places is sufficient, but internal calculations should maintain full precision.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Divide the category value by the total of all values, then multiply by 360°. For example, if a category is 25 out of 100 total, the angle is (25/100) × 360 = 90°.