Straight Lines

Straight Lines

A straight line is the simplest curve in the plane. Its defining feature is a constant slope: the ratio of the vertical change to the horizontal change between any two points on the line. Every non-vertical line can be written in the form , where is the slope and is the -intercept.

Quick Reference

Form Equation When to Use
Point-slope form Given slope and a point
Slope-intercept form Given slope and -intercept
Point-point form Given two points and
General form Any non-degenerate line
Vertical line Line parallel to the -axis

Slope of a Line

Consider a straight line and two distinct points and on it. The slope of the line, denoted , is:

The slope of a line is independent of which two points we choose on the line. If is exactly one unit to the right of (so ), then : moving one unit horizontally, the slope tells us how many units we must travel vertically to stay on the line. This is the origin of the phrase:

Two points P and Q on a line, with a right triangle showing the vertical rise and horizontal run between them.
Slope = Rise / Run

The sign of the slope indicates the line's direction:

  • : the line rises to the right.
  • : the line falls to the right.
  • : the line is horizontal.
The absolute value of the slope measures the steepness of the line: larger means a steeper line.
Several lines through the origin with different slopes labeled, illustrating how larger slopes produce steeper lines.
Lines with different slopes through the origin

Important: The slope of a vertical line is undefined. Any two points on a vertical line share the same -coordinate, making the denominator , and division by zero is not defined.

Equations of a Line

Point-Slope Form

To find the equation of the line through with slope , let be any other point on the line. The slope formula gives , which rearranges to:

Point-Slope Form

Slope-Intercept Form

The special case where the known point is the -intercept gives:

Slope-Intercept Form

where is the slope and is the -intercept.

Point-Point Form

Given two points and , first compute , then substitute into the point-slope form:

Point-Point Form

Vertical Lines

The equation of the vertical line through is .

General Equation of a Line

General Equation of a Line

Every line can be written in this form, and every equation of this form represents a line.

To understand why, consider two cases:

  • Nonvertical line : rearrange to , which matches the general form with , , .
  • Vertical line : rearrange to , matching , , .

Conversely, from :

  • If , solve for : . This is slope-intercept form with slope and -intercept .
  • If , the equation becomes , giving : a vertical line.

Worked Examples

Example 1. Find an equation of the line through with slope .

Solution. Using the point-slope form:

Alternatively, multiplying both sides of by 4:

A slope of means moving 4 units right and 3 units up traces the line.

Example 2. Find an equation of the line through and .

Solution. First compute the slope:

Apply the point-slope form with :

Example 3. Find the equation of the line with slope and -intercept .

Solution. From the slope-intercept form with and :

Example 4. Find the slope and -intercept of .

Solution. Solve for :

The slope is and the -intercept is .

Example 5. Find the slope and -intercept of .

Solution. Isolate :

The slope is and the -intercept is .

Frequently Asked Questions

What is the slope of a line?

The slope of a line is the ratio of the vertical change (rise) to the horizontal change (run) between any two points on the line. It measures both the steepness and direction of the line. A positive slope means the line rises from left to right, a negative slope means it falls, and a slope of zero means the line is horizontal.


What is the point-slope form of a line? The point-slope form is . It is used when you know the slope and one point on the line. Substitute those values and simplify to get the equation of the line. This is generally the fastest form to use when solving problems.

How is slope-intercept form different from point-slope form? The slope-intercept form is a special case of the point-slope form where the known point is the -intercept . Use slope-intercept form when you know the slope and -intercept directly. Use point-slope form when you know the slope and any other point on the line.

Why is the slope of a vertical line undefined? A vertical line passes through all points sharing the same -coordinate. If we try to compute the slope using two such points and , the denominator of becomes . Division by zero is undefined, so vertical lines have no defined slope.

What does the general form Ax + By + C = 0 tell us? The general form is a unified way to write any line, including vertical ones. From it, you can find the slope and intercepts: if , the slope is and the -intercept is . If , the line is vertical. The general form is often preferred when working with systems of equations or computing distances.