← Algebra calculators

Linear Equation Calculator with Steps

Type an equation in x to see how to simplify both sides, isolate the variable and check the solution.

Enter an equation

Use parentheses, decimals and fractions. Write (x + 1)/3 for a divided expression and (1/2)x for half of x.

How to solve a linear equation

Expand brackets and collect like terms on each side. Subtract the same x term and constant from both sides to get an equation in the form ax = b. If a is nonzero, divide both sides by a. For 3(x − 2) = x + 8, this gives 2x = 14, so x = 7. Substituting 7 makes both sides equal 15.

When the x terms cancel

An equation such as 2x + 3 = 2x + 8 reduces to a false statement, so it has no solution. An equation such as 2(x + 3) = 2x + 6 is true for every real value of x.

For equations with squared terms, use the quadratic equation calculator. For multiple variables and equations, use the system of equations calculator.