Algebra Calculator

AlgebraFreeNo sign-up

Use the algebra calculator to solve equations, inequalities and systems, or to simplify expressions, with every step shown free. For example, to solve 3(x − 2) + 4 = x + 10, distribute to get 3x − 2 = x + 10, subtract x to get 2x − 2 = 10, add 2 to get 2x = 12, then divide by 2: x = 6.

Algebra solver with free steps
With an = sign it solves; with <, >, <= or >= it solves the inequality; with no sign it simplifies. Write 2x for 2 times x, x^2 for x squared and 1/2 for a half.
Try:
Solution
3(x − 2) + 4 = x + 10
x = 6
The solution is x = 6. Substituting it back makes both sides equal, so the answer checks.
CheckCheck by substitution, x = 6. Left side: 3(6 − 2) + 4 = 16. Right side: 6 + 10 = 16. Both sides equal 16 ✓
TypeLinear equation
Show steps (5)
  1. Simplify the left side: 3(x − 2) + 4 = 3x − 6 + 4 = 3x − 2.
  2. The equation is now 3x − 2 = x + 10.
  3. Subtract x from both sides to get the x terms on the left: 2x − 2 = 10.
  4. Add 2 to both sides: 2x = 12.
  5. Divide both sides by 2: x = 6.

Algebra Calculator
Embed this calculator on your site

Free to use on class pages, blogs and course pages. Copy the code below and paste it into your page:

How to use the algebra calculator

  1. Type the problem as you would write it: 2x, x^2, 1/2 and parentheses. The symbol buttons help on a phone.
  2. Use an equals sign to solve an equation, <, >, <= or >= for an inequality, or no sign to simplify.
  3. For two equations with two unknowns, open the System of 2 equations tab and type one equation in each box.
  4. Read the answer, the yellow check box (the answer substituted back into your original problem) and then open Show steps for the full working.

All arithmetic is exact: fractions stay fractions, and irrational answers appear in radical form such as (−3 ± √41)/4, with decimals beside them.

What the algebra calculator can solve

Problem type Example input What you get
Linear equation 3(x – 2) + 4 = x + 10 x = 6, steps and a substitution check
Equation with fractions x/3 + 1/2 = 5/6 LCD step, then x = 1
Quadratic that factors x^2 – 5x + 6 = 0 (x − 2)(x − 3) = 0, x = 2 or 3
Quadratic that does not factor 2x^2 + 3x – 4 = 0 Quadratic formula, x = (−3 ± √41)/4
Complex roots x^2 + 2x + 5 = 0 x = −1 ± 2i, labeled as complex
Linear inequality -3x + 4 > 10 x < −2, interval notation, number line
Compound inequality -4 < 2x + 2 <= 8 −3 < x ≤ 3, written (−3, 3]
System of two equations 3x + 2y = 16 and x – y = 2 x = 4, y = 2 by elimination, graph
Simplify or expand (x + 2)(x – 5) x² − 3x − 10 and its factored form

Cubic and higher equations are solved when they have rational roots (Rational Root Theorem) or a form like x³ = 2. A variable in a denominator, √x or logarithms are not handled; the calculator says so instead of guessing.

How to solve a linear equation

A linear equation has the variable only to the first power. Get the variable alone by doing the same thing to both sides: simplify each side, clear fractions with the least common denominator, move variable terms to one side and numbers to the other, divide by the coefficient, then check.

Worked example: variables on both sides

Solve 3(x − 2) + 4 = x + 10. Distribute: 3x − 6 + 4 = x + 10, so 3x − 2 = x + 10. Subtract x from both sides: 2x − 2 = 10. Add 2: 2x = 12. Divide by 2: x = 6. Check: 3(6 − 2) + 4 = 16 and 6 + 10 = 16, so both sides match.

Worked example: fractions

Solve x/3 + 1/2 = 5/6. The denominators are 3, 2 and 6, so the least common denominator is 6. Multiplying every term by 6 gives 2x + 3 = 5. Subtract 3: 2x = 2, so x = 1. Check: 1/3 + 1/2 = 2/6 + 3/6 = 5/6.

If the variable cancels, 2(x + 3) = 2x + 6 becomes 6 = 6 (always true, so all real numbers work), while 2x + 1 = 2x + 5 becomes 1 = 5 (never true, so no solution). The linear equation calculator focuses on this type of problem.

How to solve a quadratic equation

Write the quadratic as ax² + bx + c = 0 (a ≠ 0), then try these methods in order.

  • Factoring. For x² − 5x + 6 = 0, find two numbers that multiply to 6 and add to −5: −2 and −3. So (x − 2)(x − 3) = 0 and x = 2 or x = 3. When a is not 1, the AC method splits the middle term: for 6x² + 11x − 10 = 0, a · c = −60, and 15 and −4 multiply to −60 and add to 11, giving (3x − 2)(2x + 5) = 0.
  • Square roots. With no x term, isolate x²: x² = 12 gives x = ±√12 = ±2√3.
  • The quadratic formula. x = (−b ± √(b² − 4ac)) / (2a) works for every quadratic.

