,

A rational number can be expressed as a ratio of integers with a non-zero denominator. An irrational number is a real number for which no such ratio exists. This distinction concerns an exact value, not how many digits happen to appear on a screen.

A finite decimal is rational even when it approximates an irrational quantity. Keeping the value separate from its representation prevents many classification errors.

On this page

Use the definition before judging the appearance

A real number is rational when it can be written as

pq,p,q∈ℤ,q≠0.\frac pq,\qquad p,q\in\mathbb Z,\quad q\ne0.

Integers are rational because n=n/1n=n/1. So are terminating decimals: 0.125=125/1000=1/80.125=125/1000=1/8. A radical symbol does not automatically mean irrational; 49/9=7/3\sqrt{49/9}=7/3 is rational.

The rational and irrational numbers partition the real numbers. A non-real complex number such as ii belongs to neither group. Saying “anything that is not rational is irrational” without restricting the discussion to real numbers is incomplete.

Explain terminating decimals through prime factors

A fraction in lowest terms has a terminating base-ten decimal exactly when its positive denominator has no prime factors except 2 and 5. The reason is that a decimal with kk places is an integer divided by 10k=2k5k10^k=2^k5^k.

For example, 7/407/40 terminates because 40=23×540=2^3\times5. Multiplying numerator and denominator by 25 gives

740=1751000=0.175.\frac7{40}=\frac{175}{1000}=0.175.

By contrast, the reduced denominator of 1/61/6 contains a factor 3, so no power of ten can supply it. Its decimal does not terminate.

Reduction matters. The fraction 3/63/6 has a denominator containing 3 as written, but it reduces to 1/2=0.51/2=0.5. Apply the criterion to the reduced denominator, not an arbitrary equivalent fraction.

Convert repeating decimals exactly

Let x=0.27¯x=0.\overline{27}, meaning 0.272727…0.272727\ldots with the two-digit block repeated forever. Multiply by 100 to align the repeating tails:

100x=27.27¯,100x−x=27.100x=27.\overline{27},\qquad100x-x=27.

Therefore 99x=2799x=27 and

x=2799=311.x=\frac{27}{99}=\frac3{11}.

A decimal can have a non-repeating beginning. For x=0.16¯x=0.1\overline6, use 10x=1.6¯10x=1.\overline6 and 100x=16.6¯100x=16.\overline6. Subtraction gives 90x=1590x=15, so x=1/6x=1/6.

For any rational fraction, long division has finitely many possible remainder states. It either reaches zero or repeats a state, so the decimal terminates or eventually repeats. Conversely, aligning and subtracting repeated tails turns any eventually repeating decimal into a rational equation. A written finite string followed by dots is not enough to specify a decimal unless the rule for continuing it is clear.

Prove that a familiar square root is irrational

Suppose 2=p/q\sqrt2=p/q in lowest terms, with positive integers pp and qq. Squaring gives p2=2q2p^2=2q^2. Hence p2p^2 is even, so pp is even: an odd integer has an odd square.

Write p=2kp=2k. Substitution yields 4k2=2q24k^2=2q^2, or q2=2k2q^2=2k^2. Thus qq is even as well. Both numerator and denominator have a factor 2, contradicting the claim that the fraction was reduced. Therefore 2\sqrt2 is irrational.

This is a general proof, not a conclusion from a calculator displaying many digits. Prime factorization supplies another viewpoint: the exponent of 2 in p2p^2 would be even, while its exponent in 2q22q^2 would be odd.

Separate exact values from approximations

The number 1.4141.414 is rational because it equals 707/500707/500. It is a useful approximation to 2\sqrt2, but the two numbers are not equal:

1.4142=1.999396<2<2.002225=1.4152.1.414^2=1.999396<2<2.002225=1.415^2.

Since both endpoints are positive,

1.414<2<1.415.1.414<\sqrt2<1.415.

Successively narrower rational bounds for the square root of two

Successive bounds for the square root of twoThree separately scaled number lines narrow the interval around square root two, from 1.4 to 1.5, then 1.41 to 1.42, then 1.414 to 1.415.Narrow the bounds without replacing the exact number1.41.5√2This line shows a width of 0.1.1.411.42√2This line shows a width of 0.01.1.4141.415√2This line shows a width of 0.001.
The purple marker represents the exact value √2; its pixel location is a numerical rendering. Endpoints are rational bounds, not alternative exact values.
Diagram explanation and exact data

Squaring the positive endpoints checks the inequalities. The final row gives 1.414 < √2 < 1.415 because their squares lie below and above 2.

Successively narrower rational bounds for the square root of two: exact reference data
Lower bound Upper bound Width
1.4 1.5 0.1
1.41 1.42 0.01
1.414 1.415 0.001

Narrowing rational bounds locates an irrational value without turning it into a rational number. Every finite decimal approximation remains rational, regardless of how accurately it approximates the target.

An infinite recurring decimal can also have a terminating representation. In particular, 0.9¯=10.\overline9=1. One justification uses the finite sums 0.9,0.99,…0.9,0.99,\ldots: the value after nn digits is 1−10−n1-10^{-n}, which approaches 1. There is no positive “last-digit gap” after infinitely many nines.

Check what operations preserve

Rational numbers are closed under addition, subtraction and multiplication, and under division by a non-zero rational number. Adding a rational number to an irrational number must produce an irrational number: otherwise subtracting the rational addend would make the original irrational number rational.

Multiplication by a non-zero rational number also preserves irrationality. The non-zero restriction matters because multiplying anything by zero produces rational zero.

Two irrational numbers can have a rational or irrational sum or product. For example,

2+(−2)=0,2+2=22,\sqrt2+(-\sqrt2)=0,\qquad\sqrt2+\sqrt2=2\sqrt2,
2×2=2,2×3=6.\sqrt2\times\sqrt2=2,\qquad\sqrt2\times\sqrt3=\sqrt6.

There is no blanket “irrational plus irrational” rule. Exact algebra, not the label of each input alone, determines the result.

Find numbers between numbers

Between any two different rational numbers a<ba<b, their midpoint (a+b)/2(a+b)/2 is another rational number. Repeating the process creates indefinitely many rational values between them.

There are also irrational numbers arbitrarily close to any real value. The number line is not divided into a rational region and an irrational region. The intervals in the diagram contain both types, even though a finite diagram cannot mark every point. Properties of Real Numbers distinguishes this closeness property from completeness.

Practice questions

  1. Classify 81\sqrt{81}, 8\sqrt8 and the exact decimal 0.1250.125 as rational or irrational.
  2. Convert 0.18¯0.\overline{18} to a fraction in lowest terms.
  3. Must the sum of a rational number and an irrational number be irrational? Give the reason.
Check your answers
  1. 81=9\sqrt{81}=9 and 0.125=1/80.125=1/8 are rational. Since 8=22\sqrt8=2\sqrt2 and 2 is non-zero rational, 8\sqrt8 is irrational.
  2. With x=0.18¯x=0.\overline{18}, subtraction gives 99x=1899x=18, so x=18/99=2/11x=18/99=2/11.
  3. Yes. If the sum were rational, subtracting its rational addend would express the irrational addend as a difference of rational numbers, a contradiction.

Related topics

Properties of Real Numbers develops the arithmetic and order structure shared by rational and irrational values. Complex Numbers explains why some equations require numbers outside the real line.

Sources and further reading