A number line is a straight line on which every real number is represented by a unique point, and every point represents a unique real number. An origin represents zero, a chosen direction indicates increasing values, and a fixed unit length determines the scale. The number line connects numbers with geometry, providing a model for numerical order, distance, and arithmetic. In elementary mathematics it is usually drawn horizontally, with values increasing to the right, although its orientation is a convention rather than an essential property.
Construction and conventions
Three choices establish a number line:
- Origin: a point designated .
- Positive direction: one of the two directions along the line.
- Unit length: the distance from to the point designated .
Once these choices are fixed, a real number corresponds to the point at distance units from the origin, in the positive direction if and the negative direction if .
A typical diagram labels equally spaced integers:
←────┬────┬────┬────┬────┬────┬────→
−3 −2 −1 0 1 2 3
The arrows indicate that the line continues indefinitely in both directions. Tick marks help show the scale; they do not imply that only the marked points belong to the line. Numbers between the ticks are represented as well.
The line need not be horizontal. A vertical number line commonly has increasing values upward. Changing the orientation, unit, or location of the origin changes the coordinate assignment, not the underlying geometric line.
Which numbers appear on the line?
Different number systems occupy different subsets of the number line.
- Natural numbers appear at equally spaced positions on the nonnegative side, with the inclusion of zero depending on convention.
- Integers extend this pattern in both directions.
- Rational numbers occupy positions expressible as , where and are integers and .
- Irrational numbers, such as , occupy the remaining positions.
A fraction can be located by subdividing a unit interval into equal parts. For example, lies three of four equal subdivisions to the right of zero. The point , by contrast, can be constructed geometrically as the length of the diagonal of a unit square and then transferred to the line.
The rational numbers form a dense set: between any two distinct real numbers there is a rational number. Irrational numbers are also dense. Density does not mean that the rationals alone fill the line. The point corresponding to , for instance, has no rational coordinate.
In the standard mathematical model, the complete line is identified with , the set of all real numbers. It contains no points corresponding to nonreal complex numbers; representing all complex numbers requires a plane rather than a single real coordinate axis.
Order, distance, and magnitude
Numerical order
With values increasing to the right,
means that the point lies to the left of the point .
This interpretation is especially useful for negative numbers. For example, , because is farther to the left. A number’s position in the ordering is distinct from its distance from zero: is smaller than , but has greater magnitude.
Absolute value and distance
The absolute value is the distance from to the origin. The distance between two points and is
Thus, the distance from to is
Distance is nonnegative and does not depend on the direction in which it is measured. By contrast, the signed displacement from to is .
This distance makes the real line a metric space and agrees with ordinary one-dimensional Euclidean distance.
Arithmetic as geometric operations
The number line gives geometric interpretations of basic arithmetic.
Addition and subtraction
Adding to means starting at and moving by the signed displacement . A positive moves right; a negative moves left. For example,
Subtraction reverses the corresponding movement:
For instance, : subtracting a displacement of three units to the left is equivalent to moving three units to the right.
Multiplication and division
Multiplication by a positive number scales distances from the origin by the factor . Multiplication by a negative number also reflects points across the origin. Consequently:
- doubles distances from zero;
- halves those distances;
- reflects the line across zero.
Multiplication by zero sends every point to the origin.
Division by a nonzero number reverses multiplication by that number. Thus, division by halves signed coordinates. There is no inverse scaling operation for multiplication by zero, which is consistent with division by zero being undefined in ordinary real arithmetic.
More generally, a transformation
is an affine map. When , it combines scaling, possible reflection, and translation.
Intervals and inequalities
Number lines provide a direct way to display sets defined by inequalities. For , common interval notations are:
| Notation | Condition | Endpoints |
|---|---|---|
| Both excluded | ||
| Both included | ||
| Only included | ||
| Only included |
Diagrams commonly use an open circle for an excluded endpoint and a filled circle for an included endpoint.
Unbounded intervals include
and
The symbols and are not real numbers or ordinary endpoints on the number line. Parentheses are therefore used beside them.
An absolute-value inequality describes distance. For ,
Its solution is the open interval centered at with radius .
The real line in analysis and topology
The number line becomes a foundational object in mathematical analysis. Its essential structural feature is the completeness of the real numbers: every nonempty set of real numbers that is bounded above has a least upper bound.
Completeness distinguishes the real line from the rational numbers. Rational approximations to can approach a position that has no rational coordinate, whereas that position exists in . Equivalently, with the usual distance, every Cauchy sequence of real numbers converges to a real number.
The usual topology of the real line is generated by open intervals: a set is open precisely when each of its points lies in an open interval contained in the set. This structure supports the definitions of limits and continuous functions.
The real line is a connected space: it cannot be separated into two disjoint, nonempty open subsets. More specifically, its connected subsets are exactly the intervals, including single points and unbounded intervals.
Applications and limitations
Number lines are widely used to teach signed numbers, fractions, magnitude, and inequalities. They also serve as coordinate models for quantities such as time, position along a straight path, and temperature relative to a chosen scale.
In a Cartesian coordinate system, each coordinate axis is a number line. Two perpendicular axes locate points in a plane; three locate points in three-dimensional space. A function graph pairs positions on an input axis with positions on an output axis.
A drawn number line is necessarily incomplete as a picture: it displays only a finite region, finitely many labels, and limited visual precision. Its mathematical meaning nevertheless includes all real coordinates and indefinite extension.
Equal numerical differences must correspond to equal geometric distances on an ordinary number line. A logarithmic axis uses a different rule: equal distances represent equal ratios rather than equal differences. Such an axis is useful for displaying quantities across many orders of magnitude, but it is not a uniformly scaled number line for the original values.