Equation of a Line: Point-Slope and Slope-Intercept Forms
An equation of a line describes every point on that line. Point-slope form uses one known point and the slope, while slope-intercept form shows the slope and the vertical-axis intercept. Vertical lines need a different equation because their slope is undefined.
What does an equation of a line represent?
An equation of a straight line is an algebraic rule that connects the coordinates of every point on the line. It guarantees that any point satisfying the equation will lie perfectly on the line when plotted in coordinate geometry.

Every linear equation graph extends infinitely in both directions. The equation allows you to predict coordinates without expanding the visual graph, making it a powerful tool for linear equations and coordinate graphs.
Use point-slope form
The point-slope form is written as . It builds the equation of a line using the constant slope of a line, represented by , and the coordinates of one known point on the line, .
The point-slope form directly models the proportional vertical and horizontal changes between any two points.
The variables and stay as letters in the final equation because they represent every possible point on the line.

To use this point-slope equation, substitute the known slope for , the known horizontal coordinate for , and the known vertical coordinate for .
Convert to slope-intercept form
The slope-intercept form is written as . It is one of the most common ways to express a line equation because it clearly displays the slope and the vertical-axis intercept .
To convert a point-slope equation into slope-intercept form, expand the brackets by multiplying the slope across the horizontal terms, then isolate on one side of the equal sign.
For example, if you start with , multiply by both terms inside the brackets to get . Next, add to both sides. The final slope-intercept equation is .
Write equations from information and graphs
When you need to write an equation from point and slope information given in a visual graph, start by identifying the exact coordinates of two clear points where the line crosses the grid intersections.

Calculate the slope by dividing the vertical change by the horizontal change between these two points. Once you find the slope, choose either point to be and substitute both values into the point-slope formula.
Handle horizontal and vertical lines
Horizontal and vertical lines behave differently because of their slopes. A horizontal line has a slope of exactly zero. A vertical line has an undefined slope because its horizontal change is zero, and division by zero is mathematically undefined.

Because the slope is zero, the equation of any horizontal line simplifies to , where is the vertical intercept. Because the slope of a vertical line is undefined, the equation of any vertical line is written as , where is the constant horizontal position.
Worked examples
The following examples show how to form a line equation under different initial conditions.
Example 1: Using one point and the slope
Question: A line has a slope of and passes through the point . Write its equation in point-slope form.
Method:
- Identify the given values: , , and .
- State the point-slope formula: .
- Substitute the values directly into the formula.
Answer: .
Check: Test the point by placing it back into the result. simplifies to , confirming the equation is correct.
Example 2: Deriving from two coordinates
Question: Find the slope-intercept equation of the line passing through and .
Method:
- Calculate the slope by dividing the change in by the change in : .
- Choose one point, such as , and substitute it into the point-slope formula: .
- Simplify the brackets: .
- Expand and isolate : , which becomes .
Answer: .
Check: Test the second point in the final equation. simplifies to , proving the line connects both points in coordinate geometry proofs.
Common mistakes
When substituting negative coordinates into the point-slope formula, learners often forget that the formula contains built-in subtraction. If is , the term becomes , which must be simplified to . Writing instead is a frequent error.
Another common mistake is swapping the positions of the horizontal and vertical coordinates. Always ensure the -coordinate replaces on the left side of the equation, and the -coordinate replaces inside the brackets on the right side.
Frequently asked questions
Can I use any point on the line for the point-slope equation? Yes. A point-slope equation describes the entire line, not just one segment. If you choose a different point, the initial equation will look different, but it will always simplify to the exact same slope-intercept form.
Why do we need multiple forms of a line equation? Different forms are useful for different tasks.
The point-slope form is the fastest way to build an equation when analyzing data. The slope-intercept form makes graphing easier and simplifies comparisons between parallel and perpendicular lines on a coordinate plane.
Practice questions

Which point-slope equation represents the line shown in the graph?
What is the slope-intercept form of the equation ?
Which equation represents a horizontal line passing through the point ?
A line passes through and . What is its equation?
What is the slope of the line described by the equation ?
