Math calculators

Pie Chart Calculator

Updated Sep 23, 2026 By Infinity Calculator
Rate Formulas
Data Input
Between 1 and 26 sectors. Rows are added or trimmed from the bottom.
# Label Value Percentage Angle (°) Color Remove
Totals 100 100.00% 360.00° Totals valid
Chart Configuration
Title & Type
Leave blank to render no title.
Order & Rotation
0° starts the first slice at the 12 o'clock position.
Labels
Legend
Explode Sector
Numbering follows the unsorted row order shown in the table.
No sector is currently exploded.
Colors & Slice Style
Typography & Motion
Chart
Example chart — enter your data above
Data Summary
Total Value
100
Number of Categories
4
Largest Category
C (35)
Smallest Category
A (15)
Label Value Percentage Angle (°)
Step-by-Step Solution
Export
SVG is scalable for print; PNG renders at 2× resolution; CSV includes label, value, percentage and angle.

Introduction

A pie chart shows how parts add up to a whole. Each slice stands for one group, and the size of the slice shows how big that group is.

Type a label and a value for each group. The calculator adds up your values, finds the percent for each one, and works out the angle of each slice in degrees. Then it draws the chart right away.

You can enter data by hand or paste it in from a list. You can pick colors, add a title, turn your pie into a donut, pull out one slice, and move labels inside or outside. When you like the result, save it as an SVG, a PNG, or a CSV file, or print it.

The calculator also shows the steps. You can see the total, the fraction for each group, and how that fraction turns into a percent and an angle. That makes it handy for homework, class projects, reports, and quick charts at work.

How to use our Pie Chart Calculator

Type in your category names and their values. The pie chart calculator works out each slice's percentage and angle, draws your pie chart, and shows the math step by step.

Manual Entry or Bulk Paste: Pick Manual Entry to type each row by hand, or Bulk Paste to drop in a list you already have.

Number of Sectors: Set how many slices you want, from 1 to 26. Rows are added or cut from the bottom.

Label: Name each slice, like "Sales" or "Rent".

Value: Type the number for that slice. It must be zero or more. The percent and angle fill in on their own.

Color: Click the color box to pick a shade for that slice.

Remove / Add Row: Use the × button to delete a row, or Add Row to put in a new one.

Paste your data: In Bulk Paste mode, put one slice per line, like Marketing, 15.

Auto-detect delimiter: Leave this on and the tool finds the comma, tab, or semicolon. Turn it off to pick the delimiter yourself.

Parse Data: Click this to turn your pasted lines into table rows.

Chart Title: Type a title for your chart, or leave it blank for none.

Chart Type: Choose a full pie chart or a donut chart with a hole in the middle.

Inner Radius: For donut charts only, drag this to make the hole bigger or smaller.

Sorting: Keep your rows in the order you typed them, or sort slices from biggest to smallest.

Start Angle: Set where the first slice begins. 0° starts at the top, like 12 on a clock.

Label Position: Put labels inside the slices, outside them, on callout lines, or hide them and use only the legend.

Show sector name, percentage, raw value: Tick what you want printed on each slice label.

Label Precision: Choose how many decimal places show in the labels, from 0 to 4.

Show legend: Tick this to show a key that matches colors to names.

Legend orientation: Put the legend on the right side or below the chart.

Explode Sector: Type a slice number and click Apply Explode to pull it out of the pie. Click Remove Explode to push it back.

Color Scheme: Pick a ready-made color set, such as Pastel, Vibrant, or High Contrast.

Slice Border Width and Color: Set how thick the line between slices is and what color it is.

Gradient fill: Tick this to give slices a soft shaded look.

Font Family and Font Size: Choose the look and size of the text on your chart.

Animation Speed: Pick how fast the slices draw in, or choose None for no motion.

Calculate and Reset: Click Calculate to redraw the chart, or Reset to go back to the sample data.

Expand, Print, and Export: Open a bigger view, print the chart with its data table, or save your work as SVG, PNG, or CSV.

What Is a Pie Chart?

A pie chart is a circle split into slices. Each slice stands for one part of a whole group. The bigger the slice, the bigger that part is. Pie charts are used to show how something is shared out, like a budget, survey answers, or how you spend your day.

Parts of a Pie Chart

  • Sector (slice): one category, like "Sales" or "Rent".
  • Central angle: the angle of the slice at the middle of the circle.
  • Label: the name, value, or percent written on or next to the slice.
  • Legend: a key that matches each color to a category name.

How Pie Chart Percentages and Angles Are Found

First, add all your values to get the total. Then use these two formulas for each category:

Example: if Sales is 20 out of a total of 100, then 20 ÷ 100 = 0.2. That is 20% of the pie and an angle of 72°.

All the percents should add to 100%, and all the angles should add to 360°. Sometimes rounding makes the total look like 99.9% or 360.1°. That small gap is normal.

When to Use a Pie Chart

