Key Points
- Slope-intercept: . Point-slope: . Two-point: the same, with .
- Intercept: . Normal: . General: .
- Two facts fix a line: a slope and a point, two points, or two intercepts.
- Only the general form covers vertical lines , which have no slope.
Why One Line Has So Many Equations
Every straight line on a graph can be written several ways, and each one hides a clue. Take the line through (0, 3) and (4, 0):
- Know its steepness? Write .
- Know where it cuts the axes? Write .
- Solving a system? Write .
All three describe the same line. Picking the form that matches what you know is half the work; knowing why each is true takes one idea.

What Is the Equation of a Line?
The equation of a line is a relationship between and that is true for every point on the line and false for every point off it. On , the point (3, 7) works () and (3, 6) does not.
Two ingredients describe any line:
- Its slope , how steep it is: rise over run, . See slope.
- Its position, given by any one point on it.
Every form packages those two facts differently, inside coordinate geometry.
What Are the Different Forms of the Equation of a Line?
There are six forms worth knowing. Each is exact; they differ in which information they show.
| Form | Equation | Use it when you know |
|---|---|---|
| Slope-intercept | the slope and the y-intercept | |
| Point-slope | the slope and one point | |
| Two-point | two points | |
| Intercept | both intercepts, on the x-axis and on the y-axis | |
| Normal | the distance from the origin and the direction of that perpendicular | |
| General | any line, including vertical ones |

Slope-intercept form
is the slope and the y-intercept, where the line crosses the y-axis. It graphs fastest and suits "starting value plus rate" stories. See the slope-intercept form of a line.
Point-slope form
Use it when you know the slope and one point . Full steps: point-slope form.
Two-point form
Given two points, it finds the slope and writes the line in one move. See the two-point form.
Intercept form
- is the x-intercept and the y-intercept: mark both crossings and join them.
- It cannot describe a line through the origin, or one parallel to an axis.
- See the intercept form.
General form
- Every line fits, with and not both zero.
- Two lines are parallel when their and are in the same ratio.
- It is the equation of a straight line in standard notation.
Normal form
Drop a perpendicular from the origin to the line. It has length (always positive) and makes angle with the x-axis.
- From , divide by , with the sign that makes positive.
- For , divide by 5: and , so .
- It explains the in the distance between two parallel lines.

What about horizontal and vertical lines?
- A horizontal line through has slope 0: .
- A vertical line has run 0, so no slope: .
- A vertical line cannot be , which is why the general form (with ) exists.

In the coordinate lab, each line runs through two handles you can drag.
- The blue line starts through (β4, β1) and (4, 3): slope , so .
- "Coincident" uses four different handles, yet both lines are .
- "Perpendicular" shows slopes and , which multiply to .
Try It Yourself
Use the coordinate lab to see Equation of a Line at work: drag, change the numbers and watch what happens.
How Is the Equation of a Line Derived?
Each form comes straight from the fact that a line has one slope.
The core idea: similar triangles
- Draw a run-and-rise triangle between two points on a line, then another between two other points.
- The triangles have the same angles, so they are similar triangles with sides in the same ratio.
- So rise Γ· run is the same for any two points: the slope is one number.

Point-slope form
- Fix a point and let be any other point on the line.
- Their slope is : .
- Multiply by : .
A point off the line gives a different slope, so it fails the equation.
Slope-intercept and two-point forms
- Use the y-intercept as the point: , so .
- Replace with to get the two-point form.
- Clearing fractions gives the general form; dividing by gives the normal form.
A second view: start at a point and step along
Start at and take steps, each one across and up, to reach . With , that is again. This "point plus steps" idea is how lines are written with vectors in 3D.
And the converse
Every with , not both zero is a line.
- If : , slope-intercept form.
- If : , a vertical line.
- Fermat linked first-degree equations and straight lines in the 1630s, as Descartes published La GΓ©omΓ©trie (1637).
Examples of the Equation of a Line
Example 1
Find the equation of the line through (β3, 5) and (2, 8).
- Slope: .
- Trap: drops a sign. At it gives 1.4, not 5.
- Correct: , so .
- Simplify: . Check (2, 8): .
Final answer: .

