Points, Lines and Angles

Line, Segment and Ray Told Apart With Clear Notation

Learn how lines, segments and rays differ, how each is written, and how to avoid the notation slips that quietly change what a statement means.

Key takeaways

  • A line has no endpoints, a ray has exactly one, and a segment has exactly two.
  • The order of letters never matters for a line or a segment, but it does matter for a ray, because the first letter is the starting point.
  • The letters AB with no mark usually mean the length of segment AB, which is a number rather than a set of points.
  • Congruence (≅) compares figures, while equality (=) compares measurements or states that two names refer to the same object.

A line goes on forever in both directions, a segment stops at two endpoints, and a ray starts at one endpoint and goes on forever in one direction. All three are straight, and all three can be named with the same two letters. The mark drawn over those letters, or the word written before them, tells your reader which one you mean.

The difference is more than tidiness. A segment has a length you can measure, a line and a ray do not. Mix them up and a true statement can turn false, or a step in a proof can claim something nobody has shown.

Three objects built from two points

Pick two different points, A and B. Exactly one straight line passes through them, and from that line you can carve out the other objects.

The line AB is the whole thing: it passes through A and B and continues past both without end.

The segment AB consists of A, B and every point of the line between them. A and B are its endpoints. A taut string between two pins is a good physical picture.

The ray AB begins at A, runs through B and keeps going. It has one endpoint, A. A beam from a flashlight suggests the idea, with the lamp as the starting point.

Formally, segment and ray are defined using the idea of one point lying between two others. That idea does a lot of unnoticed work, as the article on betweenness explains. The line itself is one of the undefined terms that geometry starts from.

How each one is written

In textbooks and handwriting, the standard marks sit above the two letters: a double-headed arrow for a line, a plain bar for a segment, and a single arrow pointing right for a ray. Where those marks are hard to type, writers spell out the word, as this article does.

Object Mark over AB Written in words Endpoints Has a length?
Line double arrow ↔ line AB none no, it is endless
Segment plain bar segment AB A and B yes
Ray right arrow → ray AB A only no, it is endless
Length no mark AB not a figure it is the length

The last row catches many learners. When you write AB = 7 cm, you are talking about a number. Some books write the same thing as |AB| or as m followed by the segment symbol. Check which habit your course uses and stay with it.

A line may also be named by a single lowercase letter, such as line k. That is handy when no particular points on it matter.

Line, segment and ray at a glance
Line No endpoints Endless both ways Line AB equals line BA Segment Two endpoints Has a measurable length Segment AB equals segment BA Ray One endpoint, named first Endless one way Ray AB differs from ray BA Line No endpoints Endless both ways Line AB equals line BA Segment Two endpoints Has a measurable length Segment AB equals segment BA Ray One endpoint, named first Endless one way Ray AB differs from ray BA

When letter order matters

For a line, AB and BA name the same set of points. The same is true for a segment, since it has the same two ends whichever you mention first.

A ray is different. Ray AB starts at A and heads toward B. Ray BA starts at B and heads toward A. They overlap along segment AB, but each continues where the other does not.

A ray can still have several correct names. If C lies on ray AB and is not A, then ray AC is the same ray, because it has the same starting point and the same direction. Only the first letter is fixed.

Two rays are called opposite rays when they share an endpoint and together make up a whole line. If B lies between A and C, then ray BA and ray BC are opposite. Opposite rays form a straight angle of 180°, which sits behind the idea of linear pairs of angles.

A counting exercise with four points

Put A, B, C and D on one line, in that order. How many different objects can you name?

Lines. Only one. Line AB, line BD and line CA are all the same line.

Segments. Each pair of points gives its own segment: AB, AC, AD, BC, BD and CD. That is 6.

Rays. Work endpoint by endpoint.

From A:  ray AB (same as AC and AD)         1 ray
From B:  ray BA, and ray BC (same as BD)    2 rays
From C:  ray CD, and ray CB (same as CA)    2 rays
From D:  ray DC (same as DB and DA)         1 ray
Total that can be named with these letters  6 rays

