On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Geometry Fundamentals · Grade K-2

Line

A line is a straight path through two points that runs forever in both directions with no thickness.

y=mx+b (slope-intercept form in the coordinate plane), or ax+by=c, which covers every line, including vertical lines such as x=3

Quick Answer

A line is a straight path through two points that runs forever in both directions with no thickness. Use a line when a straight path never stops at either end. We draw a piece of it with an arrow on each end to show that it keeps going. If the path stops at both ends, it is a segment. If it stops at one end only, it is a ray.

Why This Matters

Lines are how geometry says straight. The sides of a square lie along lines, and a ruler's edge follows one. Telling a line from a segment matters when you measure: a segment from A to B has a length you can find with a ruler, but a line goes on forever, so it has no length to measure.

Intuitive Explanation

Put two dots on paper, A and B. Lay a ruler across them and draw. You now have a straight mark through both dots. Now imagine the mark does not stop at the edge of the paper. It keeps going past A, past the table, past the town, forever. It goes past B the other way forever too. That is a line.

We cannot draw forever, so we draw a piece and put an arrow on each end. The arrows say that it keeps going. We name the line with two of its points: AB↔. Only one straight line goes through two dots. Try it with the ruler: there is just one way to lay it.

A mark from A to B that stops at both dots looks like a line, but it is a segment. Look at the ends to tell them apart. Two stopping points: segment. One stopping point and one arrow: ray, like a flashlight beam. No stopping points and arrows both ways: line. A line also has no thickness, so a fat crayon stripe is only a picture of one.

Think of it like this. A line is like a train track that runs perfectly straight and never ends in either direction, with no last station. Real tracks have width and stop somewhere; a line has no width and no end.

Core idea. A line is a perfectly straight path through two points that extends without end both ways and has no thickness.


When to Use

Call it a line when a straight path has arrows at both ends, or the words say it goes on forever both ways, as in AB↔. If it stops at two dots, it is a segment, and you can measure it. If it starts at one dot and keeps going one way only, it is a ray. If the path bends or curves, it is not a line at all.

Tip. Ask: Is the path straight and unending in both directions, with no endpoints?

How to Recognize It

Look at both ends of the straight mark: does each end stop at a dot, or keep going with an arrow?

  1. Does the mark have an arrow on both ends?

    If yes, it is a line: it goes on forever both ways. If it has an arrow on one end and a dot on the other, it is a ray, like the light from a flashlight.

  2. Does the mark stop at a dot on each end?

    If yes, it is a segment, a piece of a line. A segment is the only one of the three you can measure, because it has a start and a stop.

  3. Is the mark perfectly straight?

    If yes, it can be a line, a ray or a segment. If it bends, curves or wiggles, like a snake or a road around a hill, it is a curve, not a line.

  4. Does the question want just one spot on the mark?

    If yes, it wants a point. A line is made of endless points in a row, but one point alone has no length.

Line compared with Segment, Ray, and Point

Lines, segments, rays and points are all drawn with straight marks and dots. Ask how many ends stop: none for a line, two for a segment, one for a ray, while a point is just one spot.

Line

Meaning
Use this when you need a perfectly straight path that extends forever in both directions.
Key test
Is the path straight and unending in both directions, with no endpoints?
Formula
y=mx+b (slope-intercept form in the coordinate plane)
Example
A perfectly straight path passes through points A and B and continues forever past both. What is it and how is it written?

Segment

Meaning
A piece of a line with two endpoints and a finite length.
Key test
Use when the path starts and stops at two definite points.
Formula
AB‾
Example
The 5 cm edge from A to B

Ray

Meaning
Starts at one endpoint and goes forever in only one direction.
Key test
Use when there is a single starting point and one direction.
Formula
AB→
Example
A sunbeam from the sun outward

Point

Meaning
A single location with no length; a line is the straight path of many points.
Key test
Use when you need just a position, not a path.
Formula
A
Example
A dot on a map

Formula & Notation

y=mx+b (slope-intercept form in the coordinate plane), or ax+by=c, which covers every line, including vertical lines such as x=3
ℓA,B={A+t(B−A):t∈R} for distinct points A,B∈Rn; in R2: {(x,y):ax+by=c} for some (a,b)≠(0,0)

How to read it: AB↔ denotes the line through A and B; AB‾ is a segment; AB→ is a ray from A through B

Worked Examples

Example 1 — Name the figure

Easy

A perfectly straight path passes through points A and B and continues forever past both. What is it and how is it written?
Show the steps and the answer
  1. Look at both ends: it goes on past A and on past B.

    There is no stopping point on either side, so it is a line, not a segment or a ray.

  2. Pick 2 points on it to name it: A and B.

    Exactly one straight path goes through 2 points, so 2 letters are enough to say which line.

  3. Put a two-headed arrow over the letters: AB↔.

    The arrow points both ways because the line keeps going both ways. A plain bar, AB‾, would mean it stops at A and B.

