Pie Chart Generator
Turn label, value lines into a pie chart with exact slice angles and shares — live SVG preview, SVG and PNG downloads.
A pie slice is an angle before it is a shape: share × 360 degrees. This generator exposes that arithmetic instead of hiding it — the sample data (Rent 50, Food 30, Fun 20, total 100) produces angles of exactly 180°, 108° and 72°, drawn in that order starting at the top and running clockwise, and the result line under the chart prints every slice’s percentage and angle so you can audit the picture against the numbers. With messier data the same rule holds: values of 1, 1 and 2 total 4, so their slices are 90°, 90° and 180° — a quarter, a quarter and a half, whatever the raw units were.
Everything runs in your browser; your data stays on your device, is never uploaded, never stored and never put into a link. Values do not need to add up to 100 — the tool works out each slice as a share of the total you entered.
Quick answers
How do I calculate pie chart slice angles?
Divide each value by the total and multiply by 360°. Values of 50, 30 and 20 (total 100) give 180°, 108° and 72°; values of 1, 1 and 2 give 90°, 90° and 180°.
The percentages are the same division × 100, so a 180° slice is always exactly a 50% share.
How do I make a pie chart online?
Write one line per slice as label, value, check the percentages and angles in the result line, then download SVG or PNG. The values are normalised for you — they do not need to sum to 100.
Keep it to parts of a real whole and a handful of slices; otherwise a bar chart reads more accurately.
How to use
- Type or paste one slice per line in the form label, value — for example Rent, 50.
- Values do not need to total 100: the tool divides each value by the total to get its share.
- Read the result line under the chart for each slice’s percentage and angle in degrees, and check they match your intent.
- Download SVG for crisp use at any size, or PNG for slides and documents.
About this tool
Use a pie only when the parts genuinely make a whole — a budget, a vote split, a market share — and keep the slice count small: past about six slices, angles become hard to compare and a bar chart ranks the same numbers more honestly. Negative and zero values cannot be slices (a share of a total cannot be negative), so they are excluded from the angle calculation and the total is built from positive values only. Like the other chart tools here, the pie is hand-built SVG from the shared kernel — each slice is a single arc path — with no chart library and no data leaving the page; the PNG is rasterised locally from the SVG.
Frequently asked questions
Do my values need to add up to 100?
No. The tool totals whatever you enter and gives each value its share of that total. Rent 50, Food 30, Fun 20 totals 100 and yields 50%, 30% and 20%; Rent 500, Food 300, Fun 200 totals 1,000 and yields exactly the same chart.
How is each slice angle calculated?
Angle = value ÷ total × 360°. A half share is 180°, a quarter is 90°, a tenth is 36°. The result line under the chart lists every slice’s angle so you can verify the drawing.
What happens to zero or negative values?
They get no slice. A pie share must be a positive part of a positive total, so zero and negative entries are excluded from the total and the angles rather than drawn as invisible or impossible slices.
When is a pie chart the wrong choice?
When the parts do not sum to a meaningful whole, when there are many similar-sized parts, or when readers must compare values precisely. In all three cases the Bar Chart Generator, which shares this data format, will serve the same numbers better.
First time embedding? Read the step-by-step guide →
More free tools
Bar Chart Generator
Turn label, value lines into a clean bar chart — live SVG preview with SVG and PNG downloads, drawn entirely in your browser.
Line Chart Generator
Plot one or more series over time as a line chart — shared chart kernel, live SVG preview, SVG and PNG downloads.
Histogram Generator
Bin your raw numbers into a histogram — equal-width bins, exact counts per bin, live SVG preview and downloads.
QR Code Generator
Turn any link or text into a scannable QR code in seconds.
Random Number Generator
Pick random numbers in any range, with no repeats option.
Random Password Generator
Create strong, random passwords — generated on your device only.