November 10, 2026
By Jacky Fan
10 min read

How to Make a Line Graph: Online, in Excel & by Hand

Learn how to make a line graph three ways: online from CSV, in Excel or Google Sheets, and by hand on graph paper. Includes sample data and common mistakes.

Making a line graph takes three things: tidy data, a tool, and a few decisions about how the result should look. This guide walks through three ways to do it, online, in a spreadsheet, and by hand, using the same small data set so you can compare them.

Quick answer: To make a line graph, put your data in columns, with the ordered values (such as months) in the first column and the measurements in the others. Then plot each point and join them in order. You can do that online by pasting CSV into a line graph maker, in Excel or Google Sheets by selecting the data and inserting a line chart, or by hand on graph paper. Finish with a title, axis labels with units, and a legend if there is more than one line.

If you want to know what each element of the finished graph is called first, see parts of a line graph. For the definition and uses, start with what is a line graph.

Prepare your data

A line graph needs one column of ordered values for the x-axis and one or more columns of numbers for the y-axis. Here are monthly sales for two products (illustrative numbers, in USD thousands):

MonthProduct AProduct B
Jan128
Feb159
Mar1413
Apr1915
May2417
Jun2821

As CSV, a plain-text table where each row is a line and cells are separated by commas, it looks like this:

Month,Product A,Product B
Jan,12,8
Feb,15,9
Mar,14,13
Apr,19,15
May,24,17
Jun,28,21

Before you start, check four things:

  1. The first column is ordered. Dates, months, or steps in sequence. A line connects neighbors, so the order matters.
  2. Each other column is one series and has the same unit throughout.
  3. The numbers are plain numbers. Remove currency symbols and thousands separators. In CSV a value like 1,200 is read as two cells.
  4. The data has no accidental gaps. If a value is missing, decide whether to leave it blank or fill it, and make a note of what you chose.

The x-axis and y-axis are explained in x and y axis explained if you want to check which values go where.

Method 1: Make a line graph online

An online maker is the fastest route, with no software to install. With the free line graph maker:

  1. Open the tool in your browser.
  2. Add your data. Paste CSV, upload a CSV or Excel file (.csv, .tsv, .xlsx, or .xls), or type values into the table editor.
  3. Check how it was read. The tool detects the time axis and the series. The first column becomes the x-axis, and each additional column becomes its own line.
  4. Adjust the look. Choose the chart type, colors, and fonts. The preview updates as you change things.
  5. Export. Download the graph as PNG or SVG, or copy it to the clipboard to paste into a document or slide.

There is no sign-up, and your data stays in your browser. PNG suits slides and documents; SVG stays sharp at any size, which suits print and web design.

Method 2: Make a line graph in Excel or Google Sheets

If your data already lives in a spreadsheet, you can chart it there. Menu names vary slightly between versions.

In Excel

  1. Enter the data with a header row, and select the whole range including the headers.
  2. Go to Insert, open the line chart menu in the Charts group, and choose Line or Line with Markers.
  3. With the chart selected, use Chart Elements (the plus button) or Add Chart Element on the Chart Design tab to add a chart title, axis titles, and a legend.
  4. If your dates are unevenly spaced, right-click the horizontal axis, choose Format Axis, and set the axis type to Date axis so the spacing reflects real time.

In Google Sheets

  1. Select the data with its headers.
  2. Choose Insert, then Chart. In the chart editor, under Setup, set the chart type to Line chart.
  3. Under Customize, open Chart & axis titles to add a title and axis labels.

Method 3: Make a line graph by hand

You need graph paper, a ruler, and a pencil. Use the sales of Product A from the table above.

  1. Draw the axes. A horizontal line for the x-axis and a vertical line for the y-axis, meeting at the bottom left.
  2. Choose the scales. Space the months equally along the x-axis. For the y-axis, start at 0 and end at a round number a little above your highest value, here 30, with equal steps such as 5.
  3. Label the axes with names and units, for example "Month" and "Sales (USD thousands)", and write the tick numbers.
  4. Plot the points. For each month, find its place on the x-axis, go up to its value, and make a small dot.
  5. Join the dots in order with a ruler, left to right.
  6. Add a title, such as "Monthly sales, Product A". If you add Product B as a second line, use a different color or dash style and add a small key.

