Maths & numbers

Linear equation solver

Solve a single equation of the form ax + b = c.

Linear equation solver
Esc to restore

Your inputs

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

Your result

Your result will appear here.

More actions

Your inputs stay in this browser. Nothing is uploaded, and nothing is saved unless you choose “Save result”.

A clear answer. Here’s how.

For non-zero a, x=(c−b)/a. When a is zero, distinguishes no solution from infinitely many solutions by comparing b and c. Uses ordinary floating-point arithmetic.

See a worked example

Worked example

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

Coefficient a
3
Constant b
5
Right side c
20

Example result

x
5