In mathematics, a rational number is a value that can be written as the quotient of two integers: a numerator divided by a nonzero denominator. The standard symbol for the set of all rational numbers is Q, derived from the word quotient.
Definition and notation
Formally, a number r is rational if there exist integers m and n with n ≠ 0 such that r = m/n. Such an expression is called a fraction. Two fractions that differ by a common factor in numerator and denominator represent the same rational number; reducing to lowest terms gives a unique representation when the denominator is taken positive.
Examples of rational numbers include integers (take denominator 1), simple fractions like 3/4, and decimals with a finite number of digits such as 0.25. Negative and positive rationals are both allowed: a rational may be negative or positive, and zero is rational.
Decimal form and contrast with irrationals
Every rational number has a decimal expansion that either terminates (finite decimals) or eventually repeats with a fixed cycle of digits. For example, 1/2 = 0.5 (terminating) and 1/3 = 0.333... (repeating). Numbers whose decimal expansions neither terminate nor repeat are called irrational (for example, √2 and π) and cannot be expressed as a quotient of integers.
Basic properties and arithmetic
- The rational numbers form a field under usual addition and multiplication: they are closed under addition, subtraction, multiplication and division by any nonzero rational.
- Rationals are dense in the real numbers: between any two distinct real numbers there exists a rational number.
- They form a countable set, unlike the uncountable set of all real numbers.
Because of their simple algebraic form, rationals are fundamental in algebra, number theory, and everyday calculation. They serve as exact representations of ratios, measurements that are specified as fractions, and many algorithmic computations where exact rational arithmetic is preferred over floating-point approximations.
Historical notes and practical importance
The idea of representing quantities by ratios dates back to ancient civilizations that compared lengths, areas and amounts. Over centuries the concept was formalized into modern number systems. In contemporary mathematics and computing, rational numbers are used to model proportions, construct rational functions, and provide exact answers when possible.
Notable distinctions: rational vs irrational is a central dichotomy in real analysis; rational numbers can be listed in a sequence (they are countable), while irrationals cannot. Understanding rationals — their representations, simplification, and arithmetic — is an essential building block for further study in mathematics.

