Mathematics & Logic · Depth 2 · Introductory · 5 min read

Numbers

From counting numbers to fractions, irrationals and complex numbers: how each new kind fills a gap left by the last, and how zero and negatives arose.

On this page
  1. What are numbers?
  2. How it works: the number sets
  3. The math (optional): worked examples
  4. History
  5. Common misconceptions
  6. Going further
  7. Real-life examples
  8. Evidence & sources

What are numbers?

The earliest numbers were used to count things.[1] The natural numbers are the counting numbers 1, 2, 3, 4 and so on.[1, 8] New kinds of number were later added to fill gaps in the old ones,[7] and the idea of what a number is has changed greatly over the history of mathematics.[13]

A note on convention: this page follows the OpenStax textbooks, which start the natural numbers at 1 and call the natural numbers plus zero the whole numbers.[1, 2]

How it works: the number sets

The integers, rationals, reals and complex numbers each fill a gap left by the set before.[7]

  • Integers are the counting numbers, their opposites and zero.[3, 8] A negative number is less than 0, and zero itself is neither positive nor negative.[3, 1]
  • Rational numbers can be written as p/q, where p and q are integers and q is not 0.[4, 1] Every integer is rational, since it can be written over 1.[1, 4]
  • Irrational numbers cannot be written as a ratio of two integers, and their decimals never stop and never repeat.[4] The circle number π is one.[4]
  • Real numbers are the rationals and irrationals together; a number cannot be both.[1, 4] Each real number matches exactly one point on the number line, and each point exactly one real number.[1]
  • Complex numbers have the form a + bi, where i, the imaginary unit, is defined as the square root of −1.[7]

The sets nest inside each other: every counting number is a whole number, every whole number is an integer, and every integer is rational.[6] A real number is a complex number with b = 0.[7]

Some natural numbers have only two divisors, 1 and themselves: these are the primes, such as 7 and 19.[8] Numbers with more than two factors are composite.[5]

The math (optional): worked examples

Place value. In our system a digit’s value depends on its position, so 537 and 735 are different numbers.[2] The place values are powers of 10, which is why it is called base 10.[9] For example, 138 is 100 + 30 + 8.[2]

Decimals. A rational number’s decimal either stops, as in 15/8 = 1.875, or repeats, as in 4/11 = 0.363636….[1]

Prime factors. The Fundamental Theorem of Arithmetic says every natural number except 1 is a product of primes in exactly one way, apart from their order.[8, 5] For example, 80 = 2 × 2 × 2 × 2 × 5, written 24 × 5.[8]

Imaginary numbers. Squaring an imaginary number gives a negative real number, so i2 = −1.[7] Complex numbers do not fit on the number line, but they can be drawn on a plane: −2 + 3i is the point (−2, 3).[7]

History

According to OpenStax, numbers were first used for counting in the Middle East 100 centuries ago.[1]

Zero. MacTutor separates two uses of zero: an empty-place marker, and a number in its own right.[11] The Babylonians used place value for over 1,000 years without a placeholder, and only around 400 BC put two wedge symbols in the empty place.[11] The Maya used a base-20 place-value system with a zero symbol by 665.[11] Sources differ on dates for India: OpenStax says zero was added to the number system about the fifth century CE, and credits Aryabhata with place-value notation in that century and Brahmagupta with the zero symbol roughly a century later.[1, 9] MacTutor says zero was certainly in use as a number by around 650, and describes a Gwalior inscription dated 876 that writes 270 and 50 almost as we do.[11]

Negatives. In 628 Brahmagupta wrote the Brahmasphutasiddhanta, defining zero as the result of subtracting a number from itself and giving rules in terms of fortunes and debts.[12] OpenStax likewise notes that negative numbers were used in seventh-century India for equations and debts.[1]

Spreading the digits. The numerals 0 to 9 began in India and passed through Persia to the Middle East, then to Europe, eventually replacing Roman numerals.[9] Fibonacci’s Liber abaci of 1202 introduced them to Europe.[18] In 1585 Stevin introduced decimal fractions and argued that irrational and negative numbers should all be treated as numbers.[13]

Irrationals and complex numbers. Plato reports that Theodorus showed the square roots of 3, 5 and so on up to 17 are incommensurable with the unit, meaning no common measure fits both.[13] Cubic formulas later forced square roots of negative numbers.[19, 16] Bombelli, whose Algebra first appeared in 1572, was the first to write down the rules for adding, subtracting and multiplying complex numbers.[16] Caspar Wessel was the first to publish a geometric picture of complex numbers; the approach attributed to Argand treats i as a rotation through 90°.[17]

Rigour. In the nineteenth century Weierstrass, Heine, Méray, Cantor and Dedekind gave rigorous definitions of the real numbers.[14] Cantor proved in 1873 that the rationals can be matched one-to-one with the natural numbers, and published in 1874 that the reals cannot.[15]

Common misconceptions

“n ÷ 0 = ∞.” Bhaskara proposed this, but MacTutor explains that it would make every number equal.[11] Brahmagupta’s claim that 0 ÷ 0 = 0 was also wrong.[11]

“1 is a prime number.” The number 1 is neither prime nor composite.[8]

“Imaginary numbers sit somewhere on the number line.” They cannot be plotted on it; they need a plane.[7]

