What Makes a Number Rational? Definition & Examples

A number is rational if it can be written as a fraction of two integers, where the bottom number isn’t zero. That’s the entire test. If you can express a number as p/q, where both p and q are whole numbers and q ≠ 0, the number is rational. This simple rule covers far more numbers than most people expect.

The Fraction Test

The word “rational” comes from “ratio.” A rational number is any value you can express as the ratio of two integers. The number on top (the numerator) can be any integer, positive, negative, or zero. The number on the bottom (the denominator) can be any integer except zero, since dividing by zero is undefined.

This means 3/4 is rational. So is -11/2. And so is 6, because you can write it as 6/1. Every integer is a rational number in disguise: just put it over 1. Zero works too, since 0/1 is a perfectly valid fraction. In math, the set of rational numbers is represented by the symbol Q, short for “quotient.”

What Decimals Look Like

Every rational number, when written as a decimal, does one of two things: it either terminates (ends) or repeats a pattern forever. There are no other options.

Terminating decimals are straightforward. The number 1/4 = 0.25 stops after two decimal places. The number 3/8 = 0.375 stops after three. A fraction terminates when the only prime factors in its denominator (after simplifying) are 2s and 5s. Since our number system is base 10, and 10 = 2 × 5, those are the denominators that divide evenly.

Repeating decimals are the other flavor. The fraction 1/3 = 0.3333… repeats a single digit forever. The fraction 1/7 = 0.142857142857… repeats a six-digit block. Some fractions start with non-repeating digits before the pattern kicks in, like 1/6 = 0.1666…, where the 6 repeats after an initial 1. Mathematicians sometimes note that even terminating decimals are technically repeating, since 0.25 is the same as 0.25000… with zeros repeating forever.

This decimal behavior is actually a reliable way to identify rational numbers. If a decimal terminates or repeats, it’s rational. If it doesn’t do either, it’s irrational.

Proving a Repeating Decimal Is Rational

You can convert any repeating decimal into a fraction using a simple algebra trick, which proves it’s rational. Take 0.7777… as an example:

  • Call the number x, so x = 0.7777…
  • Multiply both sides by 10: 10x = 7.7777…
  • Subtract the first equation from the second: 10x – x = 7.7777… – 0.7777…
  • The repeating parts cancel out: 9x = 7
  • Solve: x = 7/9

This works for any repeating decimal. For longer repeating blocks, you multiply by a higher power of 10. A two-digit repeating block means multiplying by 100, a three-digit block by 1,000, and so on. The repeating tails always cancel, leaving you with a clean fraction of two integers.

Which Numbers Are Not Rational

Irrational numbers are the ones that fail the fraction test. No matter how hard you try, you cannot write them as a ratio of two integers. Their decimal expansions go on forever without ever settling into a repeating pattern.

The most famous examples are π (3.14159265…) and the square root of 2 (1.41421356…). Both have been computed to billions of decimal places, and no repeating block has ever appeared, nor will one. The proof that √2 is irrational dates back to ancient Greece: if you assume it can be written as a fraction and work through the logic, you hit a contradiction.

Square roots are a common source of confusion. The rule is clean: the square root of a whole number is rational only if that number is a perfect square. So √4 = 2 (rational), √9 = 3 (rational), and √16 = 4 (rational). But √2, √3, √5, √7, and any other non-perfect square root are all irrational. There is no fraction that, when squared, equals 2.

Everyday Numbers That Are Rational

Rational numbers are far more common in daily life than irrational ones. Prices, measurements, percentages, batting averages, and recipe quantities are all rational. Any number you can type into a calculator with a finite number of digits is rational, because a finite decimal can always be written as a fraction (0.99 = 99/100, for instance).

Negative numbers qualify too. The number -2/3 is rational. So is -4, written as -4/1. Mixed numbers like 2¾ are rational because you can convert them to improper fractions (11/4). Repeating decimals you encounter in everyday math, like the 0.333… you get when splitting a bill three ways, are rational.

How Rational Numbers Behave in Arithmetic

One useful property of rational numbers is that basic arithmetic keeps you inside the set. Add two rational numbers and the result is rational. Subtract them, still rational. Multiply them, rational. This property is called closure.

Division almost follows the same rule, with one exception: you cannot divide by zero. Dividing any rational number by another nonzero rational number always produces a rational result. This makes rational numbers a self-contained system for everyday calculations.

Mixing rational and irrational numbers is different. Adding a rational number to an irrational one always gives an irrational result (3 + √2 is irrational). Multiplying a nonzero rational number by an irrational one also gives an irrational result (5 × π is irrational). Once an irrational number enters the equation, it pulls the result outside the rational set.

A Quick Way to Check Any Number

When you encounter a number and want to know if it’s rational, run through these questions in order:

  • Is it an integer? Then it’s rational. Write it over 1.
  • Is it a fraction with integer numerator and denominator? Then it’s rational, as long as the denominator isn’t zero.
  • Is it a terminating decimal? Rational. You can always convert it to a fraction.
  • Is it a repeating decimal? Rational. The algebra trick above converts it to a fraction.
  • Is it a non-terminating, non-repeating decimal? Irrational. No fraction will ever equal it exactly.

Most numbers people work with in school, jobs, and daily life are rational. Irrational numbers tend to show up in geometry (π, square roots of non-perfect squares) and in certain mathematical constants. The distinction matters most when you need exact values, since irrational numbers can only ever be approximated as decimals, never captured perfectly as fractions.