Skip to content
ToolUlkaa Tool
All tools

Mathematics

Percentage CalculatorFraction CalculatorEquation SolverTensorMatrix CalculatorUnit ConverterNumber Base ConverterDerivative CalculatorIntegral CalculatorLimit CalculatorAlgebra CalculatorQuadratic Formula CalculatorFactoring CalculatorLogarithm CalculatorSquare Root CalculatorLong Division CalculatorSignificant Figures CalculatorLCM and GCF CalculatorPrime Factorization CalculatorTriangle CalculatorPythagorean Theorem CalculatorSlope CalculatorArea CalculatorVolume CalculatorScientific CalculatorGraphing Calculator

Categories

AcademicTextMathematicsStatisticsMachine LearningAIData ScienceFile
All tools
Mathematics

Distance Formula Calculator

Enter two points to get the straight-line distance between them.

What do you need?
Try:

The two points define the line.

Distance

d=10d=10d=10
Slope m
−43-\tfrac{4}{3}−34​
Angle with the x axis
126.8699°
Slope-intercept form
y=−43x+13y=-\tfrac{4}{3}x+\tfrac{1}{3}y=−34​x+31​
Point-slope form
y−3=−43(x+2)y-3=-\tfrac{4}{3}(x+2)y−3=−34​(x+2)
Standard form
4x+3y=14x+3y=14x+3y=1
Rise and run
-8 and 6
Distance
10
Midpoint
(1, -1)

Graph

  • Line
Table of values
Graph of the line through (-2, 3) and (4, -5): sampled values across the visible range
xLine
-6.69.1333
-5.087.1067
-3.565.08
-2.043.0533
-0.521.0267
1-1
2.52-3.0267
4.04-5.0533
5.56-7.08
7.08-9.1067
8.6-11.133

Step by step

  1. 1Distance formula
    d=(x2−x1)2+(y2−y1)2d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}d=(x2​−x1​)2+(y2​−y1​)2​
    ↓
    d=62+(−8)2=100=10d=\sqrt{6^2+(-8)^2}=\sqrt{100}=10d=62+(−8)2​=100​=10
  1. Tools
  2. Mathematics
  3. Slope Calculator
  4. Distance Formula Calculator

About Distance Formula Calculator

This distance formula calculator finds the distance between (x1, y1) and (x2, y2). It squares the differences, adds them and takes the square root, which is the Pythagorean theorem on the coordinate plane. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.

The page opens on (-2, 3) and (4, -5): the differences are 6 and -8, so the distance is the square root of 100, exactly 10. The slope, midpoint and graph are shown too.

How to use Distance Formula Calculator

  1. 1Type the coordinates of point 1 and point 2. Negative numbers and decimals are fine.
  2. 2Pick what you need: everything, slope and angle, line equation, distance, midpoint, or parallel and perpendicular lines.
  3. 3Read the headline answer and the table of every result under it.
  4. 4Check the graph. Drag to pan and scroll or pinch to zoom, and use the trace to read coordinates.
  5. 5Open the step-by-step working to copy the method into your homework.
  6. 6For parallel and perpendicular lines, enter the point the new lines must pass through.

Features

  • Slope as an exact fraction and a decimal, with rise and run.
  • Angle of inclination between 0 and 180 degrees.
  • Slope-intercept, point-slope and standard form with whole-number coefficients.
  • Vertical and horizontal lines handled correctly (slope undefined or zero).
  • Distance formula and midpoint formula with steps.
  • Parallel and perpendicular lines through a chosen point.
  • An interactive graph of the line, the points and the midpoint.
  • Step-by-step working in KaTeX.

Distance formula

The hypotenuse of the right triangle formed by the two differences.

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

Worked examples

  • (-2, 3) and (4, -5) → gives d = 10

    √(6² + 8²) = √100.

Privacy: how it works

  • Every result is calculated by code in your browser tab. The coordinates you enter are not sent to Ulkaa or to any other server, and there is nothing to sign in to.

Tips

  • Keep the order consistent. Subtract the first point from the second in both the numerator and the denominator, or the sign of the slope flips.
  • If both points are the same, no line is defined. The calculator tells you.
  • Two lines are perpendicular when the product of their slopes is −1, and parallel when the slopes are equal.
  • Standard form is scaled to whole numbers with no common factor, so decimals in the points are cleared for you.

Frequently asked questions

Is it really free?

Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.

Do I need an account?

No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.

Does it run in my browser?

Yes. Your points are processed by code running in your browser tab, on your own device.

Is my data uploaded?

No. Your points are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.

How do I find the distance between two points?

Use d = √((x2 − x1)² + (y2 − y1)²).

Does the order of the points matter?

No. The differences are squared, so the sign disappears.

More Slope Calculator pages

  • Slope CalculatorEnter two points to get the slope, the angle, the equation of the line, the distance and the midpoint, with the working and a graph.
  • Slope From Two Points CalculatorEnter two points and get rise over run and the angle of the line.
  • Midpoint CalculatorEnter two endpoints to get the midpoint of the segment.
  • Line Equation From Two PointsEnter two points to get the equation of the line in three forms.
  • Slope-Intercept Form CalculatorEnter two points and read the slope and the y-intercept of y = mx + b.
  • Parallel and Perpendicular Line CalculatorEnter a line by two points and a third point, and get the parallel and perpendicular lines through it.
  • Perpendicular Line CalculatorEnter a line by two points and the point the perpendicular must pass through.

Ulkaa Apps

  • Ulkaa
  • Calendar
  • Task
  • Note
  • Disk
  • Call
  • Contact
  • Mail
  • Finance
  • Health
  • Office
  • Work
  • Workspace
  • Halum
  • Jaal
  • Islam
  • Game
  • Weather
  • Campus
  • News
  • Developer
  • Help
  • Account
About·Privacy·Terms·© 2026 Ulkaa

What is Ulkaa Tool?

Ulkaa Tool is a free collection of fast, privacy-friendly online tools from Ulkaa Network. Calculate your GPA and CGPA, edit rich text, count words and characters, replace text and more — all in your browser.

Every tool runs entirely in your browser — no sign-up, and your data never leaves your device.

Academic

  • GPA Calculator
  • CGPA Calculator
  • Citation Generator
  • Quiz Maker

Text

  • Rich Text Editor
  • Word Counter
  • Character Counter
  • Text Replacement

Ulkaa

  • Ulkaa
  • Ulkaa News
  • Ulkaa Campus
  • Ulkaa Tool
  • Ulkaa Game
  • Ulkaa Weather
  • Ulkaa Islam

Company

  • About Ulkaa
  • Careers
  • Support
  • Help
  • Privacy Policy
  • Terms of Service
  • Disclaimer
  • Sitemap

© 2015-26, Ulkaa. All rights reserved.
Facebook PageLinkedIn CompanyX (Twitter) ProfileInstagram ProfileGitHub Account