Skip to main content

Bar Graph Maker

Turn categories and numbers into a clean, labeled bar graph and see exactly how it is built: the scale, each bar's height, the totals, the shares, and the comparison the graph is really telling you. Start from a list of values, tally raw answers into counts, compare two or more groups side by side, stack the parts of each total, work out the scale for drawing a graph by hand on graph paper, or check whether an axis is telling the truth.

Background

A bar graph shows how a quantity compares across separate categories. Each category gets its own bar, and the bar's length is proportional to its value, so a bar twice as long means twice as much. The bars have gaps between them because the categories are separate (unlike a histogram, whose bars touch). The key ideas are bar height ∝ value, share = value ÷ total, and a scale of equal, round steps starting from zero so that the lengths can be trusted.

Set up your bar graph

Step 1 — What do you want to do?

Pick a task below.

Step 2 — Enter your categories and values

Type the category, then its value: Dogs: 14 (a colon, comma or space all work). 2 to 20 categories. Negative values are allowed and are drawn below the zero line.

horizontal bars suit long category names

sorting makes rankings easy to read

percent bars add to 100% and compare fairly across different totals

Step 2 — Enter the raw answers

Paste the list of answers exactly as collected, one answer per item (multi-word answers like “ice cream” are fine). The calculator makes the tally for you. Up to 5,000 answers in at most 20 categories.

Step 2 — Enter your series and categories

2 to 4 names separated by commas. Each category line needs one number per name, in this order.

Category, then one number per series: Soccer: 12, 18. 2 to 12 categories. For Stacked Bars the values are parts of a whole, so they can't be negative; Grouped Bars allows negatives.

Step 2 — Enter your data and your graph paper

2 to 12 categories with values of zero or more.

whole number, 6 to 40

whole number, 8 to 40

units per square, more than 0

Step 2 — Enter the bars and where the axis starts

2 to 8 bars with values above zero that differ from each other.

must be below your smallest value. An honest bar graph starts at 0.

Step 3 — Labels, units and rounding

every graph needs a title

shown next to values and on the value axis

Learning options

Result

No result yet. Enter your data above and click Calculate.

How to use this calculator

  • Choose Bar Graph when you already have categories and numbers, such as “Dogs: 14”. You get the bars, the mean line, a ranking table with each bar's share of the total, and a second chart showing how far each bar sits from the mean. Switch “Bar heights show” to percent of the total to compare with a graph that has a different total.
  • Choose Tally → Bar Graph when you have a raw list of answers (blue, red, blue, green …). The calculator makes the tally chart with crossed groups of five, the frequency table, the relative frequencies, and the bar graph of the counts.
  • Choose Grouped Bars to compare 2 to 4 series side by side in every category (for example girls and boys in each club). You get the totals, the gap in each category, who is higher where, and a chart of the gaps.
  • Choose Stacked Bars to show the parts that make up each total. You get both the stacked bars (height = total) and the 100% stacked bars (shares only), plus every part's share of its category.
  • Choose Draw It by Hand to find the right scale for graph paper. Enter the size of your page and get how much one square should stand for, how many squares tall each bar is, the bar width and gap, and a picture of the finished graph on a grid.
  • Choose Misleading Axis? to see how starting the axis above zero exaggerates a difference. You get the honest and the truncated graph side by side and the lie factor.
  • Add a title, axis labels and a unit if you like, then click Calculate to see the result, a callout explaining what it means, a diagram built for that task and every step with your numbers substituted.

How bar graphs work

1

A bar graph compares a quantity across separate categories. Each category gets one bar, and the bar's length is proportional to its value: a bar twice as long stands for twice as much.

2

The bars are separate, with equal widths and equal gaps, because the categories are separate (pets, months, grades). That is the visual difference from a histogram, whose bars touch because they cut one continuous number line into intervals. Categories can be reordered; the intervals of a histogram cannot.

3

The value axis needs a scale: equal steps of a round size (1, 2, 5, 10, 20, 50 …) that start at zero and reach at least the largest value. About 5 gridlines is a good target, and a little headroom keeps the tallest bar's label off the edge.

4

A bar's height is its share of the axis: (value − axis start) ÷ (axis end − axis start). Because the axis starts at zero, doubling a value exactly doubles its bar, which is what makes the lengths trustworthy.

5

A bar graph tells you the total, each category's share of it (value ÷ total), the mean (total ÷ number of bars), the median, and the tallest category, which is the mode when the bars are counts. Horizontal bars work better when category names are long.

6

To graph raw answers, tally them first: one mark per answer, with every fifth mark drawn across the previous four. The number of marks in a row is the frequency, and the frequencies must add up to the number of answers.

7

With two or more series, use a grouped graph to compare the series within each category, and a stacked graph to show how each total is built from its parts. A 100% stacked graph hides the totals and shows only shares, which is fairer when the totals differ a lot.

