AI Guide

How to Make a Pie Chart With AI

On November 26, 2026 we gave four AI assistants the same pie chart prompt three times each. The math was right in all 12 answers. What came back as the chart was not the same: one chart drawn in the chat, then tables with code you still have to turn into a picture.

Updated November 26, 2026

The short answer

Paste your labels and numbers into ChatGPT, Claude or Gemini and ask for a pie chart with each slice's percentage. In our test only ChatGPT drew a chart in the chat; Claude, Gemini and Perplexity gave a table plus code. For a PNG or SVG file, paste the same two columns into a pie chart maker.

Follow These Steps

1

Write your labels and numbers in the prompt

One label and one number per slice, such as "Rent 1250, Groceries 430, Savings 320." Use the raw amounts, not percentages you worked out yourself, so the AI does the dividing. If the data is in a spreadsheet, ChatGPT accepts .xls, .xlsx and .csv uploads.

2

Ask for the chart and the numbers behind it

Name the chart and what you need on it: "Make a pie chart of this. List each slice's percentage of the total and its angle in degrees, rounded to one decimal place." Asking for the table as well as the chart gives you something to check and something to paste.

3

Check the total and the labels

Add up your numbers once yourself and compare the total. Then check that the percentages add to 100 and the angles to 360. In our test all four got this right every time, but ChatGPT's chart table shortened Rent from $1,250 to $1.3K, so read the labels on the chart, not only the table.

4

Turn the answer into a picture

ChatGPT draws the chart in the chat; on the web, use Chart options (•••) > View as table to see its numbers. In Claude, ask for an artifact so the chart opens beside the chat. If you got SVG code, save it in a text file ending in .svg and open it in a browser. If you got Mermaid code (it starts with "pie"), paste it into a Mermaid viewer.

5

Or paste the AI's table into a pie chart maker

Copy the label and amount columns from the AI's answer, open the Paste tab in the editor on this page and paste. You get the same percentages printed on each slice and can download PNG, JPEG, SVG or PDF without an account.

6

Already in Google Sheets or Excel? Use the AI built into it

In Google Sheets, click Ask Gemini at the top right and describe the chart; Google says you can insert it on a new tab with its data, though it won't follow later changes to the original range. In Excel, open Copilot and describe the chart you want; Microsoft says those charts stay linked to the source data. Both depend on your Google Workspace or Microsoft 365 plan including the assistant.

What four AI assistants returned for the same pie chart prompt

The prompt, run three times on each assistant on November 26, 2026: "Make a pie chart of my monthly budget: Rent 1250, Groceries 430, Savings 320, Transport 215, Utilities 180, Fun 140, Phone 65. List each slice's percentage of the total and its angle in degrees, both rounded to one decimal place." The right answers: a total of 2,600, Rent 48.1% and 173.1 degrees, down to Phone 2.5% and 9.0 degrees.

