Slope Intercept Form Calculator
Say what you know about the line. You get y = mx + b, the other two forms, both intercepts and the steps, with exact fractions.
https://flxcode.com/slope-intercept-form-calculator/
Done.
- Slope-intercept form
- y = (3/4)x − 1/4
- Point-slope form
- y − 2 = (3/4)(x − 3)
- Standard form
- 3x − 4y = 1
- Slope m
- 3/4 (0.75)
- y-intercept
- (0, −1/4)
- x-intercept
- (1/3, 0)
- In decimals, rounded
- y = 0.75x − 0.25
The steps, with your numbers
- m = (y₂ − y₁) / (x₂ − x₁) = (5 − 2) / (7 − 3) = 3 / 4 = 3/4
- b = y₁ − m × x₁ = 2 − 3/4 × 3 = −1/4
- So y = (3/4)x − 1/4.
- Standard form: multiply both sides by 4 to clear the fractions, move x to the left and divide out any common factor: 3x − 4y = 1.
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it. What this tool keeps and sends.
Problem or idea? Email us
The three forms of a line
| Form | Looks like | Good for |
|---|---|---|
| Slope-intercept | y = mx + b | Reading the slope and where the line starts on the y-axis, and graphing |
| Point-slope | y − y₁ = m(x − x₁) | Writing a line when you know a point and the slope |
| Standard | Ax + By = C | Whole-number coefficients, solving two lines together |
Worked examples
These were found by the same code as the tool above.
| Case | You enter | y = mx + b | Standard form |
|---|---|---|---|
| Two points | (3, 2) and (7, 5) | y = (3/4)x − 1/4 | 3x − 4y = 1 |
| Two points, falling | (0, 6) and (4, 0) | y = (−3/2)x + 6 | 3x + 2y = 12 |
| Slope and a point | m = 2, through (1, 5) | y = 2x + 3 | 2x − y = −3 |
| Slope and a point, a fraction | m = -2/3, through (3, -1) | y = (−2/3)x + 1 | 2x + 3y = 3 |
| Slope and y-intercept | m = 1/2, b = -2 | y = (1/2)x − 2 | x − 2y = 4 |
| Flat line | (1, 3) and (9, 3) | y = 3 | y = 3 |
| Vertical line | (4, 1) and (4, 9) | x = 4 | x = 4 |
The last row has no y = mx + b because a vertical line has no slope. Its equation is just x = 4.
How the tool gets there
- Slope from two points:
m = (y₂ − y₁) / (x₂ − x₁) - Intercept from a point:
b = y₁ − m × x₁ - Standard form: multiply by the common denominator, move x to the left, and divide by any common factor. Make A not negative.
- x-intercept:
x = −b / m, when m is not 0
For the angle, the percent grade, the distance and the midpoint between two points, use the slope calculator. For a right triangle made by the rise and the run, see the right triangle calculator.
Numbers this uses
- Exact fractions inside, so 1/3 stays 1/3 and 0.1 + 0.2 stays 0.3.
- "Decimals" only rounds what is shown in the decimal line and the slope.
- Point values above 1,000,000,000,000 are rejected so the arithmetic stays accurate.
Limits
- Straight lines on a flat plane. No curves, and no systems of two lines.
- A vertical line is shown as x = k. It cannot be written as y = mx + b.
- The standard form is given for the slope you enter. If your teacher wants another sign convention, multiply the whole equation by −1.
FAQ
How do I find the equation from two points?
Find the slope m = (y₂ − y₁) / (x₂ − x₁), then b = y₁ − m × x₁. For (3, 2) and (7, 5), m = 3/4 and b = −1/4, so the line is y = (3/4)x − 1/4. The tool shows each step with your numbers.
What do I do with a slope and one point?
Pick "Slope and a point". With m = 2 through (1, 5), b = 5 − 2 × 1 = 3, so the line is y = 2x + 3. The point-slope form is y − 5 = 2(x − 1).
What is the difference between point-slope, slope-intercept and standard form?
They are three ways to write the same line. Point-slope is y − y₁ = m(x − x₁). Slope-intercept is y = mx + b. Standard form is Ax + By = C with whole numbers, A not negative and no common factor, like 3x − 4y = 1.
Why does a vertical line have no slope-intercept form?
Both points have the same x, so the run is 0 and the slope has a zero in the bottom. A slope that cannot be written means there is no y = mx + b. The line is written x = 4, or whatever the x is. The tool says so and still gives its standard form and intercepts.
Can I type fractions?
In the slope and y-intercept boxes, yes: 3/4, -2/3 or 0.75. In the point boxes use decimals. Everything is worked out as exact fractions, so a slope of 1/3 stays 1/3. The rounded decimal is shown next to it.
What if I type the same point twice?
Then there is no one line, because every line through that point fits. The tool asks you to change one of the points instead of picking one for you.
More from FLXCode
- Slope CalculatorSlope, angle, percent grade, distance, midpoint and y = mx + b from two points. Handles vertical lines.
- Triangle CalculatorSolve any triangle from three values: sides, angles, area and more, drawn to scale with the steps.
- Pythagorean Theorem CalculatorFind the missing side of a right triangle, or test if three sides make one. Exact roots and the steps.
- Law of Sines CalculatorSolve ASA, AAS and SSA triangles. Shows both triangles in the ambiguous case, or says none exists.