Rational or Irrational Calculator

Enter a number to find out whether it is rational.

Fractions, decimals, sqrt(…), pi and e, with + - * / and brackets.

Try

Result

You entered2+1\sqrt{2} + 1

Irrational\displaystyle \text{Irrational}

Simplified

1+2\displaystyle 1 + \sqrt{2}
Show the work
  1. Exact value of the number

    First write the number exactly: keep fractions as fractions, change decimals to fractions, and simplify every square root by taking out perfect-square factors. Then like terms can be combined and any roots that cancel disappear.

    2+1=1+2\sqrt{2} + 1 = 1 + \sqrt{2}
  2. The square root of a non-square is irrational

    After simplifying, the number still contains 2\sqrt{2}, and 22 has no square factor left to take out, so it is not a perfect square. Roots of different such whole numbers cannot cancel each other or combine into a fraction, so the number cannot be written as a ratio of two integers.

    2∉Q\sqrt{2} \notin \mathbb{Q}
  3. Result

    So the number is irrational.

Worked examples