Percentage Bar Graph Maker (Divided Bar Graphs)
Turn counts into percents that add up to exactly 100, then download a PNG or SVG. Free, no sign-up.
Your numbers
Example: 30 answers to one survey question. Replace them with yours.
Clear all data?
Labels
Leave blank and it reads Percent of total.
Hover over or tap a bar to see its value. From the keyboard, tab to the chart and use the arrow keys.
Add at least one category and number to download your chart.
Written from your data. Edit it if you like, then copy it into your document or web page.
Show data table
On this page
How to make a percentage bar graph
- Say what you have. Pick Counts if you have tallies, like 12 people said yes. Pick Percentages already if your numbers are shares that should add to 100.
- Enter the categories and numbers. Type one category per row, or paste two columns from a spreadsheet. Add up to three more data sets if you're comparing groups.
- Choose how to show it. One divided bar shows a single whole split into parts. Separate bars put every category on a 0 to 100% axis.
- Pick the labels. Show the percent, the count, or both, like 12 (40%).
- Download. Save a PNG or SVG, or a CSV with the full, unrounded percentages.
For the classic divided bar look, keep Bars run on Horizontal in Chart options. Switch to Vertical for one tall column.
How the percentages are worked out
percent = count ÷ total × 100
With the example survey of 30 answers: Yes is 12 ÷ 30 × 100 = 40%, No is 9 ÷ 30 × 100 = 30%, and Not sure is also 30%. Together they make 100%.
Why rounded percents can add to 99 or 101
Round each share on its own and the total can drift. Three equal shares are 33.33% each, and 33 + 33 + 33 is 99. This tool uses the largest remainder method instead: it rounds every share down, then hands the leftover points to the shares that lost the most in rounding. The labels add to exactly 100%, and the CSV keeps the full, unrounded values.
With 2 to 4 data sets, each one is worked out against its own total, so a group of 30 and a group of 200 can sit side by side fairly.
With your data
Percentage bar graph vs subdivided (stacked) bar graph
Both split bars into parts. The difference is what the length of the bar means.
- A subdivided bar graph, also called a component or stacked bar graph, keeps the real totals. Each bar is as long as its total, and each segment takes a share of the bar in proportion to its part of that total. Statistics Canada's data visualization guide says stacked bars "are used to illustrate the total values of different categories."
- A percentage bar graph turns every part into a percent of its total, so every bar is the same length: 100%. The same Statistics Canada guide says the 100% version shows "the relative value of each category rather than the absolute value." You lose the totals but can compare the mix, even when the totals are very different.
This tool makes the single-whole version: one divided bar, or separate bars on a 0 to 100% axis. If you want several groups each as their own 100% bar, side by side, compare groups with 100% stacked bars in the stacked bar graph maker, which also draws the subdivided version with real totals.
When percentages beat counts
- Poll and survey results. "40% said yes" is easier to take in than "12 said yes" when readers don't know how many answered.
- Groups of different sizes. Two classes, two stores or two years with different totals compare fairly once each is turned into percents of its own total.
- Budgets and parts of a whole. Where the money or the time went, as a share of the whole.
Stick with counts when the size of each group matters on its own, or show both with the Both label option. Have a long list of raw answers instead of totals? This tool tallies raw survey answers for you first.
Related tools and guides
Frequently asked questions
What is a percentage bar graph?
It's a bar graph where the values are shares of a total instead of raw numbers, so the parts add up to 100%. It can be one bar divided into segments, or separate bars measured on a 0 to 100% axis.
How do I calculate percentages for a bar graph?
Add up all the counts to get the total, then divide each count by that total and multiply by 100. With 12 yes answers out of 30, that's 12 ÷ 30 × 100 = 40%. This tool does it for every category as you type.
Why don't my percents add up to 100?
Rounding, and this tool corrects for it so the labels add to exactly 100%. The section on how the percentages are worked out shows the method. If you typed percentages yourself and they're off by more than half a point, it tells you the real sum and offers to scale them.
Should the axis go to 100%?
Usually, yes. A full 0 to 100% axis shows each share against the whole. The tool keeps it there unless you untick the option and every bar is under 50%, where a shorter axis makes small shares easier to read.
Can I show counts and percents together?
Yes. Set Bar labels show to Both, and each bar reads like 12 (40%). Readers get the share and the size of the group behind it.
How this page is checked
Cedrick Reese built this percentage bar graph maker. The percentages and rounding were recalculated separately from the tool's own code against the 30-answer example and against edge cases: three equal shares that must still add to 100%, a category with a count of 0, typed percentages that add to 92% or 104%, and up to four data sets with different totals. The difference between percentage and subdivided bar graphs follows Statistics Canada's data visualization best practices, with the component bar terms also used in the GeeksforGeeks guide to statistical diagrams. If the rounding code changes, the three-equal-shares case is the first thing retested.
Last updated: