Free, privacy-first

Equation Solver

Last updated:

Solve linear, quadratic, and 2×2 linear systems with a numerical residual check on every result.

Runs locally in your browser. No data leaves your device.

What this tool helps you answer

What this tool helps you answer

Solves linear equations (ax+b=c), quadratic equations (ax²+bx+c=0), and 2×2 linear systems using direct algebra and Cramer's rule, then verifies each answer with a residual check.

Input values

Results

How to read the results

Use the model, assumptions, metrics, and warnings together before acting on the output.

  • The residual value should be very close to zero (within floating-point precision). A residual of 1e-10 or smaller is a normal numerical result, not an error.
  • Complex roots are written in the form a + bi and a − bi. If your context only admits real numbers, a negative discriminant means the equation has no valid solution in that domain.
  • For 2×2 systems, both x and y residuals are reported separately so you can confirm each equation is satisfied.
  • In system mode, a reported determinant of zero tells you the two lines are either parallel or coincident.

Assumptions

  • Linear mode solves ax + b = c.
  • Quadratic mode solves ax^2 + bx + c = 0 and includes complex roots when needed.

Next step

Explore the next step

Solve linear, quadratic, and 2×2 linear systems with a numerical residual check on every result.

Editorial review

How this page was built

This page combines the live tool, input guidance, worked examples, and operating limits so Equation Solver stays useful even before users interact with the calculator.

Reviewed by Klartext Tools against the current Equation Solver workflow on 2026-03-06.

Last updated:

Use with judgment

Assumptions

  • Linear mode solves ax + b = c.
  • Quadratic mode solves ax^2 + bx + c = 0 and includes complex roots when needed.

Page scope

What this page covers

  • How to use the Equation Solver
  • Sample inputs and scenarios
  • How to read the results
  • Use Cases
  • Best practices
  • Why this matters
  • What this tool does

Worked examples

Quadratic with two real roots

x² − 5x + 6 = 0 has roots at x = 2 and x = 3. This is a clean example to confirm residual behaviour.

Mode
Quadratic
Quadratic a
1
Quadratic b
-5
Quadratic c
6

The solver returns x₁ = 3, x₂ = 2, discriminant = 1, and a residual near zero for both roots.

After running this example, try changing c to 7 to see what happens when the discriminant turns negative.

2×2 linear system

2x + y = 5 and x − y = 1 is a classic simultaneous equation pair with a unique solution.

Mode
2×2 System
System a1
2
System b1
1
System c1
5
System a2
1
System b2
-1
System c2
1

The solver returns x = 2, y = 1 with residuals near zero for both equations.

Change a2 to 2 and b2 to 0.5 to create a singular system and observe the determinant-zero message.

How to use the Equation Solver

Select the equation type first, then enter the coefficients that match your problem.

  1. Choose the equation mode

    Select Linear for ax + b = c, Quadratic for ax² + bx + c = 0, or 2×2 System for two simultaneous linear equations.

  2. Enter the coefficients

    Fill in the numeric values for each coefficient. For the quadratic mode the default shows x² − 3x + 2 = 0, which has two real roots at x = 1 and x = 2.

  3. Run the solver and read the residual

    The result panel shows the solution alongside a residual value. A residual near zero confirms the answer is numerically correct.

  4. Handle special cases

    If the discriminant is negative the solver returns complex roots. If the 2×2 system determinant is zero the solver reports whether the system has no solution or infinite solutions.

Sample inputs and scenarios

Load a simple quadratic to see how roots, discriminant, and residual appear together in the result panel.

Quadratic with two real roots

x² − 5x + 6 = 0 has roots at x = 2 and x = 3. This is a clean example to confirm residual behaviour.

Sample inputs

Mode
Quadratic
Quadratic a
1
Quadratic b
-5
Quadratic c
6

Sample outcome: The solver returns x₁ = 3, x₂ = 2, discriminant = 1, and a residual near zero for both roots.

After running this example, try changing c to 7 to see what happens when the discriminant turns negative.

2×2 linear system

2x + y = 5 and x − y = 1 is a classic simultaneous equation pair with a unique solution.

Sample inputs

Mode
2×2 System
System a1
2
System b1
1
System c1
5
System a2
1
System b2
-1
System c2
1

Sample outcome: The solver returns x = 2, y = 1 with residuals near zero for both equations.

Change a2 to 2 and b2 to 0.5 to create a singular system and observe the determinant-zero message.

Why this matters

Solving equations by hand is error-prone for anything beyond a simple linear case, and most symbolic solvers return a result without the context needed to trust it. This solver shows a residual check alongside every result, the numerical verification that the answer actually satisfies the original equation, so you are not just reading back a number the formula produced. It is useful for double-checking your own work, validating model assumptions before writing code, or building intuition for systems of equations without relying on a full computer algebra system.

What this solver does

The equation solver handles three classes of algebraic problem in a single interface. Linear mode solves ax + b = c for x using direct rearrangement. Quadratic mode applies the quadratic formula to ax² + bx + c = 0 and returns both roots, real or complex, along with the discriminant value. System mode uses Cramer's rule to solve two simultaneous linear equations in two unknowns. Every solution includes a residual check: the computed answer is substituted back into the original equation and the difference between the two sides is reported, giving you numerical confidence in the result.

Mathematical background

