Algebra / FREE CALCULATOR

Linear equation

Solve an equation in the form ax + b = c. See the subtraction and division steps, including the special case where a is zero.

Start with your numbers

Enable JavaScript to calculate. The formula and example below remain available.

The formula

ax + b = c → x = (c − b) / a, when a ≠ 0

A worked example

For 3x + 5 = 20, subtract 5 to get 3x = 15, then divide by 3 to find x = 5.

A useful thing to know

What happens if a = 0? If b = c, every real number is a solution. If b and c differ, there is no solution.

Using your answer

Write down the inputs and the method as well as the final answer. If a result looks surprising, check signs, units and weights first. This tool uses your numbers exactly as entered and cannot know your teacher’s marking scheme. Decimal results are rounded to a maximum of six decimal places.

Found an issue? Send a correction with the calculator name and an example.