Skip to content

Mulkek

Math is simple

Menu
  • Home
  • All Lessons
  • Coordinate Geometry
  • Pythagorean Theorem
  • Triangles
  • Polygons
  • Circle
  • Algebra, Calculus, and Trigonometry
  • About
  • Contact Us
  • Privacy Policy
  • Cookie Policy

Distance Formula in 1D

Explanation

In this lesson, we learn how to find the distance between two points in \(1D\).

\(1D\) means one-dimensional.

In \(1D\), points lie on a straight line, such as a number line.

For example:

\(\dots, −3, −2, −1, 0, 1, 2, 3, \dots\)

Each point on the number line represents a location.

If we have two points on a number line, such as:

\(P_1\) and \(P_2\)

then the distance between them tells us how far apart they are.

Distance is always positive.

For example, the distance from \(2\) to \(5\) is \(3\) units.

Also, the distance from \(5\) to \(2\) is still \(3\) units.

So, the order of the points does not change the distance.

Formula / Rule

The distance between two points in \(1D\) is:

\(d = \sqrt{(P_2 − P_1)^2}\)

where:

\(P_1\) is the first point
\(P_2\) is the second point
\(d\) is the distance between them

You may also see the formula written as:

\(d = \left| P_2 − P_1 \right|\)

Both formulas give the same answer.

We use:

\(d = \sqrt{(P_2 − P_1)^2}\)

because it connects clearly to the distance formulas in \(2D\) and \(3D\).

Example

Find the distance between:

\(P_1 = 2\) and \(P_2 = 5\)

Use the formula:

\(d = \sqrt{(P_2 − P_1)^2}\)

Substitute the values:

\(d = \sqrt{(5 − 2)^2}\)

Simplify:

\(d = \sqrt{3^2}\)

\(d = 3\)

So, the distance between \(2\) and \(5\) is:

\(3\) units

Video Explanation

Practice

  • More Examples
  • Take the Quiz

Continue Learning

  1. Plotting Points on a Number Line (\(1D\))
  2. Distance Formula in \(1D\) (Current lesson)
  3. Distance between Two Points in \(1D\)

Navigation

  • Back to Coordinate Geometry
  • Back to Home

© Mulkek 2026. Powered by WordPress

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. These cookies help us understand how visitors use our website so we can improve it.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}