Linear equations have exactly one solution unless the coefficient of x is zero, in which case the equation is either always true (infinite solutions) or never true (no solution). Quadratic equations are governed by the discriminant D = b² − 4ac: when D > 0 there are two distinct real roots, when D = 0 there is one repeated root, and when D < 0 the roots are complex conjugates. For 2×2 linear systems, Cramer's rule expresses each unknown as a ratio of determinants. When the system determinant is zero the equations are either parallel (inconsistent) or identical (dependent) and no unique solution exists.

Formula breakdown

Linear: x = (c − b) / a
Quadratic: D = b2 − 4ac
x = (−b ± √D) / (2a)
2×2 system: x = det(Ax) / det(A), y = det(Ay) / det(A)
  • D > 0: two distinct real roots.
  • D = 0: one repeated real root.
  • D < 0: two complex conjugate roots in the form a ± bi.
  • det(A) = 0: system is singular: no unique solution.

Interpreting results

  • The residual value should be very close to zero (within floating-point precision). A residual of 1e-10 or smaller is a normal numerical result, not an error.
  • Complex roots are written in the form a + bi and a − bi. If your context only admits real numbers, a negative discriminant means the equation has no valid solution in that domain.
  • For 2×2 systems, both x and y residuals are reported separately so you can confirm each equation is satisfied.
  • In system mode, a reported determinant of zero tells you the two lines are either parallel or coincident.

Real-world scenarios

  • Break-even analysis: set revenue = cost as a linear equation and solve for the volume at which profit is zero.
  • Projectile height: model h(t) = -4.9t² + v₀t + h₀ as a quadratic and find when h = 0 for landing time.
  • Resource allocation: express two budget constraints as a 2×2 system and solve for optimal quantities.
  • Validating hand calculations: enter the coefficients from a textbook problem and compare the solver output to your work to locate any sign or arithmetic error.

Edge cases

  • a = 0 in linear mode: the equation degenerates. If b ≠ c the system is inconsistent; if b = c all real numbers are solutions.
  • a = 0 in quadratic mode: the tool switches to linear logic. The parabola interpretation, discriminant, and vertex no longer apply.
  • Singular 2×2 system (det = 0): the two equations define parallel or identical lines. The solver reports whether the system is inconsistent or dependent.
  • Very large or very small coefficients: floating-point arithmetic may introduce rounding in the residual. A residual of 1e-8 or smaller is still a valid solution for typical engineering inputs.

Common mistakes when using this solver

  • Setting a=0 in quadratic mode. That makes the equation linear, not quadratic, so the discriminant and parabola interpretation no longer apply.
  • Confusing a non-zero residual with a calculation error. A residual near zero confirms the solution; a large residual means the entered coefficients or the selected mode do not match the intended equation.
  • Expecting real roots when the discriminant is negative. A negative discriminant means the parabola does not cross the target line in the real number plane: the solver will return complex roots in that case.

Use Cases

  • Estimate materials before purchasing to reduce project waste.
  • Compare scenarios on-site and adjust quantities in real time.
  • Create clearer project plans with transparent calculation logic.

Related math tools

Tools & topics

  • Math & Science Tools

    Math and science calculators for equations, graphing, probability, statistics, and unit conversions.

  • Quadratic Equation Solver

    Full parabola analysis with discriminant, vertex, step-by-step derivation, and sampled curve points.

  • Function Plotter

    Plot any expression in x across a chosen domain and inspect turning points and zero crossings visually.

  • Scientific Calculator

    Evaluate compound math expressions with correct operator precedence, trig functions, and physical constants.

  • Unit Conversion Lab

    Convert single or batch values with factors, uncertainty bands, and summary statistics.

Why this solver stands out

  • Residual verification
  • Three equation modes
  • Local computation
  • Complex root support

Frequently Asked Questions

What equation types does this solver handle?
The solver handles three types: linear equations in the form ax + b = c, quadratic equations in the form ax² + bx + c = 0, and 2×2 linear systems (two equations, two unknowns). Each mode displays a residual check confirming the answer numerically.
What is a residual check and why does it matter?
A residual is the difference between the left and right sides of the equation when you substitute the computed answer back in. A residual near zero confirms the solution is correct; a non-negligible residual signals an input error or a problem that does not match the selected mode.
What happens when a quadratic has no real roots?
When the discriminant b² − 4ac is negative, the parabola does not cross the target line in the real number plane. The solver reports complex roots in the form a ± bi. If your problem requires real solutions, a negative discriminant means the equation has no valid answer in that domain.
How do I use this to check my handwritten work?
Enter the same coefficients from your problem and compare the solver output to your answer. If the residual is near zero and the roots match, your work is correct. If not, the coefficient fields and mode selection are the first places to check for a discrepancy.
What does a zero determinant mean for a 2×2 system?
A zero determinant means the two equations describe parallel or identical lines, so there is no unique solution. The solver distinguishes between an inconsistent system (no solution, the lines are parallel) and a dependent system (infinite solutions, the lines are identical).
What does Equation Solver calculate compared with a basic equation calculator?
Equation Solver focuses on solve linear, quadratic, and 2×2 linear systems with a numerical residual check on every result. It is built for math & science tools workflows and returns reproducible results for the same inputs.
Which inputs affect equation solver results the most?
Start with Mode, Linear a, Linear b. Small changes in those fields usually drive the biggest output shift, so compare at least two scenarios before deciding.
Is equation solver online useful for quick scenario planning?
Yes. Equation Solver is designed for fast what-if analysis, letting you test assumptions and compare outcomes directly in your browser session.

Cross-Category Recommendations

If the job spills into another category, these tools help with the next step.