Number Line Formula

Number line is a straight line where each point represents a number, with equal spacing giving a visual model of all real numbers.

The Formula

Distance between points a and b on the number line is ∣b−a∣

Ask yourself: Am I placing or comparing numbers as ordered, equally spaced points on a single line?

Quick example

On a number line: …−2,−1,0,1,2… with equal spacing between integers.

Notation

A horizontal line with 0 at the origin; positive numbers to the right, negative numbers to the left, with equal spacing between consecutive integers

What this formula means

A straight line where each point represents a number, with equal spacing giving a visual model of all real numbers. The number line extends infinitely in both directions, with negative numbers to the left of zero and positive numbers to the right, providing a geometric representation of order and distance.

A number line is like a street where every house number has one spot, the houses are evenly spaced, and the street runs forever both ways. Walking right always means bigger numbers. Unlike a real street, there is also a spot between any two houses, for numbers like 212.

Formal view

The number line is a bijection f:R→ℓ from the real numbers to points on a line ℓ, preserving order and distance: a<b  ⟺  f(a) is left of f(b), and d(f(a),f(b))=∣b−a∣. This makes (R,∣⋅∣) a complete ordered metric space.

Worked examples

Example 1

easy
Plot and label the following on a number line: −3, −12, 0, 1.75, 73. Then find the distance between −3 and 73.
Show solution

Answer

Distance =163≈5.33.

First step

1.
Convert to decimals for placement: −3=−3, −12=−0.5, 0=0, 1.75=1.75, 73≈2.33.

Full solution

  1. 2.
    Order from left to right: −3,  −0.5,  0,  1.75,  2.33.
  2. 3.
    Distance from −3 to 73: ∣73−(−3)∣=∣73+3∣=∣163∣=163≈5.33.
The number line provides a geometric model for all real numbers. Distance between two points is the absolute value of their difference, so direction does not matter — only the magnitude of the gap. Converting to decimals makes ordering visual and intuitive.

Example 2

medium
Find all integers within distance 2.5 of −1 on the number line.

Example 3

medium
On a number line, point A is at −3 and point B is at 5. Find the midpoint and the distance between them.

Common mistakes

  • Spacing integers unevenly - consecutive integers must sit the same distance apart or order and distance are wrong.
  • Putting negatives on the right - negative numbers go LEFT of zero, getting smaller as you move left.
  • Confusing distance with difference of position - distance between a and b is ∣b−a∣, always nonnegative.

Why this formula matters

A number line turns numbers into places, so questions become pictures: which is bigger, how far apart, what lies between. It is how you see that −5 is less than −2 even though 5 is more than 2, and why 34 sits between 0 and 1. It is also the first step toward graphs, which are built from two number lines.

Frequently asked questions

What is the Number Line formula?

A straight line where each point represents a number, with equal spacing giving a visual model of all real numbers. The number line extends infinitely in both directions, with negative numbers to the left of zero and positive numbers to the right, providing a geometric representation of order and distance.

How do you use the Number Line formula?

Draw a number line when a problem asks you to order or compare numbers, especially negatives or fractions, to find how far apart two numbers are, or to show a change, such as a temperature rising 6 degrees from −4 to 2. If the question needs a spot found with two numbers, such as 3 across and 2 up, use a coordinate plane. If it compares amounts for separate groups, a bar graph fits better.

What do the symbols mean in the Number Line formula?

A horizontal line with 0 at the origin; positive numbers to the right, negative numbers to the left, with equal spacing between consecutive integers

Why is the Number Line formula important in Math?

A number line turns numbers into places, so questions become pictures: which is bigger, how far apart, what lies between. It is how you see that −5 is less than −2 even though 5 is more than 2, and why 34 sits between 0 and 1. It is also the first step toward graphs, which are built from two number lines.

What do students get wrong about Number Line?

The procedure for number line is the easy part; the trap is spacing integers unevenly. Asking "Am I placing or comparing numbers as ordered, equally spaced points on a single line?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Number Line formula?

Before studying the Number Line formula, you should understand: counting, integers.

The full guide

This formula is covered in depth in Place Value and Measurement: Number Sense Foundations.