Linear Equation Solver
Solve a system of two linear equations with two unknowns using substitution or Cramer's rule.
Did this tool work for you?
How to use this calculator
x = (c₁b₂ − c₂b₁) / D; y = (a₁c₂ − a₂c₁) / D, where D = a₁b₂ − a₂b₁ (determinant).
- 1
Write your two equations in the form ax + by = c.
- 2
Enter the coefficients a and b, and the constant c for each equation.
- 3
The solver uses Cramer's rule to find x and y.
- 4
Verification rows confirm the solution satisfies both equations.
Frequently asked questions
What does it mean if there is no solution?
No solution means the two lines are parallel — they never intersect. This happens when the coefficient ratios are equal (a1/a2 = b1/b2) but the constant ratio differs. There is no (x, y) pair that satisfies both equations simultaneously.
What does "infinite solutions" mean?
Infinite solutions means the two equations describe the same line — one is a multiple of the other. Any point on the line satisfies both equations. This is a dependent system.
What is Cramer's rule?
Cramer's rule expresses each variable as a ratio of determinants. For a 2×2 system, x = Dx/D and y = Dy/D, where D is the determinant of the coefficient matrix, Dx replaces the x-column with constants, and Dy replaces the y-column. It is elegant but slower than Gaussian elimination for large systems.
Can I solve three equations with three unknowns?
This calculator handles 2×2 systems. For 3×3 or larger systems, use Gaussian elimination (row reduction). The principle is the same — the determinant must be non-zero for a unique solution.
Solving systems of linear equations
How to use the linear equation
Use this linear equation to olve a system of two linear equations with two unknowns using substitution or cramer\. Enter your values above and get your result in seconds. The tool is free, works on all devices, and keeps your data private — nothing is stored or shared.
How the linear equation works
The linear equation solver uses standard formulas used in mathematics, science, and engineering. Enter your inputs, and the tool calculates the result instantly in your browser. No server-side processing means your data stays on your device. Results update in real time as you change inputs.
Three methods for solving simultaneous equations
Substitution: solve one equation for x, substitute into the other. Elimination: add/subtract multiples of equations to eliminate one variable. Cramer's rule: use determinants for a direct formula. All three give the same answer; substitution and elimination are preferred for hand calculation; Cramer's rule is elegant for 2×2 systems.
Geometric interpretation
Each linear equation represents a straight line. Two lines either intersect (unique solution), are parallel (no solution), or are the same line (infinite solutions). Solving the system finds the intersection point — the coordinates where both lines meet.
Applications of simultaneous equations
Mixture problems (combining solutions of different concentrations), break-even analysis (revenue line meets cost line), supply and demand (market equilibrium), circuit analysis (Kirchhoff's voltage law), and GPS triangulation all reduce to solving systems of linear equations.
Linear equation: how it works
Built on well-established mathematical principles, this tool delivers accurate results for students, researchers, and professionals. Enter your values and get instant clarity without specialist software or manual arithmetic.
Who uses this tool?
Teachers, students, engineers, and data analysts use it to verify calculations, check homework, and solve problems faster. It is intuitive enough for beginners while comprehensive enough for professional use.
Learn more from an authoritative source:
WikipediaScientific Calculator
Evaluate mathematical expressions including trigonometry, logarithms, exponents, and more.
Percentage Calculator
Quickly calculate percentages, percentage change, and percentage of a total.
Fraction Calculator
Add, subtract, multiply, or divide two fractions and get the simplified result instantly.
Ratio Calculator
Simplify ratios, find missing values, and scale ratios up or down.
Results are estimates for informational purposes only and do not constitute professional financial, medical, legal, or technical advice. Read full disclaimer →