Solve ax^2 + bx + c = 0 with an exact discriminant, giving exact rational roots where they exist and complex roots where they do not.
Linear Equation Solver
Solve ax + b = c exactly, with the working shown, and distinguish an identity from a contradiction when a is zero.
- Free
- No sign-up
- Runs in your browser
Input
A whole number, a decimal, or a fraction such as 3/4. Arithmetic is exact, so fractions stay exact.
A whole number, a decimal, or a fraction such as 3/4. Arithmetic is exact, so fractions stay exact.
A whole number, a decimal, or a fraction such as 3/4. Arithmetic is exact, so fractions stay exact.
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter the equation in the form ax + b = c.
- 2
The solution appears with each rearrangement step shown.
Questions about Linear Equation Solver
What happens if a is zero?
The x term vanishes and the equation becomes a claim about constants. If b equals c the claim is true and every value of x satisfies it - an identity. If not, no value does. Those are two different answers, and the tool reports which rather than calling both "cannot solve".
Why does this say the answer is exact?
Because it is. The arithmetic runs on exact fractions over arbitrary-precision integers, not floating-point numbers, so 1/3 + 1/3 + 1/3 is exactly 1 rather than 0.9999999999999999, and there is no rounding anywhere in the calculation. Where a result genuinely cannot be written exactly - a square root, a logarithm, anything involving pi - the page says so and gives a stated number of correct digits instead.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Does the Linear Equation Solver work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Linear Equation Solver keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Linear Equation Solver uploaded or stored?
No. The Linear Equation Solver runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Related tools
Other tools you might reach for next.
Solve a pair of simultaneous linear equations exactly by Cramer's rule, distinguishing no solution from infinitely many.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.
Add two fractions exactly, showing the common denominator step and reducing the result.
Subtract one fraction from another exactly, showing the common denominator step.
Multiply two fractions exactly, multiplying across and reducing the result.
Divide one fraction by another exactly, by multiplying by the reciprocal.