The short answer
In the most widely told account, Siddhartha Gautama, the Buddha, had one wife, Yasodhara, and one son, Rahula. Some later texts and traditions name other women as his wives, and a few legends give very large numbers. Those later figures are not reliable as history.
The wife in the most common account
According to the traditional story, Siddhartha Gautama was born into a royal family and married young. He and Yasodhara had a son, Rahula. Traditionally, he left home at around the age of 29 to seek an end to suffering. The story of his departure is told in many versions, and the details vary between sources.
Because the stories were passed on and retold for centuries, the exact details of his married life should be read as tradition rather than as a documented biography.
Names and sources
The earliest Pali texts usually refer to Yasodhara as Rahula’s mother, using the title Rahulamata. The name Yasodhara is more common in Sanskrit sources and in later Buddhist literature and art. Some Pali commentaries give her other names as well.
This is one reason the same woman can appear under different names in different books, and it is why readers who look for a single fixed answer often find several.
Other women named in later texts
Some later Buddhist texts, including certain monastic law (Vinaya) traditions, name other women as the Buddha’s wives. The names given include Gopa, Mrigaja and Manodhara. Some sources give a total of three wives.
Scholars read these sources in different ways. Many treat the variation as a sign that the story grew over time, rather than as a record of events.
The harem figures in legend
Popular retellings sometimes describe a palace full of women, and some give numbers in the tens of thousands. These figures appear in legends and retellings, and scholars do not treat them as reliable evidence of the Buddha’s life.
Why the sources differ
Early texts focus on the Buddha’s renunciation, his awakening and his teaching, and say little about his family. Later biographies, written centuries after his death, added more personal detail, and different traditions added different details. That is why answers to the question depend on which source is being used.
If you want the wider story of his life, you can read can you tell me the story of Gautama Buddha? For a poetic biography that shaped later tellings, see what is the Buddha Charita?
Further reading
The Pali Canon is the main early source. Readers who want a straightforward account of the Buddha’s teachings can start with the Four Noble Truths and the Eightfold Path, which are less affected by the variation in family stories.