There are really eight rays that start at one of the four points, two at each. The ray leaving A away from B, and the ray leaving D away from C, contain none of the other labeled points, so you would need a new point to name them.

Overlaps and combinations

Because these figures are sets of points, you can ask what two of them share (their intersection) or what they cover together (their union). Keep the same order A, B, C, D on a line.

  • Ray AB and ray BA share exactly segment AB.
  • Ray AB and ray BA together cover all of line AB.
  • Ray BA and ray BC share only the point B.
  • Segment AC and segment BD share segment BC.
  • Segment AB and segment CD share nothing.
  • Segment AB and segment BC together make segment AC.

The final item is a statement about point sets. Its partner statement about lengths, AB + BC = AC, is the segment addition rule, practiced in worked problems on segments and midpoints.

A number line makes these visible. Put A at 0 and B at 5. Segment AB is all x with 0 ≤ x ≤ 5. Ray AB is all x ≥ 0. Ray BA is all x ≤ 5. Line AB is every real number. The overlap of x ≥ 0 and x ≤ 5 is exactly 0 ≤ x ≤ 5, matching the first bullet.

Equal, congruent and the difference between them

Congruent segments have the same length. You write segment AB ≅ segment CD. Equal lengths are numbers that match, written AB = CD. The two statements travel together, but they are about different things.

Writing "segment AB = segment CD" would claim that the two names refer to one and the same set of points. Two sides of a square are congruent, yet they are clearly not the same segment.

Rays and lines have no length, so asking whether one ray is longer than another makes no sense. In the usual school treatment, any two rays are alike in size and shape, and the interesting question is where they point. Two rays with a common endpoint form an angle, and the angle's size does not depend on how far along the rays you draw. A short sketch of an angle and a long one can show exactly the same measure.

Which one a figure is made of

Polygons are made of segments. Triangle ABC consists of segments AB, BC and CA and nothing more. If a problem says to "extend side BC", it is asking you to leave the segment and travel along ray BC past C, or along ray CB past B. The new points belong to the line but not to the side.

Angles are made of rays. That is why the exterior angle of a triangle is formed by one side and the extension of another: both are parts of rays leaving the same vertex.

Distances and positions often call for lines. The height of a triangle is measured along a perpendicular to the line containing the base, even when the foot of that perpendicular misses the base segment. In an obtuse triangle, two of the three heights land outside the sides. A student who insists on hitting the segment will conclude, wrongly, that those heights do not exist.

The same care applies to meeting points. Two segments may fail to cross although the lines containing them cross somewhere farther along. "Do these meet?" has no answer until you know which objects are meant.

Mistakes to watch for

Reversing a ray. In angle ABC, the sides are ray BA and ray BC, both starting at the vertex B. Writing ray AB instead describes a ray that starts in the wrong place.

Measuring the endless. "Line AB is 4 cm long" is not a correct statement. What you measured is segment AB.

Reading a drawing too literally. A line printed on a page has ends because paper does. Arrowheads signal that it continues. Some diagrams omit arrowheads, so rely on the wording. More conventions of this kind are covered in reading marks and symbols on diagrams.

Assuming a point is on a segment when it is only on the line. If P is on line AB, it may sit beyond A or beyond B. Many problems have two answers for exactly this reason.

A quick self-check

Suppose Q lies on line AB with AB = 6 and AQ = 2. Where can Q be?

If Q is on segment AB, then QB = 6 − 2 = 4. If Q is on the ray opposite to ray AB, so that A lies between Q and B, then QB = 2 + 6 = 8. Both are consistent with "Q lies on line AB".

Now change one word. If Q lies on ray AB, the second position is ruled out and QB = 4 is the only answer. If Q lies on ray BA, you start at B and head toward A, and that ray includes both positions, since both are on the A side of B.

One noun changed the number of solutions. Reading the noun carefully is the cheapest way to get these problems right, and it takes only a few seconds before you start calculating.

Written for 4Geometry with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 39 articles in Points, Lines and Angles →

Latest news on this topic