← All calculatorsMath

System of Equations

Solves two simultaneous linear equations in x and y using determinants, and distinguishes a unique solution from parallel lines and coincident lines.

Determinant
-14
x =
1.928571
y =
2.714286

How to use the System of Equations

  1. Write both equations in the standard form ax + by = c.
  2. Enter a₁, b₁ and c₁ from the first equation, keeping every sign.
  3. Enter a₂, b₂ and c₂ from the second.
  4. Check the determinant first: a non-zero value means one intersection point exists.
  5. Read x and y, then substitute both back into the original equations to confirm.

How the calculation works

Two linear equations in two unknowns describe two straight lines. Solving the system means finding where they cross. Cramer's rule expresses that intersection through determinants: the main determinant D = a₁b₂ − a₂b₁ measures how independent the two equations are, and the numerators substitute the constant column into the coefficient matrix. It is exactly equivalent to elimination or substitution, but it is a single closed-form expression, which makes it ideal for a calculator.

The determinant carries the geometry. When D is non-zero the lines have different gradients and meet at exactly one point. When D is zero they are parallel: either they never meet (inconsistent, no solution) or they are the same line written twice (dependent, infinitely many solutions). A determinant close to but not exactly zero signals a near-degenerate system, where the intersection point is real but extremely sensitive to small changes in the coefficients — a genuine warning sign in engineering and regression work, not just a curiosity.

Beyond textbooks, 2×2 systems appear whenever two constraints act on two quantities: mixing two solutions to hit a target concentration, splitting an investment between two rates to hit a target return, or finding the break-even point where a cost line meets a revenue line. Setting the problem up correctly — deciding what x and y represent and writing one honest equation per constraint — is harder than the algebra.

Formula
D = a₁b₂ − a₂b₁; x = (c₁b₂ − c₂b₁) / D; y = (a₁c₂ − a₂c₁) / D

Source: Cramer's rule, published by Gabriel Cramer in Introduction à l'analyse des lignes courbes algébriques (1750); standard in linear algebra texts.

Worked example

Tickets cost $8 for adults and $5 for children. 200 tickets sold for $1,330. How many of each?

  1. Constraint 1 (count): 1x + 1y = 200, so a₁ = 1, b₁ = 1, c₁ = 200.
  2. Constraint 2 (money): 8x + 5y = 1330, so a₂ = 8, b₂ = 5, c₂ = 1330.
  3. Determinant: D = 1×5 − 8×1 = −3.
  4. x = (200×5 − 1330×1) / −3 = (1000 − 1330) / −3 = 110.
  5. y = (1×1330 − 8×200) / −3 = (1330 − 1600) / −3 = 90.

110 adult tickets and 90 child tickets — check: 110 + 90 = 200 and 8×110 + 5×90 = 1,330.

Frequently asked questions

What does a zero determinant mean in practice?+

The two equations carry the same directional information. Either they contradict each other, in which case nothing satisfies both, or one is a multiple of the other, in which case every point on that single line works.

Can I solve three equations in three unknowns here?+

Not with this calculator — it is built for 2×2. For 3×3 systems use the matrix calculator, which handles determinants and inversion at that size.

Is Cramer's rule better than elimination?+

For 2×2 it is faster and easier to automate. For large systems it becomes computationally impractical, and numerical software uses Gaussian elimination or LU decomposition instead.

Why is my answer slightly off a round number?+

Floating-point division rarely lands exactly on integers. A result of 109.99999999 means 110; round to the precision your problem actually has.

Last reviewed August 31, 2026. We review this page whenever the underlying formula, tax year, published rate or standard changes.

Related

More in Math