Free Scientific Calculator Online
Calculator Algebra Fractions Tools Articles About Contact
Text size

Graphing Calculator

Equation y = mx + b

y = 1x + 0
Enter slope and y-intercept to graph the line
Slopem = 1
Y-interceptb = 0
X-interceptx = 0
DirectionPositive slope

How to Use This Grapher

Enter a value for slope (m) and y-intercept (b) in the fields on the left. The graph updates live as you type. You will see the line drawn on the coordinate grid with the slope and intercept labelled. Try changing m to see how the steepness shifts, then adjust b to move the line up or down.

The Slope-Intercept Form

The equation y = mx + b is called slope-intercept form. It is the most useful way to write a linear equation because it tells you two things instantly: the slope (m) and where the line crosses the y-axis (b).

The slope m tells you how the y value changes for every 1 unit increase in x. If m = 3, then y goes up by 3 every time x goes up by 1. If m is negative, the line goes downward as x increases. The y-intercept b is the starting point. When x = 0, y equals b.

Slope Values Reference

Slope (m)What the Line Looks Like
m = 3Steep upward line, rises quickly
m = 0.5Gentle upward line, gradual rise
m = 0Perfectly horizontal line
m = -1Diagonal downward line at 45 degrees
m = -3Steep downward line, drops quickly

Reading Slope from a Graph

Pick any two points on the line. Slope = rise divided by run. Rise is how much y changes between the two points. Run is how much x changes. If you go from (1, 2) to (3, 8), the rise is 8 - 2 = 6 and the run is 3 - 1 = 2. So slope = 6 / 2 = 3.

Finding the Equation from Two Points

  1. Calculate slope: m = (y2 - y1) / (x2 - x1)
  2. Pick either point and substitute into y = mx + b
  3. Solve for b
  4. Write the final equation with your m and b values
Example: points (2, 5) and (4, 11) Slope = (11 - 5) / (4 - 2) = 6 / 2 = 3. Plug in: 5 = 3(2) + b, so b = -1. Equation: y = 3x - 1.

Common Mistakes to Avoid

Previous
Geometry Calculator
Next
Prime Number Checker