Make x the Subject Calculator: Rearranging Formulas
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 formula of your choice to make x the subject. You enter the equation as you would write it (for example, y = 2*x + 3), tell it which variable you want to isolate, and it returns the rearranged equation along with a step-by-step solution showing exactly how it was done. It works for linear, quadratic, and many other algebraic forms, and it is a reliable way to check your own rearrangement work.
Formula
There is no single “formula” for rearranging an equation because the steps depend on the structure of the equation. The general goal is to use inverse operations to isolate the chosen variable on one side of the equals sign. For a linear equation like a*x + b = c, the rearrangement is:
x = (c − b) / a
where:
- x is the subject variable (the one you are solving for),
- a is the coefficient of x,
- b is the constant term added to a*x,
- c is the value on the other side of the equation.
For more complex equations, the calculator applies the same logic step by step: it adds, subtracts, multiplies, divides, squares, or takes roots as needed to peel away the operations around the target variable.
Worked Example
Using the default equation y = 2*x + 3 and making x the subject:
- Start with the equation:
y = 2*x + 3 - Subtract 3 from both sides:
y − 3 = 2*x - Divide both sides by 2:
(y − 3) / 2 = x - Rewrite with x on the left:
x = (y − 3) / 2
So the rearranged equation is x = (y − 3) / 2. If you plug in y = 7, you get x = (7 − 3)/2 = 2, which matches the original equation: 7 = 2*2 + 3.
How the Calculator Works
The calculator parses your equation into a symbolic form, identifies the variable you want to isolate, and then applies a series of algebraic transformations. It uses the same rules you would use by hand:
- Perform the same operation on both sides of the equation.
- Undo addition/subtraction before multiplication/division.
- For powers and roots, apply the inverse operation.
- Collect all terms containing the target variable on one side, if they appear in multiple places.
For example, if you enter y = a*x + b and ask for x, it will output x = (y − b) / a. If the variable appears in a denominator, it will multiply through first. The calculator does not handle every exotic equation (like trigonometric identities or differential equations), but it covers the vast majority of high-school and early-university algebra.
When to Use It
You would use a rearranging calculator when you need to solve for a variable that is not already isolated. Common situations include:
- Physics formulas: solving for time, mass, or velocity in equations like
v = u + a*t. - Finance: rearranging compound interest or loan formulas to find the interest rate or number of periods.
- Geometry: finding a dimension from area or volume formulas (e.g., solving for height in
A = (b*h)/2). - Chemistry: using the ideal gas law
PV = nRTto solve for any of the four variables.
It is also a great study aid: you can check your own steps after doing the rearrangement by hand, and see exactly where you might have gone wrong.
Common Mistakes and How to Avoid Them
Rearranging equations is prone to a few classic errors. The most frequent are:
- Forgetting to apply an operation to the entire side. For example, when dividing by 2, you must divide every term, not just the first one. In
y = 2*x + 3, dividing only the 2*x by 2 would givey/2 = x + 3, which is wrong. - Incorrect sign handling. When moving a term across the equals sign, you change its sign. A common slip is moving
+3to the other side and forgetting to make it−3. - Mixing up the order of operations. Always undo addition/subtraction before multiplication/division. If you divide first in
y = 2*x + 3, you gety/2 = x + 1.5, which is not the same as the correctx = (y − 3)/2. - Forgetting to distribute. When you have
y = a*(x + b), you must divide the whole right side by a, not just the x term.
A good habit is to plug your answer back into the original equation to verify it. The calculator does this internally, but you should too when working by hand.
Limits of the Method
This calculator is designed for algebraic equations where the variable you want to isolate can be expressed in terms of the other variables using standard operations. It will not handle:
- Equations where the variable appears inside a function that cannot be inverted with elementary functions, such as
y = x + sin(x)(you cannot solve for x in closed form). - Equations with multiple instances of the variable that require advanced techniques, like
y = x*e^x(needs the Lambert W function, which is not elementary). - Inequalities or systems of equations.
In those cases, you may need a more advanced computer algebra system (CAS) or a numerical solver. The calculator will give a clear message if it cannot isolate the variable.
How to Choose a Good Rearranging Calculator
Not all online rearranging tools are equal. When choosing one, look for:
- Step-by-step solutions – the tool should show the intermediate steps, not just the final answer.
- Support for standard notation – it should accept equations with *, /, ^, parentheses, and common functions like sqrt or sin.
- Variable flexibility – you should be able to isolate any variable, not just x.
- Clear error messages – if it cannot solve, it should explain why.
- No hidden costs – many free tools are ad-supported but should not require a subscription for basic use.
This calculator meets all those criteria and is free to use.
Frequently Asked Questions
Can I make y the subject instead of x?
Yes. Simply enter the equation and type y as the subject variable. The calculator will isolate y on the left side. For example, x = 2*y + 3 becomes y = (x − 3)/2.
What if the variable appears twice in the equation?
The calculator will collect all terms containing the variable on one side and factor it out. For example, y = a*x + b*x becomes x = y/(a + b). It handles this automatically.
Does it work with square roots and powers?
Yes. If the variable is inside a square root, it will square both sides; if it is raised to a power, it will take the corresponding root. For instance, y = sqrt(x) becomes x = y^2 (assuming y is non-negative).
Can I use it for physics formulas?
Absolutely. Physics is full of rearranging. Enter any formula with the variables you have, and solve for the one you need. Just be consistent with units – the calculator treats numbers as pure numbers, so you must convert everything to the same unit system yourself.
Why does the calculator not solve y = x + sin(x)?
That equation has no algebraic solution for x in terms of y using elementary functions. The calculator cannot produce a closed-form rearrangement, so it will tell you it is unsolvable. You would need a numerical method to approximate x for a given y.
Is the rearranged equation always correct?
The calculator applies standard algebraic rules, so the result is mathematically correct as long as you enter the equation correctly. However, always check for domain restrictions – for example, if you square both sides, you might introduce extraneous solutions. The calculator does not check for those, so it is wise to verify with your original equation.
Related
Formula used
in eq | Equation | - | y = 2*x + 3 | 0 in var | Subject variable | - | x | 0 out result | Rearranged equation | - | solve(eq, var) | 0
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.