Pie charts work best when you have one whole thing split into a few parts, usually 2 to 7 slices. They make it easy to see which part is biggest and which is smallest.

Pie charts are a poor choice when you have many small slices, when slices are close in size, or when values can be negative. In those cases a bar chart is clearer. A pie chart also cannot show change over time, so use a line chart for that.

Pie Chart vs. Donut Chart

A donut chart is the same as a pie chart, but the middle is cut out. The math is exactly the same. The empty center is often used to show the total or a title.

Tips for a Clear Pie Chart

  • Sort slices from big to small so they are easy to compare.
  • Use colors that are easy to tell apart, and add a legend.
  • Show the percent on each slice so readers do not have to guess.
  • Pull out (explode) one slice only when you want to point it out.
  • Group tiny slices into one "Other" slice to cut clutter.

Formulas used

Total of all sector values
T = \sum_{i=1}^{n} v_i
Percentage of each sector
p_i = \frac{v_i}{T} \times 100\%
Central angle of each sector
\theta_i = \frac{v_i}{T} \times 360^\circ
Cumulative start angle of sector i (with start-angle offset)
\alpha_i = \alpha_0 + \sum_{j=1}^{i-1} \theta_j
Point on the circle at angle (slice arc endpoints)
x = c_x + r\cos\!\left(\frac{(\alpha - 90)\pi}{180}\right),\quad y = c_y + r\sin\!\left(\frac{(\alpha - 90)\pi}{180}\right)
Donut inner radius
r_{in} = R \cdot \frac{k}{100}
Label radius inside slices
r_{label} = \begin{cases} \dfrac{r_{in} + R}{2}, & r_{in} > 0 \\[4pt] 0.63\,R, & r_{in} = 0 \end{cases}
Relative luminance used to pick label text color
L = 0.2126R_l + 0.7152G_l + 0.0722B_l,\quad C_l = \begin{cases} \frac{C}{12.92}, & C \le 0.03928 \\[4pt] \left(\frac{C+0.055}{1.055}\right)^{2.4}, & C > 0.03928 \end{cases}

Frequently asked questions

How do you find the angle of a pie chart slice?

Divide the slice value by the total, then multiply by 360.

Angle = (value ÷ total) × 360°

Example: 25 out of 200 is 25 ÷ 200 = 0.125. Then 0.125 × 360 = 45°.

How do you turn a percentage into a pie chart angle?

Multiply the percent by 3.6.

  • 10% = 36°
  • 25% = 90°
  • 50% = 180°
  • 75% = 270°

This works because 360° ÷ 100 = 3.6° for each percent.

How do you make a pie chart from raw data by hand?

Follow these steps:

  1. Add all the values to get the total.
  2. For each group, divide its value by the total.
  3. Multiply that answer by 360 to get the angle.
  4. Draw a circle and mark the center.
  5. Use a protractor to measure each angle, one after another.
  6. Label each slice and color it.

How many slices should a pie chart have?

Aim for 2 to 7 slices. More than that makes the slices thin and hard to read.

If you have many small groups, add them together into one slice called Other.

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

Rounding causes it. When you cut numbers to one or two decimals, tiny bits are lost or added.

This is normal and fine. If you need an exact 100%, show more decimal places or adjust the largest slice by the small leftover amount.

Can a pie chart show negative numbers?

No. A slice cannot have a negative size, so negative values do not work in a pie chart.

Use a bar chart instead. Bars can go below zero and still show the right value.

What is the 5% rule for pie charts?

As a rule of thumb, slices under about 5% are too thin to read well.

Group those tiny slices into one Other slice, or switch to a bar chart so every value stays visible.

Where should the first slice of a pie chart start?

Start at the top, the 12 o'clock spot, and go clockwise.

Put the biggest slice first. Readers scan from the top right, so the largest part gets noticed first.

What is a 45 degree slice in a pie chart as a percentage?

45° is 12.5% of the pie.

Divide the angle by 360, then multiply by 100: 45 ÷ 360 = 0.125, so 12.5%.

Quick check: 45° is one eighth of a circle, and one eighth is 12.5%.

Should pie chart slices be sorted from largest to smallest?

Yes, in most cases. Sorting big to small makes it easy to compare slices and spot the leader.

Keep the original order only when the groups have a set sequence, like age bands, grades, or months.

What is a donut chart used for?

A donut chart is a pie chart with the middle cut out. The math is the same.

The empty center gives room for a total, a title, or a key number. The ring can also be easier to compare than full wedges.

Why is exploding a pie chart slice not always a good idea?

Pulling a slice out makes it look bigger than it is and moves the other slices apart.

Explode only one slice, and only when you want to point it out. Never explode every slice.

Do pie chart values have to be percentages?

No. You can enter raw numbers like dollars, votes, hours, or counts.

The percent is worked out from the total on its own. Just make sure every value is part of the same whole, and do not count anything twice.