System of Equations Calculator
Enter two linear equations (e.g., 2x + 3y = 8 and x - y = 1) to find the solution (x, y). The calculator shows both the elimination and substitution methods.
System of Equations
Solve 2×2 linear systems step-by-step
A 2×2 linear system can have one solution (intersecting lines), no solution (parallel lines), or infinitely many solutions (same line). The calculator detects all three cases and shows the step-by-step method chosen.
How 2×2 Linear Systems Work
A system of two linear equations in two variables (x and y) can be written as:
**Equation 1**: a₁x + b₁y = c₁ **Equation 2**: a₂x + b₂y = c₂
**Three Possible Outcomes**: 1. **One unique solution** (intersecting lines): The lines cross at exactly one point (x, y). This occurs when the two lines have different slopes (a₁b₂ - a₂b₁ ≠ 0). 2. **No solution** (parallel, distinct lines): The lines never intersect. This occurs when the lines have the same slope but different intercepts (a₁b₂ - a₂b₁ = 0 and a₁c₂ ≠ a₂c₁). 3. **Infinitely many solutions** (same line)**: The two equations describe the same line. This occurs when the ratios a₁/a₂ = b₁/b₂ = c₁/c₂.
**Solution Methods**: - **Elimination**: Multiply one or both equations by constants so that adding them cancels one variable. Solve for the remaining variable, then back-substitute to find the other. - **Substitution**: Solve one equation for one variable (e.g., x = (c₁ - b₁y) ÷ a₁), substitute this expression into the second equation, solve for the remaining variable, then back-substitute to find the first variable.
**Example (Elimination)**: Solve x + y = 5 and x - y = 1. - Add the two equations: (x + y) + (x - y) = 5 + 1 → 2x = 6 → x = 3. - Substitute x = 3 into the first equation: 3 + y = 5 → y = 2. - Solution: (3, 2).
**Example (Substitution)**: Solve x + y = 5 and x - y = 1. - From the second equation: x = 1 + y. - Substitute into the first: (1 + y) + y = 5 → 1 + 2y = 5 → y = 2. - Then x = 1 + 2 = 3. - Solution: (3, 2).
**This calculator shows both methods side-by-side**, with the step-by-step algebra displayed in plain English - the differentiator confirmed by the research pass on crowded SERPs for system-of-equations calculators.'
- Three outcome cases (unique, no solution, infinite solutions)
- Elimination method displayed step by step
- Substitution method displayed step by step
- Coefficient validation and edge-case handling
Worked Example: Unique Solution (Elimination)
Example: Solve the system: 2x + 3y = 8 x - y = 1
**Elimination method**: 1. Write both equations: 2x + 3y = 8 ... (1) x - y = 1 ... (2) 2. Multiply (2) by 2 to align x coefficients: 2x - 2y = 2 ... (3) 3. Subtract (3) from (1): (2x + 3y) - (2x - 2y) = 8 - 2 → 5y = 6 → y = 6⁄5 = 1.2 4. Substitute y = 1.2 into (2): x - 1.2 = 1 → x = 2.2 5. **Solution**: (x, y) = (2.2, 1.2)
**Verification**: 2(2.2) + 3(1.2) = 4.4 + 3.6 = 8 ✓ and 2.2 - 1.2 = 1 ✓
Worked Example: Unique Solution (Substitution)
Example: Solve the same system using substitution: 2x + 3y = 8 ... (1) x - y = 1 ... (2)
**Step 1**: Solve (2) for x: x = 1 + y
**Step 2**: Substitute into (1): 2(1 + y) + 3y = 8 → 2 + 2y + 3y = 8 → 5y = 6 → y = 6⁄5 = 1.2
**Step 3**: Back-substitute y = 1.2 into x = 1 + y: x = 1 + 1.2 = 2.2
**Solution**: (x, y) = (2.2, 1.2) - same result as the elimination method.
**The calculator displays both methods with the algebraic steps in plain English**, so you can see how different approaches lead to the same answer.
Special Cases
- **No solution**: If the equations represent parallel lines (same slope, different intercepts), the calculator will display: 'No solution - the lines are parallel and never intersect.' Example: x + y = 2 and x + y = 5. - **Infinitely many solutions**: If the equations represent the same line, the calculator will display: 'Infinitely many solutions - both equations describe the same line.' Example: 2x + 4y = 6 and x + 2y = 3 (multiplying the second by 2 gives the first). - **Integer vs. decimal solutions**: The calculator provides exact answers (fractions or decimals) depending on the coefficients.
Related Calculators
RREF Calculator
Find the Reduced Row Echelon Form of a matrix with step-by-step row operations.
Open calculator →Discriminant Calculator
Find b² − 4ac and what it tells you about a quadratic's roots.
Open calculator →Perimeter Calculator
Find the perimeter of a rectangle, square, triangle or circle.
Open calculator →Simplify Radical Calculator
Reduce a square root to its simplest radical form, step by step.
Open calculator →Frequently Asked Questions
What if the equations have no solution?
The calculator detects parallel lines (same slope, different intercepts) and displays: 'No solution - the lines are parallel and never intersect.' This is a valid mathematical result.
Can I solve systems with 3 or more variables?
This calculator is optimized for 2×2 systems. Larger systems can be solved using matrix methods (Gaussian elimination, RREF) or specialized software, but the step-by-step logic becomes increasingly complex by hand.
What if the coefficients are very large or very small?
The calculator handles floating-point coefficients. Extremely large or small numbers may produce very large or very small solutions; the calculator displays them in decimal or scientific notation as appropriate.
Looking for a different calculator?
CalculatorPlus has free tools across finance, construction, math, health and more — each one showing the formula and a worked example.