Mathwords logoMathwords

Segment — Definition, Formula & Examples

A segment (or line segment) is the part of a line that lies between two endpoints, including those endpoints. Unlike a line, a segment has a definite length and does not extend forever.

Given two distinct points AA and BB on a line, the line segment AB\overline{AB} is the set of all points on the line that are between AA and BB, together with the points AA and BB themselves. Its length, denoted ABAB, is the distance between the two endpoints.

Key Formula

AB=(x2x1)2+(y2y1)2AB = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}
Where:
  • A(x1,y1)A(x_1, y_1) = Coordinates of the first endpoint
  • B(x2,y2)B(x_2, y_2) = Coordinates of the second endpoint
  • ABAB = Length of the segment

How It Works

To work with a segment, you identify its two endpoints and measure or calculate the distance between them. On a coordinate plane, you can find the length of a segment using the distance formula. In diagrams, segments are drawn as straight marks with a point at each end, and their names use an overline, such as PQ\overline{PQ}. When you write PQPQ without the overline, you are referring to the numerical length of the segment rather than the geometric object itself.

Worked Example

Problem: Find the length of segment AB\overline{AB} where A=(1,2)A = (1, 2) and B=(4,6)B = (4, 6).
Step 1: Subtract the x-coordinates and the y-coordinates.
x2x1=41=3,y2y1=62=4x_2 - x_1 = 4 - 1 = 3, \quad y_2 - y_1 = 6 - 2 = 4
Step 2: Square each difference and add them.
32+42=9+16=253^2 + 4^2 = 9 + 16 = 25
Step 3: Take the square root to find the length.
AB=25=5AB = \sqrt{25} = 5
Answer: The length of AB\overline{AB} is 5 units.

Another Example

Problem: Point CC is between points AA and BB on AB\overline{AB}. If AC=7AC = 7 and CB=5CB = 5, find ABAB.
Step 1: Because CC is between AA and BB, the Segment Addition Postulate says the two smaller segments add up to the whole segment.
AB=AC+CBAB = AC + CB
Step 2: Substitute the known lengths.
AB=7+5=12AB = 7 + 5 = 12
Answer: AB=12AB = 12 units.

Why It Matters

Segments are the building blocks of every polygon, triangle proof, and coordinate-geometry problem you encounter in middle-school and high-school geometry courses. Architects and engineers rely on precise segment measurements when designing structures. Mastering segment length calculations also prepares you for the distance formula and midpoint formula used throughout algebra and analytic geometry.

Common Mistakes

Mistake: Confusing the notation AB\overline{AB} (the segment) with ABAB (the length). Students sometimes write the overline when they mean a number, or omit it when they mean the geometric figure.
Correction: Use AB\overline{AB} when referring to the segment as a geometric object, and ABAB (no overline) when referring to its numerical length.
Mistake: Treating a segment like a line and assuming it extends beyond its endpoints.
Correction: A segment stops at its two endpoints. If a point does not lie between (or at) those endpoints, it is not on the segment.

Related Terms

  • AngleFormed by two rays sharing an endpoint
  • AdjacentSegments or angles that share a side
  • BetweenDescribes a point lying on a segment
  • Angle BisectorA ray that splits an angle into equal parts
  • Arm of an AngleEach ray forming an angle is an arm
  • Acute AngleAn angle measuring less than 90 degrees