What Is a Bar Graph? Parts, Uses and Examples

Published: . Last updated:

What is a bar graph? A bar graph is a chart that uses separate rectangular bars to compare amounts across categories. Each bar stands for one category, and its length or height shows the value. The bars can run up (vertical) or sideways (horizontal), and there is a gap between them.

  • Best for: comparing groups, like votes per snack or sales per month.
  • Main parts: title, x-axis and y-axis, a scale, the bars, labels and (sometimes) a legend.

Want to make one? Build a bar graph free in your browser.

On this page

Bar graph definition

A bar graph (also called a bar chart) turns a list of numbers into bars you can compare at a glance. One axis lists the categories, such as colors, months or school clubs. The other axis shows a number, such as a count, a percent or an amount of money.

The OpenStax Introductory Statistics textbook puts it simply: bar graphs are made of bars that are separated from each other, and those bars can be vertical or horizontal. That gap matters. It tells the reader each bar is its own group, not a slice of a continuous range.

The short answer for kids: a bar graph is a picture of a table. Taller bar, bigger number.

If you want to see one built from your own numbers, the free bar graph maker draws it as you type, right in your browser.

Parts of a bar graph

Every good bar graph has the same handful of parts. The NCES Kids' Zone guide from the U.S. Department of Education lists a title, a source, the x-axis, the y-axis, the data and a legend. Here is what each one does, using the example chart below.

Title

The title says what the graph is about in a few words, like "Favorite Fruit in Room 12." A reader should know the topic before looking at a single bar.

X-axis (horizontal axis)

On a vertical bar graph, the x-axis runs along the bottom and names the categories being compared: apple, banana, grape and so on. It gets an axis label too, like "Fruit."

Y-axis (vertical axis)

The y-axis runs up the left side and holds the numbers. Its label tells you the unit, like "Number of students." On a horizontal bar graph the two jobs swap: categories go on the y-axis and numbers go on the x-axis.

Scale

The scale is the set of evenly spaced numbers on the value axis (0, 1, 2, 3... on the fruit chart below). NCES notes the y-axis usually starts counting at 0. Starting at zero keeps the bars honest, because a bar twice as tall should mean twice as much.

Bars

The bars are the data. Each one has the same width, and only its length changes. Leave equal gaps between bars.

Labels and legend

Data labels are optional numbers printed on or above each bar. A legend (a key) is only needed when bars are split into more than one series, such as boys and girls side by side. NCES compares it to the key on a map: it tells the reader what each color means.

Source

If the data came from somewhere else, add a short source line under the chart. It gives credit and lets readers check your numbers.

Quick check: can a stranger tell what your graph shows without you explaining it? If not, the title or an axis label is missing.

Favorite Fruit in Room 12 (example data)Vertical bar graph of example data: Apple 8 students, Banana 5, Grape 3, Orange 6.FruitNumber of students012345678AppleBananaGrapeOrange8536
Favorite Fruit in Room 12 (example data)

When to use a bar graph (and when not to)

According to the NCES guide on choosing a graph, bar graphs are used to compare things between different groups or to track changes over time, and they work best for change over time when the changes are larger.

Good times to use a bar graph

  • Comparing counts across groups: pets per household type, books read per student (example data).
  • Survey results: how many people picked each answer. The relative frequency bar graph maker turns raw answers into counts and percents for you.
  • A few time periods with big differences, such as sales by quarter.
  • Two related series side by side, using a double bar graph.

When another chart fits better

  • Continuous, measured data like heights or test scores grouped into ranges: use a histogram. Its bars touch because the ranges connect. See histogram vs bar graph.
  • Small changes over many time points: NCES says line graphs are better when changes are smaller. See bar graph vs line graph.
  • Parts of one whole with only a few slices: a pie chart can work. If you want parts of a whole across several groups, a stacked bar graph is often clearer.

Vertical vs horizontal bar graphs

Both are bar graphs. The only difference is which way the bars point.