Example 2
Write in general form.
- Multiply by 5: .
- Move all terms to one side. Check (β3, 5): .
Final answer: .
Example 3
Write 3x + 4y = 12 in intercept form and normal form.
- Divide by 12: , so the intercepts are 4 and 3.
- Divide by : .
Final answer: intercept form ; normal form with , , .
Example 4
Write the horizontal line through (7, β2) and the vertical line through (4, β2).
- Horizontal keeps fixed, with slope 0.
- Vertical keeps fixed, with no slope.
Final answer: and .
Example 5
Find the line through (1, 2) perpendicular to 3x + 4y = 12.
- The given slope is ; perpendicular slopes multiply to , so use .
- , so .
- Check (1, 2): .
Final answer: .
Example 6
A taxi charges a 3 dollar base fare plus 2 dollars per kilometre. Write the fare for distance .
- The base fare is the intercept; the rate is the slope.
- At 5 km: dollars.
Final answer: .
What Are the Most Common Mistakes With the Equation of a Line?
Mistake 1: Losing a sign in point-slope form
Where it slips in: A point with a negative coordinate, simplified in your head too early.
Don't do this: Write for the point .
The correct way: Write in brackets first, then simplify to . Check both points at the end.
Mistake 2: Mixing the order in the slope
Where it slips in: Computing from two points.
Don't do this: Write , which flips the sign.
The correct way: Subtract in the same order on top and bottom. Write the two points one above the other first.
Mistake 3: Forcing a vertical line into y = mx + b
Where it slips in: Two points with the same x-coordinate, such as (4, 1) and (4, β3).
Don't do this: Divide by a run of 0 and hunt for .
The correct way: Equal x-coordinates mean a vertical line: , or in general form.
Why Do We Need So Many Forms of a Line?
Now that the forms, their proofs and the usual traps are clear, the question is why we keep six. Each form answers a different starting question in the fewest steps.
- Slope-intercept: graphing, and "rate plus starting value" stories like fares and wages.
- Point-slope: a slope at one point, such as a tangent line in calculus.
- Two-point: turning two known locations into a path, as in mapping.
- Intercept: a quick sketch from the axis crossings.
- Normal: problems about distance from the origin, since is that distance.
- General: solving systems, and the only form that covers every line.
Where the Equation of a Line Does Real Work
- Unit conversions: . Each degree Celsius is 1.8 Β°F, and the scales meet at .
- Prices and plans: a fixed charge plus a rate, like the taxi in Example 6.
- Physics: at constant speed, distance against time is a line whose slope is the speed.
- Graphics and mapping: the sign of tells which side of a line a point is on.

Conclusion
The equation of a line relates and so that every point on the line fits it and no other point does.
- Every form comes from one fact: a line has one slope, because its slope triangles are similar.
- Choose the form that matches what you know, then convert if asked.
- Vertical lines () need the general form; lines through the origin have no intercept form.
- Watch for sign slips and mismatched subtraction, and check the final equation with the given points.
Practice These to Solidify Your Understanding
- Write the line through (1, 2) and (4, 11) in slope-intercept form.
- Write in intercept form.
- Give the line through (β5, 9) and (β5, 1).
Answers:
- Slope , so .
- Divide by 6: , intercepts 3 and β2.
- , a vertical line.
A slope of β3 in question 1? Recheck Mistake 2.
To master lines with a teacher, explore Bhanzu's geometry tutor, a high school math tutor, or math classes online.
Want a live Bhanzu trainer to walk your child through lines and their equations? Book a free demo class, online globally, or in person at our McKinney, TX center.
Read More
Research Behind This Article
- OpenStax, Precalculus 2e, Section 2.1: Linear Functions (slope, slope-intercept and point-slope forms). openstax.org
- OpenStax, Precalculus 2e, Section 2.2: Graphs of Linear Functions (horizontal, vertical, parallel and perpendicular lines). openstax.org
- J. J. O'Connor and E. F. Robertson, Pierre de Fermat, MacTutor History of Mathematics, University of St Andrews. mathshistory.st-andrews.ac.uk
- J. J. O'Connor and E. F. Robertson, RenΓ© Descartes, MacTutor History of Mathematics, University of St Andrews. mathshistory.st-andrews.ac.uk
Quick Quiz: Check Yourself
Three levels, questions with figures, instant feedback with the reason.
Was this article helpful?
Your feedback helps us write better content
Frequently Asked Questions
What is the most common form of the equation of a line?
Can every line be written as y = mx + b?
How do you convert slope-intercept form to general form?
What is the difference between standard form and general form?
How many points do you need to find the equation of a line?
Which form should I use with two points?


