Skip to main contentSkip to secondary navigation
HomemathSystem Solver

System of Equations Solver — 2-Variable Linear System

Solve systems of two linear equations with two variables using Cramer's rule. Get step-by-step solutions with unique, infinite, or no solution cases.

✓ Formula verified: January 2026
📐

System Solver

Results update instantly as you type

Enter Values

System
2x + 3y = 7 | 5x + -2y = 3
↑ Neutral
Determinant (D)-19
Solution TypeUnique solution
Step-by-Step WorkSystem of equations: 2x + 3y = 7 5x + -2y = 3 Determinant D = a₁·b₂ − a₂·b₁ = 2·-2 − 5·3 = -19 Dx = c₁·b₂ − c₂·b₁ = 7·-2 − 3·3 = -23 Dy = a₁·c₂ − a₂·c₁ = 2·3 − 5·7 = -29 D = -19 ≠ 0 → unique solution x = Dx / D = -23 / -19 = 1.210526 y = Dy / D = -29 / -19 = 1.526316
http://127.0.0.1:54963/math/system-of-equations
System of Equations Graph

Linear System — Two Lines

-30369-14-70714(1.2105, 1.5263)
2x + 3y = 75x + -2y = 3

Determinant (D)

-19

Solution

(1.210526, 1.526316)

The Formula

x = Dx/D, y = Dy/D where D = a₁b₂ − a₂b₁, Dx = c₁b₂ − c₂b₁, Dy = a₁c₂ − a₂c₁

Cramer's rule solves systems of two linear equations in two variables using determinants. Given the system a₁x + b₁y = c₁ and a₂x + b₂y = c₂, the main determinant D = a₁b₂ − a₂b₁ determines solvability. If D ≠ 0, the system has a unique solution: x = Dx/D and y = Dy/D, where Dx and Dy replace the x-column and y-column with constants. If D = 0 and Dx = Dy = 0, there are infinitely many solutions (the equations are dependent). If D = 0 and Dx ≠ 0 or Dy ≠ 0, there is no solution (the equations are inconsistent and represent parallel lines).

Variable Definitions

D

Main Determinant

D = a₁b₂ − a₂b₁. The determinant determines whether the system has a unique solution (D ≠ 0), infinite solutions (D = 0, Dx = Dy = 0), or no solution (D = 0, Dx or Dy ≠ 0). Geometrically, D ≠ 0 means the two lines intersect at a single point.

Dx

X-Determinant

Dx = c₁b₂ − c₂b₁. Replaces the x-coefficient column with the constants. Used with D to compute x = Dx/D when a unique solution exists.

Dy

Y-Determinant

Dy = a₁c₂ − a₂c₁. Replaces the y-coefficient column with the constants. Used with D to compute y = Dy/D when a unique solution exists.

x, y

Solution Variables

The two unknowns being solved for. Each pair (x, y) represents the intersection point of two lines in 2D space.

How to Use This Calculator

  1. 1

    Enter the coefficients for equation 1 in the form a₁x + b₁y = c₁. The coefficients a₁, b₁, and the constant c₁ are all required.

  2. 2

    Enter the coefficients for equation 2 in the form a₂x + b₂y = c₂. All six values (a₁, b₁, c₁, a₂, b₂, c₂) must be provided.

  3. 3

    The calculator computes the determinant D and reports whether the system has a unique solution, infinite solutions, or no solution.

  4. 4

    If a unique solution exists, the calculator displays x and y with step-by-step work showing Cramer's rule calculations.

  5. 5

    For dependent or inconsistent systems, the calculator explains the geometric meaning — parallel lines or coincident lines.

Quick Reference

FromTo
Unique solutionD = a₁b₂ − a₂b₁ ≠ 0 → one intersection point
Infinite solutionsD = 0, Dx = Dy = 0 → same line (coincident)
No solutionD = 0, Dx ≠ 0 or Dy ≠ 0 → parallel lines
Cramer's Rulex = Dx/D, y = Dy/D for D ≠ 0

Common Applications

  • Economics: Solve supply and demand equilibrium where two linear equations represent market conditions — find the price and quantity where supply equals demand.
  • Engineering: Analyze circuits with two unknowns using Kirchhoff's voltage and current laws, where each loop or node produces a linear equation.
  • Chemistry: Balance chemical reactions with two unknowns or solve mixture problems where two substances combine with different concentrations.
  • Computer Graphics: Find intersection points of lines for collision detection, ray tracing, and geometric computations in 2D space.
  • Education: Learn fundamental linear algebra concepts, practice Cramer's rule, and verify homework solutions for systems of equations.

Cramer's rule uses determinants D, Dx, and Dy to solve 2×2 linear systems. The sign of D determines if the solution is unique, infinite, or nonexistent, corresponding to intersecting, coincident, or parallel lines.

Understanding the Concept

Solving systems of linear equations is a cornerstone of algebra with applications spanning nearly every scientific and engineering discipline. Cramer's rule, named after the Swiss mathematician Gabriel Cramer (1704–1752), provides an elegant method for solving systems using determinants. For a 2×2 system a₁x + b₁y = c₁ and a₂x + b₂y = c₂, the determinant D = a₁b₂ − a₂b₁ serves as a quick test for solvability. If D ≠ 0, the two lines intersect at exactly one point — the unique solution (x, y) = (Dx/D, Dy/D). The geometric interpretation is intuitive: two non-parallel lines in a plane always intersect exactly once. If D = 0, the lines have the same slope: they are either parallel (no intersection, no solution) or coincident (the same line, infinite solutions). The distinction between these two cases is made by checking Dx and Dy. If both are also zero, the equations are multiples of each other, representing the same line. If either Dx or Dy is non-zero, the equations represent distinct parallel lines that never meet. This method extends naturally to larger systems — the same determinant-based logic works for 3×3, 4×4, and n×n systems, though computational complexity grows quickly. Cramer's rule is particularly valuable in theoretical contexts and for small systems because it provides explicit formulas without the need for Gaussian elimination or matrix inversion. In practice, Cramer's rule is most useful for 2×2 and 3×3 systems, while larger systems are typically solved using numerical methods like LU decomposition or iterative techniques.

Frequently Asked Questions

Related Calculators

Reviews

No reviews yet. Be the first to share your experience with System of Equations Solver — 2-Variable Linear System.

Write a Review

Your Rating *

0/1000

0/50

Related Calculators

Medical Disclaimer: The health and fitness calculators on this site are for informational and educational purposes only. They are not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider with any questions about your health.

Financial Disclaimer: The finance calculators on this site are for informational purposes only and do not constitute financial advice. Results are estimates based on the inputs provided and may vary. Consult a qualified financial advisor before making investment or financial decisions.

© 2026 TheCalcUniverse. All results are for informational purposes only.

Fast, free, and privacy-first.