This account already has saved data. Do you want to keep this device's data, or use your account's saved data?
Appearance
Unit System
Temperature Format
Time Format
Distance, Midpoint & Slope
Distance
Midpoint
Slope
Distance
Midpoint
Slope
Your Recent & Past Results
Restored a past calculation.
Compare Calculations
Side-by-Side Comparison
A comparison of your calculations' results.
Downloads
Includes your inputs and results for this calculation, plus any additional calculations you've compared.
Share & Print
The link includes your inputs and results, so anyone who opens it sees this exact calculation.
How Distance, Midpoint, and Slope Relate
Given two points on a coordinate plane, three related quantities describe how they relate: how
far apart they are (distance), the point exactly between them (midpoint), and how steep the line
connecting them is (slope). Enter both points’ x and y coordinates, and
this calculator finds all three at once.
The Formulas
Distance:(x2−x1)2+(y2−y1)2 — the Pythagorean
theorem applied to the horizontal and vertical gaps between the two points.
Midpoint:(2x1+x2,2y1+y2) —
the average of the two x-coordinates and the average of the two y-coordinates.
Slope:x2−x1y2−y1 — “rise over run.” Undefined
when both points share the same x-coordinate (a perfectly vertical line has no defined slope).
Worked Example
Point A at (1, 2) and Point B at (4, 6):
Distance: (4−1)2+(6−2)2=9+16=25=5
Midpoint: (21+4,22+6)=(2.5,4)
Slope: 4−16−2=34≈1.33
Key Factors to Consider
Point order doesn’t affect distance or midpoint, but affects how slope’s sign should be
interpreted consistently. Swapping which point is “A” and which is “B” gives the same distance
and the same midpoint, and mathematically the same slope value too — the slope formula naturally
produces the same ratio either way, since both the numerator and denominator flip sign together.
A slope of zero means a perfectly horizontal line, distinct from an undefined slope’s vertical
line. These are opposite special cases: zero slope means no change in y as x changes (flat);
undefined slope means no change in x is possible at all (a vertical line) — don’t confuse the two.
This calculator works in a standard 2D Cartesian coordinate system. For 3D coordinates or a
different coordinate system (polar, for instance), the distance and slope formulas would need
to be adapted — this tool is specifically for the standard (x, y) plane.
The steepness a slope value represents isn’t linear to the eye. A slope of 1 looks like a
45-degree angle, but a slope of 2 doesn’t look “twice as steep” to the eye — the visual angle
and the numeric slope value relate through an arctangent, not a simple proportion.
Common Mistakes
Subtracting the coordinates in a different order for the numerator and denominator of the
slope formula. Both differences must come from the same point order (always y2 − y1 over
x2 − x1, never mixing y2 − y1 with x1 − x2) — flipping only one of the two flips the sign of the
result.
Treating a negative distance as meaningful. The distance formula’s square root always
returns a non-negative value by convention — a “negative distance” would indicate an arithmetic
mistake earlier in the calculation, not a valid geometric answer.
Confusing the midpoint with the slope when a problem only needs one of them. The midpoint is
a location (a point), while the slope is a rate (a ratio describing steepness) — they answer
different questions about the same two points and aren’t interchangeable.
Useful to Know
The slope between two points is also exactly what you’d need to find a perpendicular line: a line
perpendicular to one with slope m has slope −1/m (the negative reciprocal). This calculator
doesn’t compute that directly, but the slope value it reports is the only input that formula
needs — useful for problems like finding a perpendicular bisector through the midpoint this
calculator also provides.
Cómo se Relacionan Distancia, Punto Medio y Pendiente
Dados dos puntos en un plano de coordenadas, tres cantidades relacionadas describen cómo se
relacionan entre sí: qué tan separados están (distancia), el punto exactamente entre ellos (punto
medio) y qué tan inclinada es la línea que los conecta (pendiente). Ingresa las coordenadas x e y
de ambos puntos, y esta calculadora encuentra las tres a la vez.
Las fórmulas
Distancia:(x2−x1)2+(y2−y1)2 — el teorema de
Pitágoras aplicado a las diferencias horizontal y vertical entre los dos puntos.
Punto medio:(2x1+x2,2y1+y2) —
el promedio de las dos coordenadas x y el promedio de las dos coordenadas y.
Pendiente:x2−x1y2−y1 — la variación vertical
dividida entre la variación horizontal. Indefinida cuando ambos puntos comparten la misma
coordenada x (una línea perfectamente vertical no tiene una pendiente definida).
Ejemplo resuelto
El punto A en (1, 2) y el punto B en (4, 6):
Distancia: (4−1)2+(6−2)2=9+16=25=5
Punto medio: (21+4,22+6)=(2.5,4)
Pendiente: 4−16−2=34≈1.33
Factores Clave a Considerar
El orden de los puntos no afecta la distancia ni el punto medio, pero afecta cómo debe
interpretarse consistentemente el signo de la pendiente. Intercambiar cuál punto es “A” y cuál
es “B” da la misma distancia y el mismo punto medio, y matemáticamente también el mismo valor de
pendiente — la fórmula de la pendiente naturalmente produce la misma proporción en cualquier
orden, ya que tanto el numerador como el denominador invierten el signo juntos.
Una pendiente de cero significa una línea perfectamente horizontal, distinta de la línea
vertical de una pendiente indefinida. Estos son casos especiales opuestos: pendiente cero
significa que no hay cambio en y cuando cambia x (plana); pendiente indefinida significa que no
es posible ningún cambio en x en absoluto (una línea vertical) — no confundas ambos.
Esta calculadora funciona en un sistema de coordenadas cartesianas 2D estándar. Para
coordenadas 3D o un sistema de coordenadas distinto (polar, por ejemplo), las fórmulas de
distancia y pendiente necesitarían adaptarse — esta herramienta es específicamente para el plano
(x, y) estándar.
La inclinación que representa un valor de pendiente no es lineal a la vista. Una pendiente de
1 se ve como un ángulo de 45 grados, pero una pendiente de 2 no se ve “el doble de inclinada” a
la vista — el ángulo visual y el valor numérico de la pendiente se relacionan mediante una
arcotangente, no una simple proporción.
Errores Comunes
Restar las coordenadas en un orden diferente para el numerador y el denominador de la fórmula
de la pendiente. Ambas diferencias deben provenir del mismo orden de puntos (siempre y2 − y1
sobre x2 − x1, nunca mezclar y2 − y1 con x1 − x2) — invertir solo una de las dos invierte el
signo del resultado.
Tratar una distancia negativa como significativa. La raíz cuadrada de la fórmula de
distancia siempre devuelve un valor no negativo por convención — una “distancia negativa”
indicaría un error aritmético anterior en el cálculo, no una respuesta geométrica válida.
Confundir el punto medio con la pendiente cuando un problema solo necesita uno de ellos. El
punto medio es una ubicación (un punto), mientras que la pendiente es una tasa (una razón que
describe la inclinación) — responden preguntas diferentes sobre los mismos dos puntos y no son
intercambiables.
Bueno Saber
La pendiente entre dos puntos es también exactamente lo que necesitarías para encontrar una línea
perpendicular: una línea perpendicular a una con pendiente m tiene pendiente −1/m (el
recíproco negativo). Esta calculadora no calcula eso directamente, pero el valor de pendiente que
reporta es la única entrada que esa fórmula necesita — útil para problemas como encontrar una
mediatriz a través del punto medio que esta calculadora también proporciona.
Why are distance, midpoint, and slope combined into one calculator?
All three are computed from the exact same two points, so it's more useful to see them together than to look them up on three separate pages — you enter your coordinates once and get every commonly-needed answer at once.
What does an undefined slope mean?
A vertical line (where both points share the same x-coordinate) has no defined slope, since the slope formula would require dividing by zero. This calculator reports "Undefined (vertical line)" in that case rather than an error or a meaningless number.
What is the midpoint used for?
The midpoint is the exact center point between two coordinates — useful for finding the center of a line segment, splitting a distance evenly, or as a step in other geometry problems like finding a perpendicular bisector.
Can the distance between two points ever be negative?
No — distance is always zero or positive. It comes from a square root, which by mathematical convention always returns a non-negative value, regardless of which point is labeled A or B.
How do I find the slope of a line perpendicular to my two points?
Take the negative reciprocal of the slope this calculator reports: flip the fraction and change its sign. A line with slope 4/3, for example, has a perpendicular slope of -3/4.
What happens if I enter the same point twice?
The distance and the change in both x and y are all zero, the midpoint equals that same point, and the slope becomes undefined (0 ÷ 0) since there's no direction between two identical points to describe.
We use cookies for analytics and ads to help support this free site. You can accept all, or decline and we'll only use what's needed for the site to work.