Skip to content

Pie Chart Maker – Create a Pie Chart Online

Updated:

Turn any list of labeled values into a pie or donut chart. Paste your data (one slice per line), set the title, colors, labels and grouping, and download the result as SVG or PNG.

Turn Your Data into a Pie or Donut Chart

Input Fields
Chart options
°
0° = 12 o’clock; slices run clockwise.
If enabled, the result will update automatically when you change any value.

Pie Chart Formula

Formula
\[ \begin{gathered} \text{share}_i = \frac{v_i}{\sum v} \times 100\,\%, \qquad \theta_i = \frac{v_i}{\sum v} \times 360^\circ = \text{share}_i \times 3.6^\circ, \\[6pt] \sum v = v_1 + v_2 + \dots + v_n, \qquad \theta_1 + \theta_2 + \dots + \theta_n = 360^\circ. \end{gathered} \]

Where:

  • \(v_i\) — the value of slice \(i\) (a budget line, a category count, a percentage contribution)
  • \(\sum v\) — the total of all values
  • \(\text{share}_i\) — slice \(i\)'s percentage of the whole
  • \(\theta_i\) — the central angle that slice \(i\) occupies on the circle

Every pie chart reduces to these two conversions: each value becomes a share of the total, and each share maps onto 360° of the circle. Because all shares add to 100%, the drawn angles always add up to exactly 360° — a full circle.

Pie Chart – Calculation Example

Example: the default data in the calculator — a monthly spending budget with Rent \(1200\), Food \(450\), Transport \(180\), Entertainment \(170\) and Subscriptions \(55\).

First, the total:

\[ \sum v = 1200 + 450 + 180 + 170 + 55 = 2055 \\[4pt] \]

Share and central angle of the largest slice (Rent):

\[ \text{share} = \frac{1200}{2055} \times 100 \approx 58.4\,\% \qquad \theta = \frac{1200}{2055} \times 360 \approx 210.2^\circ \\[4pt] \]

The remaining slices, in order of size:

  • Food: \(450 / 2055 \approx 21.9\%\), angle \(\approx 78.8^\circ\)
  • Transport: \(180 / 2055 \approx 8.8\%\), angle \(\approx 31.5^\circ\)
  • Entertainment: \(170 / 2055 \approx 8.3\%\), angle \(\approx 29.8^\circ\)
  • Subscriptions: \(55 / 2055 \approx 2.7\%\), angle \(\approx 9.6^\circ\)

Result: Rent takes \(58.4\%\) of the circle (\(210.2^\circ\)), and every slice's share sums to \(100\%\) and \(360^\circ\). With the default settings (grouping on at \(3\%\)), Subscriptions at \(2.7\%\) falls below the threshold and is merged into a grey “Other” slice, which the full breakdown in the jump table still lists separately.

How to use the calculator

  1. Enter your data in Data — label and value: one slice per line as “Label, value”. You can paste two columns straight from a spreadsheet — tab, comma or semicolon separated all work, and both 1,200 and 12,5 are recognized. Up to 30 slices.
  2. Optionally change the Chart title shown above the chart.
  3. Pick the Chart type: Pie or Donut. For a donut, set the Hole size (inner radius, 5–90% of the pie radius).
  4. Adjust the Start angle: 0° places the first slice at 12 o'clock, and slices run clockwise from there.
  5. Choose how slices are ordered with Sort slices (original order, largest first, or smallest first).
  6. Set Slice labels to show the value, the percentage, both, or hide labels entirely.
  7. Choose a Legend position (right, below the chart, or hidden) and a Color palette — including Okabe–Ito for colour-blind viewers. Per-slice colour pickers appear under the chart.
  8. To simplify a busy chart, enable Group small slices into “Other” and set Group below to a percentage threshold; everything under it is merged into one grey slice (still itemized in the table).
  9. Hover any slice for its exact value and percentage, then use the Download SVG or Download PNG buttons to save the finished chart.

What a pie chart is and when to use it

A pie chart shows how a total quantity is split between categories. Each slice's area — equivalently, its central angle — is proportional to the category's share, so a glance at the wheel tells you which parts dominate and which are minor. In the budget example above, the 58.4% Rent wedge covers more of the circle than all other categories combined, a comparison that is immediately visible even before you read a single number.