8

A bar graph must start at zero. If it starts higher, the bars are cut off and small differences look huge. The lie factor (drawn change ÷ real change) measures this: near 1 is honest, far above 1 exaggerates. Always add a title, axis labels and units.

Formulas & Equations Used

Range: range = largest − smallest

Total and mean: total = Σ values,   mean = total ÷ n

Median: the middle value of the sorted list (average the middle two when n is even)

Share of total: share = value ÷ total × 100%

Scale (step): raw step = span ÷ 5, then round to the nearest 1, 2 or 5 × a power of 10

Axis end: axis max = ⌈largest ÷ step⌉ × step (plus one step of headroom if the bar would touch the top)

Bar height: height = (value − axis start) ÷ (axis end − axis start) × plot height

Percent-of-total bar: height = value ÷ total × 100%,   the mean bar = 100% ÷ n

Relative frequency: relative frequency = frequency ÷ n

Gap between series: gap = larger − smaller,   percent more = (larger − smaller) ÷ smaller × 100%

Stacked bars: bar height = total of the parts,   part share = part ÷ category total × 100%

Graph paper: units per square ≥ largest ÷ (squares up − 1),   height in squares = value ÷ units per square

Bar width on paper: width = ⌊(squares across − (n + 1)) ÷ n⌋ with a 1-square gap

Drawn change from an axis start b: drawn % = (larger − smaller) ÷ (smaller − b) × 100%

Lie factor: lie factor = drawn % ÷ real % = smaller ÷ (smaller − b)

Example Problems & Step-by-Step Solutions

Example 1 — Reading a bar graph

A class votes for a favorite pet: Dogs 14, Cats 11, Fish 4, Birds 3, Rabbits 2. What share do the dogs get, and how does it compare with the rabbits?

Step: Total = 14 + 11 + 4 + 3 + 2 = 34. Dogs: 14 ÷ 34 × 100 = 41.18%. Ratio: 14 ÷ 2 = 7. Mean = 34 ÷ 5 = 6.8.

Result: dogs get 41.18% (about 2 in 5) of the votes and have 7 times as many as the rabbits. Only Dogs and Cats rise above the mean of 6.8.

Example 2 — Choosing a scale

Minutes of reading each day run from 10 (Friday) to 55 (Saturday). What scale should the axis use?

Step: Span = 55. A rough step = 55 ÷ 5 = 11, and the nearest round step is 10. Axis max = ⌈55 ÷ 10⌉ × 10 = 60. Heights as a share of the axis: Saturday 55 ÷ 60 = 91.67%, Friday 10 ÷ 60 = 16.67%.

Result: an axis from 0 to 60 in steps of 10. The tallest bar fills 91.67% of the axis, leaving room for its label.

Example 3 — From raw answers to a tally

24 students name a favorite color: blue 10 times, red 6, green 5, yellow 2, purple 1. Make the tally and find the relative frequency of blue.

Step: Blue: 10 marks = 2 groups of five. Red: 6 = 1 group + 1. Green: 5 = 1 group. Yellow: 2. Purple: 1. Check: 10 + 6 + 5 + 2 + 1 = 24. Relative frequency of blue = 10 ÷ 24 = 0.4167.

Result: blue is the mode with 41.67% (about 2 in 5) of the answers, and the frequencies add up to the 24 answers.

Example 4 — Comparing two groups

Club members: Soccer 12 girls and 18 boys, Art 15 and 6, Chess 7 and 9, Drama 11 and 5, Coding 8 and 14. Who has more members, and where is the biggest gap?

Step: Girls total 12 + 15 + 7 + 11 + 8 = 53; boys 18 + 6 + 9 + 5 + 14 = 52. Gaps: 6, 9, 2, 6, 6. Percent more: (53 − 52) ÷ 52 = 1.92%.

Result: girls have the larger total (53 vs 52) but are higher in only 2 of 5 clubs. The biggest gap is Art, 9.

Example 5 — Parts of a whole

Grade 7 students: Walk 25, Bus 20, Car 10. Grade 9: Walk 30, Bus 20, Car 25. Which grade has the bigger share of walkers?

Step: Grade 7 total = 25 + 20 + 10 = 55, so walkers = 25 ÷ 55 = 45.45%. Grade 9 total = 30 + 20 + 25 = 75, so walkers = 30 ÷ 75 = 40%.

Result: Grade 9 has more walkers (30 vs 25) but Grade 7 has the bigger share (45.45% vs 40%). A 100% stacked graph shows this directly; a plain stacked graph does not.

Example 6 — Drawing by hand

Cars counted on five days are 20, 35, 50, 15 and 40. Your graph paper is 12 squares high. What should one square stand for?