Check the result against your table: every dot should sit at the right height for its month.

Pick the right kind of line graph

"Line graph" covers several variations, and choosing the right one early saves rework:

  • One series: a basic line chart for a single measure over time.
  • Several series on one scale: a multiple series line chart for comparing products, regions, or groups that share a unit.
  • Values that change at set moments: a step line chart suits prices, tariffs, and rates that hold until the next change.
  • A curved look: a smoothed line chart emphasizes overall shape, though it can imply values that were never measured.
  • Two measures in different units: a dual-axis line chart gives each its own y-axis. Label both clearly.

If you are unsure, start with the basic version. The full list, with when to use each, is in types of line graphs.

Make it easy to read

A graph can be correct and still hard to read. Five habits help:

  • Give each graph one message. Decide what you want people to notice, and choose the title, scale, and highlight accordingly.
  • Keep it to about five lines. Past that, highlight one line or split the data into several small charts.
  • Choose a sensible y-axis. A line graph does not have to start at zero, but a truncated axis exaggerates change, so choose the range with care.
  • Label what matters. Put units in the axis labels and use a legend or direct labels for each line.
  • Keep the decoration light. Pale gridlines, a few colors, and no 3D effects.

More detail is in our line graph best practices.

A short checklist before you share it

Run through this list once the graph looks right:

  1. The title names the measure, the subject, and the period.
  2. Both axes are labeled, with units.
  3. The scale uses equal steps and a sensible starting point.
  4. Every line can be identified, through a legend or direct labels.
  5. The source and date of the data are noted somewhere nearby.
  6. The colors still work in grayscale or for readers with color-vision differences, for example because lines also differ in style.
  7. The export size suits where it will be used: PNG for slides and documents, SVG for print or web layouts.

Examples to copy

Starting from a finished example is often quicker than starting from a blank page. Our line chart examples collect more than 20 real-world cases across business, science, healthcare, and education. For ready-made data, try the revenue growth template or the climate temperature template, and for the chart styles themselves, see the basic line chart and the multiple series line chart.

Common mistakes when making a line graph

  • Putting unordered categories on the x-axis. Products or regions have no order, so a line between them suggests a trend that does not exist. Use a bar chart instead; see line chart vs bar chart.
  • Plotting different units on one axis without a second, clearly labeled axis.
  • Forgetting units and titles. A graph should make sense without a caption.
  • Starting the y-axis high without saying so. Readers may think a small change is large.
  • Smoothing noisy data until it hides gaps or real dips.
  • Using a different color for every line. More than five or six colors cannot be told apart.
  • Leaving thousands separators in CSV. The comma splits the number into two columns.

Frequently asked questions

How do I make a line graph with two lines?

Add a second column of numbers. In a spreadsheet or the line graph maker, each additional column becomes its own line, and a legend or direct labels tell them apart.

How do I make a line graph from a table?

Make sure the first column holds the ordered values, such as months, and the other columns hold the measurements. Copy the table in as CSV, or type it into the table editor, and the tool plots each column as a line.

Is the online line graph maker free?

Yes. The line graph maker is free to use without any account or sign-up, and your data stays in your browser.

Can I make a line graph without Excel?

Yes. You can use an online tool, Google Sheets, or graph paper and a ruler, as shown above.

What data do I need for a line graph?

At least one ordered column for the x-axis, such as dates, and one column of numbers for the y-axis. Two points make a line, but you need more to show a trend, so aim for enough points to show the pattern you care about.

How do I label a line graph?

Give it a title that names the measure, the subject, and the period. Label the x-axis and y-axis, including units, and add a legend when there is more than one line.

Share this article

Help others discover this content

Published on November 10, 2026

Last updated on November 10, 2026

Written by Jacky Fan