Going further

On this map, numbers lead on to Algebra, where letters stand for them, and to Calculus.

Real-life examples

  • Counting a wallet

    A wallet holds three $100 bills, seven $10 bills and four $1 bills. Place value turns that into one number: $374.[2]

  • Below zero

    An overdrawn bank account has a negative balance, and elevations below sea level are negative too.[3]

  • Primes that guard secrets

    Encryption uses a number made by multiplying two very large primes. If the primes are large enough, even the fastest computer cannot find them again in a reasonable time.[8]

  • Ones and zeros

    Computers represent quantities in base 2, which uses only the digits 0 and 1.[10]

Connected across the map

Learn more

Short descriptions are our own summaries. The resources belong to, and are run by, their publishers.

Evidence & sources

Level 1 · Established

Supported by extensive evidence and broad scientific consensus.

Why this level? The number systems, their definitions and the Fundamental Theorem of Arithmetic are settled mathematics, explained here from peer-reviewed OpenStax textbooks (Rice University). The history comes from the MacTutor archive (University of St Andrews), and dates on which the sources disagree, such as those for zero, are attributed rather than settled.

This is a Knowledge Atlas editorial classification of the sources we could find, not a certificate of truth. How we evaluate knowledge

Sources

Based on 19 sources from 2 institutions: OpenStax, MacTutor.

Show all 19 sourcesHide the list
  1. ScholarlyOpenStax (Rice University)· Academic publisherCollege Algebra 2e, 1.1 Real Numbers: Algebra EssentialsOpened and checked against this page on 29 Sept 2026 · License: CC BY-NC-SA 4.0
  2. ScholarlyOpenStax (Rice University)· Academic publisherPrealgebra 2e, 1.1 Introduction to Whole NumbersOpened and checked against this page on 29 Sept 2026 · License: CC BY-NC-SA 4.0
  3. ScholarlyOpenStax (Rice University)· Academic publisherPrealgebra 2e, 3.1 Introduction to IntegersOpened and checked against this page on 29 Sept 2026 · License: CC BY-NC-SA 4.0
  4. ScholarlyOpenStax (Rice University)· Academic publisherPrealgebra 2e, 7.1 Rational and Irrational NumbersOpened and checked against this page on 29 Sept 2026 · License: CC BY-NC-SA 4.0
  5. ScholarlyOpenStax (Rice University)· Academic publisherPrealgebra 2e, 2.5 Prime Factorization and the Least Common MultipleOpened and checked against this page on 29 Sept 2026 · License: CC BY-NC-SA 4.0
  6. ScholarlyOpenStax (Rice University)· Academic publisherElementary Algebra 2e, 1.8 The Real NumbersOpened and checked against this page on 29 Sept 2026 · License: CC BY-NC-SA 4.0
  7. ScholarlyOpenStax (Rice University)· Academic publisherCollege Algebra 2e, 2.4 Complex NumbersOpened and checked against this page on 29 Sept 2026 · License: CC BY-NC-SA 4.0
  8. ScholarlyOpenStax (Rice University)· Academic publisherContemporary Mathematics, 3.1 Prime and Composite NumbersOpened and checked against this page on 29 Sept 2026 · License: CC BY-NC-SA 4.0
  9. ScholarlyOpenStax (Rice University)· Academic publisherContemporary Mathematics, 4.1 Hindu-Arabic Positional SystemOpened and checked against this page on 29 Sept 2026 · License: CC BY-NC-SA 4.0
  10. ScholarlyOpenStax (Rice University)· Academic publisherContemporary Mathematics, 4.3 Converting with Base SystemsOpened and checked against this page on 29 Sept 2026 · License: CC BY-NC-SA 4.0
  11. ScholarlyMacTutor History of Mathematics (University of St Andrews)· UniversityZeroOpened and checked against this page on 29 Sept 2026
  12. ScholarlyMacTutor History of Mathematics (University of St Andrews)· UniversityBrahmagupta (598 - 670) - BiographyOpened and checked against this page on 29 Sept 2026
  13. ScholarlyMacTutor History of Mathematics (University of St Andrews)· UniversityThe real numbers: Pythagoras to StevinOpened and checked against this page on 29 Sept 2026
  14. ScholarlyMacTutor History of Mathematics (University of St Andrews)· UniversityThe real numbers: Stevin to HilbertOpened and checked against this page on 29 Sept 2026
  15. ScholarlyMacTutor History of Mathematics (University of St Andrews)· UniversityGeorg CantorOpened and checked against this page on 29 Sept 2026
  16. ScholarlyMacTutor History of Mathematics (University of St Andrews)· UniversityRafael Bombelli (1526 - 1572) - BiographyOpened and checked against this page on 29 Sept 2026
  17. ScholarlyMacTutor History of Mathematics (University of St Andrews)· UniversityArgand (1768 - 1822) - BiographyOpened and checked against this page on 29 Sept 2026
  18. ScholarlyMacTutor History of Mathematics (University of St Andrews)· UniversityFibonacciOpened and checked against this page on 29 Sept 2026
  19. ScholarlyMacTutor History of Mathematics (University of St Andrews)· UniversityThe fundamental theorem of algebraOpened and checked against this page on 29 Sept 2026