Pie Chart Calculator
Free pie chart calculator. Create pie and doughnut charts from categorical data. Percentages, angles
Why This Statistical Analysis Matters
Why: Statistical calculator for analysis.
How: Enter inputs and compute results.
Interactive Pie & Doughnut Charts
Interactive pie/doughnut charts from categorical data with percentages. Enter category names and values. Get percentages, angles, and publication-ready charts.
Real-World Scenarios โ Click to Load
Data (editable rows)
Data Table
| Category | Value | Percentage | Angle (ยฐ) |
|---|---|---|---|
| Apple | 28 | 28.00% | 100.8ยฐ |
| Samsung | 20 | 20.00% | 72.0ยฐ |
| Others | 20 | 20.00% | 72.0ยฐ |
| Xiaomi | 14 | 14.00% | 50.4ยฐ |
| OPPO | 10 | 10.00% | 36.0ยฐ |
| Huawei | 8 | 8.00% | 28.8ยฐ |
Calculation Breakdown
Pie Chart
Percentage Bar Chart
For educational and informational purposes only. Verify with a qualified professional.
Key Takeaways
- โข Pie charts show parts of a whole: Percentage = (value / total) ร 100, Angle = (value / total) ร 360ยฐ
- โข Doughnut charts are pie charts with a center cutout โ useful for emphasizing the segments
- โข Best for 3โ7 categories; too many slices make comparison difficult
- โข Use "Other" to group small categories below a threshold (e.g., <5%)
- โข Sort by value (largest first) or by name for consistency
Did You Know?
Worked Example
Example: Market share: Apple 28, Samsung 20, Xiaomi 14, Others 38. Total = 100.
Apple: Percentage = 28/100 ร 100 = 28%. Angle = 28/100 ร 360ยฐ = 100.8ยฐ.
Samsung: Percentage = 20%. Angle = 72ยฐ.
How the Math Works
1. Total
Total = ฮฃ v_i (sum of all category values).
2. Percentage
Percentage_i = (v_i / Total) ร 100. Each slice represents its share of the whole.
3. Angle
Angle_i = (v_i / Total) ร 360ยฐ. A full circle is 360ยฐ.
4. Arc length
Arc length = (v_i / Total) ร 2ฯr. Proportional to the value.
Expert Tips
Limit slices
Use 3โ7 slices. For more categories, consider a bar chart or grouped "Other".
Order matters
Sort by value (largest first) for easier comparison.
Labels
Show percentages on the chart; values in the legend or tooltip.
Accessibility
Ensure sufficient color contrast and provide a data table for screen readers.
Pie vs Bar Chart
| Use Case | Pie Chart | Bar Chart |
|---|---|---|
| Parts of a whole | โ | โ ๏ธ |
| Precise comparison | โ ๏ธ | โ |
| 3โ7 categories | โ | โ |
| Many categories | โ | โ |
Frequently Asked Questions
When should I use a pie chart?
When you need to show parts of a whole (percentages that sum to 100%) and have 3โ7 categories. Good for market share, budget breakdowns, survey results.
What is the "Other" threshold?
Categories with percentage below this threshold are combined into a single "Other" slice. Use 5% or 10% to reduce clutter.
Pie vs doughnut?
Doughnut charts have a hole in the center. They can display a summary in the center and often look cleaner. Both show the same data.
Formulas at a Glance
Official Data Sources
Disclaimer: Pie charts are best for categorical data where the sum represents a meaningful whole. For time series or many categories, consider bar charts, line charts, or treemaps. This tool is for educational and professional visualization.
Related Calculators
Error Propagation Calculator
Propagate uncertainties through mathematical operations: addition, subtraction, multiplication, division, powers, and custom functions. Uses partial...
StatisticsPercentile Rank Calculator
Calculates the percentile rank of a specific value within a dataset. What percent of values fall below a given score? Batch mode, reverse mode, CDF chart.
StatisticsSpearman's Rank Correlation Calculator
Dedicated Spearman's ฯ calculator for non-parametric monotonic relationships. Step-by-step computation, hypothesis test, and comparison with Pearson r.
StatisticsCovariance Calculator
Compute sample and population covariance from paired data. Shows relationship direction and strength. Covariance matrix for multiple variables. Relation to...
StatisticsPearson Correlation Calculator
Dedicated Pearson r calculator with step-by-step computation, hypothesis test, confidence interval, scatter plot, and interpretation.
StatisticsConstant of Proportionality Calculator
Find the constant k in y = kx (direct) or y = k/x (inverse) from data. Test whether data follows a proportional relationship with Rยฒ goodness of fit.
Statistics