What is a Rational Number? Examples and Types

Book A Free Math Class

What is a Rational Number? Examples and Types

TL;DR

Rational numbers are numbers expressible as p/q (integers, q ≠ 0) and cover integers, fractions, terminating decimals, and repeating decimals - denoted by Q. They split into positive, negative, zero, and standard form; stay closed under addition, subtraction, multiplication, and non-zero division; and differ from irrationals (π, √2) whose decimals never terminate or repeat.

A rational number is any number that can be written as p/q, where p and q are integers and q ≠ 0. Examples include 1/2, -3/4, 0.75, 5, and 0. The set of all rational numbers is denoted by the symbol Q.

Where the word came from
"Rational" entered mathematical English in 1570 — almost a century before "ratio" took its modern meaning in 1660. The word came from translations of Euclid, where the Greeks used ἄλογος ("not to be spoken about") for irrational lengths the Pythagoreans refused to call numbers. So the etymology runs the opposite way to what most people assume: ratio came from rational, not the other way around.

Formal Definition and Notation

A rational number is a number of the form p/q, where p and q are integers and q is not equal to zero.

p/q, where p and q ∈ Z and q ≠ 0

Symbol Meaning
p Numerator (any integer)
q Denominator (any non-zero integer)
Q The set of all rational numbers
Z The set of all integers
Not equal to

The denominator cannot be zero. Division by zero is undefined in mathematics, so any expression with zero in the denominator has no value.

Examples of Rational Numbers

Rational numbers appear in several familiar forms:

Whole numbers and integers

Common fractions

Terminating decimals

Repeating decimals

Every integer, every terminating decimal, and every repeating decimal is a rational number.

Types of Rational Numbers

Rational numbers split into four basic categories:

Positive rational numbers — numerator and denominator share the same sign. Examples: 4/7, -3/-5 (which equals 3/5).

Negative rational numbers — numerator and denominator have opposite signs. Examples: -2/5, 7/-9.

Zero — neither positive nor negative. Zero can be written as 0/n for any non-zero integer n: 0/1, 0/2, 0/-7. Zero is rational.

Standard form — a rational number is in standard form when its numerator and denominator share no common factor other than 1, and the denominator is positive. Example: 18/-24 simplifies to -3/4 in standard form.

How to Identify a Rational Number: The Decimal Test

A number is rational if it can be written as p/q with integers and q ≠ 0. For numbers given in decimal form, three rules cover every case:

  1. If the number is already a fraction with an integer numerator and a non-zero integer denominator — it's rational.

  2. If the decimal terminates (ends after a finite number of digits, like 0.75 or 2.125) — it's rational.

  3. If the decimal goes on forever but repeats a fixed pattern (like 0.333... or 0.272727...) — it's rational.

If the decimal goes on forever with no repeating pattern — like π = 3.14159265... or √2 = 1.41421356... — the number is irrational, not rational.

Worked example: convert 0.272727... to a fraction.

Let x = 0.272727...

Multiply both sides by 100 (the repeating block is 2 digits): 100x = 27.272727...

Subtract the original equation: 100x − x = 27.272727... − 0.272727... 99x = 27 x = 27/99 = 3/11

So 0.272727... = 3/11, confirming it is rational.

Rational Numbers vs Other Number Types

Rational numbers contain several smaller number sets and sit inside a larger one. The relationships are summarised below:

Number Type Definition Examples Is It Rational?
Natural numbers Counting numbers from 1 onward 1, 2, 3, 4… Yes
Whole numbers Natural numbers and 0 0, 1, 2, 3… Yes
Integers Whole numbers and their negatives …−2, −1, 0, 1, 2… Yes
Fractions Whole-number numerator over whole-number denominator 3/4, 5/8 Yes (subset)
Rational numbers Any p/q with p, q integers and q ≠ 0 1/2, −3/4, 0.75, 0.333… Yes (by definition)
Irrational numbers Cannot be written as p/q π, √2, e No
Real numbers Rational and irrational together All numbers on the number line Includes rationals

Every natural number is whole. Every whole number is an integer. Every integer is rational. The reverse is not true: not every rational number is an integer, and not every real number is rational.

Properties of Rational Numbers

Rational numbers behave consistently under the four arithmetic operations.

Closure properties

Operation Closed? Example
Addition Yes 1/2 + 1/3 = 5/6
Subtraction Yes 1/2 − 1/3 = 1/6
Multiplication Yes 1/2 × 1/3 = 1/6
Division (by non-zero) Yes 1/2 ÷ 1/3 = 3/2

The result of any of these four operations on two rational numbers is always another rational number — provided the divisor is not zero.

Other key properties

Density property: Between any two rational numbers, there are infinitely many rational numbers. This is why the rationals feel like they fill the number line — though they do not. Irrational numbers fill the gaps that rationals leave behind.

Rational vs Irrational Numbers

Feature Rational Numbers Irrational Numbers
Form Can be written as p/q Cannot be written as p/q
Decimal expansion Terminates or repeats Never terminates and never repeats
Examples 1/2, 0.75, 0.333…, 5 π, √2, √3, e
Symbol Q Real numbers minus Q

A common point of confusion: students often assume any number under a radical sign is irrational. But √4 = 2, which is rational. √9 = 3 is rational. The radical sign is not the test. The decimal expansion is.

Common Confusions

Four mix-ups appear regularly when students first work with rational numbers:

Frequently Asked Questions

Is 0 a rational number?

Yes. Zero can be written as 0/1, which fits the definition.

Are all integers rational numbers?

Yes. Every integer n can be written as n/1, which fits the form p/q with q ≠ 0.

Is π a rational number?

No. π has a decimal expansion that goes on forever without repeating a fixed pattern (3.14159265358979...), so it cannot be written as p/q. It is irrational.

What is the difference between rational and irrational numbers?

Rational numbers can be written as p/q where p and q are integers and q ≠ 0. Their decimal expansions either terminate or repeat. Irrational numbers cannot be written as p/q, and their decimal expansions never terminate and never repeat. Together, they make up the real numbers.

How can I tell if a decimal is rational?

Apply the three rules from the Decimal Test section: if the decimal terminates, it's rational; if it goes on forever but repeats a fixed pattern, it's rational; if it goes on forever with no repeating pattern, it's irrational.