Linear Equation

Definitionnoun phrase

What is a linear equation?

A linear equation is an equation whose graph is a straight line. In one variable, it usually has a variable to the first power, like 3x + 2 = 14. In two variables, it can be written in forms like y = mx + b, where m is the slope. No variable is squared, multiplied by another variable or in a denominator.

In Spanish
ecuación lineal
Also called
first-degree equation, equation of a line, linear equations
Grade level
Algebra 1
Grade 7Grade 8Algebra 1CCSS 8.EE.C.7CCSS 8.F.A.3GEDSATACT

Linear Equation in a picture

A linear equation graphs as a straight lineOn a grid, the solutions of 2x + 3y = 12 form a straight line through the intercepts (0, 4) and (6, 0). A dashed curve, y = x squared, bends upward and is labeled not linear. On the right, 2x + 3y = 12 is rewritten as y = negative two thirds x + 4, with slope negative two thirds, y-intercept 4 and x-intercept 6.24626y = x²: not linear(0, 4)(6, 0)(3, 2)Linear2x + 3y = 12same line asy = −⅔x + 4slope −⅔y-intercept 4x-intercept 6Every solution (x, y) is a point on the line.
All the solutions of 2x + 3y = 12 line up on one straight line, which is what makes the equation linear. Squaring x bends the graph into a curve.

Formal definition and notation

A linear equation in one variable can be written ax + b = 0 with a ≠ 0; it has exactly one solution, x = −ba. (Equations that simplify to a = a or a = b have infinitely many or no solutions.) A linear equation in two variables can be written in standard form Ax + By = C, with A and B not both 0; its solutions are the ordered pairs (x, y) that make it true, and they form a straight line in the coordinate plane. Each term is a constant or a constant times a single variable to the first power, which is why it is also called a first-degree equation.

Symbol Read it as Meaning
y = mx + b y equals m x plus b slope-intercept form: m is the slope, b the y-intercept
Ax + By = C A x plus B y equals C standard form, handy for finding both intercepts
y − y1 = m(x − x1) y minus y one equals m times x minus x one point-slope form, through the point (x1, y1)

Key facts

  • The graph of a linear equation in two variables is always a straight line, and every point on the line is a solution.
  • Linear: 2x + 5 = 17, y = 3x − 4, 4x − 2y = 10, y = 7. Not linear: y = x2, xy = 6, y = 1x, y = 2x.
  • A one-variable linear equation has one solution, no solution (x + 1 = x + 2) or infinitely many (2x + 2 = 2(x + 1)).
  • The coefficient of x in y = mx + b is the slope, the rate of change; b is the starting value.
  • A vertical line such as x = 4 is a linear equation but not a function.

Solving a one-variable linear equation

Solving a one-variable linear equation
ax + b = c ⇒ x = c − ba, for a ≠ 0
simplify
distribute and combine like terms on each side
collect
move the variable terms to one side and the constants to the other
isolate
divide by the coefficient of the variable
check
substitute the answer into the original equation

Undo addition and subtraction before multiplication and division: the reverse of the order of operations.

Try it: drag a line, read its equation

Interactive

Drag point A or B, or select a point and use the arrow keys. The readout writes the equation of the line through them. Try the presets: a horizontal line has an equation like y = 2, and a vertical line one like x = 2.

This interactive needs JavaScript. The worked examples below show the same ideas step by step.

Linear Equation examples, step by step

Example 1: Solve a two-step equation

Warm-up

Solve 4x − 7 = 21.

  1. Undo the subtraction: add 7 to both sides, 4x = 28.
  2. Undo the multiplication: divide both sides by 4, x = 7.
  3. Check: 4(7) − 7 = 28 − 7 = 21. True.

Answer: x = 7

Example 2: Variables on both sides

Core

Solve 5(x − 2) = 3x + 8.

  1. Distribute: 5x − 10 = 3x + 8.
  2. Subtract 3x from both sides: 2x − 10 = 8.
  3. Add 10: 2x = 18. Divide by 2: x = 9.
  4. Check: 5(9 − 2) = 35 and 3(9) + 8 = 35. Both sides match.

Answer: x = 9

Example 3: Write and use a linear equation

Test-style

A taxi charges 3 dollars to start plus 2 dollars per mile. Write a linear equation for the cost C of an m-mile ride. How long is a ride that costs 27 dollars?

  1. The cost starts at 3 and rises 2 for every mile: C = 2m + 3. The slope is 2 dollars per mile and the intercept is 3 dollars.
  2. Set C = 27: 2m + 3 = 27.
  3. Subtract 3: 2m = 24. Divide by 2: m = 12.
  4. Check: 2(12) + 3 = 27.