Step: Keep one square free for the label, so 12 − 1 = 11 squares are available. Smallest scale that fits = 50 ÷ 11 = 4.545, and the next round number is 5. Heights = 20 ÷ 5 = 4, 35 ÷ 5 = 7, 50 ÷ 5 = 10, 15 ÷ 5 = 3, 40 ÷ 5 = 8.

Result: 1 square = 5 cars, and the bars are 4, 7, 10, 3 and 8 squares tall, all whole numbers.

Example 7 — Negative values

Monthly profit in $k: Jan 45, Feb −20, Mar 30, Apr −10, May 60, Jun 25. Describe the graph.

Step: Total = 45 − 20 + 30 − 10 + 60 + 25 = 130; mean = 130 ÷ 6 = 21.67. Range = 60 − (−20) = 80. The axis must run below zero: with a step of 20 it goes from −40 to 80.

Result: Feb and Apr are bars that hang below the zero line. The six months still net +130, and May is the best month at 60.

Example 8 — A misleading axis

Brand A scores 94% and Brand B 97%. A graph starts its axis at 90. How misleading is it?

Step: Real difference = (97 − 94) ÷ 94 = 3.19%. Drawn bars: 94 − 90 = 4 and 97 − 90 = 7, so the drawn difference = (7 − 4) ÷ 4 = 75%. Lie factor = 75 ÷ 3.19 = 23.5 (or 94 ÷ (94 − 90) = 23.5).

Result: the graph exaggerates the gap about 23.5 times. Start the axis at 0 and the bars show the true ratio of 1.032 to 1.

Frequently Asked Questions

What is a bar graph?

A bar graph (or bar chart) uses bars to compare a quantity across separate categories. Each bar's length is proportional to its value, so you can see which categories are bigger or smaller at a glance.

What is the difference between a bar graph and a histogram?

A bar graph compares separate categories, so its bars have gaps and can be reordered. A histogram shows how a numerical variable is distributed along one continuous scale, so its bars touch and stay in numerical order.

Should I use vertical or horizontal bars?

Both show the same information. Vertical bars are the usual choice for a few short labels such as months. Horizontal bars leave room for long category names and are good for rankings sorted from largest to smallest.

How do I choose a scale for a bar graph?

Start the axis at 0, use equal steps of a round size (1, 2, 5, 10, 20, 50 …), and go up to at least the largest value. Aim for about 5 gridlines: divide the span by 5 and round to the nearest round step.

Why must a bar graph start at zero?

Because the length of a bar is the data. If the axis starts higher, every bar is shortened by the same amount, so ratios between bars are distorted and small differences look large. The Misleading Axis mode shows this with the lie factor.

What is a tally chart?

A tally chart counts answers by making one mark per answer, with every fifth mark drawn across the previous four. The number of marks in each row is its frequency, and those frequencies are what the bars of the bar graph show.

What is a grouped bar graph?

A grouped (or clustered) bar graph puts several bars side by side in each category, one color per series, so you can compare series within a category and see how each series changes across categories.

What is a stacked bar graph, and what does 100% stacked mean?

A stacked bar graph piles the parts of each total on top of one another, so the bar's height is the total. In a 100% stacked graph every bar is scaled to 100%, which hides the totals and shows only each part's share.

When should I use a bar graph instead of a pie chart?

Use a bar graph to compare categories, especially when there are many or the values are close, because lengths are easier to compare than angles. A pie chart is for showing how one whole is split into a few parts.

How do I find the mean, median and mode from a bar graph?

Read each bar's value, add them and divide by the number of bars for the mean; sort them and take the middle one for the median. When the bars show counts, the tallest bar's category is the mode.

How wide should the bars and the gaps be?

All bars must be the same width, with equal gaps between them. A gap about half a bar wide works well; on graph paper, 1 square of gap with bars 1 to 3 squares wide is easy to draw.

How do I draw a bar graph by hand?

Find the largest value, choose a round scale so it fits the page, work out each bar's height (value ÷ units per square), draw the axes and bars with equal widths and gaps, then add a title, axis labels and the scale. The Draw It by Hand mode does the arithmetic for you.

What is the lie factor?

The lie factor compares the size of an effect shown in a graphic with the size of the effect in the data: drawn change ÷ real change. A value near 1 is honest; a value much larger than 1 means the picture exaggerates the difference.

When should the bars show percent instead of counts?

Use percent of the total when you want to compare two graphs with different totals, such as a class of 24 and a class of 30. Every percent bar is its value ÷ the total × 100, so the bars add to 100% and the sizes are comparable.

Does the order of the bars matter?

For unordered categories (pets, colors) sorting from largest to smallest makes the ranking easy to read. For categories with a natural order (months, ages, grades) keep that order so the pattern over time is visible.

Can a bar graph have negative values?

Yes. Bars for negative values (a loss, a drop in temperature) extend below the zero line. Make sure the axis includes the negative range, and remember that stacked graphs of parts of a whole cannot have negative parts.

Back to all calculatorsAll calculators