An integer is a whole number that can be positive, negative, or zero; it does not contain a fractional or decimal part. In elementary mathematics integers are the simplest discrete quantities and include the natural numbers, their negatives, and zero. Integers are commonly represented along an infinite number line, where every point with an integer coordinate corresponds to a distinct integer. A simple depiction of such a line is shown here:
Basic definition and notation
Formally, an integer can be described as a rational number with denominator 1; equivalently, as a decimal with only zeros after the decimal separator (for example, 17, 17.0, and 17.0000 represent the same integer). The set of all integers is usually denoted by the letter Z (from the German Zahlen). Texts often write this as ℤ and refer to subsets such as the positive integers (ℤ+) and the non-negative integers (including zero). For introductory references see natural numbers and rational numbers. A common paired concept is the decimal point or decimal separator; integers have no nonzero digits after that separator decimal notation.
Consecutive integers are those that differ by 1: for example, …, −2, −1, 0, 1, 2, 3, …; a short list of consecutive terms is illustrated here: . The ordering of integers is total: given any two integers a and b, exactly one of these holds — a < b, a = b, or a > b — which makes comparison and ranking straightforward.
Arithmetic properties and algebraic structure
Integers are closed under addition, subtraction and multiplication: the sum, difference, or product of two integers is an integer. Division by a nonzero integer need not yield an integer (for example, 1 divided by 2 equals 1/2, which is not an integer). The integers form an infinite countable set with algebraic structure: (ℤ, +, 0) is an abelian group under addition, and with multiplication it becomes a commutative ring with unity 1. For more about sets and groups see consecutive integers and set, and a basic discussion of groups at abelian group.
Important notions that arise in the study of integers include divisibility, greatest common divisors, prime numbers and factorization. Many algorithms in computer science and number theory—such as the Euclidean algorithm for the greatest common divisor—operate in the domain of integers. Modular arithmetic, which studies integers with respect to an equivalence relation determined by a modulus, underpins cryptography, hashing and calendar computations.
Size, order types and historical notes
The set of integers is infinite and countable; its cardinality is the smallest infinite cardinal, often denoted aleph-null. References to cardinality and order are standard in set theory; see entries on cardinal number and ordinal number. Historically the concept of integers developed from counting and ledger-keeping: natural numbers for counting, zero and negative numbers for debts and balances. Symbolic notation such as ℤ and operations on integers were formalized over centuries as algebra and arithmetic matured.
Uses, examples and distinctions
Integers serve as indexes, counters, measures of signed quantity (temperature, elevation relative to a datum), and discrete labels. Examples include sequence positions (1, 2, 3), temperature values (−5 °C), financial balances (+100, −250) and algebraic coefficients. Distinguish integers from rational numbers that may have nontrivial fractional parts, and from real numbers that include irrational values. Visual or tabular representations often include special markers for zero and for positive and negative subsets:
- Summary: Integers are whole numbers without fractions, closed under addition, subtraction and multiplication, and fundamental in discrete mathematics and computation.
- See also: basic arithmetic, modular arithmetic, prime factorization, number theory and combinatorics.

