The short answer
The Buddha lived first, by several centuries. Most historians place the Buddha’s life in about the 5th century BCE, while Jesus was born around the turn of the Common Era. The exact dates for both are uncertain, but the order is not seriously disputed.
When the Buddha lived
Siddhartha Gautama, the teacher known as the Buddha, is traditionally said to have lived in northern India. Historians have long estimated his dates by linking his life to rulers and events of the region. The most common estimate places his life roughly between 563 and 483 BCE, but some scholars argue for later dates, in the late 5th or early 4th century BCE.
The earliest Buddhist texts were not written down until about the first century BCE, centuries after his death. That is one reason the exact dates remain approximate.
When Jesus lived
Jesus of Nazareth lived in the Roman province of Judea. The Gospels do not state his birth date, so scholars estimate it from clues in the text, including references to King Herod. That reasoning most often points to a birth between about 6 and 4 BCE. Most scholars place his death in the early 30s CE, though the exact year is debated.
How far apart they were
Even using the later estimate for the Buddha and the earlier one for Jesus, the Buddha’s life ends several centuries before Jesus was born. Depending on the estimates used, the gap is roughly 400 years or more.
Did they meet or know of each other?
Historians have found no reliable evidence that the Buddha and Jesus met, or that either knew of the other. They lived in different regions, and their traditions developed separately. Stories and comparisons that link the two come from later writers, not from records of their lives.
Many readers ask, “Did Jesus know about Buddha?” The historical answer matches the one above: there is no solid evidence of contact.
Why the dates are uncertain
Early Buddhist texts were written down long after the Buddha’s death, and the Gospels were written decades after Jesus. Neither source was written as a modern historical record, so dating events precisely is difficult for both figures.
Why people compare them
People often compare the two because both are teachers whose ideas shaped major religions. Comparisons of their ethics, teachings and followers can be interesting. They are a separate question from the historical one of who came first, and it helps to keep the two apart.