ThisCalculator

Everyday

Mr J One Step Equation? Solve It Now

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

This calculator solves a one-step linear equation of the form x + a = b, x − a = b, a · x = b, or x / a = b for the unknown x. You enter the two numbers from your equation (the constant and the result), pick the operation, and the calculator returns the value of x that makes the equation true. It also shows the inverse operation used, so you can check your own algebra work.

Formula

The general one-step equation has the form:

  • Addition: x + a = b → x = b − a
  • Subtraction: x − a = b → x = b + a
  • Multiplication: a · x = b → x = b / a
  • Division: x / a = b → x = b · a

In every case, the variable x is the unknown (no unit), a is the constant that is added, subtracted, multiplied, or divided, and b is the result on the other side of the equals sign.

Worked Example

Using the default values: a = 5, b = 12, and the operation is “addition” (x + 5 = 12).

  1. Start with the equation: x + 5 = 12.
  2. To isolate x, subtract 5 from both sides: x = 12 − 5.
  3. Compute: x = 7.

The calculator returns x = 7, which matches the manual result. If you change the operation to multiplication (5·x = 12), the calculator gives x = 12 / 5 = 2.4.

How to Use the Calculator

Enter the two numbers from your equation. The first box is the constant (the number attached to the variable or the number being added/subtracted), and the second box is the result on the right side of the equals sign. Then select the operation that appears in your equation. The calculator instantly shows the value of x. For example, for the equation 3·x = 21, enter a = 3, b = 21, choose “multiply,” and get x = 7. For x − 4 = 10, enter a = 4, b = 10, choose “subtract,” and get x = 14.

When to Use This Tool

This calculator is designed for basic algebra practice, homework checks, or quick mental math verification. It is especially helpful when you are learning inverse operations or preparing for a test on one-step equations. It is not intended for multi-step equations, inequalities, or systems of equations—those require different methods. The tool also works with negative numbers and decimals, so you can check problems like x + (−3) = 7 or 0.5·x = 2.

Common Mistakes and How to Avoid Them

  • Mixing up the operation: For x − 5 = 12, the inverse is addition (x = 12 + 5 = 17), not subtraction. Always do the opposite operation.
  • Forgetting to apply the operation to both sides: Whatever you do to one side, you must do to the other. This calculator assumes you understand that principle.
  • Ignoring signs: If the constant is negative, the inverse operation changes sign. For x + (−5) = 12, you add 5 to both sides, giving x = 17.
  • Division by zero: If you choose multiplication and enter a = 0, the equation becomes 0·x = b. If b is also 0, any x works; if b is not 0, there is no solution. The calculator will show an error or undefined result.

Limitations of the Formula

The one-step equation model only works when the variable appears exactly once and is only affected by a single operation. It cannot handle equations like 2x + 3 = 11 (two steps) or x² = 16 (quadratic). For those, you need more advanced methods. Also, the calculator does not simplify expressions or show the intermediate steps—it only gives the final answer. If you need step-by-step guidance, use it as a check after solving manually.

Frequently Asked Questions

What is a one-step equation?

A one-step equation is an algebraic equation that can be solved in a single operation, such as x + 3 = 10 or 4x = 20. The goal is to isolate the variable by performing the inverse operation on both sides.

How do I solve x + 5 = 12?

Subtract 5 from both sides: x = 12 − 5 = 7. The calculator does this automatically when you select “addition.”

What if the equation has a negative number?

Treat the negative sign as part of the constant. For x − (−3) = 7, rewrite as x + 3 = 7, then subtract 3 from both sides to get x = 4. The calculator accepts negative inputs.

Can this calculator handle decimals?

Yes, you can enter decimals in the constant and result fields. For example, 0.5·x = 2 gives x = 4. The output is rounded to 4 decimal places by default.

Why do I get an error when I enter a = 0 for multiplication?

Because 0·x = b has no solution unless b is also 0. Division by zero is undefined in standard arithmetic, so the calculator cannot produce a valid result.

Does this work for equations like x/2 = 5?

Yes. Choose “division” as the operation, enter a = 2 and b = 5. The calculator multiplies b by a to get x = 10.

Related

Formula used
in a | Constant (a) | - | 5 | 
in b | Result (b) | - | 12 | 
sel op | Operation | add=1, subtract=2, multiply=3, divide=4 | 
out x | Solution (x) | - | (op==1 ? b-a : op==2 ? b+a : op==3 ? b/a : b*a) | 4

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.