Equations of Lines
Line equation from slope and y-intercept
The most direct way to write a line's equation is when you already know the slope and the y-intercept. You'll use slope-intercept form:
- is the slope (steepness and direction of the line). Positive slopes rise left to right; negative slopes fall.
- is the y-intercept, the point where the line crosses the y-axis at .
To write the equation, just substitute your values for and .
Example: slope = 2, y-intercept = -3
, which simplifies to
Line equation from slope and a point
When you know the slope and one point on the line (but not the y-intercept), use point-slope form:
- is the slope.
- is the known point on the line.
Steps:
- Substitute the slope for and the point's coordinates for and .
- If the problem asks for slope-intercept form, distribute the slope and solve for .
Example: slope = , point
-
Substitute:
-
Distribute:
-
Add 6 to both sides:
Both the point-slope version and the simplified slope-intercept version are correct equations for the same line. Your instructor may specify which form to give.

Line equation from two points
If you're given two points and no slope, you need to calculate the slope first, then use point-slope form.
Steps:
-
Find the slope using the slope formula:
-
Pick either point and substitute it along with the slope into point-slope form.
-
Simplify if needed.
Example: points and
-
Calculate slope:
-
Use the point :
-
Simplify: , so
You can plug in either point. Using instead gives , which simplifies to the same equation: .
Equation of a parallel line
Parallel lines have the same slope but different y-intercepts. They never intersect because they rise and run at the same rate, just shifted vertically.
To write the equation of a line parallel to a given line through a specific point:
- Identify the slope of the given line.
- Use that same slope with the new point in point-slope form.
Example: Find the line parallel to that passes through .
-
The given slope is 3. The parallel line also has slope 3.
-
Substitute into point-slope form:
-
Simplify:
Notice the two lines share the slope of 3 but have different y-intercepts (-2 vs. 2).

Equation of a perpendicular line
Perpendicular lines meet at a 90° angle. Their slopes are negative reciprocals of each other, meaning you flip the fraction and change the sign. The product of perpendicular slopes always equals -1.
To find the negative reciprocal: if the original slope is , the perpendicular slope is .
Steps:
- Find the slope of the given line.
- Take its negative reciprocal to get the perpendicular slope.
- Use the perpendicular slope and the given point in point-slope form.
Example: Find the line perpendicular to that passes through .
-
The given slope is . The negative reciprocal is .
-
Substitute:
-
Simplify: , so
Quick check: . The slopes multiply to -1, confirming they're perpendicular.
Linear Functions and Graphs
A linear function produces a straight line when graphed. Its defining feature is a constant rate of change, which is the slope. Every point on the line satisfies the equation, and every solution to the equation is a point on the line.
You can write linear equations in different forms depending on what information you have:
- Slope-intercept form : best when you know the slope and y-intercept.
- Point-slope form : best when you know the slope and any point.
These forms describe the same line, just written differently. Converting between them is a matter of algebraic simplification.