ASCENTLEARNING
Join a weekly class
Skip to learning content
Year 9 · Linear equations and graphs · 14 min

Distance between points using Pythagoras

Use horizontal and vertical differences as the legs of a right triangle to calculate a straight-line distance.

01 / LEARN

The idea, step by step

Make a right triangle

Join the two points, then draw a horizontal step and a vertical step between them. These steps are perpendicular, so the joining segment is the hypotenuse of a right triangle. The leg lengths are the sizes of the coordinate differences.

Use Pythagoras' theorem to add the squares of those differences. Subtracting coordinates can produce a negative number, but its square is positive. Do not add the unsquared changes: that would measure a two-leg route rather than the direct segment.

d=(x2−x1)2+(y2−y1)2

Exact or approximate?

If the sum of squares is a perfect square, the distance is an integer. Otherwise a square-root expression is an exact answer. Only convert it to a decimal when the question asks, and round once at the end.

For a horizontal or vertical segment, only one coordinate changes. Count that change directly or use the formula with the other difference equal to zero. In an application, include the unit and interpret the distance as a straight-line separation.

A common trap

Using 4+5=9 for the direct distance in the second example.

Instead: Nine is the length of the horizontal-then-vertical route. The direct route is the hypotenuse, found using the square root of the sum of squares.

02 / WORKED EXAMPLES

See the thinking

Example 1

A coordinate triangle

Find the distance from A⁢(−2,−1) to B⁢(4,7).

  1. The coordinate changes are 4−(−2)=6 and 7−(−1)=8.
  2. Pythagoras gives d2=62+82=36+64=100.
  3. Take the non-negative square root: d=10.
10 units
Example 2

A non-integer distance

Find the distance between (1,2) and (5,7), first exactly and then to 2 decimal places.

  1. The changes are 4 and 5.
  2. d=42+52=41.
  3. 41=6.403⁢…, so the rounded distance is 6.40.
41 units; approximately 6.40 units

Check your understanding

Find the distance between (0,0) and (6,8).

Show answer

10 units

d=36+64=100=10.

03 / WORKSHEET

Your turn

6 questions · 16 marks · Work at your own pace.

Read the questions online
  1. Find the distance between (1,2) and (4,6).
    2 marks
  2. Find the distance between (−3,−2) and (5,4).
    2 marks
  3. Find the exact distance between (0,1) and (3,5).
    2 marks
  4. Find the exact distance between (2,−1) and (7,1), then round it to 1 decimal place.
    3 marks
  5. A map grid uses 100 m per coordinate unit. A gate is at (1,1) and a shelter at (4,5). Find their straight-line separation.
    3 marks
  6. Points A⁢(−2,3), B⁢(4,3) and C⁢(4,−5) form a triangle. Find its perimeter.
    4 marks
Read the worked solutions

Equivalent correct methods earn the corresponding marks. Include units where asked.

  1. Find the distance between (1,2) and (4,6).
    2 marks

    The changes are 3 and 4.

    d=9+16=5.

    5 units
  2. Find the distance between (−3,−2) and (5,4).
    2 marks

    The changes are 8 and 6.

    d=64+36=10.

    10 units
  3. Find the exact distance between (0,1) and (3,5).
    2 marks

    The changes are 3 and 4.

    d=32+42=5.

    5 units
  4. Find the exact distance between (2,−1) and (7,1), then round it to 1 decimal place.
    3 marks

    The changes are 5 and 2.

    d=25+4=29≈5.385.

    To 1 decimal place this is 5.4.

    29 units; 5.4 units
  5. A map grid uses 100 m per coordinate unit. A gate is at (1,1) and a shelter at (4,5). Find their straight-line separation.
    3 marks

    The grid distance is 32+42=5 units.

    Multiply by 100 m per unit.

    500 m
  6. Points A⁢(−2,3), B⁢(4,3) and C⁢(4,−5) form a triangle. Find its perimeter.
    4 marks

    A⁢B=6 and B⁢C=8.

    A⁢C=62+82=10.

    The perimeter is 6+8+10=24.

    24 units
Checking saved progress…

Continue learning

Straight-line equations and intercepts

Next lesson
Curriculum reference & lesson scope

Australian Curriculum v9 and SA Curriculum Mathematics

Gradient, midpoint and distance; algebraic and graphical straight-line relationships; interpreting models and testing parameters. Parallel and perpendicular lines are included as a natural school-course extension. All explanations and questions are original.

Official curriculum source ↗
Back to Linear equations and graphs

Save your next step.

Create a free account to save your learning progress. Lessons and downloads stay free, with or without an account.

Create free account