Slope / Slope-Intercept Calculator
Find slope, slope-intercept form, point-slope form, standard form, intercepts, and a graph from two points, one point and a slope, a form of the equation, or an equation you type yourself. Every answer comes with a step-by-step solution that shows the algebra, plus visuals and a student-friendly interpretation.
Background
Slope tells you how steep a line is and whether it rises, falls, stays horizontal, or is vertical. Slope-intercept form, y = mx + b, shows the slope m and y-intercept b directly, which makes it one of the most useful forms for graphing and interpreting linear equations.
How to use this calculator
- Choose whether you know two points, one point and a slope, slope-intercept form, standard form, or an equation you want to type.
- Enter the values you know, then click Calculate. Numbers can be whole numbers, decimals like -1.5, or fractions like 2/3.
- In "Type an equation," write it the way it appears in your homework: y = 2x - 3, 2x - y = 5, y = (2/3)x + 1, or point-slope form like y - 2 = 3(x - 1).
- Read the slope, y-intercept, x-intercept, line direction, and equivalent equation forms, then follow the step-by-step solution to see how each one was found.
- Use the graph to see the line, the intercepts, and the rise/run triangle. The graph is drawn to scale, so the steepness you see is the real slope.
- Use quick picks to practice positive, negative, zero, undefined, and fractional slopes.
How this calculator works
- For two points, it uses m = (y₂ − y₁)/(x₂ − x₁), then finds b from one of the points and checks it against the other.
- For point + slope, it uses y − y₁ = m(x − x₁), distributes m, and adds y₁ to both sides to get y alone.
- For slope-intercept form, it reads m and b directly.
- For standard form, it solves Ax + By = C for y when possible.
- For a typed equation, it simplifies both sides (brackets, division, like terms), collects the terms into Ax + By = C, and solves for y.
- It then builds the other equation forms, a to-scale graph, a value table, and a step-by-step explanation.
Formula & Equations Used
Slope from two points: m = (y₂ − y₁)/(x₂ − x₁)
Slope-intercept form: y = mx + b
Point-slope form: y − y₁ = m(x − x₁)
Standard form: Ax + By = C
From standard form: m = −A/B and b = C/B
Y-intercept: b, the value of y when x = 0
X-intercept: the value of x when y = 0, which is −b/m
Example Problem & Step-by-Step Solution
Example 1 — Find slope from two points
- Suppose a line passes through (2, 3) and (6, 11).
- Use m = (y₂ − y₁)/(x₂ − x₁).
- Substitute: m = (11 − 3)/(6 − 2).
- Simplify: m = 8/4 = 2.
- The slope is 2, meaning the line rises 2 units for every 1 unit it moves right.
Example 2 — Convert to slope-intercept form
- Suppose the line has slope m = -3 and passes through (2, 5).
- Start with y = mx + b.
- Substitute the point and slope: 5 = -3(2) + b.
- Solve: 5 = -6 + b, so b = 11.
- The slope-intercept form is y = -3x + 11.
Example 3 — Identify a vertical line
- Suppose two points are (4, 2) and (4, 9).
- The x-values are the same, so x₂ − x₁ = 0.
- That makes the slope undefined because division by zero is not allowed.
- The equation is x = 4, which is a vertical line.
- A vertical line cannot be written in slope-intercept form because it is not a function of x.
Example 4 — Start from a typed equation
- Suppose the equation is y − 2 = 3(x − 1).
- Distribute the 3: y − 2 = 3x − 3.
- Add 2 to both sides to get y alone: y = 3x − 1.
- The slope is 3 and the y-intercept is −1.
- In standard form, subtract 3x from both sides and multiply by −1: 3x − y = 1.
Example 5 — Standard form to slope-intercept form
- Suppose the equation is 3x − 4y = 8.
- Subtract 3x from both sides: −4y = −3x + 8.
- Divide every term by −4: y = (3/4)x − 2.
- The slope is 3/4 and the y-intercept is −2.
Frequently Asked Questions
Q: What does slope mean?
Slope measures how much a line rises or falls for each 1-unit move to the right. It is often described as rise over run.
Q: What is slope-intercept form?
Slope-intercept form is y = mx + b. The number m is the slope, and b is the y-intercept.
Q: What does a positive slope mean?
A positive slope means the line rises from left to right. As x increases, y also increases.
Q: What does a negative slope mean?
A negative slope means the line falls from left to right. As x increases, y decreases.
Q: What is an undefined slope?
An undefined slope happens when the line is vertical. The run is 0, so the slope formula would require division by zero.
Q: What is a zero slope?
A zero slope happens when the line is horizontal. The y-values stay the same, so the line has no rise.
Q: Can I type a fraction like 2/3 as the slope?
Yes. Every number box accepts whole numbers, decimals such as -1.5, and fractions such as 2/3. Typing 2/3 keeps the answer exact, so you get (2/3)x rather than a rounded decimal.
Q: What can I type in the equation box?
Any straight-line equation in x and y: y = 2x - 3, 2x - y = 5, y = (2/3)x + 1, y = x/2 + 3, x = 4, or point-slope form such as y - 2 = 3(x - 1). Brackets, fractions, and * or × for multiplication all work. Exponents and products like xy are not straight lines, so they are not accepted.
Q: How do I graph a linear inequality in two variables, like y > 2x + 1?
Start with the boundary line: change the inequality sign to = (here, y = 2x + 1) and use this calculator to find its slope, intercepts, and graph. Then draw the line dashed for > or <, or solid for ≥ or ≤, test a point such as (0, 0) in the original inequality, and shade the side that makes it true. This calculator does not draw the shading itself.