Equation Solver

Solve equations step by step. Enter an equation, find the exact answer, and understand every mathematical operation used to solve it.

Free step-by-step solver

Solve an equation

Type one equation using x. You can use brackets, fractions, decimals, x², and absolute value.

Examples — click one to solve it

No input error.

Works withLinearBracketsFractionsQuadraticAbsolute value
Interactive practice

Now Try It Yourself

Practice solving equations and check mathematically equivalent answers.

1 / 3
Solve for x4x + 3 = 19
Core concept

What Is an Equation Solver?

An equation solver finds every value of x that makes the expressions on the two sides of an equals sign have the same value. This solver safely parses the equation, expands brackets, collects like terms, classifies the resulting polynomial, and applies an exact method suited to linear, quadratic, or supported absolute-value equations.

L(x)=R(x);Longrightarrow;L(x)−R(x)=0L(x)=R(x);Longrightarrow;L(x)-R(x)=0

Moving both sides into one normalized polynomial makes its degree and solution method clear. Linear equations isolate x; quadratics use the quadratic formula; supported absolute-value equations split into positive and negative branches.

Equation
A statement that two mathematical expressions are equal.
Solution or root
A value that makes the original equation true when substituted for x.
Equivalent equation
An equation with exactly the same solution set as the original.
Identity
An equation true for every allowed value of the variable.
Equivalent operations

How Does Equation Solving Work?

Solving is a sequence of reversible transformations. Expand brackets, combine like terms, and apply the same operation to both sides until the variable is isolated or the equation’s degree reveals a suitable exact method.

  1. 1

    Enter one equation containing exactly one equals sign.

  2. 2

    Select Solve equation to parse and normalize both sides safely.

  3. 3

    Read the exact answer and classification before reviewing each generated operation.

  4. 4

    Substitute the solution into the original equation to verify it.

Honest capability limits

Supported Equation Types

x

Linear equations

One-variable equations with brackets, rational fractions, decimals, or variable terms on both sides.

x²

Quadratic equations

Degree-two equations with exact rational, radical, repeated, or complex solutions.

|x|

Absolute value

One absolute value containing a linear expression and equaling a constant.

The parser supports one variable x, powers through x², ordinary arithmetic, brackets, rational fractions, terminating decimals, and one absolute-value expression equal to a constant. Variable denominators and degree-three or higher equations are intentionally rejected.

Learn by structure

Worked Examples

Example 1

Solve 3x + 7 = 22.

3x = 15, then divide both sides by 3x = 5

Substitution gives 3(5) + 7 = 22, so the solution is verified.

Example 2

Solve 2(x − 3) = 10.

2x − 6 = 10, so 2x = 16x = 8

Distribute before isolating the variable.

Example 3

Solve x² − 5x + 6 = 0.

(x − 2)(x − 3) = 0x = 2 or x = 3

A quadratic may have two distinct real solutions.

Example 4

Solve |x − 3| = 4.

x − 3 = 4 or x − 3 = −4x = 7 or x = −1

Absolute value creates positive and negative distance branches.

Error prevention

Common Mistakes

  • Changing a sign when moving a term without applying an equivalent operation.

  • Distributing across only the first term inside brackets.

  • Dividing by an expression that could equal zero without recording the restriction.

  • Reporting only one quadratic or absolute-value branch.

  • Rounding a fraction or radical before the final step.

Edge cases and limits

  • A zero coefficient may remove the highest-degree term.
  • A repeated quadratic root is listed once as the solution set.
  • A negative absolute-value target has no real solution.
  • Division by a variable expression is excluded because it creates domain restrictions and possible extraneous results.
Questions answered

Frequently Asked Questions

What equation types does this solver support?

It supports one-variable linear and quadratic equations, brackets, variables on both sides, fractions, terminating decimals, and absolute-value equations of the form |linear expression| = constant.

Can I enter fractions?

Yes. Fractions such as x/2 and 1/3 are calculated with exact rational arithmetic when the denominator is a nonzero constant.

Does it solve quadratic equations?

Yes. Equations that normalize to ax² + bx + c = 0 are solved with the quadratic formula, including repeated, irrational, and complex roots.

Why can an equation have more than one answer?

Quadratic and absolute-value equations can describe more than one value of x that makes the original statement true. The solver lists every supported solution.

What do no solution and infinitely many solutions mean?

No solution means simplification produces a contradiction such as 1 = 0. Infinitely many solutions means it produces an identity such as 0 = 0.

How accurate are the answers?

Integers, fractions, and the coefficients used in solving are handled exactly. Irrational results retain their exact radical form and may also include a clearly labeled decimal approximation.

Does the solver evaluate my text as code?

No. A constrained parser accepts only documented mathematical tokens and never executes the entered text as JavaScript.

Verified sources

References & Technical Sources

Keep calculating

Related Calculators