Geometry Calculators
Related Content
- 3 4 5 Triangle
- 30 60 90 Triangle
- 45 45 90 Triangle
- 5 12 13 Triangle
- Arc Length Calculator
- Area of a Circle Calculator
- Area of a Hexagon
- Area of a Kite
- Area of a Parallelogram
- Area of a Pentagon
- Area of a Rectangle
- Area of a Rhombus
- Area of a Sector
- Area of a Semicircle
- Area of a Square
- Area of a Trapezoid
- Area of a Triangle
- Center of Mass Calculator
- Circumference Calculator
- Distance Formula
- Distance Formula Calculator
- Geometry Calculators
- How to Find the Height of a Triangle
- Isosceles Triangle Theorem
- Law of Cosines Calculator
- Perimeter of a Circle
- Perimeter of a Pentagon
- Perimeter of a Rectangle
- Perimeter of a Rhombus
- Perimeter of a Semicircle
- Perimeter of a Square
- Perimeter of a Trapezoid
- Perimeter of a Triangle
- Properties of a Parallelogram
- Pythagorean Theorem Calculator
- Side Angle Side Theorem
- Side Splitter Theorem
- Similar Triangles
- Special Right Triangles
- Surface Area of a Cone
- Surface Area of a Cube
- Surface Area of a Cylinder
- Surface Area of a Hemisphere
- Surface Area of a Pyramid
- Surface Area of a Sphere
- Surface Area of a Triangular Prism
- Triangle Inequality Theorem
- Types of Triangles
- Vertical Angles
- Volume of a Cone
- Volume of a Cube
- Volume of a Hexagonal Prism
- Volume of a Pyramid
- Volume of a Sphere
- Volume of Hemisphere
- Volume of Parallelepiped
Programmers and Teachers:
Distance Formula Calculator
Distance Formula Lesson
Lesson Contents
What is the Distance Formula?
The distance formula gives us a simple way of finding the distance between two points. It is an expansion of the Pythagorean theorem that allows us to use x and y coordinates instead of right triangle side lengths. For an in-depth look at the distance formula, see our lesson Distance Formula.
How to Hand Calculate Distance Between Points
There is a 2D distance formula and a 3D distance formula. We use the 2D formula when working in the x-y plane and the 3D distance formula when working in the x-y-z system.
The 2D distance formula is given as:
d =
The 3D distance formula is given as:
d =
To hand calculate the distance between points, we simply plug the coordinates into their respective variable in formula.
How the Calculator Works
The calculator on this page is written in the programming language JavaScript. When you click the “calculate” button, the distance formula function is run by your internet browser’s JavaScript engine which provides virtually instant results.
The distance calculation code uses the 2D distance formula given above. Your x1 input is subtracted from your x2 input, then squared. The same operation is performed for your y inputs. Then, the squares of each difference are summed. The square root of that sum is taken, resulting in the distance between the points.
The raw distance output is rounded to the 4th decimal place before being displayed on this page. If any input errors are caught, an error notice will instead be displayed.
Result :
Worksheet 1
Download.pdf
Cheat sheet
Download.pdf