Linear equations, one or two variables
Solve a single-variable equation (ax + b = c) or a system of two linear equations in x and y, with Cramer's rule handling the two-variable case — including correctly identifying when a system has no solution or infinitely many.
How to use
- Choose one equation or two
- Enter the coefficients (a, b, c for each equation)
- Press Solve to see the answer and the full step-by-step working
Common questions
What happens if my one-variable equation has no x term at all (a = 0)?
The tool doesn't treat that as an error — it checks whether what's left is always true (every number is a solution) or never true (no solution), and explains which case applies rather than dividing by zero.
In the two-variable mode, how does it know whether there's no solution or infinite solutions?
It computes the determinant a₁b₂ − a₂b₁ first. If that's non-zero there's exactly one answer, found with Cramer's rule. If it's zero, the two lines are parallel — the tool then checks whether they're the same line (infinite solutions) or genuinely parallel and distinct (no solution).