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 CalculatorMidpoint CalculatorSlope CalculatorPoint-Slope Form CalculatorSlope Intercept Form Calculator
Home Page > Math > Geometry Calculators

Distance Between Two Points Calculator

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

Free to useNo sign-up requiredInstant Results
Distance Between Two Points CalculatorTry it now — free ▼
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.

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

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