ThisCalculator

Everyday

Subject of the Formula Calculator: How to Rearrange Equations

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 rearranges a given formula to make any chosen variable the subject. You enter the formula as a standard algebraic expression, select the variable you want to isolate, and the calculator returns the rearranged equation step by step. It works for linear, quadratic, and simple exponential relationships, showing each algebraic operation so you can follow the logic.

Formula

The calculator applies inverse operations to isolate the chosen variable. For a general equation f(x, y, z) = 0, it treats the expression as an equality with zero on one side and then performs the same operation on both sides until the target variable stands alone. For example, to make x the subject of y = 2x + 3, it subtracts 3 from both sides and then divides by 2, giving x = (y − 3) / 2.

Worked Example

Using the default expression x^2 + 3x − 4 = 0 and making x the subject:

  1. Start with the equation: x^2 + 3x − 4 = 0.
  2. Add 4 to both sides: x^2 + 3x = 4.
  3. Complete the square: (x + 1.5)^2 − 2.25 = 4.
  4. Add 2.25: (x + 1.5)^2 = 6.25.
  5. Take the square root: x + 1.5 = ±2.5.
  6. Subtract 1.5: x = 1 or x = −4.

The calculator shows the rearranged form x = (−3 ± √(9 + 16)) / 2 which simplifies to the same two solutions.

When to Use This Calculator

Use this tool when you have a formula and need to solve for a variable that is not isolated. Common situations include:

  • Converting between units when the conversion factor is part of a larger equation.
  • Rearranging physics formulas like v = u + at to find acceleration.
  • Solving financial formulas for interest rate or time when the principal and amount are known.
  • Preparing for exams where showing the rearrangement steps is required.

How to Read the Result

The output shows the equation with the chosen variable on the left side and everything else on the right. For equations with multiple solutions (like quadratics), the result includes a ± symbol. The calculator also provides the intermediate steps, so you can verify each operation. If the expression contains a variable other than the one you selected, it remains in the result as a parameter.

Common Mistakes and How to Avoid Them

A frequent error is forgetting to apply an operation to both sides of the equation. For example, when dividing by a term, you must divide every term on both sides. Another common mistake is mixing up the order of inverse operations: addition and subtraction come before multiplication and division. Also, be careful with signs when moving terms across the equals sign. The calculator handles these automatically, but understanding the logic helps you check the output.

Limitations of the Formula

This calculator works for algebraic equations that can be rearranged using standard operations. It does not handle trigonometric equations, logarithms, or implicit functions where the variable appears in multiple non-linear terms that cannot be separated. For those cases, numerical methods or graphing tools are more appropriate. Additionally, the calculator assumes the equation is set to zero; if your formula has a different structure, you may need to rearrange it manually first.

Alternatives to an Online Calculator

If you prefer to rearrange formulas by hand, the same inverse-operation method applies. Practice with simple linear equations before moving to quadratics. For complex formulas, computer algebra systems (CAS) like Mathematica or SymPy can perform symbolic rearrangement, but they require more setup. For quick checks, a graphing calculator or spreadsheet solver can also find numerical solutions, though they won’t show the algebraic steps.

Frequently Asked Questions

Can this calculator handle equations with fractions? Yes, it treats fractions as division and applies inverse operations accordingly. For example, y = (x + 2)/3 becomes x = 3y − 2.

What if the variable appears more than once? The calculator attempts to collect like terms and factor. If that is not possible, it may not produce a simple subject. For instance, x^2 + xy = 1 can be solved for x using the quadratic formula, which the calculator displays.

Does it work for inequalities? No, this tool is for equations only. For inequalities, the direction of the inequality sign changes when multiplying or dividing by a negative number, which requires separate handling.

Can I use any letter as the variable? The calculator uses x as the default variable, but you can replace it with any letter in the expression. The output will use that letter.

Why does the result sometimes show a ± sign? That indicates two possible solutions, typical for quadratic or higher-degree equations. Both values satisfy the original equation.

Is the calculator useful for physics formulas? Yes, any algebraic formula can be rearranged. For example, from F = ma you can get a = F/m by dividing both sides by m.

Related

Formula used
in expr | Formula (use x as variable) | - | x^2 + 3*x - 4 | 0
sel subj | Make subject | x=0, y=1, z=2 | 0
out result | Rearranged equation | - | (x^2 + 3*x - 4) | 2

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.