Types of Lines in Math

Recommended Lessons

Not sure where to start? These are the lessons and games we recommend most to students, parents and teachers on Basic-mathematics.com. Each lesson explains the topic in plain language, walks you through worked examples step by step, and ends with practice so you can check your understanding. Pick one below, or use the menu to find lessons on fractions, algebra, geometry, statistics and more.

Types of Lines in Math

In this lesson, you will learn

  • the difference between straight lines and curved lines
  • the difference between a line, a line segment and a ray
  • how to recognize vertical, horizontal, diagonal, perpendicular and zigzag lines
  • what wavy, closed curved, dotted, dashed and spiral lines are

Straight Lines and Curved Lines

Basically, there are two different types of lines in mathematics and generally these are straight lines and curved lines.

Straight lines: three straight lines with arrows at both ends, one slanted, one almost vertical and one horizontal.
A curved line: a line with arrows at both ends that bends down and then curves back up.

Is a spiral line a straight line or a curved line?

Show answer

A curved line. A spiral keeps bending as it winds around its center, so no part of it is straight.

Line, Line Segment and Ray

In math, a line goes on forever in both directions. That is why the lines in the pictures in this lesson have arrows at both ends. A line through the points A and B is called line AB.

A line: a straight line through points A and B, with arrows at both ends to show that it goes on forever in both directions.

Line segment

A line segment is a part of a line with two endpoints. It does not go on forever: it stops at both ends. A line segment with the endpoints A and B is called line segment AB.

Line segment AB: a straight line that starts at point A and stops at point B, with no arrows.

Ray

A ray is a part of a line with one endpoint. It starts at the endpoint and goes on forever in one direction. A ray that starts at A and goes through B is called ray AB.

Ray AB: a straight line that starts at point A, goes through point B, and has an arrow at one end only.
Remember

Count the endpoints: a line has no endpoints, a ray has one endpoint, and a line segment has two endpoints.

The edge of a ruler starts at one end and stops at the other. Is it more like a line, a line segment or a ray?

Show answer

A line segment. It has two endpoints, so it does not go on forever.

Types of Lines Made with Straight Lines

There are five different types of lines that can be made with straight lines and these are vertical line, horizontal line, diagonal line, perpendicular lines, and zigzag line.

Vertical line

A vertical line is a line that goes straight up and down, from top to bottom or from bottom to top.

Vertical line: a straight line going straight up and down, with arrows at both ends.

Horizontal line

A horizontal line is a line that has a slope of zero. In other words, if you walk on a horizontal line, you will never feel that you are going up. Not even a tiny bit!

Horizontal line: a flat straight line going from left to right, with arrows at both ends.

Diagonal line

A diagonal line is neither vertical nor horizontal.

A diagonal line is also called an oblique line or a slanted line.

Diagonal line: a straight slanted line going from the bottom left to the top right, with arrows at both ends.

Perpendicular lines

When a horizontal line meets a vertical line, you end up with perpendicular lines.

Perpendicular lines: a horizontal line and a vertical line crossing each other like a plus sign.
Definition

Perpendicular lines are lines that meet at a right angle (90°). A horizontal line and a vertical line always meet at a right angle.

Parallel lines are lines that never meet, because they always stay the same distance apart, like the two rails of a train track.

Common mistake

Thinking that only a horizontal line and a vertical line can be perpendicular. Two diagonal lines are also perpendicular when they meet at a right angle, like a plus sign turned on its side.

Zigzag line

A zigzag line is made of short straight lines that keep changing direction, up and down, like a row of letter Zs.

Zigzag line: short straight lines going up and down in a row of sharp points.

Staircase line

A staircase line is also made with straight lines. It goes across, then up, then across, then up again, like the steps of a staircase. Each turn is a square corner.

Staircase line: straight lines that go across and up in turn, with square corners, like the steps of a staircase.
Worked example: What types of lines are used to write the capital letter E?
  1. Look at the long line on the left side of the E. It goes straight up and down, so it is a vertical line.
  2. Look at the three short lines at the top, middle and bottom. They are flat, so they are horizontal lines.
  3. Each horizontal line meets the vertical line at a square corner (a right angle), so each one is perpendicular to the vertical line.
  4. All four lines are straight; the E has no curved lines.

The letter E uses one vertical line and three horizontal lines that are perpendicular to it.

The letter T is made of which type of lines?

Show answer

Perpendicular lines. The T is a horizontal line that meets a vertical line at a right angle.

Types of Curved Lines

Wavy line

A wavy line is a curved line that goes up and down smoothly, like a wave in the sea. It is like a zigzag line with round tops instead of sharp points.

Wavy line: a curved line going smoothly up and down, like waves.

Closed curved line

A closed curved line is a curved line that ends where it begins, so it has no ends at all. A circle and an oval are closed curved lines. The curved line near the top of this lesson is an open curved line, because it does not join up with itself.

Closed curved line: a smooth curved line that goes all the way around and joins up with itself, like an oval.

Is the letter O an open curved line or a closed curved line?

Show answer

A closed curved line. It ends where it begins, so it has no ends.

Dotted, Dashed and Spiral Lines

Lines can also be formed with dashes and dots. If the line is made with dots, it is called a dotted line and if it is made with dashes, it is called a dashed line.

Dotted line: a horizontal line made of small dots.
Dashed line: a horizontal line made of short dashes.

Last but not least, you can also have a spiral line.

Spiral line: a curved line that winds around a center point, getting farther from the center with each turn.
Remember

Dotted and dashed describe how a line is drawn, not its direction. A dotted or dashed line can also be vertical, horizontal or diagonal.

A line winds around a center point and gets farther from the center with each turn. What type of line is it?

Show answer

A spiral line. It is a curved line that keeps winding around its center.

Summary

  • The two basic types of lines are straight lines and curved lines.
  • A line has no endpoints, a ray has one endpoint, and a line segment has two endpoints.
  • A vertical line goes straight up and down; a horizontal line is flat, with a slope of zero.
  • A diagonal (oblique) line is neither vertical nor horizontal.
  • Perpendicular lines meet at a right angle, like a horizontal line meeting a vertical line.
  • Zigzag and staircase lines are made of straight lines that change direction.
  • Wavy, spiral and closed curved lines are curved lines; a closed curved line ends where it begins.
  • Dotted lines are made of dots and dashed lines are made of dashes.

Test Yourself: 10-Question Quiz

Now check what you learned. Every answer is explained, and each time you play you get new questions and new pictures.

Question 1 of 10Score: 0

Keep learning