Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Free tool · Math and study

Pie chart maker

Type a label and a size on each line, and this pie chart maker divides the circle for you. You get the percent and the angle of every slice, and you can download the chart as a PNG or SVG.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

Values are the sizes of the slices, not percents. They can be any positive numbers.
Label on each slice
Percent decimals
Order
Options
Your pie chart

Largest: Rent (60%)4 slices

Where the money goes in a monthRent: 1,200 (60%)Food: 450 (22.5%)Transport: 150 (7.5%)Fun: 200 (10%)60%22.5%7.5%10%RentFoodTransportFun
Slice sizes
SliceValuePercentAngle
Rent1,20060%216°
Food45022.5%81°
Transport1507.5%27°
Fun20010%36°
Slices
4
Total
2,000

How to use the Pie Chart Maker

  1. Write one slice per line in Data, for example Rent, 1200. The numbers are sizes, so they do not have to add up to 100.
  2. Set a Chart title and decide what each slice shows: Percent, Value or None.
  3. Pick Percent decimals and leave Rounded percents add to 100 on if the labels must total 100%.
  4. Tick Donut for a ring, then press Download PNG or Download SVG.

How do I make a pie chart from my numbers?

Each slice is its value divided by the total, and the angle is that share of 360 degrees. In the example, a monthly budget of Rent 1,200, Food 450, Transport 150, Fun 200 adds up to 2,000. Rent is 1,200 of 2,000, which is 60% of the circle and an angle of 216 degrees. The slices are drawn clockwise from the top in the order you typed them.

You can type percents, money, counts or minutes, because only the proportions matter. The numbers do not need to total 100. A value of zero is left out and counted in the note, a negative value is refused with the name of the line, and the page draws up to 20 slices. If more categories are needed, add the small ones together into one Other line. Currency signs and a percent sign after a number are ignored when a line is read. A comma, a tab or a semicolon splits the label from the number, and thousands are written without a comma.

Slice sizes for the example data
SliceValuePercentAngle
Rent1,20060%216°
Food45022.5%81°
Transport1507.5%27°
Fun20010%36°

Why do my rounded percentages not add up to 100?

Rounding each share on its own can leave the labels at 99% or 101%. Three equal slices are each 33.333 percent, so rounding to one decimal gives 33.3, 33.3 and 33.3, which total 99.9. The tool can use the largest remainder method instead: round every share down at the chosen number of decimals, count how many steps are missing from 100, and give one step each to the slices with the biggest part cut off. Ties go to the earlier line.

Rounded labels with the fix off and on
ValuesRoundingFixLabelsLabels add to
1, 1, 11 decimaloff33.3%, 33.3%, 33.3%99.9
1, 1, 11 decimalon33.4%, 33.3%, 33.3%100
1, 1, 1whole numberson34%, 33%, 33%100
1, 1, 1, 1, 1, 1whole numbersoff17%, 17%, 17%, 17%, 17%, 17%102
1, 1, 1, 1, 1, 1whole numberson17%, 17%, 17%, 17%, 16%, 16%100

Turn the option off if you want every label to be the plain rounded share, as a spreadsheet would show it. The table under the chart always uses the same setting as the labels, so the chart and the table agree.

When is a pie chart maker the right choice?

A pie chart works for parts of one whole with a handful of slices, where the question is who has the biggest share. It works poorly for many similar slices or for comparing values across separate groups, because people judge length better than angle. If you need to compare the sizes closely, the bar graph maker draws the same lines as bars on an axis that starts at zero.

To turn counts into percents without a chart, use the percentage calculator. The statistics calculator adds the mean and the spread of a list. Sort the slices largest first to read them in order, and use the donut shape when you want to put a number or a short title in the center of the saved image. The first eight slice colors come from a set built to stay distinct for viewers with red-green color vision differences, and the ninth slice onward gets generated colors.

Everything is drawn on this page in your browser. The SVG file keeps sharp edges at any size, and the PNG is saved at twice the size of the preview with a white background.

Use it with

Questions

How do I make a pie chart online?

Write each slice as a label, a comma and a size, like Rent, 1200. Pick what the slices show, then save the chart as a PNG or SVG.

Do the numbers have to add up to 100?

No. Each slice is its value divided by the total of all values, so any positive numbers work.

How is the angle of a slice calculated?

Divide the value by the total and multiply by 360. A value of 450 in a total of 2000 gives 81 degrees.

Why do my percent labels add up to 99.9?

Each share is rounded on its own. Turn on the option that makes rounded percents add to 100, and the leftover steps go to the slices with the largest rounded off part.

Can I make a donut chart?

Yes. Tick the Donut option and the slices are drawn as a ring with the labels on the ring.

Is my data uploaded?

No upload happens. Your browser draws the chart, so the numbers never reach a server.

The tool's results are computed in your browser by the code on this page; the explanations are checked against the tool's own output.