Bar Graph vs Line Graph: Which One Should You Use?

Published: . Last updated:

Use a bar graph to compare separate categories, and a line graph to show how one thing changes over time. That's the core of the bar graph vs line graph choice: if your x-axis is time in order, a line usually reads better. If it's names, places or types, use bars.

Going with bars? Make your bar graph free here.

Line graph vs bar graph: side-by-side comparison

Line graph vs bar graph at a glance
FeatureBar graphLine graph
Type of dataCategories (groups, names, answers)Numbers that change in order, usually over time
Best forComparing amounts across groupsShowing change over time
X-axisCategories (can be in any order) or a few time periodsOrdered values, usually time
What the eye readsBar length or heightSlope and direction of the line
Small changesHard to seeEasy to see
Many data pointsGets crowdedHandles them well
Y-axis startShould start at zeroCan zoom in if labeled clearly
Comparing several groupsGrouped (double) barsOne line per group

The y-axis row matters more than it looks. Bar length is the whole message, so a bar graph that starts above zero makes differences look bigger than they are. A line graph shows change, so a narrower y-axis range is more acceptable, as long as the axis is labeled.

On this page

The core difference in one sentence

A bar graph uses separate bars to compare amounts, and a line graph connects points in order to show change. That is really the whole idea. The rest of this page helps you apply it when your data is not so tidy.

OpenStax, a free college statistics textbook, describes bar graphs as bars "separated from each other" that can run vertically or horizontally. For time series graphs, it says the points "are typically connected by straight lines in the order in which they occur." That connecting line is the key. It tells the reader that one point leads to the next, so it only makes sense when the order matters.

If you want a refresher on the parts of a bar chart first, read what a bar graph is and how it works.

One data set, drawn both ways

Here is a small science-fair style data set: the height of one bean plant measured once a week for six weeks (example data).

Bean plant height by week (example data)
WeekHeight (cm)
Week 12
Week 23.5
Week 35
Week 47
Week 58.5
Week 610

First, the same numbers as a bar graph. Each week gets its own bar, so it is easy to read one exact value or compare Week 2 with Week 5.

Bean plant height by week, bar graph (example data)Bar graph of bean plant height by week (example data): Week 1 2 cm, Week 2 3.5 cm, Week 3 5 cm, Week 4 7 cm, Week 5 8.5 cm, Week 6 10 cm.WeekHeight (cm)0246810Week 1Week 2Week 3Week 4Week 5Week 62.03.55.07.08.510.0
Bean plant height by week, bar graph (example data)

What each version tells you

Bean plant height by week, line graph (example data)Line graph of the same bean plant heights (example data), rising steadily from 2 cm in Week 1 to 3.5, 5, 7, 8.5 and 10 cm in Week 6.WeekHeight (cm)0246810Week 1Week 2Week 3Week 4Week 5Week 62.03.55.07.08.510.0
Bean plant height by week, line graph (example data)

Now look at the line version. Your eye follows the slope instead of comparing bar tops. You can see right away that the plant grew steadily, with no week where it stalled.

Both charts are correct. They just answer different questions:

  • The bar graph answers "How tall was the plant in Week 4?" and "Which week was tallest?"
  • The line graph answers "How did the height change over time?" and "Is growth speeding up or slowing down?"

For a growth experiment, the line graph is usually the better pick because the story is the trend. If your teacher asks you to compare final heights of different plants, that is a bar graph job, since each plant is a separate category.

Ask yourself what question the chart should answer. Pick the chart that answers it at a glance.

What NCES Kids' Zone says

The National Center for Education Statistics, part of the U.S. Department of Education, runs a Kids' Zone graphing guide written for students. Its guidance lines up with the rules above:

  • Line graphs "are used to track changes over short and long periods of time. When smaller changes exist, line graphs are better to use than bar graphs."
  • Bar graphs "are used to compare things between different groups or to track changes over time. However, when trying to measure change over time, bar graphs are best when the changes are larger."

So NCES does not say bar graphs can never show time. It says bars work for time when the changes are big, and lines are better when the changes are small. That is a helpful tiebreaker when both charts seem fine.

When to use a line graph: a quick decision checklist

Run through these questions in order. The first clear answer usually settles it.

  1. Is the x-axis time or another ordered sequence? If no (names, colors, sports, stores), use a bar graph.
  2. Do you have more than about 6 to 8 time points? If yes, a line graph stays cleaner than a row of thin bars.
  3. Are the changes small compared with the totals? If yes, use a line graph so the changes are visible (the NCES tiebreaker).
  4. Does the reader need exact values for each period? If yes, bars make individual values easier to read.
  5. Are you comparing a few groups at one moment? Use a bar graph, or a double bar graph for two groups side by side.
  6. Is the data counts of values in ranges (like test scores 70 to 79)? Neither one. That is a histogram. See histogram vs bar graph.

Edge cases that trip people up

Only a few time points

With two or three years of data, a line can look thin and make a trend seem stronger than it is. Bars are often the safer choice here, especially if the changes are large. For example, library visits in Year 1 and Year 2 (example data) read fine as two bars.

Missing values

If Week 4 was never measured, do not draw the line straight through it as if you have a value. Leave a gap or clearly mark the missing point. With bars, a missing bar is obvious, but label it "no data" so nobody reads it as zero.

Categories with no order

Never connect categories like "apples, bananas, grapes" with a line. The line suggests that apples lead to bananas, which means nothing. Unordered categories always get bars.

Comparing groups over time

Two classes' reading minutes across four months (example data) can go either way. Use a grouped bar graph if you want to compare the classes month by month. Use two lines if you want to compare their trends. With more than three or four groups, lines usually stay clearer than clusters of bars.

Combining both on one chart

Some charts show bars for one measure and a line for another, such as monthly rainfall as bars and average temperature as a line. These combo charts are useful but need two clearly labeled y-axes and a legend. For school work, two separate charts are often easier to read.

The bottom line

For bar graph vs line graph decisions, start with the x-axis. Categories get bars. Ordered time points with a trend to show get a line. When you have a few time points and big changes, either works, and bars are often easier to read.

If your data belongs in bars, you can build it in the free Bar Graph Maker: type or paste your numbers and download a PNG or SVG. We don't have a line graph maker yet. For more chart choices, see types of graphs in math.

Related guides

Frequently asked questions

What is the main difference between a bar graph and a line graph?

A bar graph uses separate bars to compare amounts across categories. A line graph connects points in order to show how a value changes, usually over time.

When should you use a line graph instead of a bar graph?

Use a line graph when the x-axis is time or another ordered sequence and you want to show a trend. NCES Kids' Zone notes that line graphs are better than bar graphs when the changes are small.

Can a bar graph show change over time?

Yes. Bars work for a small number of time periods, and NCES Kids' Zone says bar graphs are best for change over time when the changes are larger.

Why shouldn't you use a line graph for categories?

A line implies that one point leads to the next. Categories like fruit types or cities have no order, so connecting them with a line suggests a trend that isn't there. Use bars instead.

Is a histogram a bar graph or a line graph?

Neither. A histogram shows how many values fall into each numeric range, with bars that touch. Read histogram vs bar graph for the full difference.

How this page is checked

Written by Cedrick Reese. The when-to-use guidance was checked word for word against the NCES Kids' Zone graphing guide, and the chart definitions against OpenStax Introductory Statistics 2e (sections 2.1 and 2.2). All plant, rainfall and class numbers are example data; the page is re-checked against those sources when they change.

Sources used on this page: