Linear Equation Formula

ALGEBRA

Linear equation formula

A linear equation describes a straight line. The slope-intercept form, y equals m x plus b, is the most common way to write it, showing the slope and the starting point at a glance.

y = mx + b
where:

  • m = the slope, or steepness, of the line
  • b = the y-intercept, where the line crosses the y-axis
  • x, y = the coordinates of any point on the line

Slope-intercept form

In y = mx + b, the slope m tells you how steeply the line rises or falls: a positive slope climbs from left to right, a negative slope descends, and a zero slope is flat. The value b is the y-intercept, the height where the line crosses the vertical axis. Together they pin down the line completely.

Other useful forms

The same line can be written in point-slope form, y − y₁ = m(x − x₁), handy when you know one point and the slope. The standard form, Ax + By = C, is common in textbooks and useful for finding intercepts. All three describe the identical straight line.

Worked example

A line with slope 2 crossing the y-axis at 3 is written y = 2x + 3. At x = 0, y = 3; at x = 4, y = 2(4) + 3 = 11. Plotting those points and connecting them draws the line.

Related tools

See the Slope Formula, or use the Slope Calculator to find m from two points.

FAQ

What is the slope-intercept form?

y = mx + b, where m is the slope and b is the y-intercept. It is the most common way to write a linear equation.

How do I find the slope from two points?

Divide the change in y by the change in x: m = (y₂ − y₁) / (x₂ − x₁). See the slope formula for details.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.