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 entered14\frac{1}{4}

Rational (14)\displaystyle \text{Rational } \left(\frac{1}{4}\right)

Simplified

14\displaystyle \frac{1}{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.

    14\frac{1}{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 14\frac{1}{4}, a ratio of two integers.

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

    14∈Q\frac{1}{4} \in \mathbb{Q}
  3. Result

    So the number is rational, equal to 1/4.

Worked examples