System of Linear Equations Solver (2 Equations)
Solve two linear equations in two unknowns (a1x + b1y = c1, a2x + b2y = c2) with Cramer's rule, including the parallel-lines edge cases.
- x
- 2
- y
- 1
How it works
Cramer's rule solves a1x + b1y = c1 and a2x + b2y = c2 using determinants. The main determinant D = a1b2 − a2b1 comes from the coefficient matrix; when it's nonzero, the two lines cross at exactly one point: x = (c1b2 − c2b1) ÷ D and y = (a1c2 − a2c1) ÷ D.
When D = 0, the two lines have the same slope, so they never cross at a single point — they're either the exact same line (infinitely many solutions, when the constants are proportional too) or two distinct parallel lines that never meet (no solution). This calculator checks for both cases explicitly rather than dividing by zero.
FAQ
What does it mean if the calculator says there are infinitely many solutions?
It means both equations describe the exact same line, just written differently (e.g. one is a multiple of the other, like 2x+4y=6 and x+2y=3) — every point on that line satisfies both equations, so there's no single unique answer.
Can this solve three equations in three unknowns?
No — this solves exactly two equations in two unknowns (x and y). A 3-variable system needs a 3x3 determinant and a different input layout, which isn't what this calculator is built for.
Related calculators
- Percentage Calculator
- Quadratic Equation Solver
- GCD & LCM Calculator
- Circle Area & Circumference Calculator
- Right Triangle Calculator (Pythagorean Theorem)
- Ratio Simplifier
- Exponent & Root Calculator
- Oblique Triangle Solver (Law of Cosines)
- Distance, Midpoint & Slope Calculator
- Permutations & Combinations Calculator (nPr, nCr)
- Arithmetic & Geometric Sequence Calculator
- Regular Polygon Calculator
- Z-Score & Percentile Calculator
- Cubic Equation Solver
- Prime Factorization Calculator
- Half-Life Decay Calculator
- Vector Calculator (Dot Product, Cross Product, Angle)
- Ohm's Law Calculator
- Projectile Motion Calculator
- Matrix Determinant & Inverse Calculator (2x2 / 3x3)
- Ideal Gas Law Calculator (PV = nRT)
- Snell's Law Calculator (Refraction Angle)
- Wire Resistance Calculator
- Clock Angle Calculator
- Pythagorean Means Calculator (AM, GM, HM)
- Number Base Converter (Decimal to Binary, Octal, Hex)
- Dice Probability Calculator
- Pythagorean Triple Generator
- Binomial Probability Calculator
- Torque Calculator
- Law of Sines Triangle Solver
- Modular Exponentiation Calculator
- Simple Pendulum Period Calculator
- Kinetic Energy Calculator
- Complex Number Calculator
- Circular Sector & Arc Length Calculator
- System of 3 Linear Equations Solver
- Reynolds Number Calculator
- Coulomb's Law Calculator
- Speed of Sound in Air Calculator
- Thin Lens Equation Calculator
- Centripetal Force Calculator
- Resistors in Series and Parallel Calculator
- RC Circuit Time Constant Calculator
- Escape Velocity Calculator
- Doppler Effect Calculator
- Birthday Paradox Calculator
- Ellipse Area, Circumference & Eccentricity Calculator
- Hyperbola Calculator
- Hooke's Law Spring Calculator
- Molarity (Molar Concentration) Calculator
- Momentum & Impulse Calculator
- Kepler's Third Law Orbital Period Calculator
- Triangle Area from Coordinates Calculator
- Beer-Lambert Law Absorbance Calculator
- LC Circuit Resonant Frequency Calculator