Line

Definitionnoun

What is a line in math?

A line is a perfectly straight path of points that goes on forever in both directions. It has no thickness and no endpoints, so it has no length you can measure. Through any two points there is exactly one line, which is named by those two points, as in line AB, or by one lowercase letter.

In Spanish
recta
Also called
straight line, line ℓ
Grade level
K-5
Grade 4Grade 8GeometryCCSS 4.G.A.1CCSS HSG-CO.A.1SATACTGEDTABEHiSET

Line in a picture

A line, compared with a segment and a rayA straight line through points A and B with arrows at both ends, named line AB or line l. Below, a line has no endpoints, a line segment has two endpoints, and a ray has one endpoint.ABℓgoes on forever both waysline AB, writtenABor ℓlineline segmentrayno endpoints2 endpoints1 endpointno lengthhas a lengthno lengthThrough 2 points there is exactly 1 line.Two different lines cross at 1 point or not at all.
The arrowheads show that a line never ends. A line segment stops at two endpoints, and a ray stops at one.

Formal definition and notation

In Euclidean geometry, a line is an undefined term: a one-dimensional set of points, straight and endless in both directions, such that exactly one line passes through any two distinct points. In the coordinate plane, every line is the set of points (x, y) satisfying a linear equation ax + by = c with a and b not both 0.

Symbol Read it as Meaning
line AB line A B the line through points A and B; in print, AB with a two-headed arrow over it
ℓ or line m line l, line m a line named by one lowercase (often script) letter
y = mx + b y equals m x plus b a non-vertical line on a graph, with slope m
ℓ ∥ m, ℓ ⊥ m l is parallel to m, l is perpendicular to m how two lines relate

Key facts

  • Two points determine a line: exactly one line goes through any two different points.
  • Points on the same line are collinear. Three points chosen at random are usually not collinear.
  • Two different lines in a plane either cross at exactly one point or never meet (parallel lines). Lines that cross at a right angle are perpendicular.
  • A line has infinite length, so you measure segments of it, never the line itself.
  • In everyday speech “line” can mean a curve or a segment, but in geometry a line is always straight and endless.

Try it: two points make one line

Interactive

Drag point A or B. However you place two different points, exactly one straight line passes through both, and its equation updates as you move.

This interactive needs JavaScript. The worked examples below show the same ideas step by step.

Line examples, step by step

Example 1: Name a line

Warm-up

Points P, Q and R all lie on line k. Using two of the points, how many different two-letter names does the line have?

  1. A name uses 2 of the 3 points, and order matters for the name (PQ and QP are written differently).
  2. First letter: 3 choices. Second letter: 2 choices left.
  3. 3 × 2 = 6 names: PQ, QP, PR, RP, QR, RQ.

Answer: There are 6 two-letter names, and all of them (plus k) name the same line.

Example 2: Is the point on the line?

Core

Line m passes through (0, 1) and (2, 7). Is the point (5, 16) on line m?

  1. Slope through the two points: 7 − 12 − 0 = 3, and the line crosses the y-axis at 1.
  2. Equation of the line: y = 3x + 1.
  3. Test x = 5: 3 × 5 + 1 = 16.
  4. The point’s y-value is 16, which matches.

Answer: Yes, (5, 16) is on line m, so the three points are collinear.

Example 3: Lines through several points

Test-style

Six points are drawn so that no three of them are on the same line. How many different lines can be drawn through pairs of these points?

  1. Each line is fixed by a pair of points, and no line contains a third point, so lines and pairs match one to one.
  2. Each point pairs with 5 others: 6 × 5 = 30.
  3. Each pair was counted twice (AB and BA), so divide by 2: 30 ÷ 2 = 15.

Answer: 15 different lines can be drawn.

Common mistakes

✗ Mistake“Line AB is 5 centimeters long.”
✓ Instead“Segment AB is 5 centimeters long.” A line has no length.

A line keeps going in both directions, so it cannot be measured. Only the part between two endpoints, a line segment, has a length.

✗ MistakeDrawing a line without arrowheads and calling it a line.
✓ InsteadPut an arrowhead at each end to show a line; dots at the ends show a segment.

The marks at the ends are what tell a reader which figure you mean: arrowheads mean it continues, dots mean it stops.

✗ MistakeTwo lines that never meet on the page are parallel.
✓ InsteadThey are parallel only if they never meet even when extended forever (and lie in the same plane).

Two lines with slopes 1 and 1.1 can look apart on a small graph, but extended far enough they cross.

Not to be confused with

A line segment is the part of a line between two endpoints, so it has a length. A line has no endpoints and no length.

Linevs.Ray

A ray starts at one endpoint and goes forever in one direction; a line goes forever in both directions. Ray AB and ray BA differ, but line AB and line BA are the same.

A line is the geometric figure. A linear equation, such as y = 2x − 1, describes exactly which points lie on one line.

Quick check: 3 questions

Question 1 of 3

How many endpoints does a line have?

Show answer and explanation

Answer: A. A line goes on forever in both directions, so it has no endpoints. A ray has 1 endpoint and a line segment has 2. A line does contain infinitely many points, but none of them is an end.

Question 2 of 3

How many lines pass through two different points?

Show answer and explanation

Answer: D. Two points determine exactly one line. Infinitely many lines pass through a single point, which is where that wrong answer comes from.

Question 3 of 3

Which three points are collinear?

Show answer and explanation

Answer: B. From (1, 1) to (2, 3) the slope is 2, and from (2, 3) to (4, 7) it is 42 = 2. Same slope through a shared point means one line. Each other set has two different slopes.

Line: frequently asked questions

What is the difference between a line, a line segment and a ray?

All three are straight. A line has no endpoints and extends forever both ways. A line segment has two endpoints, so it has a measurable length. A ray has one endpoint and extends forever in one direction, like a beam of light from a flashlight. Drawings show the difference with arrowheads (it continues) and dots (it stops).

Why is a line called an undefined term?

Geometry has to start with a few words that are not defined using simpler words, or every definition would go in circles. Point, line and plane are those starting words. Instead of a definition, a line is described by its properties: it is straight, has no thickness, extends forever, and exactly one passes through any two points.

Can a line be curved?

Not in geometry. A line is always straight; a curved path is called a curve. Everyday words such as “draw a wavy line” or “line graph” use the word loosely. On a coordinate plane, a straight line is the graph of a linear equation, while curves such as parabolas come from other equations.

Practice and tools

Sources

  1. Common Core State Standards, Grade 4 Geometry (4.G.A.1)
  2. Common Core State Standards, High School Geometry, Congruence (HSG-CO.A.1)
  3. OpenStax, Contemporary Mathematics, 10.1 Points, Lines, and Planes (LibreTexts edition)

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 4.G.A.1, CCSS HSG-CO.A.1

Cite this entry

Effortless Math Team. “Line.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/line/

Flashcard

TermLineline AB
DefinitionA straight path that goes on forever in both directions, with no endpoints. Exactly one line passes through any two points.
Study the full deck

Browse all terms in the Math Dictionary · More geometry terms · Random term