algebra calculators

2x2 System of Equations Solver

Solve a pair of two-variable linear equations instantly using Cramer's rule. Enter coefficients for both equations to find the unique x and y values that satisfy the system simultaneously.

About this calculator

A 2×2 linear system has the form a₁x + b₁y = c₁ and a₂x + b₂y = c₂. Cramer's rule solves it using determinants. The main determinant is D = a₁·b₂ − a₂·b₁. Then x = (c₁·b₂ − c₂·b₁) / D and y = (a₁·c₂ − a₂·c₁) / D. If D = 0, the system is either inconsistent (no solution) or dependent (infinite solutions). This method is reliable for small systems and gives exact symbolic answers, making it popular in algebra courses and engineering contexts where two constraints define two unknowns.

How to use

Suppose you have the system: 2x + 3y = 8 and x − y = 1. Enter a1 = 2, b1 = 3, c1 = 8, a2 = 1, b2 = −1, c2 = 1. The determinant D = (2)(−1) − (1)(3) = −5. Then x = (8·(−1) − 1·3) / −5 = (−8 − 3) / −5 = −11 / −5 = 2.2. For y, compute (2·1 − 1·8) / −5 = (2 − 8) / −5 = −6 / −5 = 1.2. So x ≈ 2.2 and y ≈ 1.2.

Frequently asked questions

What is Cramer's rule and when should I use it to solve a system of equations?

Cramer's rule is an algebraic method that expresses the solution of a linear system as a ratio of determinants. It is best suited for small systems (2×2 or 3×3) where exact symbolic answers are needed. For larger systems, numerical methods like Gaussian elimination are more efficient. It is especially popular in academic settings because each variable can be solved independently without back-substitution.

What happens when the determinant D equals zero in a 2x2 system?

When D = a₁·b₂ − a₂·b₁ = 0, Cramer's rule breaks down because division by zero is undefined. This means the two equations are either parallel lines (no solution — the system is inconsistent) or the same line (infinite solutions — the system is dependent). You must inspect the constant terms c₁ and c₂ to distinguish between these two cases. The calculator will indicate that no unique solution exists.

How do I set up the coefficients a1, b1, c1, a2, b2, c2 from a word problem?

Write each equation in standard form: a₁x + b₁y = c₁ for the first equation and a₂x + b₂y = c₂ for the second. The coefficients of x are a₁ and a₂, the coefficients of y are b₁ and b₂, and the right-hand constants are c₁ and c₂. If a variable is missing from one equation, its coefficient is 0. Always align terms before reading off the values to avoid sign errors.