System of Equations Calculator

Solve a two-by-two linear system with Cramer's rule and identify systems without a unique solution.

Two-equation linear solver
Enter coefficients for two equations in standard form, where each row represents a times x plus b times y equals c.

Equation 1

Equation 2

About systems of linear equations

A system of two linear equations asks for values of two variables that satisfy both equations at the same time. In standard form, each equation combines a coefficient of x, a coefficient of y, and a constant on the other side. Geometrically, each equation represents a line. A unique solution is the point where two nonparallel lines intersect. This calculator uses Cramer's rule for a two-by-two system. It first computes the coefficient determinant by multiplying the first x coefficient by the second y coefficient and subtracting the product of the second x coefficient and first y coefficient. When that determinant is nonzero, replacing one coefficient column at a time with the constants gives two additional determinants. Dividing those by the coefficient determinant yields x and y. The displayed answer is rounded to six decimal places with unnecessary trailing zeroes removed. A zero determinant means the coefficient rows are linearly dependent, so there is no unique intersection. The two equations may describe the same line, giving infinitely many solutions, or distinct parallel lines, giving no solution. Phase 1 reports both cases as no unique solution because either case cannot produce one ordered pair. Substitution into the original equations can distinguish them, but the central warning remains the same: division by the coefficient determinant is not valid. Systems of equations model situations where several constraints apply simultaneously. Typical examples include finding ticket prices from total attendance and revenue, separating mixtures, balancing supply and demand, comparing phone plans, locating intersections, and solving elementary circuit equations. Larger systems appear in engineering, economics, computer graphics, statistics, and numerical simulation. The two-variable case is especially useful for learning elimination, substitution, determinants, and matrix notation because every step can be checked by hand. Enter decimals, integers, positive values, negative values, or zero as needed. Be careful to move every term into the stated standard form before entering coefficients. If an equation lacks one variable, its coefficient is zero rather than blank. Signs must follow the rearranged equation exactly. After calculating, verify a unique result by substituting x and y back into both original equations. Small floating-point rounding can appear for fractional solutions, but six displayed decimal places are sufficient for typical educational and practical problems.

System of equations examples

EquationsSolutionGeometry
x plus y equals 5; x minus y equals 1x equals 3, y equals 2The two lines intersect once.
2x plus y equals 7; x minus y equals 2x equals 3, y equals 1Substitution confirms both equations.
x plus y equals 4; 2x plus 2y equals 8No unique solutionBoth equations describe the same line.
x plus y equals 4; x plus y equals 6No unique solutionThe lines are parallel and distinct.

How to solve a system

  1. Rewrite both equations in standard form with variable terms on the left and constants on the right.
  2. Enter the three coefficients or constants for Equation 1.
  3. Enter the corresponding three values for Equation 2.
  4. Select Solve System and read the solution or no-unique-solution notice.

System of equations FAQ

What is a unique solution?

A unique solution is one ordered pair that satisfies both equations. Geometrically, it is the single point where two nonparallel lines intersect.

What does a zero determinant mean?

It means the coefficient rows are dependent and Cramer's rule cannot divide by the determinant. The system then has either no solution or infinitely many solutions.

How do I enter a missing variable?

Use zero for the missing variable's coefficient. Leaving the field blank is treated as incomplete input rather than a coefficient of zero.

Can I use decimal coefficients?

Yes, every field accepts finite decimal or integer values. Results are rounded to six decimal places for a stable readable display.

How can I check the result?

Substitute the displayed x and y values into both original equations. Each left side should equal its corresponding constant, allowing for normal decimal rounding.