Point Slope Intercept Form Calculator: Find a Line
- Slope-intercept equation y=mx+b
- Result
- Point x-coordinate
- 2
- You entered
- Point y-coordinate
- 5
- You entered
A point slope intercept form calculator finds the equation of a straight line from a point and its slope, then expresses the result in slope-intercept form, y = mx + b. Enter the point’s x- and y-coordinates and the slope; the calculator returns the equation and its y-intercept.
Formula
The point-slope equation is y − y₁ = m(x − x₁). Rearranging it gives slope-intercept form, y = mx + b, where b = y₁ − mx₁.
- x₁ is the known point’s x-coordinate, in coordinate units.
- y₁ is the known point’s y-coordinate, in coordinate units.
- m is the slope, or change in y divided by change in x. It is a ratio of the coordinate units, so it is often unitless when both axes use the same units.
- b is the y-intercept: the y-value where the line crosses the y-axis, in y-coordinate units.
- x and y are the variables describing any point on the line.
The calculator’s first result is b, followed by the equation written as y = mx + b. The input example uses x₁ = 2, y₁ = 5, and m = 3. Coordinates and slope may be negative; enter them with their signs. The displayed equation uses two decimal places, so the underlying line may be more precise than its displayed form.
Worked Example
Use the exact default values in the calculator: x₁ = 2, y₁ = 5, and m = 3.
- Start with the point-slope form: y − 5 = 3(x − 2).
- Expand the right side: y − 5 = 3x − 6.
- Add 5 to both sides: y = 3x − 1.
- Find the intercept with b = y₁ − mx₁: b = 5 − (3 × 2) = −1.
The results are a y-intercept of −1 and the slope-intercept equation y = 3x − 1. The equation crosses the y-axis at (0, −1) and passes through the supplied point (2, 5), since 3 × 2 − 1 = 5.
How the Calculator Works
Point-slope form is useful because it directly combines a known point with a known slope. To convert it, distribute the slope across the parentheses and isolate y:
y − y₁ = m(x − x₁)
y − y₁ = mx − mx₁
y = mx + (y₁ − mx₁)
The quantity in parentheses is the y-intercept b. The calculator performs this rearrangement numerically; it does not need a second point if you already know the slope. If you have two points instead, calculate the slope first: m = (y₂ − y₁)/(x₂ − x₁), then use either point to obtain b. This slope calculation requires different x-coordinates.
When to Use Point-Slope Intercept Form
Use this calculation when a problem gives one point and a slope but asks for the equation in the familiar y = mx + b format. It can help with graphing, checking algebra homework, modeling a constant rate of change, or comparing a line’s steepness and vertical crossing point.
- Graphing: Plot the y-intercept (0, b), then use the slope as rise over run. For m = 3, move up 3 and right 1 to reach another point.
- Interpreting a model: The slope describes how much y changes for each one-unit increase in x; b is the predicted y-value when x = 0.
- Checking a proposed equation: Substitute the known point’s x-value. The resulting y-value should match the known y-coordinate.
Interpret units in context. If x is measured in hours and y in miles, slope has units of miles per hour, while b is measured in miles. The formula works with any consistent coordinate units; it does not require inches, feet, meters, or another particular system. If converting units, convert coordinates consistently before interpreting the equation.
Common Errors and Limitations
A frequent mistake is confusing slope-intercept and point-slope form. In y = mx + b, b is the y-intercept; it is not generally the point’s y-coordinate. The point’s coordinates determine b through y₁ − mx₁. In the example, the given point has y-coordinate 5, but the intercept is −1.
- Sign errors: Keep negative coordinates and slopes in parentheses when substituting. For example, with x₁ = −2, calculate b = y₁ − m(−2).
- Swapping coordinates: A point is ordered (x, y), not (y, x). Enter the first value as x and the second as y.
- Rounding too early: Retain full precision when finding a slope from two points or calculating b; round only the final display if appropriate.
- Using different units on the axes: This is mathematically allowed, but slope then carries units such as meters per second. Do not treat it as unitless in a real-world interpretation.
The calculator describes a nonvertical line, which can be written as y = mx + b. A vertical line has equation x = c and has undefined slope, so it cannot be represented in slope-intercept form or calculated from a finite m. Also, a straight-line equation assumes a constant rate of change; it may not fit data whose relationship curves or changes slope.
Frequently Asked Questions
How do I find the y-intercept from a point and slope?
Use b = y₁ − mx₁. Multiply the slope by the point’s x-coordinate, then subtract that product from the point’s y-coordinate.
Can I use two points instead of a slope?
Yes. First find m = (y₂ − y₁)/(x₂ − x₁), then substitute either point into b = y₁ − mx₁. If x₂ equals x₁, the line is vertical and has no slope-intercept form.
What if the point is already the y-intercept?
If its x-coordinate is zero, then b equals its y-coordinate, because b = y₁ − m(0) = y₁.
Can slope-intercept form have a negative slope?
Yes. A negative m means y decreases as x increases. For example, y = −2x + 4 has slope −2 and y-intercept 4.
What is the difference between point-slope and slope-intercept form?
Point-slope form, y − y₁ = m(x − x₁), emphasizes a known point and slope. Slope-intercept form, y = mx + b, makes the slope and y-intercept easy to identify.
Why can’t a vertical line use this calculator?
A vertical line has the same x-coordinate at every point, so its slope would require division by zero. Its equation is x = c, not y = mx + b.
Related
Formula used
in x | Point x-coordinate | - | 2 in y | Point y-coordinate | - | 5 in m | Slope | - | 3 out b | y-intercept | - | y - m * x | 2 out eq | Slope-intercept equation y=mx+b | - | m * x + b | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.