Rationalize the Denominator Calculator

Enter a fraction with square roots to get an equal one with a whole-number denominator.

Use numbers, sqrt(…), + − × ÷ and brackets.

Try

Result

You entered1+21−2\frac{1 + \sqrt{2}}{1 - \sqrt{2}}

−3−22\displaystyle -3 - 2\sqrt{2}

Decimal

−5.828427\displaystyle -5.828427
Show the work
  1. Multiplying by the conjugate

    The conjugate of 1−21 - \sqrt{2} is 1+21 + \sqrt{2}: the same two terms with the sign between them changed. Multiplying the top and the bottom by it leaves the value unchanged, because it is the same as multiplying by 1.

    1+21−2⋅1+21+2=(1+2)(1+2)(1−2)(1+2)\frac{1 + \sqrt{2}}{1 - \sqrt{2}} \cdot \frac{1 + \sqrt{2}}{1 + \sqrt{2}} = \frac{\left(1 + \sqrt{2}\right)\left(1 + \sqrt{2}\right)}{\left(1 - \sqrt{2}\right)\left(1 + \sqrt{2}\right)}
  2. Difference of squares

    Here a=1a = 1 and b=−2b = -\sqrt{2}. In the product of a sum and its conjugate the middle terms cancel, so the square roots disappear from the denominator.

    Using (a+b)(a−b)=a2−b2\left(a + b\right)\left(a - b\right) = a^2 - b^2

    (1−2)(1+2)=(1)2−(−2)2=1−2=−1\begin{aligned} \left(1 - \sqrt{2}\right)\left(1 + \sqrt{2}\right) &= \left(1\right)^2 - \left(-\sqrt{2}\right)^2 \\ &= 1 - 2 \\ &= -1 \end{aligned}
  3. Distributive property

    Multiply the numerator out the same way, term by term, and combine the like terms.

    Using k(a+b)=ka+kbk\left(a + b\right) = ka + kb

    (1+2)(1+2)=3+22\left(1 + \sqrt{2}\right)\left(1 + \sqrt{2}\right) = 3 + 2\sqrt{2}
  4. Dividing by the rational denominator

    The denominator is now −1-1, so dividing changes the sign of every term of the numerator.

    3+22−1=−3−22\frac{3 + 2\sqrt{2}}{-1} = -3 - 2\sqrt{2}
  5. Result

    So the fraction equals −3−22-3 - 2\sqrt{2}, with a rational denominator.

Worked examples