On this page, the following topics are covered:
What is a Slope?
A slope is the steepness, or the gradient of a straight line. Often, it is described as the ratio between the “rise” (vertical distance from the origin) and the “run” (horizontal distance from the origin), which is why its formula is sometimes called “rise over run”.
Consider the line passing through the points
and
as shown in the figure.

The straight line makes an angle
with the positive direction of the x-axis and this angle is a measure of the slope/steepness of the line with respect to the horizontal x-axis. This is known as the slope.
In geometry, specifically coordinate geometry, the slope
is given by:

To make it clearer, the slope of a line passing through the points
and
is given by:

So, we can now solve for the slope of the line in the figure above.


Sample Problems
Now let’s work out some samples.
Find the slope of the line passing through each of the following pairs of points.
and

and

Solutions:
and

For
,
and
. For
,
and
.
So, we now have:
, 
, 
Solving for the slope using the formula:

and

For
,
and
. For
,
and
.
, 
, 
Solving for the slope using the formula, rise over run:


Important Reminder
and
are interchangeable, as well as
and
. The slope of a line would be undefined if
.
Slope of One Line
In general, equations of straight lines are in the form of
where
is the slope of the line and
is the y-intercept. This is also called the slope-intercept form.
Equations of vertical lines are in the form
and those of horizontal lines are of the form
.
The slope of straight lines can be easily determined if we arrange the equation of the line in the
format. We just have to look down for the value of
and jot it down.
We can also do it using graphical methods which take more time; we graph the line on a piece of graphing paper and we take at least two values of
and the corresponding
values, and we just have to replace the values in the formula:

It will give the same value as the first method.
Important Reminder
The slope of a vertical line is always undefined, and the slope of a horizontal line is always zero.
Sample Problems
Let’s try to work some examples on getting the slope of a straight line.
Find the slope of each of the following lines:
Solutions:

Rearranging this equation into the slope-intercept form, we get:





This is already in the slope-intercept form, so all we have to do is look where
is.
doesn’t appear to have any
in the equation, so this means that
is zero.

This equation means that for all real values of
,
will still be
. So, we must have a vertical line right here. As stated above, the slope of a vertical line is undefined.

Slope of Parallel Lines
Parallel lines have the same slope, because their changes in
and in
are the same.
Let’s say lines
and
are parallel.
: 
: 
and
have the same slopes since they are parallel. So, 
Sample Problems
- Determine if line
, passing through
and
and line
, passing through
and
are parallel. - Determine if line
, passing through
and
and line
, passing through
and
are parallel.
Solutions:
- Determine if line
, passing through
and
and line
, passing through
and
are parallel.First, we have to get the slope of line A. Let’s call it
.
Then, the slope of line B. Let us call it
.

Since
, lines
and
are parallel.
- Determine if line
, passing through
and
and line
, passing through
and
are parallel.Let us solve for the slopes of lines
and
first. Let’s call line
’s slope
, and line
’s slope
.Solving for line
’s slope:
Solving for line
’s slope:

Since
and
are not equal, these lines are NOT parallel.
Slope of Perpendicular Lines
In the figure below, two straight lines,
and
, with slopes
and
intersect at right angles.

It follows that one of the lines has a positive slope (line
), whereas the other one that is perpendicular to it has a negative slope.
Therefore we can say that perpendicular lines’ slopes are negative reciprocals of each other.

One example:
If the slope of line
is
, then it follows that the slope of line
which is perpendicular to line
has a slope of
.
Useful Facts:
- Two non-vertical lines with slopes
and
are perpendicular if
. - A line which is perpendicular to another line with slope
has an undefined slope.
Sample Problem
Determine if line
, passing through the points
and
and line
passing through
and
are parallel or perpendicular.
Solution:
Let us solve for line
’s slope first. Let’s call it
.


Now, let’s solve for line
’s slope, which we’ll call
.



Since
, then lines
and
are perpendicular.
