How to Figure Out the Slope of a Line

A line's slope measures the slant of the line.
••• Ryan McVay/Photodisc/Getty Images

A line can be graphed on a set of coordinate axes with a horizontal x-axis and a vertical y-axis. The points on the graph are designated by coordinates in the form of (x, y). The slope of a line measures how the line slants in relation to the axes. A positive slope slants up and to the right. A negative slope slants down and to the right. A zero slope means a line is horizontal. A vertical line has an undefined slope. Determine the slope of a line using the slope formula or by identifying “m” in the slope-intercept form of a line’s equation, which is y = mx + b.

Figuring Slope from Two Points on a Line

    Input the corresponding x and y points into the slope formula m = (y2 - y1)/(x2 - x1) for a line that contains the two points (x1, y1) and (x2, y2). For example, the slope formula for a line that contains the two points (2, 3) and (4, 9) is m = (9 - 3)/(4 - 2).

    Subtract 3 from 9 to calculate the numerator: 9 minus 3 equals 6.

    Subtract 2 from 4 to calculate the denominator: 4 minus 2 equals 2. This leaves the equation m = 6/2.

    Divide the numerator by the denominator to solve for m, which is the slope of the line: 6 divided by 2 equals 3. The slope of the line is 3.

Figuring Slope from a Line’s Equation

    Subtract 4x from both sides of the example line equation 4x + 2y = 8 to isolate 2y on the left side of the equation. This equals 4x - 4x + 2y = -4x + 8, or 2y = -4x + 8.

    Divide both sides of the equation by 2 to reduce 2y to y. This equals 2y/2 = (-4x + 8)/2, or y = -2x + 4. This is the line’s equation rearranged into the slope-intercept form.

    Identify m in the equation’s slope-intercept form y = -2x + 4, which is -2. This is the line’s slope.

Related Articles

How to Find Equations of Tangent Lines
How to Find the X Intercept of a Function
How to Determine the Y-Intercept of a Trend Line
How to Find a Parallel Line
How to Find X-Intercept & Y-Intercept
How to Find The Slope of a Line Given Two Points
How to Solve a Parabola
How to Convert Graphs to Equations
How to Find the Slope of Linear Equations
To Calculate Arcsine, What Buttons Do You Press on...
How to Find an Equation Given a Table of Numbers
How to Solve for Both X & Y
How to Borrow When Adding & Subtracting Fractions
How to Write a Linear Regression Equation
How to Calculate Slope Ratio
How to Find Perpendicular Slope
How to Work Out a Gradient of a Curve
How to Determine if an Equation Is an Identity?
How to Find Y Value for the Slope of a Line
How to Find a Z Score