Distance, Midpoint & Slope Calculator interactive tool
Point A (x₁, y₁)
Point B (x₂, y₂)
Using the distance formula: √((x₂ − x₁)² + (y₂ − y₁)²).
Using the midpoint formula: ((x₁ + x₂) / 2, (y₁ + y₂) / 2).
Using the slope formula: (y₂ − y₁) / (x₂ − x₁).
What Is Distance, Midpoint & Slope?
A distance, midpoint & slope calculator is a coordinate-geometry helper that takes two points in the plane and returns three key facts about the line segment connecting them.
Formulas Used by the Calculator
- Distance: √((x₂ − x₁)² + (y₂ − y₁)²)
- Midpoint: ((x₁ + x₂) / 2, (y₁ + y₂) / 2)
- Slope: (y₂ − y₁) / (x₂ − x₁), undefined for vertical lines
This tool is especially useful in algebra and analytic geometry when you need to analyze line segments, check graphing work, or explore relationships between points without repeatedly doing calculator keystrokes by hand.
How To Use the Distance, Midpoint & Slope Calculator
- Enter the x₁ and y₁ coordinates for the first point in the left card.
- Enter the x₂ and y₂ coordinates for the second point in the right card.
- Review the distance between the two points computed using the distance formula in the results card.
- Review the midpoint coordinates and the slope of the line connecting the two points, including whether the line is vertical or horizontal.
- Use the Example button to load a classic 3-4-5 triangle example, or Reset to clear all coordinate fields.
Distance, midpoint, and slope from two points
Use this distance formula calculator with two coordinate points to find the distance, midpoint, and slope of the connecting line. It also identifies vertical and horizontal cases where the usual slope calculation needs care.
Need the formula or convention behind this result? Read the calculator methods and assumptions.