How to Find Slope on Desmos
Graph lines and find slope from two points
By JasonPublished 5 min read
On this page

Desmos has no slope button. To find the slope from two points, enter them in a table and type y_1 ~ mx_1 + b. Desmos reports
Graph a line in Desmos
To make a straight line in Desmos, enter its equation in an expression line. For example:
- Type
y = 2x + 3and press Enter. Desmos draws a line. - Read the equation as
: the coefficient of is the slope, so . The constant is the y-intercept. - Select the line or its expression, then click its gray y-intercept to see the label
.
A slope of 2 means that for each increase of 1 in
You can graph a line without solving for 3x + 4y = 12 on a new expression line. Desmos draws the line directly. Select it and click its gray intercepts to label
Find slope from two points
Suppose the points are
- Click the plus button and choose Table.
- Enter
1and8in the first row, then3and4in the second row. - On a new expression line, type
y_1 ~ mx_1 + b. Type the tilde~between the two sides. Use the subscript 1 from the table headers on both variables. - Read the regression parameters:
and . The slope is . The fitted line is . - Check that Desmos shows
. That means the line passes through the points you entered.
The table's linear regression button is another route: it displays the fitted equation, so read the coefficient of
To check by calculation, type (4-8)/(3-1) on a new line. Desmos gives
Subtract coordinates in the same order in the numerator and denominator. Reversing both points gives the same answer; reversing only one subtraction changes the sign. See SAT slope for more practice with rise over run.
Common mistake
Two points with the same
Find the slope from standard form
For
- Type
3x + 4y = 12. Select the line, then click the two gray intercepts: and . - Click the plus button, choose Table, and enter
and in separate rows. - On a new line, type
y_1 ~ mx_1 + b. Desmos reports and . The slope is , or . Check that .
Use exact point labels. Desmos rounds some coordinates on the graph, and a rounded point can give an inaccurate slope. If an intercept has a rounded label, select and drag along the line to find two points with exact terminating coordinates. Use those coordinates in the table. For a nonterminating slope, use the exact coordinates in the slope formula to write the exact fraction.
There is also an algebra shortcut. For
Practice question · Lines and Linear Relationships
Show the Detailed Explanation
The equation is already in
Parallel and perpendicular lines
Parallel lines have equal slopes. Graph y = 2x + 3 and y = 2x - 1: both slopes are 2, so the lines rise at the same rate and never intersect.
For two nonvertical perpendicular lines, flip the slope fraction and change its sign. A line perpendicular to one with slope y = -x/2 + 3 with y = 2x + 3 to see them intersect at a right angle. Keep the axes equally scaled so the angle looks right.
A horizontal line has slope 0. A vertical line has undefined slope, and the two are perpendicular. The product rule applies when both slopes are defined.
Practice question · Lines and Linear Relationships
Show the Detailed Explanation
A parallel line has the same slope, 3. Passing through the origin gives a y-intercept of 0, so its equation is
What slope means in a word problem
Slope is a rate of change: change in
For example, let
Practice question · Meaning of Slope, Intercepts, or Points
Show the Detailed Explanation
Slope is change in dollars divided by change in cookies. The coefficient of
Practice these readings in Meaning of Slope training, and practice equations in Lines and Linear Relationships.
Keep exploring Desmos
The regression guide explains fitting other models and checking their fit. For a set of plotted points, see how to connect points in Desmos. The guide to key Desmos features covers more calculator tools.
Finding slope on Desmos
- Graph an equation directly, or enter two points in a table and type
y_1 ~ mx_1 + b. - Read
as the slope and check that . Use exact point coordinates. - For
, the slope is when . - Parallel lines have equal slopes; defined perpendicular slopes multiply to
. - In a story, interpret slope as change in the output units per unit of the input.