Answer: C = 2m + 3; a 27-dollar ride is 12 miles long.

Common mistakes

✗ Mistakey = x2 + 3 is linear, because it looks like y = mx + b.
✓ InsteadIt is not linear: the x2 term makes its graph a curve (a parabola).

An equation with a squared variable is not linear. In a linear equation every variable has exponent 1.

✗ Mistake3x + 5 = 20: divide by 3 first, x + 5 = 203.
✓ InsteadSubtract 5 first: 3x = 15, then divide: x = 5.

Dividing only the 3x term and the right side breaks the balance. Undo addition and subtraction first, or divide every term by 3.

✗ Mistake2(x + 4) = 18 becomes 2x + 4 = 18.
✓ Instead2(x + 4) = 2x + 8, so 2x + 8 = 18 and x = 5.

The 2 multiplies every term in the parentheses, including the 4.

✗ Mistakexy = 6 is linear, because both variables have exponent 1.
✓ Insteadxy = 6 is not linear; its graph is a curve through (1, 6), (2, 3) and (3, 2).

A term with two variables multiplied together is of degree 2. Linear terms have at most one variable each.

Not to be confused with

Linear Equationvs.Linear function

A linear function is a rule f(x) = mx + b that gives one output per input. Every non-vertical linear equation in x and y defines one, but x = 4 is a linear equation that is not a function.

Linear Equationvs.Slope-Intercept Form

Slope-intercept form, y = mx + b, is one way to write a linear equation. 2x + 3y = 12 is the same linear equation in standard form.

Linear Equationvs.Quadratic Equation

A quadratic equation has a squared variable, as in x2 − 5x + 6 = 0, and can have two solutions. Its graph is a parabola, not a line.

Quick check: 3 questions

Question 1 of 3

Which equation is linear?

Show answer and explanation

Answer: B. In 2x − 5y = 10 each variable appears to the first power, alone in its term, so the graph is a line. Choice A has x2, choice C has x in a denominator, and choice D multiplies two variables.

Question 2 of 3

Solve 6x + 4 = 2x − 12.

Show answer and explanation

Answer: C. Subtract 2x: 4x + 4 = −12. Subtract 4: 4x = −16, so x = −4. The other choices come from sign slips, such as adding 4 instead of subtracting it.

Question 3 of 3

Which is the equation of the line with slope 2 that crosses the y-axis at −3?

Show answer and explanation

Answer: D. In y = mx + b, m is the slope and b the y-intercept: y = 2x − 3. Choice A swaps slope and intercept, choice B drops the negative sign, and choice C swaps them and the sign.

Linear Equation: frequently asked questions

How can you tell if an equation is linear?

Simplify it and look at each term. It is linear if every variable has exponent 1, no term multiplies two variables, and no variable sits in a denominator, under a root or in an exponent. 3x − 4y = 7 and y = x2 + 1 are linear; y = x2, y = √x and y = 2x are not.

How many solutions does a linear equation have?

A linear equation in one variable usually has exactly one solution, like x = 4. It has none if it simplifies to something false, such as 3 = 5, and infinitely many if it simplifies to something always true, such as 3 = 3. A linear equation in two variables has infinitely many solutions: every point on its line.

What are the forms of a linear equation?

Slope-intercept form, y = mx + b, shows the slope m and y-intercept b. Standard form, Ax + By = C, makes the intercepts easy to find. Point-slope form, y − y1 = m(x − x1), uses one point and the slope. All three describe the same kind of straight line and can be rewritten into each other.

Practice and tools

Sources

  1. Common Core State Standards, Grade 8 Expressions and Equations (8.EE.C.7)
  2. Common Core State Standards, Grade 8 Functions (8.F.A.3)
  3. OpenStax, Elementary Algebra 2e, 4.2 Graph Linear Equations in Two Variables

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 8.EE.C.7, CCSS 8.F.A.3

Cite this entry

Effortless Math Team. “Linear Equation.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/linear-equation/

Flashcard

TermLinear Equationy = mx + b, 3x + 2 = 14
DefinitionAn equation whose graph is a straight line; each variable has exponent 1. 3x + 2 = 14 gives x = 4.
Study the full deck

Browse all terms in the Math Dictionary · More algebra terms · Random term