COORDINATES · EARTH · MOTION

Distance Calculator

Find distance in five useful ways: between points in 2D or 3D, across Earth from latitude/longitude, from a point to a line, or from speed and time. Every mode shows the formula and the working.

5distance modes
2D→Earthgeometry to geography
localbrowser-only
DISTANCE WORKBENCH

Choose what “distance” means in your problem

2D COORDINATES

Distance between two points

Uses d = √((x₂−x₁)² + (y₂−y₁)²). Integer coordinates also get a simplified radical when possible.

Live result updates as you type.
2D DISTANCE5

coordinate units

√((3 − 0)² + (4 − 0)²) = 5
Show the working
    MULTI-POINT PATH

    Add segment distances without a spreadsheet

    TOTAL PATH12
    2D / 3D

    Pythagoras, extended

    Coordinate distance is the length of the difference vector. In 2D, square Δx and Δy; in 3D, include Δz. The square root returns the straight-line length.

    LAT / LONG

    Straight on a sphere is an arc

    The haversine formula computes the shorter great-circle arc between two coordinates. This is “as-the-crow-flies” distance, not road, walking, or airline-route distance.

    POINT → LINE

    The shortest path is perpendicular

    For Ax + By + C = 0, the distance is |Ax₀ + By₀ + C| / √(A²+B²). The calculator also projects the point onto the line.

    MOTION

    Three quantities, one relationship

    d = vt, v = d/t, and t = d/v are the same relationship rearranged. Unit conversion happens before the solve, then converts back to your chosen units.

    DAILY DISTANCE 8

    Train the formula, not just the button

    0 / 0best —
    2D DISTANCE

    Loading…

    Round only at the end; answers within 0.01 are accepted.

    FORMULA REFERENCE

    Pick the formula that matches the space

    2D

    d = √((x₂−x₁)²+(y₂−y₁)²)

    3D

    d = √(Δx²+Δy²+Δz²)

    Haversine

    d = 2R asin(√a)with spherical Earth approximation

    Point to line

    |Ax₀+By₀+C| / √(A²+B²)

    Motion

    d = vt

    Path

    Σ segment distances
    Precision, units & limitations

    All calculations use JavaScript double-precision arithmetic. Geographic mode uses a spherical mean-Earth model, so it is suitable for learning and quick great-circle estimates but not survey-grade geodesy. No routing service is queried, so this page does not claim road or walking distance. Inputs and recent Daily scores stay in your browser.