Line Segment

Definitionnoun phrase

What is a line segment in geometry?

A line segment is a straight part of a line with two endpoints. It starts at one point, stops at another, and includes every point between them. A segment with endpoints A and B is written AB. Unlike a line, which goes on forever, a segment has a definite length that you can measure.

In Spanish
segmento de recta
Also called
segment
Grade level
K-5
Grade 4Grade 5Grade 6GeometryCCSS 4.G.A.1CCSS HSG-CO.A.1GEDSATACTHiSET

Line Segment in a picture

Line, ray and line segmentA line with arrows on both ends, a ray with one endpoint, and a line segment with two endpoints, followed by segment addition PQ plus QR equals PR.ABline AB: no endpointsCDray CD: one endpointEFline segment EF: two endpointsonly a segment has a length you can measureSegment addition: PQ + QR = PRPQR53PR = 5 + 3 = 8
Arrows mean the figure keeps going. A segment has no arrows, only two endpoints, so it has a length. Lengths of segments on one line add: PQ + QR = PR.

Formal definition and notation

Given two distinct points A and B, the line segment AB is the set made of A, B and all points of the line AB that lie between A and B. Its length, written AB without the bar, is the distance between the endpoints. On the coordinate plane, AB = √(x2 − x1)2 + (y2 − y1)2.

Symbol Read it as Meaning
AB segment A B the segment itself, a set of points
AB A B the length of AB, a number
AB ≅ CD segment A B is congruent to segment C D the two segments have the same length; drawings show this with matching tick marks

Key facts

Try it: measure a segment

Interactive

Drag the two endpoints, or select one and use the arrow keys. The bracket marks the segment between them, and the readout gives its length as the distance between the endpoints.

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

Line Segment examples, step by step

Example 1: Count the segments

Warm-up

Points A, B and C are corners of a triangle. Name all of its sides as line segments.

  1. Each side joins two corners, and each corner is an endpoint.
  2. The sides are AB, BC and CA.
  3. BA would name the same segment as AB, so there are no others.

Answer: Three segments: AB, BC and CA.

Example 2: Segment addition

Core

Point M lies on JK. JM = 2x + 1, MK = 3x − 4 and JK = 27. Find x and JM.

  1. Segment addition: JM + MK = JK, so (2x + 1) + (3x − 4) = 27.
  2. Combine like terms: 5x − 3 = 27.
  3. Add 3 and divide by 5: x = 6.
  4. JM = 2(6) + 1 = 13, and check MK = 3(6) − 4 = 14: 13 + 14 = 27.

Answer: x = 6 and JM = 13.

Example 3: Length on the coordinate plane

Test-style

Find the length of the segment with endpoints (1, 2) and (7, 10).

  1. Horizontal change: 7 − 1 = 6. Vertical change: 10 − 2 = 8.
  2. The segment is the hypotenuse of a right triangle with legs 6 and 8.
  3. Length = √62 + 82.
  4. √36 + 64 = √100 = 10.

Answer: The segment is 10 units long.

Common mistakes

✗ MistakeDrawing AB with arrows on the ends.
✓ InsteadDraw a segment with a dot at each endpoint and no arrows.

Arrows mean the figure continues forever, which makes it a line or a ray. A segment stops at its endpoints.

✗ MistakeWriting AB = 7.
✓ InsteadWrite AB = 7 for the length. AB names the segment itself.

The bar turns the letters into a figure. A figure is not a number, so the length is written without the bar.

✗ MistakeQ is on PR, PR = 12 and PQ = 5, so QR = 17.
✓ InsteadQR = PR − PQ = 12 − 5 = 7.

The parts add up to the whole: PQ + QR = PR. The whole segment is the longest one.

Not to be confused with

Line Segmentvs.Line

A line has no endpoints and no length; a segment is the finite piece between two points. Line AB has arrows at both ends, segment AB has none.

Line Segmentvs.Ray

A ray has one endpoint and goes on forever in one direction. Ray CD starts at C; segment CD stops at D.

Line Segmentvs.Midpoint

The midpoint is one point, halfway along a segment. For AB from 0 to 10 on a number line, the midpoint is 5.

Quick check: 3 questions

Question 1 of 3

Which figure has exactly two endpoints?

Show answer and explanation

Answer: C. A line segment begins and ends at two endpoints. A ray has only one endpoint, and a line and a plane go on forever with no endpoints.

Question 2 of 3

B is on AC. AB = 9 and AC = 15. What is BC?

Show answer and explanation

Answer: B. By segment addition, AB + BC = AC, so BC = 15 − 9 = 6. 24 adds the two lengths, which would make the part longer than the whole.

Question 3 of 3

What is the length of the segment from (−2, 3) to (4, 3)?

Show answer and explanation

Answer: D. The y-coordinates match, so the segment is horizontal and its length is |4 − (−2)| = 6. 2 comes from 4 + (−2), and 36 is 62 without the square root.

Line Segment: frequently asked questions

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

A line goes on forever in both directions, so it has no endpoints and no length. A line segment is the piece of a line between two endpoints, so it has a definite length. In drawings, a line has arrows on both ends and a segment has dots at its endpoints. Notation also differs: a segment uses a bar over the two letters.

How do you name a line segment?

Use its two endpoints with a bar over the letters: AB or BA, which are the same segment. To talk about its length, drop the bar and write AB = 7. Name a segment only by its endpoints, never by a point in the middle.

Is a side of a triangle a line segment?

Yes. Each side of a triangle, or of any polygon, is a line segment that joins two vertices. A triangle has three sides, so it is made of three segments, and its perimeter is the sum of their lengths. The diagonals of a polygon are segments too.

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

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 Segment.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/line-segment/

Flashcard

TermLine SegmentAB
DefinitionA straight piece of a line with two endpoints and a measurable length. Every side of a triangle is a line segment.
Study the full deck

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