Simultaneous Equation Solver (2x2 / 3x3)


Solve two equations in two unknowns or three equations in three unknowns. Useful for balances, intersections and small linear models. Enter each equation in coefficient order followed by its right-hand side.

Each field is labelled with its meaning. Use consistent units within one calculation. Results are rounded for display.

Choose a mode, enter values and calculate. Use decimal points; lists accept commas or spaces.

Two equations

Inserisci i valori:
Risultati:

Formula and method

Gaussian elimination with partial pivoting reduces the augmented matrix [A|b]. rank(A) = rank([A|b]) = n gives one solution; unequal ranks give none; equal ranks below n give infinitely many.

Worked example

x+y=3 and x-y=1 add to 2x=4, so x=2 and y=1. Enter rows 1,1,3 and 1,-1,1.

Read the result

A unique solution lists x, y and optionally z. Inconsistent and dependent systems deliberately have no numerical solution displayed.

Limits and edge cases

Each row needs exactly 3 or 4 finite numbers as labelled, each with magnitude at most 10^9. Rows are normalized and a 10^-12 pivot tolerance is used. Nearly singular or badly scaled systems may be classified as dependent; use exact algebra when small differences matter.

Frequently asked questions

What if a coefficient is missing?

Enter 0 for that coefficient, retaining the required order.

Why can the system have infinitely many solutions?

Some equations may repeat information, leaving one or more unknowns free.