FireCADCalc

Simultaneous Linear Equations (Two or Three Unknowns)

Solution of two or three simultaneous linear equations by Cramer's rule, with the determinant to show whether a unique solution exists.

Inputs

Examples: Three unknownsTwo unknowns

Equation 1

Equation 2

Equation 3

Results

Two unknowns: equation 3 and the z column are ignored.

x2.0000
y3.0000
z (0 for two unknowns)0
Determinant-5.0000

Download PDF CSV Link to this result Compare another case

Log in to save calculations to your dashboard.

Worked example

Example: Three unknowns. The inputs, in the units selected above:

InputValue
Number of unknownsThree (x, y, z)
Equation 1: coefficient of x2.0000 -
Equation 1: coefficient of y1.0000 -
Equation 1: coefficient of z-1.0000 -
Equation 1: coefficient of the right-hand side8.0000 -
Equation 2: coefficient of x-3.0000 -
Equation 2: coefficient of y-1.0000 -
Equation 2: coefficient of z2.0000 -
Equation 2: coefficient of the right-hand side-11.000 -
Equation 3: coefficient of x-2.0000 -
Equation 3: coefficient of y1.0000 -
Equation 3: coefficient of z2.0000 -
Equation 3: coefficient of the right-hand side-3.0000 -

Applying the formula below gives:

ResultValue
x2.0000
y3.0000
z (0 for two unknowns)-1.0000
Determinant-1.0000

Open this example in the calculator and change any input.

Formula

\(x_k = \frac{\det A_k}{\det A}\)

Variables

Symbol Meaning SI unit
\(n\) Number of unknowns -
\(a_{11}\) Equation 1: coefficient of x -
\(a_{12}\) Equation 1: coefficient of y -
\(a_{13}\) Equation 1: coefficient of z -
\(a_{14}\) Equation 1: coefficient of the right-hand side -
\(a_{21}\) Equation 2: coefficient of x -
\(a_{22}\) Equation 2: coefficient of y -
\(a_{23}\) Equation 2: coefficient of z -
\(a_{24}\) Equation 2: coefficient of the right-hand side -
\(a_{31}\) Equation 3: coefficient of x -
\(a_{32}\) Equation 3: coefficient of y -
\(a_{33}\) Equation 3: coefficient of z -
\(a_{34}\) Equation 3: coefficient of the right-hand side -
\(x\) x -
\(y\) y -
\(z\) z (0 for two unknowns) -
\(\det A\) Determinant -

Method and standards

Cramer's rule.

Where it is used

  • Small balances and circuit loops.
  • Examinations.

Common mistakes

  • Sign errors entering coefficients.
  • Near-zero determinants.

Assumptions and limits

  • Linear equations.
  • The system is treated as singular when |det A| is below 10⁻¹² times the product of the row lengths of A (the largest the determinant can be), so the test does not depend on the scale of the coefficients.

References

  • Cramer's rule

Questions and answers

2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3?

x = 2, y = 3, z = −1.

Zero determinant?

The equations are dependent or inconsistent.

Engineering use?

Mass and energy balances with a few unknowns.

Method and article reviewed by FireCAD engineering on 12 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.

Related calculators

Free engineering calculators: every page computes in SI and converts to your units. Results are for engineering estimation; verify critical designs against the referenced standards.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.