Slope Graph Calculator: Plot a Line, Drag It, Read the Slope

Enter two points, a point and a slope, or y = mx + b. The line is drawn live: drag either point, flip to equal axis scales, and read the slope, intercepts, equation and every step.

How to use the slope graph calculator

Give it a line in whichever form you have, and it draws it.

  • Two Points. Type the coordinates, or press Calculate once and then drag either point on the grid. Dragging and typing are the same input: whichever you use, the slope, the intercepts, the equation and the steps recalculate together.
  • Point & Slope. One point and how steep. Good for “graph a slope of 2 through the origin”, which is the first Try one button.
  • Slope Intercept. Enter m and b from y = mx + b and see the line those two numbers describe.
  • Standard Form. Enter Ax + By = C as it stands; the conversion and the drawing both happen for you.

Under the graph sits a switch most graphers do not have: Equal axis scales. Off, the grid stretches to fit your numbers, which is easier to read. On, both axes use the same scale, so the steepness you see is the steepness you calculated. The section further down explains why that difference trips so many people up.

What you get back

  • The plotted line with your points marked, the rise and run drawn on as a dashed step, and the axes placed for you.
  • The slope as a decimal and a fraction together, so 0.75 and 3/4 stop looking like two different answers.
  • The angle in degrees (radians under More results), the percent grade and the ratio.
  • Both intercepts as coordinates, and the equation written three ways: slope intercept, point slope and standard form, with a plain sentence saying what the numbers mean.
  • The working step by step, plus Copy, Download and Print for the whole answer.

How precise the numbers are

The slope shows six decimal places, everything else four or five, and nothing is rounded before it is used again. A slope that never terminates, like one third, is kept as the exact fraction in the equations: y = (1/3)x, never y = 0.3333x. Dragged points snap to quarter units so the numbers in the input boxes stay readable.

About units

Coordinates carry no units here, so the slope is a pure number. The moment your graph is a real one, distance against time, cost against months, the slope inherits units: y-units per x-unit. Say them out loud when you read the answer. A slope of 7.5 on a metres-against-seconds graph is 7.5 metres per second, and forgetting that is half of the classic graph-reading mistake covered next.

Reading the slope of a graph: squares are not units

To read the slope of a graph, pick two spots where the line crosses grid corners cleanly, then divide the vertical change by the horizontal change. A mistake that turns up over and over in real exam answers is counting grid squares instead of reading the axis numbers. An Open University analysis of real exam answers found students counting 16 squares of rise on an axis where those squares meant 160 km, reporting 0.57 for a gradient that was really 5.7 km/s, and some measuring rise and run with a ruler. The squares only equal the units when every gridline is worth exactly 1, and on most real graphs it is not.

Reading a slope graph by the axes, not the squares A slope graph showing why you read the axes, not the grid squares: each y-gridline is worth 10, so three squares is a rise of 30, giving a slope of 7.5 rather than 0.75. slope = rise ÷ run, in AXIS units 0 10 20 30 40 50 1 3 5 7 run: 4 rise: 3 squares, but the axis says 30 COUNTING SQUARES 3 ÷ 4 = 0.75 READING THE AXES 30 ÷ 4 = 7.5 Same line. Ten times apart. Counting squares versus reading the axes A graph whose y-axis gridlines are worth 10 each. The line rises 3 squares over 4 squares. Counting squares gives 0.75. Reading the axes gives 30 over 4, which is 7.5. slope in AXIS units 0 10 20 30 40 1 3 5 run: 4 rise: 3 squares, axis says 30 COUNTING SQUARES 0.75 3 ÷ 4, ignoring the axis READING THE AXES 7.5 30 ÷ 4. Same line, ten times apart
Reading a slope graph the right way. Each y-gridline is worth 10, so three squares of rise is 30. Count squares and you get 0.75; read the axes and you get 7.5. Only the second is the slope.

Two habits prevent it. Read the number off the axis at both ends of your rise and your run, never the square count. And keep the units attached: if y is kilometres and x is seconds, the slope is in kilometres per second.

How to graph slope: from a number to a drawn line

Drawing runs the same machine in reverse. Put a dot on any point you know. Read the slope as a fraction, rise over run: 2 is 2/1, and 0.35 is 0.35 rise per 1 across, or the same thing with whole numbers, 7 up for 20 across. From your dot, go right by the run and up by the rise, place the second dot, and join them. A negative slope changes one move only: put the minus on the rise or on the run, never both, so −3/4 is down 3 and right 4. Down-and-right or up-and-left both draw the same falling line.

That is also all the calculator is doing. The Point & Slope tab takes your dot and your number, marks the step on the grid as a dashed rise and run, and draws the result, which makes it a quick way to check a hand-drawn homework line against the real thing.

The slope intercept form graph

Graphing y = mx + b needs no table of values. b hands you your starting dot for free: the line crosses the y-axis at (0, b). From there, m is the instruction: up m for every 1 right. For y = −(3/4)x + 2, start at (0, 2), go right 4 and down 3, and join the dots. That example is the third Try one button, and the equation panel underneath the answer writes the same line in point slope and standard form as well. If what you are starting from is not in y = mx + b shape yet, the slope intercept form calculator converts two points, a point and a slope, or Ax + By = C into it first.

Why the steepness you see is not the slope

Almost every grapher, this one included, fits the grid to your numbers by default, which means the two axes rarely share a scale. Stretch the y-axis and a gentle line looks like a cliff; squash it and a steep line lies flat. The number does not move. Slope is worked out from the axis values, so it is immune to how the picture is stretched, and the angle your eye reads off the screen is only the slope’s angle when both axes use the same scale.

