GlobalUso gratuito

Calculadora de pendiente con dos puntos

Encuentra la pendiente, la intersección, la ecuación de la recta, el ángulo, la distancia y el punto medio a partir de dos puntos.

Tus datos permanecen en esta pestaña. No recibimos archivos, textos ni valores de cálculo.

Entrada

Consejo: Ctrl + Intro para ejecutar

Tu resultado

Tu resultado aparecerá aquí.

Por ahora, la ayuda detallada de abajo solo está disponible en inglés.

Acerca de esta herramienta

Given two points on a line, you can find everything about it. This calculator returns the slope (as a decimal and a fraction), the y-intercept and the equation in slope-intercept form, the angle the line makes with the x-axis, the x-intercept, the distance between the points and the midpoint. Vertical lines, whose slope is undefined, are reported correctly as x = constant.

Cómo usarla

  1. Enter the coordinates of the first point (x₁, y₁).
  2. Enter the coordinates of the second point (x₂, y₂).
  3. Run the calculation.
  4. Use the equation, angle, distance or midpoint as your problem requires.

Cómo funciona el cálculo

m = (y₂ − y₁) ÷ (x₂ − x₁); b = y₁ − m·x₁; angle = atan(m) in degrees; distance = √((x₂ − x₁)² + (y₂ − y₁)²); midpoint = ((x₁ + x₂)/2, (y₁ + y₂)/2).

m = (y₂ − y₁) ÷ (x₂ − x₁)

Ejemplo práctico

For the points (−3, 4) and (5, 0), the slope is −0.5 (−1/2), the y-intercept 2.5 and the line y = −0.5x + 2.5. It descends at −26.5651°, crosses the x-axis at 5, and the points are 8.944272 units apart with midpoint (1; 2). The points (2, 5) and (2, 9) give the vertical line x = 2.

Entrada y resultado de ejemplo

x₁: 1
y₁: 2
x₂: 4
y₂: 11

→ Pendiente (m): 3
→ Intersección con el eje y (b): -1
→ Ecuación: y = 3x − 1
→ Ángulo con el eje x: 71,5651°
→ Intersección con el eje x: 0,333333
→ Distancia entre los puntos: 9,486833

Limitaciones

  • Two points in a plane.
  • Decimal coordinates up to ±1 trillion.
  • Fractions are shown for the slope where they are simple.

Última actualización:

Preguntas frecuentes

What does a negative slope mean?

The line goes down from left to right.

How do I turn a slope into a roof pitch or grade?

Grade % = slope × 100; a slope of 0.5 is a 50% grade, or a 6/12 roof pitch.

Why is the slope undefined?

Both points have the same x, so the line is vertical.

Solución de problemas

The midpoint shows a semicolon.

The semicolon separates coordinates so decimal commas in some languages are not confused; (1; 2) means x = 1, y = 2.

The angle is negative.

Negative angles are measured clockwise from the x-axis for descending lines.

I entered the same point twice.

Two distinct points are needed to define a line.

Privacidad & Uso gratuito

¿Se guardan mis datos?

Tus datos permanecen en esta pestaña. No recibimos archivos, textos ni valores de cálculo.

¿Esta herramienta es gratis?

Sí. No requiere registro ni pago.

Procesado en tu navegador

Otras herramientas útiles