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 entered28\sqrt{2}\sqrt{8}

Rational (4)\displaystyle \text{Rational } \left(4\right)

Simplified

4\displaystyle 4
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.

    28=4\sqrt{2}\sqrt{8} = 4
  2. A rational number is a ratio of integers

    Nothing irrational is left: every root simplified to a whole number or cancelled. The value is the fraction 44, a ratio of two integers.

    Using q=abq = \frac{a}{b}

    4∈Q4 \in \mathbb{Q}
  3. Result

    So the number is rational, equal to 4.

Worked examples