Pie charts work best when three conditions hold: the values are parts of a single whole (a budget, a market, a vote, a day's hours), the number of slices is small — ideally five or six after grouping — and there is a clear story of shares rather than trends. When you want to compare a category across time or groups, a bar chart is usually the better tool; when you need to summarize the numeric data behind the slices first, the median and mode calculator or the quartile calculator can help you see the distribution before you plot it.

Interpreting the result is straightforward: each percentage is the slice's share of the sum of all values, and the table below the chart lists the exact value, share and central angle for every slice, including those merged into “Other”. The donut variant carries the same information but leaves the centre free — this tool uses it to display the total, which puts the absolute scale of the data right next to the relative shares.

Assumptions, limitations and practical tips

  • Values must be non-negative. A pie chart represents shares of a whole, so negative quantities, net changes and differences cannot be drawn as slices — use a bar chart for those.
  • Keep the slice count low. Slices are valid up to 30, but beyond roughly 8–10 wedges a pie becomes hard to read. Enable “Other” grouping or merge categories before you increase the threshold beyond about 5%.
  • Slices under 14° lose their on-chart label to prevent overlapping text; their values are still available on hover and in the table.
  • Zero-value slices are allowed but produce no visible wedge, and at least one value must be greater than zero.
  • Sorting matters for perception. “Largest first” starting at 12 o'clock is the most readable default; the original order is better when the sequence itself (for example, stages of a project) carries meaning.
  • Colors are reproducible. The SVG download contains the exact vector chart with title, labels and legend; the PNG is rendered at double resolution on a white background, so both are suitable for reports and slides. For grayscale printers, choose the Grayscale palette, and for audiences with colour vision deficiencies, use the Okabe–Ito palette. If you also need to quantify how uneven the values are — for example, how much of the total the top slice really dominates — the coefficient of variation calculator summarizes that spread in a single number.
  • Privacy: all parsing, drawing and exporting happens in your browser; the data never leaves this page.

Frequently Asked Questions

Can I enter percentages instead of raw values?

Yes. If your percentages sum to exactly 100\%, just type them as values — the resulting slices are identical, because shares are always computed relative to the total. If they sum to something else (say 95\% or 240\%), the tool rescales them automatically, so the chart still shows each part's proportion of the whole. Enter numbers in the same unit throughout: don't mix counts with percentages in one chart.

How do I calculate pie chart percentages by hand?

Add up all values to get the total, then divide each value by the total and multiply by 100: \( \text{percent} = v_i / \text{total} \times 100 \). For the wedge angle, multiply the same fraction by 360\( ^\circ \). As a check, all percentages must sum to 100\% and all angles to 360\( ^\circ \); small differences after rounding are normal.

Why is one of my slices grey and labelled “Other”?

Grey always means the “Other” group: any slice whose share falls below your grouping threshold (3\% by default) is merged into it so the chart stays readable. If you want every category drawn separately, untick “Group small slices into Other” or lower the threshold. The full breakdown of what the grey slice contains always stays in the table below the chart.

Should I download the chart as SVG or PNG?

Choose SVG for reports, editing in design software, or anything that will be resized — it's a vector file and stays crisp at any zoom. Choose PNG for quick pasting into slides, chats, or tools that don't accept SVG; it's rendered at double resolution with a white background, so it looks sharp in normal use. Both include the title, labels and legend.

What's the difference between a pie and a donut chart?

They are geometrically the same: each category's share is still an angle proportional to its value. A donut simply removes the centre, which this tool fills with the total sum — handy when the absolute numbers matter, not just the proportions. Donuts also make a small “emphasized” slice easier to compare at a glance. Pick whichever reads better for your audience; the data is unchanged.

How many slices should a pie chart have?

Aim for five or six slices at most; beyond eight to ten, wedges become too thin to compare visually and labels start colliding. Group small categories into “Other”, or merge similar ones before plotting. If you have many categories of similar size, no dominant story, or a long tail of values, a bar chart will usually communicate the breakdown more clearly than any pie.

Why can't I use negative values or show changes over time?

A pie can only represent non-negative parts of one whole, because every angle must be positive and all of them must add to 360\( ^\circ \). Negative numbers, net gains or losses, and before/after differences break that logic — use a bar chart instead. For multiple time periods, draw one bar chart or line chart, or several pies side by side, rather than trying to encode time inside one circle.

Leave a Reply

Your email address will not be published. Required fields are marked *