Maths & numbers

Two linear equations solver

Solve two equations in x and y using their coefficients.

Two linear equations solver
Esc to restore

Your inputs

Results update as you type. Larger files run when you press Update result.

Your result

LOCAL & PRIVATE

Your result will appear here.

Your inputs stay in this browser. Nothing is uploaded or saved.

A clear answer. Here’s how.

Solves ax+by=c and dx+ey=f with a scaled determinant formula. A near-zero determinant is rejected as singular or numerically unstable; the tool does not claim a unique answer in that case. Uses floating-point arithmetic.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

First equation: x coefficient
2
First equation: y coefficient
1
First equation: right side
7
Second equation: x coefficient
1
Second equation: y coefficient
-1
Second equation: right side
2

Example result

x
3
y
1