System of Linear Equations Solver – Solve 2x2 Equation Systems
Solve a system of two linear equations with two variables online. Our free solver uses substitution and elimination methods to find exact solutions with step-by-step explanations.
Equation Format:
a₁x + b₁y = c₁
a₂x + b₂y = c₂
Equation 1
Equation 2
Understanding Systems of Linear Equations
A system of linear equations is a set of two or more equations with the same variables. The solution is the point where all equations are satisfied simultaneously – geometrically, where the lines intersect. For two equations with two variables, you're finding the single (x, y) point that lies on both lines.
These systems appear everywhere: balancing chemical equations, optimizing business profits, analyzing electrical circuits, and solving mixture problems. Master the elimination and substitution methods, and you can tackle a huge range of practical problems.
Solution Methods Explained
Elimination Method
Add or subtract equations to eliminate one variable, solve for the other, then substitute back.
- Multiply equations to match coefficients
- Add or subtract to eliminate a variable
- Solve for the remaining variable
- Substitute back to find the other
Substitution Method
Solve one equation for one variable, substitute into the other equation, then solve.
- Solve one equation for x or y
- Substitute that expression into the other equation
- Solve for the remaining variable
- Substitute back to find the other variable
Worked Examples
Example 1: Basic elimination
Problem: Solve 2x + 3y = 8 and 4x - y = 5
Solution (Elimination): Multiply equation 2 by 3: 12x - 3y = 15
Add to equation 1: 14x = 23, so x = 23/14 ≈ 1.64
Substitute back: 4(23/14) - y = 5, solve for y = 11/7 ≈ 1.57
Example 2: Substitution method
Problem: Solve x + y = 10 and 2x - y = 5
Solution: From equation 1: y = 10 - x
Substitute into equation 2: 2x - (10 - x) = 5
Simplify: 3x - 10 = 5, so 3x = 15, x = 5
Then y = 10 - 5 = 5. Solution: (5, 5)
Example 3: Infinite solutions
Problem: Solve x - 2y = 3 and 3x - 6y = 9
Solution: Notice equation 2 = 3 × equation 1. They're the same line!
Every point on the line is a solution. Infinite solutions: (x, y) where x = 3 + 2y.
Example 4: No solution (parallel lines)
Problem: Solve 2x + 4y = 8 and x + 2y = 5
Solution: Multiply equation 2 by 2: 2x + 4y = 10
But equation 1 says 2x + 4y = 8. Contradiction!
The lines are parallel (same slope, different intercepts). No solution exists.
Example 5: Real-world application
Problem: Adult tickets cost $12, child tickets cost $8. 50 tickets sold for $500. How many of each?
Solution: Let a = adult tickets, c = child tickets.
a + c = 50 (total tickets)
12a + 8c = 500 (total revenue)
Solution: a = 25 adult tickets, c = 25 child tickets.
Quick Fact
The method of solving simultaneous equations dates back over 2,000 years to ancient China. The "Nine Chapters on the Mathematical Art" (circa 200 BCE) describes a method called "fangcheng" that's essentially Gaussian elimination – the same technique taught in algebra classes today. The Babylonians also solved systems of equations around 1800 BCE using geometric methods.
Types of Solutions
Unique Solution
Lines intersect at exactly one point.
Different slopes
No Solution
Lines are parallel and never meet.
Same slope, different intercepts
Infinite Solutions
Lines are identical (coincident).
Same slope and intercept
Frequently Asked Questions
Which method is better: elimination or substitution?
It depends on the equations. If one variable has coefficient 1 or -1, substitution is often easier. If coefficients are already matched or easily matched, elimination is faster. Both methods always give the same answer – choose whichever feels more comfortable.
How do I know if a system has no solution?
During elimination, if you get a contradiction like 0 = 5, there's no solution. The lines are parallel. Algebraically, this happens when the coefficients are proportional but the constants aren't.
What does it mean when I get 0 = 0?
That means infinite solutions! The equations represent the same line. Any point on that line satisfies both equations. Express the solution as one variable in terms of the other, like "x = 3 + 2y for any y."
Can I solve systems with more than 2 variables?
Yes! You need as many equations as variables. For 3 variables, you need 3 equations. The methods extend: eliminate variables one at a time until you have one equation with one variable. This is called Gaussian elimination.
How do I check my solution?
Substitute your x and y values back into BOTH original equations. If both equations are satisfied (left side equals right side), your solution is correct. Always check – it catches arithmetic errors.
What if my answer has fractions?
Fractional answers are perfectly valid! Not all solutions are nice integers. Keep fractions exact rather than converting to decimals unless the problem specifically asks for decimal approximation.
Other Free Tools
Linear Equation Solver – Solve ax + b = c Online
Solve any linear equation of the form ax + b = c instantly with our free online linear equation solver. Get step-by-step solutions for one-variable linear equations.
Quadratic Equation Solver – Find Roots of ax² + bx + c = 0
Solve any quadratic equation instantly with our free online quadratic equation solver. Find real and complex roots using the quadratic formula with detailed step-by-step solutions.
Polynomial Evaluator – Calculate Polynomial Value at Any x
Evaluate any polynomial expression at a given value of x with our free online polynomial evaluator. Supports polynomials of any degree with instant accurate results.
Linear Inequality Solver – Solve and Graph Inequalities Online
Solve linear inequalities instantly with our free online inequality solver. Get solutions displayed on a number line with clear step-by-step explanations for all inequality types.
Simplify Expression Calculator – Simplify Algebraic Expressions
Simplify any basic algebraic expression instantly with our free online simplify expression calculator. Combine like terms and reduce expressions to their simplest form with ease.
Matrix Addition & Subtraction Calculator – Compute Matrices Online
Add or subtract any two matrices with our free online matrix calculator. Supports all matrix sizes with instant results and element-wise computation displayed clearly.
Matrix Inverse Calculator – Find Inverse of Any Matrix
Find the inverse of any invertible square matrix with our free online matrix inverse calculator. Uses row reduction method with step-by-step solution for 2x2, 3x3, and larger matrices.
Free Online Standard Calculator – Fast & Easy Math
Use our free standard calculator online to perform quick arithmetic operations including addition, subtraction, multiplication, and division. Simple, fast, and accurate for everyday math needs.