Length of a Line Segment Calculator

Find the length of a line segment from the coordinates of its two endpoints.

Result
—

How to calculate

Square the coordinate differences, add them, and take the square root. Points with the same coordinates produce zero length.

Worked example

Use First point x 1 · First point y 3 · Second point x 4 · Second point y 9. The result is ≈ 6.708203932499369089 units.

Input notes

Enter integers, decimals, or fractions. Fractions in the result are in lowest terms.

OpenStax linear equation forms

Related calculators