Horizontal and Vertical Distance
Introduction
Welcome to Distance on the Coordinate Plane, the third course in our Pythagorean Theorem learning path! In the previous two courses, you built a solid understanding of right triangles and learned how to solve for unknown sides. Now it's time to put those skills to work in one of the most practical settings in math: the coordinate plane.
This first lesson focuses on horizontal and vertical distance, the simplest kinds of distance between two points. Mastering these will set the stage for everything else in this course, including diagonal distances and the famous distance formula. Let's dig in.
Thinking in Terms of a Grid
Imagine standing at a street intersection in a city laid out on a perfect grid. If a friend tells you they are seven blocks east and zero blocks north, you immediately know the distance: seven blocks. You didn't need any fancy formula; you just compared positions along one direction.
The coordinate plane works the same way. Every point has an -coordinate (horizontal position) and a -coordinate (vertical position). When two points share one of those coordinates, the distance between them lies entirely along a single axis, and finding it is as simple as comparing the coordinate that differs.
Horizontal Distance
Two points have a purely horizontal separation when their -coordinates are the same. For example, consider the points and . Both sit at , so the segment connecting them is a flat, horizontal line.
To find the distance, subtract the -coordinates:
The horizontal distance is 7 units. Notice that you only needed the -values because the -values matched.

Vertical Distance
The same idea applies vertically. Two points have a purely vertical separation when their -coordinates are the same. Take and . Both share , so the segment connecting them is a straight, vertical line.
To find the distance, subtract the -coordinates:
The vertical distance is 7 units. Once again, only the coordinate that changes matters.
Crossing an Axis: Why Sign Doesn't Change Distance
Things get more interesting when points sit on opposite sides of an axis. Consider and . If you subtract without thinking about sign, you might write:
A negative result! But distance is always a positive quantity. You handle this by taking the absolute value of the difference:
The vertical distance is 11 units. Intuitively, the point at is 4 units above the -axis and the point at is 7 units below it, so the total gap is . The absolute value of the subtraction gives you exactly that total.

The General Pattern
You can now state a clean rule for axis-aligned distances between any two points and :
- Horizontal distance (same ):
- Vertical distance (same ):
The absolute value ensures the result is positive no matter which point you subtract from which, and no matter which quadrants the points occupy. Here are a few quick examples:
| Point A | Point B | Subtraction | Distance |
|---|---|---|---|
| 7 units (horizontal) | |||
| 5 units (horizontal) | |||
| 11 units (vertical) |
Notice the second row: subtracting a negative coordinate, , turns into addition, . This is exactly the "crossing the axis" effect at work.
Subtraction Order Does Not Matter
One last detail worth highlighting: the order of subtraction is completely up to you when absolute value is involved. Whether you compute or , the answer is the same: . So feel free to subtract in whichever order feels natural. The absolute value will always keep the result positive.
This flexibility is especially handy when points have negative coordinates. For instance, with and , you could compute or . Either way, you arrive at the correct horizontal distance of 5 units.
Conclusion and Next Steps
In this lesson, you learned that horizontal and vertical distances on the coordinate plane come down to a single subtraction and an absolute value. When two points share a -coordinate, compare their -values; when they share an -coordinate, compare their -values. The absolute value guarantees a positive distance even when points span across an axis into negative territory.
As you may recall from earlier courses, the Pythagorean theorem connects two perpendicular sides to a hypotenuse — and the horizontal and vertical distances you just practiced are exactly those perpendicular sides. In the next lesson, you will use them to build right triangles between any two points on the plane, but first, it's time to put today's skills into action with some hands-on practice exercises!
