Two Linear Equations Calculator

Enter a₁ in a₁x+b₁y=c₁.
Enter b₁.
Enter c₁.
Enter a₂.
Enter b₂.
Enter c₂.
Math

Two Linear Equations: calculate results from explicit inputs, with a formula and worked example.

Formula

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

Example Calculation

Example inputs
  • a₁ in a₁x+b₁y=c₁: 1
  • b₁: 1
  • c₁: 5
  • a₂: 1
  • b₂: -1
  • c₂: 1

x + y = 5 and x − y = 1 have solution x = 3, y = 2.

Frequently asked questions

How do I use this calculator?

Enter a₁ in a₁x+b₁y=c₁, b₁, c₁, a₂, b₂, c₂. The result updates automatically. Use Reset to restore the example values.

What method does it use?

D = a₁b₂−a₂b₁; x = (c₁b₂−c₂b₁)/D; y = (a₁c₂−a₂c₁)/D. Real finite inputs. Numeric results use floating-point arithmetic; this is not a symbolic computer algebra system.

Why might a rounded result differ?

The calculation keeps full numeric precision internally, then rounds the displayed result. Rounding intermediate steps by hand can produce a slightly different answer.

Are my inputs saved online?

No. This calculator processes your inputs in your browser. A recently used list stores only calculator names on this device, not your entered values.

Check the assumptions and units before using this result. Read about calculation methods.