The Distance Between Two Points Calculator is a free online tool. Distance, midpoint and slope between coordinates. It runs in your browser, needs no sign-up and shows the result as you type.

What is the Distance Between Two Points Calculator?
Coordinate geometry places points on a plane, so distance, midpoint and slope follow from simple formulas based on differences between coordinates. The Pythagorean theorem links the sides of a right triangle.
The Distance Between Two Points Calculator applies the formula and gives the exact answer.
This tool asks for 4 inputs: x1, y1, x2 and y2. Maths tools reduce careless errors. They are especially helpful for checking homework, verifying exam practice and handling long decimals.
What each input means
- x1 takes a number. Decimals are allowed, and a clear message appears if the entry is not valid. The sample value is 1.
- y1 takes a number. Decimals are allowed, and a clear message appears if the entry is not valid. The sample value is 2.
- x2 takes a number. Decimals are allowed, and a clear message appears if the entry is not valid. The sample value is 4.
- y2 takes a number. Decimals are allowed, and a clear message appears if the entry is not valid. The sample value is 6.
How to use the Distance Between Two Points Calculator
- Enter x1. The sample value is 1.
- Enter y1. The sample value is 2.
- Enter x2. The sample value is 4.
- Enter y2. The sample value is 6.
- Review the result. It updates as you type, or press Calculate to refresh it.
- Copy the result or download it as a text file, or press Reset to start again.
Example with real values
With the pre-filled values (x1 = 1; y1 = 2; x2 = 4; y2 = 6), the tool returns the following.
| Distance | 5 |
| Midpoint | (2.5, 4) |
| Slope | 1.333333 |
Change any input and the output updates straight away, so you can try your own numbers or text and compare the results.
Understanding the result
The result is shown as a table of 3 rows, including Distance, Midpoint and Slope. Each row comes from the same inputs, so changing one value refreshes the whole table. Use the copy button to take all the rows with you.
When to use it
- School and exam practice
- Mapping and design
- Checking drawings
- Programming and game development
- Physics problems
How people use maths tools
These are typical situations where someone reaches for a tool in this category.
- A teacher prepares answer keys and wants quick values for several sets of numbers.
- A candidate preparing for a competitive exam practises speed and verifies each result.
- An engineer or shopkeeper needs a quick figure and does not want to open a spreadsheet.
Tips for better results
- Label points carefully as (x, y).
- Draw a sketch.
- Check the sign of each difference.
Common mistakes to avoid
- Swapping x and y.
- Mixing up the order of subtraction.
- Using units inconsistently.
Terms worth knowing
- Precision. The number of digits kept in the answer.
- Verification. Checking the answer by a second method.
- Edge case. An unusual input such as zero or a negative number.
- Formula. The rule that turns input into the answer.
Online tool vs doing it by hand
Calculating by hand teaches you the method, and a calculator is the best way to confirm the result. Use both: work the problem first, then compare.
Quick checklist before you rely on the result
- Check that x1 is typed in the form the tool expects, with no stray spaces or symbols.
- Run the sample values once so you know what a correct result looks like.
- Change one input at a time to see which value moves the answer most.
- Keep a copy of the input and the result if you need to show your working later.
Accuracy, privacy and limits
Everything you enter is processed in your browser and is not uploaded to our servers. Results use standard double-precision arithmetic and are rounded for display. For exact symbolic answers or proofs, work through the steps yourself.
Distance Between Two Points Calculator FAQs
Can I use negative coordinates?
Yes.
Is the result exact?
Shown to a sensible precision.
What if the slope is undefined?
A vertical line has no defined slope.
Is the Distance Between Two Points Calculator free?
Yes. It is completely free, with no sign-up, no limits on use and no watermark.
Does it work on mobile?
Yes. The page is responsive and works in modern mobile and desktop browsers.
What do I need to enter in the Distance Between Two Points Calculator?
You will be asked for x1, y1, x2 and y2. Sample values are pre-filled so you can see a working result before you type your own.
Why might my result differ from another tool?
Tools can differ in rounding, default settings or the formula variant they use. Compare the inputs and any options first, and use the result that matches your official or required method.
Is my input saved or shared?
No. Your input is processed in your browser. It is not stored on our servers and is not shared with anyone.