Assistant (what we ran)Percentages and angles rightWhat it gave back as the chartWatch out for
ChatGPT (the chatgpt.com web app)42 of 42A chart drawn in the chat, in 3 of 3 runs, plus the full tableThe chart's own data table showed Rent as $1.3K in all 3 runs; the table below it had the exact $1,250
Claude (Claude Sonnet 5.5, through Anthropic's API)42 of 42Mermaid pie code in 2 runs, a text bar chart made of block characters in 1Through the API there is no picture; in the Claude app, ask for an artifact to see it drawn
Gemini (Gemini 3.8 Flash, through Google's API)42 of 42SVG code in 2 runs, Mermaid pie code in 1SVG code is a picture only once you save it as a .svg file and open it
Perplexity (Sonar, through its API)42 of 42Mermaid pie code in 3 of 3 runsMermaid code needs a Mermaid viewer before it is an image

Each assistant answered 3 times, 7 slices each, so 21 percentages and 21 angles: 42 numbers per assistant, 168 in all, every one correct. Claude ran web searches in all 3 of its runs; our log has no search record for the other three. We saved ChatGPT's answers as text, so we can't show the chart type it drew. One prompt and one data set is a small test: the arithmetic held on one everyday budget, so still check your own. Raw answers are saved in our test file of November 26, 2026.

Prompts that work for pie charts

For amounts you already have: "Make a pie chart of these amounts: [label number, label number]. Show each slice's percentage, largest slice first."

For raw answers you haven't counted yet, such as a class survey: "Here are 30 answers to 'favorite fruit'. Count each answer, then make a pie chart with the count and percentage for each fruit." Ask it to show the counts, so you can check they add up to 30.

For a chart you will draw by hand with a protractor: "For each slice give the angle in degrees to one decimal place, and check the angles add to 360."

Keep it to about six slices. Of the charts downloaded from our editor, the median had 5 slices and 78.6% had six or fewer; if the AI hands back twelve slices, ask it to merge the smallest into one named slice.

Where AI goes wrong with pie charts

Labels, more than math. The one slip in our test was a shortened label ($1.3K for $1,250) on ChatGPT's drawn chart, and it repeated in all three runs. Rounding can also leave percentages that total 99.9 or 100.1. That comes from rounding each slice; say so under the chart, or ask the AI to adjust the largest slice.

Made-up data. If you ask an AI to find numbers for you ("make a pie chart of US energy use"), check every number against the source it names before you use the chart. Our test gave the AI the numbers, which is the safe way round.

The wrong chart. OpenAI's own help says ChatGPT "may choose an analysis method or chart type that does not match your intent on the first try." If your parts don't add up to a whole, such as test scores for five students, a pie is the wrong chart and a bar chart is the honest one.

AI assistant or pie chart maker: which to use

Use an AI assistant when the numbers still need work: counting survey answers, adding up a long list, or pulling figures out of a file. That is the part it did well in our test.

Use a pie chart maker when you have the numbers and need a file. In our view it is quicker to paste the AI's table into one than to save SVG code or find a Mermaid viewer, and you choose the colors, the labels and the format. Ours makes the PNG, JPEG, SVG or PDF with no account; free downloads carry a small credit line, which Pro removes from $1 a month.

Try It Yourself

Practice what you learned with our interactive pie chart editor below. The chart is pre-filled with sample data to get you started.

Enter Your Data

Edit the sample data or add your own

Label
Value
%
Live preview active
Total: 100

Chart Preview

Export to PNG, SVG, PDF

Made with pie-chart-generator.com
My Pie Chart Data
CategoryValuePercentage
Category A3030.0%
Category B2525.0%
Category C2020.0%
Category D1515.0%
Category E1010.0%

Categories

5

Total Value

100

Chart Type

pie

Chart Settings

0°

Export Chart

Slide-ready HD export without watermark

Drop clean 2,712 px PNG or vector SVG straight onto dark or colored slides.

Standard free download (1,356 px)Includes small credit line

No account required. Instant activation in this browser.

Tips & Best Practices
  • Give the AI the raw amounts and let it do the dividing.
  • Ask for a table of percentages and angles alongside the chart, so you can check it.
  • Check the total yourself once, then check the labels on the drawn chart.
  • Keep to about six slices and merge the rest into one named slice.
  • For a file you can put in slides, paste the AI's table into a pie chart maker.

What our test found, in numbers

The arithmetic was not the problem. All 12 answers found the 2,600 total and every percentage and angle to one decimal, and the rounded numbers added to 100.0% and 360.0 degrees. The difference was the last step. Only ChatGPT drew a chart (3 of 12 answers). The other 9 gave code: Mermaid pie code in 6 answers, SVG code in 2 and a text bar chart in 1. None of the 9 API answers came back as an image file.

That leaves a gap between "the AI did the math" and "I have a chart for my slides." The quickest bridge we know is the table the AI already wrote: copy the label and number columns and paste them into the Paste tab of a pie chart maker. In our own editor, Paste is the input tab people pick most: 47.0% of 19,509 input tab clicks between January 29 and November 25, 2026.

Percentages right84 of 8412 answers, 7 slices each
Angles right84 of 84rounded to one decimal
Answers with a chart drawn3 of 12all ChatGPT
Answers with Mermaid pie code6 of 12Claude 2, Gemini 1, Perplexity 3
Answers with SVG code2 of 12both Gemini
Opened our Paste tab47.0%of 19,509 input tab clicks

Sources: our AI test of November 26, 2026 (one prompt, 3 runs each on ChatGPT web, Claude Sonnet 5.5, Gemini 3.8 Flash and Perplexity Sonar, answers checked against exact arithmetic). The Paste tab share is from this site's own anonymous event log, January 29 to November 25, 2026; no chart contents are stored.

Sources

Frequently Asked Questions