Try it with your numbers
Show every step
So , , and are rational, while , and are irrational. The sections below show how to sort any number quickly, why the sorting works, and where it trips people up.
What makes a number rational or irrational?
The word “rational” comes from ratio. Every integer is rational because and , and zero is rational because . Terminating decimals qualify too: . The only restriction is , since division by zero has no value.
Together, the rationals and irrationals make up the real number system, and they do not overlap. Every point on the number line is exactly one of the two. Numbers involving are neither, because they are not real. If you also need to sort numbers into natural, whole and integer, classifying real numbers covers those layers.
The trap here is appearance. A fraction bar does not make a number rational, and a root sign does not make it irrational. What matters is whether some fraction of two integers equals the number. That is why is rational while is not.
, and are all irrational, because the top or bottom is not an integer and no integer fraction can equal them.
How do you tell rational from irrational in decimals?

A decimal that terminates or repeats is rational, and one that does neither is irrational. The reason is a clean one. When you divide by by long division, every step leaves a remainder from to . A remainder of ends the decimal. Otherwise, after at most steps a remainder must repeat, and from that point the digits cycle. So every fraction ends or repeats, with no exceptions.
You can predict which one without dividing. Reduce the fraction with simplifying fractions, then use prime factorization on the denominator. If the only primes are and , the decimal terminates, because . Any other prime in the denominator forces a repeat. For example, has , so it terminates: . And has , so it repeats: .
Always reduce first. The fraction has a in its denominator, yet it equals , which terminates. The second trap is mistaking a pattern for a repeat. The decimal has an obvious pattern, but the block keeps growing and never cycles, so the number is irrational. A calculator screen shows only about ten digits, so it can never settle the question. Structure decides, not digits.
Quick check
Answer: It repeats:
Is a square root rational or irrational?
For a positive integer , is either a whole number or irrational. There is no middle case. Check the perfect squares list or work out square roots by sandwiching: if falls strictly between two consecutive squares, it is not a perfect square, so is irrational. For fractions in lowest terms, is rational only when both and are perfect squares. Cube roots follow the same rule with perfect cubes.
Worked example. Classify each number.
- , so it is rational.
- : and , and sits strictly between them, so it is irrational.
- , so it is rational.
- , so it is rational.
- , and is not a perfect square, so it is irrational.
- , so it is rational.
The last decimal pair is where points get lost. and look alike, but one is rational and the other is not. Convert the decimal to a fraction first, then test the numerator and denominator.
Why is the square root of 2 irrational?

