Solve ax^2 + bx + c = 0 with an exact discriminant, giving exact rational roots where they exist and complex roots where they do not.
Two Variable Equation Solver
Solve a pair of simultaneous linear equations exactly by Cramer's rule, distinguishing no solution from infinitely many.
- 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.
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 both equations in the form ax + by = c.
- 2
The determinant is computed first; Cramer's rule gives the solution when it is non-zero.
Questions about Two Variable Equation Solver
What does a zero determinant mean?
That the two lines are parallel, which splits into two cases the tool tells apart. If the sub-determinants are also zero the equations describe the same line and every point on it is a solution - infinitely many. If not, the lines are parallel and distinct and never meet - no solution. A zero determinant on its own does not say which, so both numerators are checked.
Why is this exact when elimination on a computer usually is not?
Because the arithmetic runs on exact fractions. Floating-point elimination can turn a determinant that should be exactly zero into 1e-16, at which point the system is declared solvable and the "solution" is numerical noise. Here a singular system is detected because its determinant is zero.
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 Two Variable Equation Solver work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Two Variable Equation Solver keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Two Variable Equation Solver uploaded or stored?
No. The Two Variable 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 ax + b = c exactly, with the working shown, and distinguish an identity from a contradiction when a is zero.
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.