The same warning applies to the tangent shortcut. The angle a slope makes satisfies m = tan(θ), but that θ is the mathematical angle in coordinate units, not the angle you could measure on the drawing with a protractor. On a stretched grid those are two different angles. Some calculators print the tangent relationship with no warning, and a protractor check against their own auto-scaled graph would fail it. Here, press Equal axis scales under the graph and watch: the line visibly changes tilt while the slope, the angle and every other number hold still. Two presses of that button teach the point faster than any paragraph.

Five reasons a slope read from a graph comes out wrong

  • Squares were counted instead of axis units. The mistake from the diagram above, and the one an exam-response analysis found over and over. If every gridline is not worth exactly 1, the square count is not the rise.
  • The rise and the run were read in opposite directions. Direction itself does not matter: go right to left and BOTH differences flip sign, so the slope survives. The error is mixing directions, rise read one way and run the other, which flips exactly one sign and turns a falling line into a rising one.
  • The two points were estimated between gridlines. Pick spots where the line crosses grid corners exactly. A half-square guess on a short run moves the slope a long way.
  • The angle was eyeballed off a stretched grid. A line drawn at 30 degrees on an auto-scaled graph almost never has a slope of tan(30°). Read values, not tilt, or switch to equal scales first.
  • On a data graph, the line went through the first and last measurements. Two raw data points are not the trend. The slope belongs to the best-fit line, which is the next section.

Slope of a best-fit line on a data graph

In a physics or chemistry lab the graph is a cloud of measured points with a straight line drawn through the trend, and the slope of that line is usually the quantity the experiment was built to find. The rule that catches nearly everyone once: take your rise and run from two well-separated points on the drawn line itself, never from two of your measured data points. The measurements scatter above and below the trend; the fitted line is the trend. Two raw points hand you their scatter, dressed up as an answer.

Two more lab habits, both cheap. The slope carries units, y-units over x-units, and an answer without them is incomplete. And if you need to know how trustworthy the slope is, draw the steepest and the shallowest lines that still pass through your error bars and work out their slopes too. Courses differ on how to report that spread, the full range, half of it, or a regression instead, so quote whichever convention your lab manual sets. If your table is an exact relationship, a conversion chart rather than measurements, skip the drawing: any two rows into the Two Points tab give the slope exactly. Measured data stays a fitting job, though. Two arbitrary rows carry their scatter with them, so fit the line first and read points from it.

Frequently asked questions

How do you graph a slope of 2?

Write 2 as 2/1: up 2 for every 1 right. Start at any point you know, often (0, 0) or the y-intercept, move 1 right and 2 up, mark the second point, and join them with a straight line. The first Try one button above draws exactly this so you can check your drawing against it.

Do I count grid squares or read the axis numbers?

Read the axis numbers, always. Counting squares only works on the special grid where every square is worth exactly 1. On a graph where each y-gridline is worth 10, three squares of rise is a rise of 30, and counting squares understates the slope ten times over. Take the value where your rise starts and where it ends from the axis itself, subtract, and do the same on the x-axis for the run.

Why does the same slope look steeper on one graph than another?

Because the two graphs stretch their axes differently. The visual tilt of a drawn line depends on the scale of each axis; the slope depends only on the numbers. Squeeze the x-axis and any line steepens to the eye without its slope changing at all. It is why comparing steepness across two charts by eye is unreliable, and why this calculator has an equal-scales switch: turn it on and the picture finally agrees with the number.

How do I graph a slope that is a decimal, like 0.35?

Turn it into a fraction with whole numbers: 0.35 = 35/100 = 7/20, so rise 7 for a run of 20. If 20 across does not fit your grid, go the other way and treat it as 0.35 up for every 1 across, plotting a few of those steps and drawing through them. The fourth Try one button plots m = 0.35 so you can see how shallow it really is: a small decimal slope is a nearly flat line.

How do I find slope on a TI-84?

There is no slope button, which is why this question keeps being asked. For a line through data points, put the x-values in list L1 and the y-values in L2 (STAT, Edit), then run STAT, CALC, LinReg(ax+b): the a it reports is the slope. For the slope of a curve at one point, graph the function, then use CALC (2nd TRACE) and choose dy/dx at your x-value. For just two points, this page is faster than either.

What is the slope of a graph like y = −3?

Zero. y = −3 is a horizontal line sitting three below the x-axis: y never changes, so the rise is 0 whatever run you pick, and 0 divided by anything is 0. The vertical cousin, a line like x = 2, is the opposite story: all rise and no run, so its slope is undefined rather than zero, and the two are worth keeping firmly apart.

How do I find the slope of a line of best fit?

Choose two points that sit on the fitted line itself, far apart to keep the reading accurate, read their coordinates off the axes, and divide rise by run, keeping the units. Do not use two of your measured data points: they scatter around the trend, and the fitted line exists precisely to average that scatter out. Far-apart points matter because a small reading error over a short run becomes a large slope error.

Which way does a negative slope go on a graph?

Downhill, reading left to right. Drawing it from a point works with one rule: give the minus sign to the rise or to the run, never both. So for −3/4, go down 3 and right 4, or up 3 and left 4; both land on the same falling line. If your drawn line rises when the slope says it should fall, you either applied the minus twice or read the rise and the run in opposite directions. Take both changes in the same direction, either direction, and the sign looks after itself.