Skip to content
MasterMath

Solve for a Variable Calculator

Solves any formula for the variable you choose, whether it appears multiplying, dividing, raised to a power, under a root or in a quadratic equation.

Variable solved for

—

Variable solved for—
How the variable appears—
Everything on one side—
What multiplies the variable—
What does not carry the variable—
Solutions—

How it was solved

    Indicative result. When solving through a root or a square, the quantities are assumed positive, as is usual in a physical formula. With a square there are two solutions, one per sign, and the calculator says so.

    The formula

    A·v + B = 0 → v = −B/A · A·v² + B·v + C = 0 → v = (−B ± √(B² − 4AC)) / 2A

    Why it works

    Solving for a variable is undoing, in reverse order, everything that is done to it. The calculator makes it systematic: it moves the whole formula to one side of the equals sign, expands, and groups the terms by the exponent the variable carries. If it appears with a single exponent — multiplying, which is exponent 1; dividing, which is −1; squared, which is 2; under a root, which is one half — the equation is A·vᵏ + B = 0, with A and B made of the other letters, so vᵏ = −B/A and raising to 1/k finishes it. If it appears with exponents 1 and 2 at once it is a quadratic in that variable and the general formula applies, with the other letters inside. What fits neither case — the variable inside a sine, or added in a denominator — the calculator does not solve, and says so.

    How to solve it by hand

    1. Move everything to the same side of the equals sign by subtracting the right-hand side
    2. Expand and group the terms by the exponent of the variable
    3. If the variable has a single exponent k: vᵏ = −B/A, then raise to 1/k
    4. If it appears with exponents 1 and 2, apply the quadratic formula with the other letters inside

    What is worth knowing

    Capitals matter: R1 and R2 are different variables, and T is not t, which is what it takes to type a physical formula as it stands. E is a variable and not the number e, and π is kept as a symbol: solving a pendulum for its length gives T²g/(4π²), not 0.0253·T²g. When the variable is dividing, solving for it means flipping: from v = d/t comes t = d/v. And when it is squared, remember the two signs, which in a physical formula usually settle themselves because a negative speed makes no sense, but in an arbitrary equation are two genuine solutions. What the calculator deliberately does not do is solve from inside a function: y = sin(x) needs an arcsine and a discussion of which interval it holds on, which is no longer algebra.

    Frequently asked questions

    Which formulas can it solve?

    Those where the variable multiplies, divides, carries an exponent, sits under a root or appears in a quadratic. It does not solve from inside a sine, a logarithm or a sum in the denominator.

    How do I write the formula?

    With the equals sign and * to multiply (or nothing: 2ab works). Powers with ^, roots with sqrt(). Capitals are respected.

    Why are there two solutions?

    Because the variable was squared: taking the root brings both signs. In a physical formula the positive one usually applies.

    What if the variable does not appear?

    The calculator says so. It is usually a capital letter: T and t are different variables.