Answer: Line AB↔

Takeaway: Name a line by two of its points with a two-way arrow on top: AB↔.

Example 2 — It stops at both ends

Standard

A straight path goes from A to B and stops at each. Is it a line?
Show the steps and the answer
  1. Count the stopping points: 2, one at A and one at B.

    A line has 0 stopping points, so any endpoint at all rules out a line.

  2. Name the figure with 2 endpoints: a segment.

    A segment is the piece of the line between A and B. It is straight like a line, but it ends.

  3. Write it with a plain bar: AB‾.

    The bar has no arrowheads because the path does not go past A or past B.

Answer: No — it is segment AB‾

Takeaway: Count the endpoints: 0 means a line, 1 means a ray, 2 means a segment.

Example 3 — Find the mistake: a beam called a line

Application

A flashlight at point A shines a straight beam through point B and on forever. Ana writes: "This is line AB↔." Find the mistake and correct it.
Show the steps and the answer
  1. Count the stopping points: the beam starts at 1 point, the flashlight A.

    A line has no stopping points. This beam has one, so it cannot be a line.

  2. Check the other end: past B the beam goes on forever.

    Starting at one point and going forever in one direction is what makes a ray.

  3. Write it with a one-way arrow, starting letter first: AB→.

    The arrow points away from the start, A. Writing BA→ would mean a beam starting at B and shining the other way.

Answer: It is ray AB→, not a line.

Takeaway: Check both ends before drawing two arrows: a path that starts somewhere is a ray, even if it never stops on the other side.

Where You'll See It

  • Drawing with a ruler

    To draw a straight line, line up a ruler with 2 dots and trace along its edge. Only 1 straight line fits through 2 dots, so the ruler can sit only one way. The ruler is about 30 cm long, but the line it draws a piece of goes on forever.

  • A laser level on a wall

    Builders shine a laser level that paints a straight red line across a wall, so they can hang 5 pictures at exactly the same height. The beam shows the line only as far as the wall goes; the line it stands for keeps going both ways.

  • The number line in class

    Counting numbers 0, 1, 2, 3 never run out, so the number line gets an arrow on the right end. If it starts at 0 with only that one arrow, it is really a ray. Older students add −1, −2, −3 on the left with an arrow there too, which makes it a line.

Common Mistakes

  1. The slip: Drawing a line with endpoints

    Instead: a true line has arrowheads both ways and no endpoints.

  2. The slip: Calling a ray or segment a line

    Instead: check whether it stops (segment), starts once (ray), or never stops (line).

  3. The slip: Giving a line thickness

    Instead: a line has length and direction but zero width.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. A line, a ray and a segment are drawn. Which one has 2 endpoints, which has 1, and which has 0?

    Hint: Look for where each one stops.

  2. On a number line, a segment starts at 2 and ends at 9. How long is it?

    Hint: Count the jumps from 2 to 9.

  3. How many different straight lines can go through the same 2 points A and B?

    Hint: Try drawing a second straight line through both points.

  4. A flashlight sits at the 0 mark, and its beam shines right past 5, past 10, and on forever. Is the beam a line, a ray or a segment?

    Hint: How many ends does the beam have?

  5. A string is pulled tight between two nails 30 cm apart. Is the string a line or a segment?

    Hint: Does the string stop, or go on forever?

  6. A student says: "If I draw line AB with a pen 2 mm thick, the line is 2 mm wide." Correct the mistake.

    Hint: Is the pen mark the line itself, or a picture of it?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Can two lines cross more than once?

No. Two straight lines can cross at one point at most. After they cross, they keep going in different directions and get farther apart, so they never meet again. Two lines can also never cross at all, if they run side by side like the two long edges of a ruler. Only curvy paths can cross many times.

Is the edge of a table a line?

Not quite. A table edge is straight, but it stops at each corner, so it is more like a segment. It also has some thickness, and a line has none. Straight edges help us picture lines, and a ruler helps us draw a piece of one, but the line itself would go on far past the table, forever.

How many lines can go through one point?

As many as you like. Put one dot on paper and you can draw a line through it going up, across, slanted, or any way at all. Through two different dots, though, only one straight line fits. Try it with a ruler: once the ruler touches both dots, it can only sit one way.

Can a line go up and down instead of across?

Yes. A line can point any way: across, up and down, or slanted. It is still a line as long as it is straight and goes on forever both ways. A line that goes straight across is called horizontal, like the top of the water in a glass. A line that goes straight up and down is called vertical, like a flagpole.

Learning Path

← Before

Point
Line

You are here

Next →

Plane
You need Point first: a line is a straight path through points, and two points pick out exactly one line. A line adds length and direction, which a point does not have. Next comes Plane, a flat surface that goes on forever, where lines can cross or run side by side.

See Also