Skip to main content

learn.howToCalculate

learn.whatIsHeading

The equation of a line in slope-intercept form is y = mx + c, where m is the slope (gradient) and c is the y-intercept. It describes every straight line in 2D space.

Formule

Slope-intercept: y = mx + b; Point-slope: y − y₀ = m(x − x₀); General: Ax + By + C = 0
m
slope (rise/run)
b
y-intercept
(x₀, y₀)
a point on the line
A, B, C
coefficients in general form

Guide étape par étape

  1. 1Slope m = (y₂−y₁)/(x₂−x₁)
  2. 2y-intercept c = y − mx
  3. 3Parallel lines have equal slopes
  4. 4Perpendicular lines: m₁×m₂ = −1

Exemples résolus

Entrée
Points (0,2) and (3,8)
Résultat
m = (8−2)/(3−0) = 2, c = 2, so y = 2x + 2
Entrée
m = 3, passes through (1, 5)
Résultat
y − 5 = 3(x − 1), so y = 3x + 2

Questions fréquentes

How do I find the slope between two points?

m = (y₂ − y₁) / (x₂ − x₁).

What is a vertical line equation?

x = c (constant). Vertical lines have undefined slope and cannot be written in y = mx + b form.

How do I convert between slope-intercept and general form?

From y = mx + b to Ax + By + C = 0: rearrange to −mx + y − b = 0 or mx − y + b = 0.

Prêt à calculer ? Essayez la calculatrice gratuite Line Equation

Essayez-le vous-même →

Paramètres