Worked example: the quadratic formula

For 2x² + 3x − 4 = 0, a = 2, b = 3 and c = −4. The discriminant is b² − 4ac = 9 + 32 = 41, which is positive but not a perfect square. So x = (−3 ± √41)/4, which is about 0.8508 or −2.3508. As a check, the two roots add to −3/2 = −b/a and multiply to −2 = c/a.

The discriminant predicts the type of roots:

Discriminant b² − 4ac Roots Example
Positive perfect square Two rational roots; the quadratic factors x² − 5x + 6 = 0: 1, roots 2 and 3
Positive, not a perfect square Two irrational real roots 2x² + 3x − 4 = 0: 41
Zero One repeated (double) root 4x² − 12x + 9 = 0: 0, root 3/2
Negative No real roots; two complex roots x² + 2x + 5 = 0: −16, roots −1 ± 2i

The quadratic equation solver and the factoring calculator give more practice with each method.

Solving inequalities: when to flip the sign

Inequalities are solved like equations, with one extra rule: multiplying or dividing both sides by a negative number reverses the inequality sign. For −3x + 4 > 10, subtract 4 to get −3x > 6. Dividing by −3 gives x < −2, not x > −2. A quick test confirms it: x = −3 gives −3(−3) + 4 = 13, and 13 > 10 is true.

The answer x < −2 is written (−∞, −2) in interval notation, with an open dot at −2 on a number line. A compound inequality such as −4 < 2x + 2 ≤ 8 is solved by doing the same step to all three parts: subtract 2 to get −6 < 2x ≤ 6, then divide by 2 to get −3 < x ≤ 3. See the inequality calculator for more examples.

Solving a system of two equations

To solve 3x + 2y = 16 and x − y = 2 by elimination, multiply the second equation by 2 to get 2x − 2y = 4. Adding it to the first cancels y: 5x = 20, so x = 4. Substituting into the first equation gives 12 + 2y = 16, so y = 2. The solution is (4, 2).

If both variables disappear, a false statement such as 3 = 5 means parallel lines and no solution, and a true one means the same line and infinitely many solutions. The system of equations calculator covers substitution as well.

Simplifying expressions: like terms and FOIL

Like terms have the same variables and powers. To simplify 4x + 2 − x + 7 − 2(x − 4), distribute first: −2(x − 4) = −2x + 8. Then combine: 4x − x − 2x = x and 2 + 7 + 8 = 17, so the result is x + 17.

To multiply two binomials, use FOIL (first, outer, inner, last): (x + 2)(x − 5) = x² − 5x + 2x − 10 = x² − 3x − 10.

Common algebra mistakes

  • Distributing to only the first term: 3(x − 2) is 3x − 6, not 3x − 2.
  • Losing a negative sign: −(x − 3) is −x + 3.
  • Forgetting to flip the inequality sign after dividing by a negative number.
  • Writing x = 4 for x² = 16; there are two answers, x = 4 and x = −4.
  • Dividing both sides by x, which can throw away the solution x = 0. Factor instead: 2x² = 8x gives 2x(x − 4) = 0, so x = 0 or x = 4.

Algebra practice quiz: 10 questions

Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.

Question 1 of 10
1. Solve 4x − 7 = 2x + 9.

Found a mistake? Let us know!

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

Found a mistake? Let us know!

3. Solve x/4 + 2 = 5.

Found a mistake? Let us know!

4. Solve −2x + 5 > 11.

Found a mistake? Let us know!

5. Solve x² − 7x + 12 = 0.

Found a mistake? Let us know!

6. What is the discriminant of 2x² − 4x + 5 = 0?

Found a mistake? Let us know!

7. Solve x² = 49.

Found a mistake? Let us know!

8. Simplify 3(x + 4) − 2(x − 1).

Found a mistake? Let us know!

9. Solve the system x + y = 10 and x − y = 4.

Found a mistake? Let us know!

10. Expand (x + 3)².

Found a mistake? Let us know!

Frequently asked questions

Is the algebra calculator free with steps?

Yes. Every answer comes with the full step-by-step working and a check, with no account, no daily limit and no upgrade. Many popular solvers keep the steps behind a subscription.

What does it mean if the answer has an i?

The letter i stands for √(−1). When the discriminant of a quadratic is negative, the parabola never crosses the x-axis, so there is no real solution. The two solutions are complex numbers, such as −1 ± 2i for x² + 2x + 5 = 0.

How can I check my answer to an equation?

Substitute it into the original equation and work out each side. If both sides match, the answer is right. The calculator shows this check for every solution.

Can it solve equations with two variables?

One equation such as x + y = 3 has infinitely many solutions, so use the System tab with two equations, or the equation solver.

Related calculators

More algebra calculators

Browse all 541 calculators

Related to This Article

What people say about "Algebra Calculator: Solve Equations With Free Steps"?

No one replied yet.

Leave a Reply