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 enteredπ\pi

Irrational\displaystyle \text{Irrational}

Simplified

π\displaystyle \pi
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.

    π=π\pi = \pi
  2. Pi is transcendental

    A number is transcendental if it is not the solution of any polynomial equation with whole-number coefficients. Lindemann proved in 1882 that π\pi is transcendental. A non-zero multiple of π\pi added to a number built from fractions and roots is therefore never rational.

    π∉Q\pi \notin \mathbb{Q}
  3. Result

    So the number is irrational.

Worked examples