Skip to main content

Equation Solver

Try an example:

This equation solver works on many kinds of equations: linear, absolute value, radical, rational, exponential, log and more. You can solve equations step by step, and each answer is put back into the original equation as a check. It is one part of our free math solver.

How to Use the Equation Solver

Enter Your Equation

Type both sides with an equals sign. Use sqrt( ) for a square root, |x| for absolute value, and log or ln for logs. log means base 10.

Read the Steps

Each step names the move and shows the new equation. If a value does not work in the original equation, the steps say so and drop it.

Check the Graph

The graph shows where the two sides are equal. If the curves never meet, there is no real solution.

Types of Equations This Equation Calculator Solves

TypeLooks likeFirst move
Linear7x−4=3x+127x-4=3x+12Collect the letter on one side
Quadraticx2−5x+6=0x^2-5x+6=0Factor, or use a formula
Polynomialx4−5x2+4=0x^4-5x^2+4=0Move everything to one side and factor
Absolute value∣x−3∣=8\lvert x-3\rvert=8Split into two equations
Radical2x+3=x\sqrt{2x+3}=xSquare both sides
Rational3x−1=6x+2\frac{3}{x-1}=\frac{6}{x+2}Clear the denominators
Exponential2x+1=162^{x+1}=16Match the bases, or use logs
Logarithmiclog⁡x+log⁡(x−3)=1\log x+\log(x-3)=1Combine the logs

Linear Equations

The letter is only to the first power. There is usually one solution. There can also be none, or every number can work.

Absolute Value Equations

Absolute value is distance from zero. If ∣x−3∣=8\lvert x-3\rvert=8, then x−3x-3 is 8 or −8-8, so x=11x=11 or x=−5x=-5.

Radical Equations

Get the root alone, then square both sides. Squaring can add false answers, so check every one.

Rational Equations

Multiply both sides by the denominators to clear the fractions. Any value that makes a denominator zero is outside the domain, so it can't be a solution.

Exponential and Log Equations

For 2x+1=162^{x+1}=16, write 16 as 242^4 so the exponents must match: x+1=4x+1=4. For logs, join them into one log and rewrite it as a power.

Quadratics have so many methods that they get their own page, the quadratic formula calculator. If you need one letter from a formula, use the solve for x calculator.

How Do You Solve Equations Step by Step?

Simplify both sides, then undo whatever is being done to the letter, one move at a time, doing the same to both sides. If the letter sits under a root, in an exponent or inside bars, get that part alone first. Then put your answer into the original equation.

  1. Simplify each side.
  2. Get the part with the letter alone.
  3. Undo it: square a root, split an absolute value, match exponents.
  4. Solve the simpler equation that is left.
  5. Check each answer in the original equation.

Equation solver graph: the curve y equals the square root of 2x plus 3 meets the line y equals x at x equals 3

Worked Examples

Example 1: A Linear Equation With Fractions

Solve x+13=x−12\dfrac{x+1}{3}=\dfrac{x-1}{2}.

  1. Multiply both sides by 6, the smallest number both 3 and 2 divide: 2(x+1)=3(x−1)2(x+1)=3(x-1).
  2. Distribute: 2x+2=3x−32x+2=3x-3.
  3. Subtract 2x2x and add 3: x=5x=5.

Example 2: A Radical Equation

Solve 2x+3=x\sqrt{2x+3}=x.

  1. Square both sides: 2x+3=x22x+3=x^2.
  2. Move everything to one side: x2−2x−3=0x^2-2x-3=0.
  3. Factor: (x−3)(x+1)=0(x-3)(x+1)=0, so x=3x=3 or x=−1x=-1.
  4. Check both. 9=3\sqrt{9}=3 works. 1=1\sqrt{1}=1, not −1-1, so −1-1 is a false answer.

The only solution is x=3x=3.

Example 3: A Log Equation With a False Solution

Solve log⁡x+log⁡(x−3)=1\log x+\log(x-3)=1.

  1. Adding logs multiplies the insides: log⁡(x(x−3))=1\log\big(x(x-3)\big)=1.
  2. Rewrite as a power of 10: x(x−3)=10x(x-3)=10.
  3. Solve x2−3x−10=0x^2-3x-10=0, which factors as (x−5)(x+2)=0(x-5)(x+2)=0.
  4. x=−2x=-2 would need the log of a negative number, so drop it. The answer is x=5x=5.

Common Mistakes to Check

Keeping a False Solution

Squaring both sides and combining logs can create answers that fail. Put every answer into the first line of the problem, not a later one.

Squaring Only Part of a Side

(x−1)2(x-1)^2 is x2−2x+1x^2-2x+1. It is not x2−1x^2-1 or x2+1x^2+1. Square the whole side, including the middle term.

Practice Problems

  1. Solve 7x−4=3x+127x-4=3x+12.
  2. Solve ∣x−3∣=8\lvert x-3\rvert=8.
  3. Solve x+5=x−1\sqrt{x+5}=x-1.
  4. Solve 2x+1=162^{x+1}=16.
  5. Solve 3x−1=6x+2\dfrac{3}{x-1}=\dfrac{6}{x+2}.
Show the answers
  1. x=4x=4
  2. x=11x=11 or x=−5x=-5
  3. x=4x=4 (the value −1-1 fails the check)
  4. x=3x=3
  5. x=4x=4

Related Calculators

Learn More

FAQ

Why Can an Equation Have a False Solution?

Some moves can't be fully undone. Squaring turns both 3 and −3-3 into 9, so it can let in a value that was not in the original. This is called an extraneous solution.

What Types of Equations Can It Solve?

All the types in the table above, plus basic trig equations. It can't solve differential equations, matrix equations or equations with several unknown functions. If it can't solve yours, it tells you.

How Do You Check a Solution?

Put the value in place of the letter on both sides and work each side out. If the two results match, the value is a solution. This equation solver with steps does that for you.

What Does It Mean If There Are Infinitely Many Solutions?

Both sides are really the same expression, such as 2(x+1)=2x+22(x+1)=2x+2. Every number works, so the answer is "all real numbers."

Can It Solve Two Equations at Once?

Yes, if they are linear. Use the system of equations calculator and type them with a comma between.


Next step: pick the row in the table that matches your problem, try the first move yourself, then use the equation solver to compare.