Rational Numbers: Fractions, Integers and Repeating Decimals

Updated 15 November 2026

A rational number can be written as a ratio of two integers with a nonzero denominator. Rational numbers include positive and negative fractions, all integers, zero, terminating decimals, and repeating decimals.

Definition of a rational number

\[\frac pq\qquad p,q\in\mathbb Z,\quad q\ne0\]

The numerator may be zero. The denominator may never be zero.

Zero and every integer are rational

Write any integer over 1:

\[0=\frac01\qquad2=\frac21\qquad-5=\frac{-5}{1}\]

In \(0/1\), the denominator is 1, not zero. The expression \(0/0\) is undefined and is not a rational-number representation.

Terminating and repeating decimals

A terminating decimal has a last nonzero decimal digit, so it can be written using a power of ten. For example, \(0.125=125/1000=1/8\).

Why a repeating decimal is rational

Let \(x=0.\overline{27}\). Multiplying by 100 moves one full repeating block:

\[100x=27.\overline{27}\]

Subtract the original equation:

\[99x=27\qquad x=\frac{27}{99}=\frac3{11}\]

Write a terminating decimal as a fraction

Enter a terminating decimal, including a whole number or a negative decimal. Up to 15 whole-number digits and 12 decimal places are supported.

Simplest fraction

Every finite decimal entered above is rational. Typing 3.14159 gives the rational number 314159/100000; it does not give the exact irrational number \(\pi\). A finite display alone cannot prove that an underlying exact value is irrational.

What is irrational?

An irrational real number cannot be written as a ratio of integers. Its decimal expansion neither terminates nor eventually repeats. Examples include \(\sqrt2\), \(\pi\), and \(-\sqrt2\).

NumberRational?Reason
−3/4YesA ratio of integers
0Yes0/1
0.5Yes1/2
\(0.\overline3\)Yes1/3
\(\sqrt9\)YesEquals 3
\(\sqrt2\)NoNo ratio of integers equals it
\(-\pi\)NoThe negative of an irrational real number is irrational

Common misconceptions

  • Negative does not mean irrational. −3/4 is rational, while −√2 is irrational.
  • A radical sign does not guarantee irrationality. √9 = 3 is rational.
  • Fraction notation alone is not enough. The definition requires an integer numerator and denominator. Writing √2/1 does not make √2 rational.
  • Repeating is different from random-looking digits. An eventually repeating decimal is rational, even if the repeating block is long.

Practice

Classify −7, 0.04, \(0.\overline{12}\), √16, and √3.

Check the answers

The first four are rational: −7/1, 1/25, 4/33, and 4. √3 is irrational.

Continue with fraction operations and decimal representations of fractions.