How to solve a linear equation

Enter the coefficients and constants requested by the calculator. For an equation such as ax + b = c, the solution can be checked by substituting the calculated value of x back into the original equation.

Common use

Use this tool for one-variable linear equations and to review the algebraic steps behind the result.

MATH CALCULATORS

Linear Equation Calculator

Solve ax + b = c and see the algebra steps used to isolate x.

Solve ax + b = c

Linear equation formula

For ax + b = c, when a is not zero, x = (c − b) ÷ a.

How to solve a linear equation

  1. Subtract b from both sides.
  2. Divide both sides by a.
  3. Check the value of x in the original equation.

Worked example

For 2x + 4 = 10, subtract 4 to get 2x = 6, then divide by 2. Therefore x = 3.

Common mistakes

Keep the sign of b when subtracting it from both sides, and do not divide by a before moving the constant term. A quick substitution back into the original equation helps verify the result.

When to use this calculator

This tool is designed for one-variable linear equations in the form ax + b = c. It is useful for algebra practice, homework checks and quick verification of a known equation.

Important limitation

This tool solves the one-variable form ax + b = c. If a equals zero, the equation becomes a constant statement and may have no solution or infinitely many solutions depending on b and c.

Related calculators

Quadratic Equation Calculator · Percentage Calculator · Ratio Calculator · Average Calculator · All Calculators

How this calculation is checked

The solver applies the stated equation, validates required coefficients, handles edge cases and explains how to verify the result by substitution.

See Calcora calculation methodology for formulas, assumptions and checking standards.

Common questions

How should I check the answer?

Substitute the calculated value back into the original equation. The two sides should agree within normal rounding.

What if the inputs do not define one solution?

The solver reports special cases such as no solution or infinitely many solutions instead of forcing a misleading numeric answer.

Checking a linear equation result

A linear equation has a constant rate of change and can be verified by substituting the calculated value back into the original equation.

Worked check

For 3x + 5 = 20, subtract 5 and divide by 3 to obtain x = 5. Substituting 5 gives 15 + 5 = 20, confirming the result.

Special cases

An equation can have no solution or infinitely many solutions when both sides simplify to inconsistent or identical statements. These cases should not be forced into a single numeric answer.

Understand the structure before solving

A linear equation in one variable can be rearranged into ax + b = c. When a is not zero, isolate the variable by undoing addition or subtraction first, then divide by the coefficient. For example, 3x + 5 = 20 becomes 3x = 15 and then x = 5.

Verification by substitution

Substitute x = 5 into the original equation: 3(5) + 5 = 20. Both sides match, so the solution checks out. This step can reveal sign errors or arithmetic slips.

Special cases

If the coefficient of x becomes zero, do not divide by it. An equation such as 0x = 4 has no solution, while 0x = 0 is true for every real x. A calculator designed only for non-zero coefficients should explain this limitation rather than return an arbitrary number.

Frequently asked questions

Why do I perform the same operation on both sides?

Applying the same valid operation to both sides preserves equality, so the solution set remains unchanged.

Can a linear equation have no solution?

Yes. If simplification produces a false statement such as 0 = 4, there is no solution.

How do I check the answer?

Replace the variable with the result in the original equation and verify both sides are equal, allowing for rounding.