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 entered13\frac{1}{3}

Rational (13)\displaystyle \text{Rational } \left(\frac{1}{3}\right)

Simplified

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

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

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

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

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

Worked examples