Pie Chart Calculator

Create pie charts from data with percentages, degree angles, SVG visualization, Herfindahl index, Shannon entropy, and cumulative breakdowns.

Pie Chart Calculator

Total
2,350.00
Sum of all values
Segments
6
Number of pie slices
Largest Segment
Housing (51.1%)
Value: 1,200.00
Smallest Segment
Entertainment (4.3%)
Value: 100.00
HHI (Concentration)
0.3191
Herfindahl-Hirschman Index (0-1)
Shannon Entropy
2.0588 bits
Effective categories: 3.1

Monthly Budget

51.1%17.0%12.8%6.4%8.5%
Housing: 1,200.00 (51.1%)
Food: 400.00 (17.0%)
Transport: 300.00 (12.8%)
Utilities: 150.00 (6.4%)
Entertainment: 100.00 (4.3%)
Savings: 200.00 (8.5%)

Data Breakdown

CategoryValuePercentageDegreesBar
Housing1,200.0051.06%183.8°
Food400.0017.02%61.3°
Transport300.0012.77%46.0°
Savings200.008.51%30.6°
Utilities150.006.38%23.0°
Entertainment100.004.26%15.3°

Cumulative Percentages

CategoryCumulative %Progress
Housing51.06%
Food68.09%
Transport80.85%
Utilities87.23%
Entertainment91.49%
Savings100.00%
Planning notes, formulas, and examples

About the Pie Chart Calculator

The Pie Chart Calculator turns labeled values into a pie chart with percentages, slice angles, and a sorted breakdown table.

Alongside the chart, it calculates concentration measures such as the Herfindahl-Hirschman Index and Shannon entropy so you can tell whether a few large slices dominate the distribution.

That makes the page useful for budgets, market share, category breakdowns, and any case where part-to-whole composition matters more than raw totals.

When This Page Helps

Pie charts are useful when the main question is how a whole is divided among categories, not how categories compare on a common scale. The calculator keeps the chart and the slice math together, so you can check percentages, angles, and concentration metrics in one place.

That helps when you need both a presentation-friendly visual and the underlying numbers that justify it.

How to Use the Inputs

  1. Enter data as Label:Value pairs separated by commas (e.g., Housing:1200, Food:400).
  2. Optionally add a chart title for the visualization.
  3. Adjust the chart size to fit your needs (150-500 pixels).
  4. Use presets for quick examples of common pie chart scenarios.
  5. View the SVG pie chart with percentage labels and color legend.
  6. Check the sorted breakdown table for exact values, percentages, and degrees.
  7. Review cumulative percentages and concentration metrics.
Formula used
Percentage = (Value / Total) × 100. Degrees = (Value / Total) × 360. HHI = Σ(share²) where share = percentage/100. Shannon Entropy = -Σ(p × log₂(p)). Effective N = 1/HHI.

Example Calculation

Result: Housing 51.1% (183.8°), Food 17.0% (61.2°), Transport 12.8% (45.9°)

With a total of $2,350, Housing dominates at 51.1% (183.8°). The HHI of 0.324 indicates moderate concentration, and Shannon entropy of 2.26 bits suggests reasonable diversity.

Tips & Best Practices

  • Keep pie charts to 7 or fewer slices for best readability.
  • Sort slices from largest to smallest (the calculator does this in the table).
  • Use percentages that sum to 100 — the tool handles any input values and normalizes automatically.
  • The Herfindahl Index helps compare concentration across different time periods or markets.
  • Consider whether a bar chart might be more appropriate for your data.
  • The cumulative percentage table is useful for Pareto analysis (80/20 rule).

Anatomy of a Pie Chart

A pie chart represents data as slices of a circle, where each slice's angle is proportional to the category's share of the total. The full circle (360°) represents 100% of the data. To convert a raw value to degrees: degrees = (value / total) × 360. To convert to percentage: percentage = (value / total) × 100. The area of each slice is also proportional because all slices share the same radius.

The visual power of pie charts comes from our ability to estimate angles and areas intuitively. However, this same property makes them poor for precise comparisons — research shows humans are better at comparing lengths (bar charts) than areas (pie charts). Use pie charts when the part-to-whole relationship is the key message.

Concentration Metrics

The Herfindahl-Hirschman Index (HHI) is widely used in economics to measure market concentration. For a pie chart with n slices, HHI = Σ(sᵢ²) where sᵢ is each slice's share (as a fraction of 1). A market with one dominant player has HHI near 1, while a perfectly competitive market with many equal players has HHI near 1/n. The Effective Number of Categories (1/HHI) tells you how many equal-sized categories would produce the same concentration.

Best Practices for Pie Charts

Start the first slice at 12 o'clock (0°) and proceed clockwise. Place the largest slice first for emphasis. Use distinct colors with sufficient contrast. Label slices directly when possible rather than using a distant legend. Avoid 3D pie charts — they distort the visual proportions and make accurate reading impossible. For data with many small categories, combine them into an "Other" slice.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Use `Label:Value` pairs separated by commas. For example: `Apple:28, Samsung:22, Others:50`. You can also enter just numbers without labels, and default labels will be generated.