Pie Chart Maker
: Make a pie chart or donut chart from labels and values, with percent labels that add up to 100%, each slice's angle in degrees, and the chart to download as SVG or PNG- Rent
- Groceries
- Transport
- Utilities
- Savings
- Fun
Summary
- Total
- 3,000
- Slices
- 6
- Largest
- Rent, 46.7%
- 168° of the circle
Slices
| Label | Value | Percent | Degrees |
|---|---|---|---|
| Rent | 1,400 | 46.7% | 168° |
| Groceries | 520 | 17.3% | 62.4° |
| Transport | 260 | 8.7% | 31.2° |
| Utilities | 180 | 6.0% | 21.6° |
| Savings | 400 | 13.3% | 48° |
| Fun | 240 | 8.0% | 28.8° |
| Total | 3,000 | 100.0% | 360° |
Files
- monthly-budget.svg
- monthly-budget.png
Pie Chart Maker
This pie chart maker turns labels and values into a pie chart or a donut chart, with percent labels that add up to exactly 100%. It also works as a pie chart calculator: the table under the chart gives every slice's percentage and its angle in degrees. Download the chart as SVG or PNG, or print it.
How to make a pie chart
- Give the chart a
Chart title(optional; it also names the downloaded files). - Under
Slices, type aLabeland aValuefor each slice.Paste rowstakes a whole list, such as two columns copied from a spreadsheet; a heading row is skipped. Values can be typed as1,250,$300,12.5%or3/4. - Leave
Colourempty to use the built-in colours, or type a hex code such as#2563ebor a name such asred. - Choose
PieorDonut, what theLabels on slicesshow, theOrder, and whether to groupSmall slicesas Other. - Read the percentages and degrees in the table, then use
Filesfor the SVG or PNG, or Print.
Example
A monthly budget of 3,000: each slice's share as the table shows it.
Rent: 1,400
Groceries: 520
Transport: 260
Utilities: 180
Savings: 400
Fun: 240Rent: 1,400 = 46.7%, 168°
Groceries: 520 = 17.3%, 62.4°
Transport: 260 = 8.7%, 31.2°
Utilities: 180 = 6.0%, 21.6°
Savings: 400 = 13.3%, 48°
Fun: 240 = 8.0%, 28.8°
Total: 3,000 = 100.0%, 360°Details
- How do you work out a pie chart's percentages? Divide each value by the total and multiply by 100. Rent of 1,400 out of 3,000 is 1,400 ÷ 3,000 × 100 = 46.7%.
- How do you work out the angle of each slice? A circle is 360°, so multiply each share by 360. Rent takes 1,400 ÷ 3,000 × 360 = 168°. The Degrees column gives every slice's angle, and the angles add up to 360°, which is what a pie chart drawn by hand with a protractor needs.
- Rounded percentages often add up to 99.9% or 100.1%. Three equal slices are 33.333…% each, so rounding each one gives 99.9%. The tool uses the largest-remainder method: it rounds every slice down, then gives the missing tenths to the slices that lost the most, so three equal slices read 33.4%, 33.3%, 33.3% and the labels add up to 100%. A note says when this changed a label. Choose 0, 1 or 2 decimals.
- Pie or donut: a donut chart is a pie with a hole in the middle, and the total is written in the hole. Labels on slices can show the percent, the value, both, or the name with the percent; a slice of value 0 is listed in the table but not drawn.
- Order puts the slices as entered, largest first or smallest first, clockwise from 12 o'clock. Grouping small slices joins every slice under 1%, 2% or 5% of the total into one grey Other slice, which keeps a chart with many tiny parts readable; the table still lists each one. A single small slice is never grouped on its own.
- The colours keep at least 3:1 contrast against the white background, and neighbouring slices get different colours, with thin white lines between slices. The text on each slice is black or white, whichever reads better on that colour. The PNG is drawn at twice the chart's size on white, so it looks the same in a document, on a dark page or printed.
Limits
- There is no limit on the number of slices: a long list is drawn with a progress line and can be cancelled. The legend on the chart lists the first 60 slices and says how many more there are; the table under the chart lists every slice.
- A slice narrower than 12° has no label inside it, because the text would not fit; its figures are in the legend and the table.
- Values must be 0 or more: a pie chart shows parts of a whole, so a negative value is refused with the row named. Labels longer than about 30 characters are shortened in the legend and kept whole in the table.
- This is a flat chart: there is no 3D pie, because tilting a pie makes the front slices look bigger than they are.
FAQ
How do I make a pie chart from percentages?
Type the percentages as the values, for example 45, 30 and 25. The tool divides by their total, so values that already add up to 100 are drawn as typed, and values that do not are scaled to the whole circle.
How do I calculate the degrees for a pie chart?
Divide the slice's value by the total and multiply by 360. The Degrees column does this for every slice, and the angles add up to 360°.
Why do my pie chart percentages not add up to 100%?
Because each one is rounded on its own. This tool adjusts the rounding with the largest-remainder method so the labels add up to exactly 100%.
Can I paste data from Excel or Google Sheets?
Yes. Copy the label and value columns, then use Paste rows under Slices. A heading row such as Category, Amount is skipped.
Is my data sent anywhere?
No. The chart, the table and the files are made in your browser, and nothing is stored after you close the page.
Runs entirely in your browser. Nothing is uploaded.