Calculate the y-intercept of a straight line from given parameters
Select a method and enter the required values to find the y-intercept (b) and the line's equation in slope-intercept form (y = mx + b).
Click on an example to load it into the calculator.
Calculate y-intercept with a positive slope and a point.
m: 2
P: (1, 5)
Calculate y-intercept with a negative slope and a point.
m: -0.5
P: (-4, 0)
Find y-intercept from two points that result in a positive slope.
P1: (1, 3)
P2: (4, 9)
Find y-intercept from two points that result in a negative slope.
P1: (-2, 7)
P2: (3, -3)
y = mx + b
. In this equation:y
and x
are the coordinates of any point on the line.m
represents the slope of the line, which measures its steepness.b
is the y-intercept, the value we aim to find with this calculator.m
) of the line.C(x) = mx + b
, the y-intercept (b
) represents the fixed costs—the expenses incurred even when no units (x
) are produced. This could be rent, salaries, or insurance.y = mx + b
, we can algebraically isolate b
. Given a slope m
and a point (x, y)
on the line, we substitute these values into the equation: y = m*x + b
. To find b
, we simply rearrange the formula: b = y - mx
.(x1, y1)
and (x2, y2)
, we must first calculate the slope m
. The slope is the 'rise over run', or the change in y divided by the change in x. The formula is: m = (y2 - y1) / (x2 - x1)
. It is crucial that x1
and x2
are not equal, as this would result in an undefined slope (a vertical line).m
is calculated from two points, we can use it along with either of the two points in the b = y - mx
formula. For instance, using (x1, y1)
, the y-intercept is b = y1 - m*x1
.y = c
, where its slope is 0. Its y-intercept is simply c
. A vertical line has the equation x = k
. It has an undefined slope and, unless k=0
, it never crosses the y-axis, meaning it has no y-intercept.(x1, y1)
and which is (x2, y2)
.