Home/Mathematics/Slope-Intercept Form of a Line

Formula & Calculator

Slope-Intercept Form of a Line

Expresses the equation of a straight line in terms of its slope and y-intercept, the most common way to write a linear equation.

MathematicsAlgebraDaily Life

Slope-Intercept Form CalculatorLine Equation Solver

y = m · x + b
y = dependent variable  ·  m = slope  ·  x = independent variable  ·  b = y-intercept
⟹ Solvey, m, x, b
Please fix the errors above.
Solve for:
Examples:
Solved value
m: b: x: y:
✓ Copied!
Slope Magnitude
Shallow (|m| < 1) Moderate (1–3) Steep (3–6) Very Steep (> 6)
y = m·x + b  ·  m = slope, b = y-intercept

Interpretation

y = mx + b. Equation of a line with slope m and y‑intercept b. Used for graphing and linear modelling. Basis of linear functions.

y = m*x + b
Slope-Intercept Form of a Line

Variables

SymbolQuantityUnit
yDependent variable (output)
mSlope of the line
xIndependent variable (input)
by-intercept (value of y when x = 0)

What it means

The slope‑intercept form is the most common way to write the equation of a straight line. Here, m is the slope and b is the y‑intercept (the point where the line crosses the y‑axis). This form is convenient for graphing because you can easily plot the intercept and use the slope to find other points. It is used in linear regression (y = mx + b for best‑fit lines), in physics (linear equations of motion), and in economics (demand/supply curves). Understanding this form is essential for algebra and for any field that uses linear relationships.

Worked example

Slope‑Intercept Form – Two Examples

Real‑World
Scenario: A business cost model has fixed cost b=100 and variable cost per unit m=5. Find cost for x=10 units.
ParameterValue
m5
x10
b100
1y = 5×10 + 100 = 150
Result 150 ✓ Total cost
Scenario: A line with slope 2 and y‑intercept 3. Find y when x=4.
ParameterValue
m2
x4
b3
1y = 2×4 + 3 = 11
Result 11 ✓ Point on line
Insight: y = mx + b is the most common form of a linear equation – m is slope, b is y‑intercept.

Common mistakes

  • Slope‑intercept form: y = m·x + b – m is slope, b is y‑intercept.
  • Intercept: b is the value of y when x = 0 – not the x‑intercept.
  • Rearrangement: Any linear equation can be written in this form (solve for y).
  • Parallel lines: Have the same slope m.
  • Perpendicular lines: Slopes multiply to −1 (if both defined).

Applications

The slope‑intercept form of a line, y = mx + b, expresses a linear relationship with slope m and y‑intercept b. This form is used extensively to model linear trends in data, to design control systems, and to represent constraints in optimisation. Engineers use it to model sensor calibrations, to forecast demand, and to analyse stress‑strain relationships. In economics, it represents supply and demand curves. This simple equation is the backbone of linear models, enabling quick interpretation of parameters and predictions. By using this form, professionals can easily visualise and communicate linear relationships, making it indispensable in any field that deals with quantitative data.

  • Linear regression and trend line fitting
  • Sensor calibration and linear interpolation
  • Economic supply and demand analysis
  • Mechanical stress‑strain relationships (elastic region)
  • Control system set‑point and error analysis

Frequently Asked Questions

Q01What is the slope‑intercept form of a linear equation?
A01

The slope‑intercept form is y = mx + b, where m is the slope and b is the y‑intercept (the value of y when x = 0).

Q02What is the common mistake when using this form?
A02

Confusing this form with point‑slope form, which is built from a specific point on the line rather than the y‑intercept.

Q03How do you find the slope from the equation?
A03

The slope is the coefficient of x (m).

Q04How do you find the y‑intercept?
A04

Set x = 0; then y = b.

Q05How do you graph a line from the slope‑intercept form?
A05

Plot the y‑intercept (0, b), then use the slope m to find another point (run over rise).

Q06What is the x‑intercept?
A06

The x‑intercept is found by setting y = 0 and solving for x: x = –b/m (if m ≠ 0).

Q07What is the slope‑intercept form of a horizontal line?
A07

y = b (m = 0).

Q08What is the slope‑intercept form of a vertical line?
A08

A vertical line cannot be written in slope‑intercept form (m is undefined).

Q09How do you convert a line from standard form (Ax + By = C) to slope‑intercept form?
A09

Solve for y: y = (–A/B)x + (C/B), so m = –A/B, b = C/B.

Q10What are the applications of the slope‑intercept form?
A10

  • Quickly graphing lines.
  • Finding intercepts.
  • Comparing lines.