This distance formula calculator finds the straight-line distance between two points on a coordinate plane. The distance formula is one of the most useful results in coordinate geometry, and it is simply the Pythagorean theorem in disguise: the gap between two points is the hypotenuse of a right triangle whose other two sides are the horizontal and vertical distances between them. So the distance is the square root of the change in x squared plus the change in y squared. You enter the x and y coordinates of the first point and the second point, and the calculator returns the distance along with the individual changes in x and y, which are the legs of that right triangle, so you can see exactly how the answer is built. The order of the points does not matter, since the differences are squared before being added, and negative coordinates are handled correctly. This is a core skill in school and university geometry, and it has real applications in mapping, navigation, computer graphics, game development and any field that works with positions on a grid. The result is exact within normal precision and updates the moment you change a coordinate. Enter the two points to see the distance between them straight away.
The calculator subtracts the x coordinates to get the change in x, and the y coordinates to get the change in y. It squares each, adds them, and takes the square root. This is the distance formula, which is the Pythagorean theorem with the changes in x and y as the two shorter sides.
From the point 1, 2 to the point 4, 6, the change in x is 3 and the change in y is 4. The distance is the square root of 9 plus 16, which is the square root of 25, or 5.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
© 2019 to 2026 Calculate.co.nz. All rights reserved.