Blog / Guides
Pie chart vs donut chart: when to use each (and when to use neither)
A donut is a pie with the middle taken out. That hole is useful: it holds the total or a label. But both share the same limits, and past a handful of parts a bar chart beats them.
By Abdullah NomanNovember 30, 20263 min read

Short answer: use either for parts of a whole with two to five parts that clearly differ in size. Choose a donut when you want the total or a key number in the centre, which suits dashboards. Choose a pie for the simplest possible picture. With more parts, or parts of similar size, use a sorted bar chart or a stacked bar.
What is the difference?
| Pie | Donut | |
|---|---|---|
| Shape | Full circle of wedges | Ring with an empty centre |
| Read by | Angle and area | Arc length |
| Centre | Used by the data | Free for a total or label |
| Feel | Classic, report-like | Lighter, dashboard-like |
How many slices is too many?
Around five. Beyond that, small slices become slivers, labels collide and people fall back on the legend, matching colours back and forth. Group the smallest into "Other" or switch to bars.
What about a half donut?
A half donut (semicircle) works well as a score or a share of a single target, especially above a number. It takes less height, which helps in a KPI row.
What are better options for parts of a whole?
- Stacked bar: one bar split into parts, easy to compare across several groups.
- Treemap: many parts, especially with a hierarchy.
- Waffle chart: percentages people can count, such as 68 out of 100.
- Sorted bar chart: when the ranking of the parts matters more than the whole.
How do you make one in React?
import { DonutChart } from "@/components/charts"
const data = [
{ label: "Direct", value: 420 },
{ label: "Organic", value: 310 },
{ label: "Referral", value: 180 },
]
<DonutChart data={data} inner={0.62} />
Liniqo Charts has pies, donuts, half donuts and Nightingale rose charts in 33 styles, with labels, gaps, exploded slices and centre totals.
Questions
Is a donut chart better than a pie chart?
Neither is more accurate; the donut is useful when you want to put a total or label in the centre, which is why dashboards use it often.
How many categories can a pie chart have?
About five at most. Group small categories into Other or use a bar chart.
Should pie charts be 3D?
No. Perspective makes front slices look bigger than they are.
What is a half donut chart used for?
A score or share of a target shown compactly, often above a number in a KPI card.