The ancient Greeks met this number as the diagonal of a unit square. By the Pythagorean theorem the diagonal satisfies , and no fraction squares to . The standard proof assumes the opposite and reaches a contradiction.
Suppose in lowest terms, so and share no factor. Squaring gives
Then is even, so is even (an odd number squared is odd). Write . Substituting gives , so , and is even too. Now both and are even, which contradicts lowest terms. The assumption fails, so is irrational.
The idea underneath is prime counting. In any perfect square, every prime appears an even number of times. In , the prime appears an odd number of times. One number cannot be both. The same argument works for any with a prime that appears an odd number of times: has a single , so is irrational, while has only even counts, so is rational.
is irrational exactly when some prime appears an odd number of times in . Since has three s, is irrational (it equals ).
How do you convert a repeating decimal to a fraction?
This is the proof that repeating decimals are rational, and it is also a practical skill. Multiply by , where is the length of the repeating block, so the repeating tails line up. Then subtract so the tails cancel. The full method is in converting repeating decimals to fractions.
Worked example 1. Convert . Let . The block has length , so . Subtract:
Then . Check by dividing: , which matches.
Worked example 2. Convert , where only the repeats. Let . Then and . Subtract the first from the second: , so . Check: , which matches.
The method also settles a famous argument. Let . Then , so and . The numbers and are the same number, not two close ones.
Try this: Convert to a fraction with the subtract method, reduce it, then divide numerator by denominator to confirm the decimal comes back.
Adding and multiplying rational and irrational numbers
Closure rules tell you what to expect, and they are short enough to memorize.
| Operation | Result | Example |
|---|---|---|
| rational + rational | always rational | |
| rational + irrational | always irrational | |
| nonzero rational irrational | always irrational | |
| irrational + irrational | either | |
| irrational irrational | either |
The rational-plus-irrational rule has a one-line proof. If with and rational, then would be rational, a contradiction. The same argument works for products by dividing. The word “nonzero” matters: is rational.
Worked example. Classify each result.
- , so it is rational.
- , so it is irrational. The distributive property is what lets combine.
- , so it is irrational.
The mental check is to look for cancellation before assuming irrational. Cancellation comes from conjugate pairs like and , from opposite radicals, or from radicals that multiply to a perfect square.
Quick check
Answer: Rational, equal to
Are pi and 22/7 rational or irrational?
Pi is irrational, and is rational, so the two cannot be equal. They differ by about . Even is rational. A better fraction is , which is within about of but still not equal to it.
Irrational numbers come in two strengths. The number is a root of , and the golden ratio is a root of . Both are algebraic. The numbers and are transcendental: they are not roots of any nonzero polynomial with integer coefficients. Every transcendental number is irrational, but not the other way around.
Between any two real numbers there is a rational, so fractions can approximate anything as closely as you like. Yet the rationals are countable and the irrationals are not, so almost every real number is irrational. In practice, every calculator or computer value is a rational approximation, and how many digits to keep is a question for significant figures.
Where do irrational numbers show up in real problems?
In geometry, a square with integer side has diagonal , which is irrational, and a circle with integer radius has circumference , which is also irrational. Exact answers in construction and design are often left in radical or form for this reason.
In algebra, the discriminant decides everything for a quadratic with integer coefficients. If is a perfect square, the solutions are rational. If not, they are irrational. For the discriminant is , so gives and . For the discriminant is , which is not a square, so . Try the quadratic formula practice problems to see the pattern repeat.
Logarithms hide irrationals too. Suppose with positive integers and . Then , so , which asks an even number to equal an odd one. That is impossible, so is irrational. The logarithm rules give the tools to move between these forms.
Quick check
Answer: Irrational
How can you check a classification quickly?
Run any number through these steps in order.
- If it is an integer, a fraction of integers, or a terminating or repeating decimal, it is rational.
- If it is a root, simplify first and test the number under the root against the perfect squares or cubes. Use the odd-exponent test for big numbers.
- Simplify any expression before judging it, since is just .
- Apply the closure rules, then check for cancellation before calling a sum or product of irrationals irrational.
Two habits catch most errors. First, never decide from a calculator’s digits, because they are cut off and can only suggest an answer. Second, say the reason out loud: “rational because it equals ” or “irrational because is not a perfect square”. If you cannot name the reason, the classification is a guess.
Practice problems
0 of 5 solved
- Is rational or irrational?
Answer: Rational, because
Step 1: , so is a perfect square. Step 2: , which is a ratio of integers, so it is rational. - Does terminate or repeat as a decimal? Give the decimal.
Answer: It terminates:
Step 1: is already in lowest terms. Step 2: has only the primes and , so the decimal ends. Step 3: . - Write as a fraction in lowest terms.
Answer:
Step 1: Let , so . Step 2: Subtract: . Step 3: . - Is rational or irrational? Find its value.
Answer: Rational, equal to
Step 1: Use . Step 2: . Step 3: is an integer, so the product is rational even though each factor is irrational. - Is rational or irrational?
Answer: Irrational
Step 1: . Step 2: The expression is . Step 3: is not a perfect square, so is irrational, and rational plus irrational is always irrational.
Common questions
Is zero a rational or irrational number?
Zero is rational. It can be written as , which is a ratio of two integers with a nonzero denominator.
Are all square roots irrational?
No. The square root of a perfect square is a whole number, so is rational. A square root of a positive integer is irrational only when the number is not a perfect square, like .
Can two irrational numbers add up to a rational number?
Yes. and . The sum or product of two irrational numbers can be either rational or irrational.
Is a repeating decimal rational or irrational?
Rational. Every repeating decimal equals a fraction of integers, which you can find by multiplying by a power of 10 and subtracting. For example, .
Is pi rational or irrational?
Pi is irrational. Its decimal expansion never ends and never repeats. Values like and are rational approximations, not the true value of .
Are negative numbers rational?
Many are. Any negative integer, fraction or terminating or repeating decimal is rational, such as or . A negative number like is irrational.