Home / Mathematics / Algebra, Geometry & Trigonometry / Slope-Intercept Form of a Line

Formula & Calculator

Slope-Intercept Form of a Line

This is the most common way to write the equation of a straight line: y = mx + b, where m is the slope and b is the y-intercept (where the line crosses the y-axis). For example, y = 2x + 3 has slope 2 and crosses the y-axis at 3. It is easy to graph: start at b, then go up by m for every 1 step right. It is the standard form in algebra and data analysis.

Mathematics Algebra Daily Life

Slope-Intercept Form CalculatorLine Equation Solver

y = m · x + b
y = dependent variable  ·  m = slope  ·  x = independent variable  ·  b = y-intercept
⟹ Solve⟷y, 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

Variables

Symbol Quantity Unit
y Dependent variable (output)
m Slope of the line
x Independent variable (input)
b y-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