Loading the page...
Preparing tools and content for you. This usually takes a second.
Preparing tools and content for you. This usually takes a second.
Fetching calculator categories and tools for this section.
Calculate the exact linear equation defining any two points. Input your coordinates to instantly generate the precise y = mx + b structure, including properly isolated slopes and Y-intercepts.
Last updated: February 24, 2026
Are your variables currently bound by greater-than/less-than operators? Try the Inequality Calculator
The 'm' variable dictates extreme steepness and direction. It serves as the multiplier for every 'x' unit.
The 'b' variable dictates the line's fixed position on a graph. It tells you exactly where the line cuts completely across the vertical Y-axis string.
Mathematically, the Y-intercept is precisely what the equation equals when the chosen x horizontal position is absolutely zero. It serves as the static 'baseline' for your equation's growth.
The slope-intercept form is the linear equation written as y = mx + b. It matters because it instantly tells you the line’s direction (m) and its baseline crossing point with the y-axis (b)—without manually plotting points.
Positive slopes rise as x increases, negative slopes fall, and a slope of 0 creates a perfectly horizontal line.
The y-intercept tells you where the line crosses the vertical axis at x = 0.
It’s the go-to form for graphing linear functions, writing equations from data, and solving “find the equation” homework questions.
Given two points (x1, y1) and (x2, y2), you compute:
Slope measures rise over run (how much y changes when x changes).
m = (y2 - y1) / (x2 - x1)If x1 = x2, the line is vertical and slope is undefined (the calculator handles this case).
Once you know the slope, plug either point into y = mx + b and solve for b.
b = y1 - (m × x1)This gives the exact y-value when x is 0.
Do this manually when you don’t want to rely on a tool. Use the same math the calculator follows.
(x1, y1) and (x2, y2).m = (y2 - y1) / (x2 - x1).b = y1 - (m × x1).y = mx + b.(0, b).rise/run = 2/3, go up 2 and right 3.m = 0.These examples show the exact math workflow from two points to final y = mx + b.
Use this table to interpret slope direction and steepness when you’re graphing the output equation.
| Slope (m) | Line Direction | Visual Meaning | Quick Check |
|---|---|---|---|
| m > 0 | Upward (left to right) | As x increases, y increases | Pick two x values: y2 > y1 |
| m < 0 | Downward (left to right) | As x increases, y decreases | Pick two x values: y2 < y1 |
| m = 0 | Horizontal line | y stays constant for all x | Equation becomes y = b |
| x1 = x2 | Vertical line | Slope undefined, equation is x = constant | Denominator becomes 0 in m |
These are the errors students make most often when computing slope-intercept equations.
Use (y2 - y1) for rise and (x2 - x1) for run. Swapping them flips the slope.
When x1 = x2, slope is undefined and you should represent it as x = constant.
If you approximate decimals instead of simplifying fractions, your intercept can drift and the graph will not hit the intended points.
Negative coordinates and negative differences matter. A subtraction of a negative is an addition (example: 5 - (-3) = 8).
Stop manually guessing fractional intercept coordinates. Send this linear graphing tool to your study group!