Skip to content

Equation Solver

Solve linear and quadratic equations, step by step.

∑ Mathematics
Write an equation in one variable. Allowed functions: sqrt, log, sin, cos, exp.

Enter your values and press Calculate to see the result and the working.

Share WhatsApp Telegram X Email

What does this calculator do?

Solves an equation in one variable and shows the working: the equation as entered, then with every term moved to one side, then the discriminant if it is quadratic, then the solutions.

When would you use it?

For algebra homework, to check a solution you worked out yourself, or when isolating an unknown in any mathematical relationship.

How the formula works

The first step is always to move every term to one side so the other becomes zero. That turns "when are these equal?" into "when is this expression zero?", a single standard form with known solution methods.

A linear (first-degree) equation always has exactly one solution: isolate the variable with inverse operations.

For a quadratic, the discriminant decides how many solutions exist: positive gives two distinct real roots, zero gives one repeated root, and negative gives two complex roots with the curve never crossing the x-axis.

Solving is symbolic rather than numerical, so results appear in exact form when they are fractions or surds.

What does the result mean?

The solution is the value that makes both sides equal. You can always verify by substituting it back into the original equation — the two sides must match.

When more than one solution appears, all are mathematically valid, though context may rule some out: a negative length or a negative time in a physical problem, for instance.

Common mistakes

Using more than one variable prevents a solution — this solver handles one variable only. Another common issue is ambiguous implicit multiplication: 2*x and 2x are both accepted, but avoid genuinely ambiguous notation.

Worked example

A linear equation

Find the value of x that satisfies the equation.

The solution is x = 5, verifiable by substitution.

A quadratic equation

A second-degree equation with two solutions.

Calculation method

Symbolic solving with SymPy, using a safe expression parser that rejects anything outside a whitelist.

Last reviewed:

Methodology