Prefer to click through the interactive model?

Distance and angles — study guide

The same fragments the interactive model serves, read in order. One source, two views.

How far, and which way

Two numbers pin down where any point sits relative to another: how far apart they are, and which direction one lies from the other. Coordinate geometry already lets you plot two points and label them with coordinates; distance and angle are what those coordinates let you measure once the points are down.

The distance is a single number, and it does not care which way you are facing; it just answers how far. The angle answers a direction question instead, and only means something once you agree what direction counts as the starting line. Both numbers come straight out of arithmetic on the coordinates themselves, with no protractor or ruler required.

This pair of ideas turns out to be one of the most reused tools in math and its applications, from a delivery drone plotting a course to a game character turning to face a target. Trigonometry is where that toolkit gets its full name and its formal rules; here, the goal is just to see the two numbers, where they come from, and why they show up together everywhere direction matters.

The gap in two directions

horizontal change vertical change A B
The horizontal and vertical change between two points, drawn as the two legs of a right triangle: a horizontal leg equal to the difference in the x-coordinates and a vertical leg equal to the difference in the y-coordinates.

Two points rarely differ in only one direction. Subtract the x-coordinates and you get the horizontal change between them: how far apart they are left-to-right; subtract the y-coordinates and you get the vertical change: how far apart they are up-and-down. Either difference can come out negative depending on which point you subtract from which, but its size, ignoring the sign, is what matters for measuring a gap.

Picture those two changes as two sides of a right angle: one leg running horizontally by the horizontal change, the other running vertically by the vertical change, meeting at a square corner. That is like a ladder leaned against a wall: how far its foot sits from the wall and how high its top reaches are two separate distances, and together they set exactly how the ladder leans, and it is exactly the shape the two coordinate differences build every time, whatever the two points happen to be.

Those two legs are not the distance between the points; walking along them means going the long way, first sideways, then up or down. But they are the raw material every other measurement in this concept is built from, and the next one puts them to direct use.

The straight-line distance formula

a b distance distance = sqrt(a^2 + b^2)
The straight-line distance between two points as the hypotenuse of the right triangle formed by the horizontal and vertical legs, with distance equal to the square root of a squared plus b squared.

The straight line connecting two points is the hypotenuse of the right triangle built from the horizontal and vertical legs: the Pythagorean theorem doing exactly the job it was built for, with the two coordinate differences standing in for the two legs, a and b, and the distance standing in for c: a^2 + b^2 = c^2. Solve that for c and you get the distance formula: square the horizontal change, square the vertical change, add them, and take the square root.

That straight-line distance is like a bird flying straight to a rooftop instead of a delivery truck following the streets below: the direct path is always the shortest one: it measures the direct path, not any path you would actually have to walk. A grid-following route that goes purely horizontal then purely vertical, adding the two legs instead of combining them through the square root, is never shorter than the straight-line distance, and it is usually longer; cutting the corner always wins or ties.

A right triangle with legs 3 and 4 gives a hypotenuse of exactly 5, since 9 plus 16 is 25 and the square root of 25 is 5, the smallest and best-known example where every side comes out to a whole number, and a fast way to sanity-check the formula on two points that differ by 3 in one direction and 4 in the other.

How tilted is the segment

reference direction angle vertex
The angle a tilted segment makes with a horizontal reference line, marked by the arc swept from the reference line up to the segment at the vertex where they meet.

A segment between two points is not just a length; it also has a tilt, a lean toward one direction or another, and that lean is what an angle measures. Draw a horizontal reference line through one of the points, and the angle between that reference line and the segment is the number that captures the tilt.

The bigger the vertical change relative to the horizontal change, the steeper that angle gets: a segment with equal rise and run leans at a fixed, moderate angle, one with much more rise than run stands close to vertical, and one with almost no rise at all lies close to flat. That rise-over-run ratio is the same one that measures a line's slope, so a steeper slope and a steeper angle describe the same tilt from two directions.

Turning that ratio into an exact number of degrees is a job for a specific rule connecting a ratio to an angle, the kind of rule trigonometry works out in full. For now, the angle is a real, measurable number: it is 0 degrees for a perfectly flat segment, 90 degrees for a perfectly vertical one, and something in between for everything else.

Two ways to name a direction

0 deg standard angle, counterclockwise from the +x-axis 0 deg, north compass bearing, clockwise from north
Two conventions for the same tilted direction: a standard-position angle measured counterclockwise from the positive x-axis on the left, and a compass bearing measured clockwise from north on the right.

An angle by itself is ambiguous until everyone agrees on two things: which direction is zero, and which way counts as positive. Mathematicians default to a convention called standard position: the zero line points along the positive x-axis, straight right, and angles grow counterclockwise from there, so 90 degrees points straight up.

Navigation uses a different convention entirely. A compass bearing measures from north instead of the positive x-axis, and it grows clockwise instead of counterclockwise, running from 0 degrees at north through 90 degrees at east, 180 degrees at south, and 270 degrees at west, like a hiker reading a compass heading to know which way to walk next, with north as the fixed reference every reading is measured against. The same physical direction gets a different number depending which convention is in use, and neither convention is wrong; they are just answering "which way" against a different zero line and a different sense of rotation.

The habit worth keeping is asking which convention applies before trusting a number. A GPS device reporting a target's location as a distance and a bearing from your current position, or a robot given a heading to steer toward, is using exactly this distance-and-direction pairing, just dressed in the compass convention rather than the math one.

Putting both numbers to work

Take two points: one at (1, 1) and another at (4, 5). The horizontal change is 3 and the vertical change is 4, so the distance between them is the square root of 3 squared plus 4 squared (that 3-4-5 triangle again), which comes out to exactly 5.

The angle follows the same two numbers. A vertical change of 4 against a horizontal change of 3 is a noticeably steep tilt, steeper than a segment with equal rise and run, since the rise outpaces the run, and standard position measures that tilt counterclockwise from the positive x-axis. The exact number of degrees needs the ratio-to-angle rule this concept only gestures at, but the shape of the answer, a steep upward lean, is already visible from the two coordinate differences alone.

Distance and angle together are a complete description of where the second point sits relative to the first: change either one and the point moves somewhere new. That pairing, one number for how far and one for which way, is the same pairing that shows up whenever a location gets described relative to a reference point instead of by its own coordinates.

Where this shows up

Distance and angle are not a classroom-only pairing. A navigation app plotting a route, a GPS or robotics system reporting a target as a distance and a bearing from a known position, and a delivery drone or a self-steering rover working out a heading toward a destination all lean on the exact same two numbers this concept builds.

Screens use the same idea to describe rotation, though not always with the same rules. Two-dimensional graphics commonly describe an object's orientation as an angle from a reference axis, but the standard math convention of positive angles turning counterclockwise is not universal there: some graphics systems flip the vertical axis so it grows downward instead of upward, and a positive angle ends up turning clockwise instead. The convention still has to be agreed on before the number means anything, the same lesson measuring direction already taught with compass bearings.

None of this needs new machinery beyond what came before it: two coordinate differences, one square root, and one angle. What comes next takes that same right triangle and works out the exact rule connecting its angle to the ratio of its sides, trigonometry's whole subject, built directly on top of the distance and the angle this concept just measured.