Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
3D Distance CalculatorGreat Circle Distance CalculatorCoordinate Geometry Distance CalculatorPoint to Plane Distance CalculatorSlope CalculatorMidpoint CalculatorPoint-Slope Form CalculatorSlope Intercept Form Calculator
Home Page > Math > Geometry Calculators

Distance Between Two Points Calculator

Measure straight-line separation in MiniWebtool’s Distance Between Two Points Calculator. Two 2D coordinate pairs produce Euclidean distance, with a plotted segment, midpoint, slope, and line-equation steps for geometric context.

Need help using this tool? Ask AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

Free to useNo sign-up requiredInstant Results
Distance Between Two Points CalculatorTry it now — free ▼
The distance is the hypotenuse: d = √(Δx² + Δy²)

Enter the coordinates of two points below to get the distance, the midpoint, the slope and the line equation, with the formula steps.

A
Point A (x1, y1)
B
Point B (x2, y2)

Embed Distance Between Two Points Calculator Widget

About Distance Between Two Points Calculator

Welcome to the Distance Between Two Points Calculator, a comprehensive geometry tool that calculates the Euclidean distance between two points in a 2D coordinate plane. This calculator provides step-by-step formula breakdowns, interactive coordinate visualization, midpoint calculation, slope determination, and line equation derivation.

At a Glance

Distance Between Two Points Calculator finds the straight-line (Euclidean) distance between two points on a 2D plane. It also gives the midpoint, slope, y-intercept and line equation, with each step shown.

Distance Between Two Points Calculator: features at a glance
FeatureWhat you getGood for
Two 2D pointsEnter x1, y1 and x2, y2. Negative and decimal coordinates are accepted.Geometry problems on the coordinate plane
Distance formulaComputes d = sqrt((x2 - x1)^2 + (y2 - y1)^2) and shows the substitution step by step.Showing working in homework or lessons
MidpointReturns the point halfway between the two points by averaging the x and y values.Finding the center of a line segment
Slope and line equationGives the slope, the y-intercept and the equation y = mx + b. A vertical line is reported as having an undefined slope.Writing the equation of the line through two points
PrecisionChoose 2 to 15 decimal places for the results.Matching the rounding a task asks for
Coordinate plane plotAn SVG graph draws both points and the segment joining them.Checking that the inputs describe the segment you meant

Distance Formula

The distance formula calculates the straight-line (Euclidean) distance between two points (x1, y1) and (x2, y2) in a two-dimensional Cartesian coordinate system:

Euclidean Distance Formula
$$d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}$$

This formula is derived directly from the Pythagorean theorem. When you connect two points, you form a right triangle where:

Additional Calculations

Midpoint Formula

The midpoint is the point exactly halfway between two points:

Midpoint Formula
$$M = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right)$$

Slope Formula

The slope measures the steepness of the line connecting two points:

Slope Formula
$$m = \frac{y_2 - y_1}{x_2 - x_1}$$

Line Equation

Using point-slope form, we can derive the equation of the line passing through both points:

Slope-Intercept Form
$$y = mx + b$$

How to Use This Calculator

  1. Enter Point A coordinates: Input the x1 and y1 values for the first point.
  2. Enter Point B coordinates: Input the x2 and y2 values for the second point.
  3. Select precision: Choose how many decimal places you want in the results (2-15).
  4. Click Calculate: The calculator will display the distance, midpoint, slope, line equation, and a visual representation.

Understanding the Results

Practical Applications

Frequently Asked Questions

What is the distance formula between two points?

The distance formula calculates the Euclidean distance between two points (x1, y1) and (x2, y2) in a 2D plane: d = sqrt((x2 - x1)2 + (y2 - y1)2). This formula is derived from the Pythagorean theorem.

How do I find the midpoint between two points?

The midpoint is calculated by averaging the x-coordinates and y-coordinates separately: Midpoint = ((x1 + x2)/2, (y1 + y2)/2). This gives you the point exactly halfway between the two original points.

What is the slope between two points?

The slope (m) measures the steepness of the line connecting two points: m = (y2 - y1)/(x2 - x1). A positive slope means the line rises from left to right, a negative slope means it falls, and a slope of zero indicates a horizontal line.

Can I calculate distance with negative coordinates?

Yes, the distance formula works with any real numbers, including negative coordinates. The squaring operation ensures the distance is always positive.

What if the two points have the same x-coordinate?

When x1 = x2, you have a vertical line. The slope is undefined (division by zero), and the distance simply equals |y2 - y1|.

Additional Resources

Reference this content, page, or tool as:

"Distance Between Two Points Calculator" at https://MiniWebtool.com/distance-between-two-points-calculator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: Jan 16, 2026

Chat with your favorite AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

Geometry Calculators:

Math SolverWhat would you like to solve?

Math Solver

Try
Browse expression examples

Choose an example to fill the input, edit its numbers, then Solve. log uses base 10; use ln for the natural logarithm.

Numbers & factors

Fractions & division

Powers, roots & logs

Algebra & equations

Calculus

Geometry & trigonometry

Top & Updated:

Days Between Two DatesAngle Between Vectors CalculatorDistance-Speed-Time Triangle CalculatorView all →
Home Page > Math > Geometry Calculators > Distance Between Two Points Calculator