Vertical and horizontal bar graphs compared
FeatureVertical bar graphHorizontal bar graph
Bars growUp from the x-axisRight from the y-axis
Categories sit onX-axis (bottom)Y-axis (left)
Numbers sit onY-axisX-axis
Works best whenFew categories with short names, or time periods left to rightMany categories or long names that won't fit under a bar

Spreadsheet apps name these differently. Excel and Google Sheets call the vertical version a column chart and the horizontal version a bar chart. In math class, both are just bar graphs.

A population pyramid is two horizontal bar graphs placed back to back, one for each group. The population pyramid maker builds one from counts by age group.

There are more variations too, like grouped, stacked and 100% stacked bars. The types of bar graphs guide shows each one with an example.

Favorite Fruit in Room 12, horizontal (example data)The same example data as a horizontal bar graph: Apple 8 students, Banana 5, Grape 3, Orange 6.FruitNumber of students012345678Apple8Banana5Grape3Orange6
Favorite Fruit in Room 12, horizontal (example data)

How to draw a bar graph by hand

Need one on paper for homework? Grab graph paper, a ruler and a pencil, or print a blank bar graph template with the axes and scale already drawn.

  1. Make a data table. List each category and its number. Example: apple 8, banana 5, grape 3, orange 6 (example data).
  2. Draw the axes. A horizontal line along the bottom and a vertical line up the left side, meeting at a corner.
  3. Choose a scale. Look at your biggest number. If it is 8, counting by 1 or 2 fits well. Start at 0 and space the numbers evenly.
  4. Label the axes. Write the category name under the x-axis and the unit beside the y-axis.
  5. Draw the bars. Make every bar the same width with equal gaps. Use the ruler to match each bar's top to its value on the scale.
  6. Add a title (and a legend if you used more than one color for different series).
  7. Check it. Read each bar back against your table. Every value should match.

If your teacher allows a digital chart, the online bar graph maker handles the scale and spacing and lets you download a PNG to print.

Reading a bar graph

Reading is the other half of the skill. Start with the title and axis labels, check the scale, then compare bar lengths. In the fruit chart above, apple has the tallest bar (8) and grape the shortest (3), so apple got 5 more votes than grape (example data). The full five-step walkthrough, with practice questions, is in how to read a bar graph.

Keep learning

Pick the next step that fits what you're working on:

Ready to make your own? Type or paste your numbers into the free bar graph maker and download a clean chart in seconds. No sign-up, and your data never leaves your browser.

Related guides

Frequently asked questions

What is a bar graph short answer?

A bar graph is a chart that compares amounts using separate bars. Each bar is one category, and the taller or longer the bar, the bigger the value.

What is a bar graph for kids?

It is a picture of a table of numbers. You put things like favorite colors along the bottom, count how many people picked each one, and draw a bar that tall for each color. Then you can see which one won just by looking.

What is a bar graph used for?

Bar graphs are used to compare groups, like survey answers, scores by class or sales by region. They can also show change over a few time periods when the differences are large. For small changes across many time points, a line graph usually works better.

How do I draw a bar graph?

Make a data table, draw two axes, choose an even scale that starts at 0, label both axes, draw equal-width bars with equal gaps, then add a title. Or use the free bar graph maker to build one from your numbers.

What is the difference between the x and y axis on a bar graph?

On a vertical bar graph, the x-axis (bottom) names the categories and the y-axis (left side) shows the numbers. On a horizontal bar graph they switch: categories on the y-axis, numbers on the x-axis.

How this page is checked

Written by Cedrick Reese. The definition and the histogram distinction were checked against OpenStax Introductory Statistics 2e (sections 2.1 and 2.2), and the parts list and when-to-use guidance against the NCES Kids' Zone graphing guides from the U.S. Department of Education; spreadsheet chart names were checked against Microsoft Support and Google Docs Editors Help. All chart numbers are example data, and the page is reviewed when those help pages or textbook sections change.

Sources used on this page: