The answer depends on what you mean by "computer"
There is no single date for the invention of the computer because the word "computer" meant different things at different times. If you mean a machine that could do math automatically, the Analytical Engine, designed by Charles Babbage in 1837, is often called the first computer — though it was never fully built during his lifetime. If you mean an electronic machine that actually worked and ran programs, that would be the ENIAC (Electronic Numerical Integrator and Computer), completed in 1946 at the University of Pennsylvania. If you mean a programmable computer small enough to sit on a desk, that came much later, in the 1970s and 1980s.
The confusion exists because computing evolved in stages. Early machines were mechanical. Then came electrical machines. Then came electronic machines using vacuum tubes. Then came transistors, then integrated circuits. Each step was a real invention, and each one changed what a computer could do and how fast it could do it. Historians and engineers disagree on which step counts as "the first computer" because they are answering slightly different questions.
Key Takeaways
- Charles Babbage's Analytical Engine (1837) is the earliest design that matches what we call a computer today, but it was never completed in his lifetime.
- ENIAC (1946) was the first electronic computer that actually worked and ran real calculations, though it filled an entire room and used 18,000 vacuum tubes.
- The first computers were not "invented" all at once by one person — they evolved through contributions by mathematicians, engineers, and physicists over more than a century.
- What counts as the "first computer" depends on whether you are asking about design, working prototype, electronic operation, or practical usefulness.
Charles Babbage and the Analytical Engine (1837)
Charles Babbage, an English mathematician, designed the Analytical Engine in 1837. It was a mechanical device — all gears, levers, and punch cards — but it had all the parts a modern computer needs: a way to input data (punch cards), a way to store data (a memory section Babbage called "the store"), a way to do calculations (a section called "the mill"), and a way to output results. It could follow a sequence of instructions, which is what a program is.
Babbage never finished building it. The machine was too complex for the manufacturing tools of the 1800s, and he ran out of money. But his design was so complete that modern computer scientists recognize it as the first computer ever conceived. Ada Lovelace, a mathematician who worked with Babbage, wrote detailed notes about how the machine would work and even wrote what many consider the first computer program — instructions for the Analytical Engine to calculate a sequence of numbers.
The Analytical Engine was never built in Babbage's lifetime, but in 1991, a team at the Science Museum in London constructed one from his original plans. It worked exactly as Babbage had designed it.
Early electrical and mechanical computers (1890s–1930s)
Between Babbage's time and the 1940s, inventors built machines that could do specific jobs very fast. Herman Hollerith invented an electric tabulating machine in 1890 to count the U.S. Census. It used punch cards and electric circuits to sort and count data far faster than people could by hand. This machine was not a general-purpose computer — it could only count and sort — but it showed that electricity could speed up calculation.
In the 1930s, engineers built machines that could do more kinds of math. Konrad Zuse, a German engineer, built the Z3 in 1941, which used electromagnetic relays (switches controlled by electricity) to do floating-point arithmetic. The Z3 could follow a program written on punch tape. It was the first working programmable computer, though it was not electronic — it used relays instead of vacuum tubes.
These machines were faster than mechanical calculators, but they were still slow by modern standards and could only do one kind of task at a time.
ENIAC: The first electronic computer (1946)
The ENIAC (Electronic Numerical Integrator and Computer) was completed on February 14, 1946, at the University of Pennsylvania. It was built by John Mauchly and J. Presper Eckert with a team of engineers. ENIAC used vacuum tubes instead of mechanical parts or relays. Vacuum tubes are glass bulbs that can turn electricity on and off very fast — much faster than any mechanical switch. This made ENIAC roughly 1,000 times faster than earlier machines.
ENIAC was enormous. It weighed 30 tons, occupied 1,800 square feet (about the size of a large house), and used 18,000 vacuum tubes. It consumed 150 kilowatts of electricity and generated so much heat that it needed its own cooling system. Programming it meant physically rewiring circuits and flipping switches — a job that took days. But it worked, and it could solve real problems that mattered to the military and scientists.
ENIAC is widely recognized as the first general-purpose electronic computer. It could be reprogrammed to do different kinds of calculations, and it did the work in seconds that would have taken a human mathematician weeks.
Why the invention happened in stages
No single person "invented the computer" the way Thomas Edison invented the light bulb. Computing developed through the work of dozens of mathematicians, engineers, and physicists, each building on the discoveries of the ones before. Babbage could not have designed the Analytical Engine without the math developed by earlier mathematicians. Zuse could not have built the Z3 without understanding how electromagnetic relays worked. Mauchly and Eckert could not have built ENIAC without decades of research into vacuum tubes and electronics.
Each step solved a problem that the previous step could not. Mechanical machines were reliable but slow. Electrical machines were faster but still limited. Electronic machines using vacuum tubes were fast enough to be useful for real work. Later, transistors replaced vacuum tubes, making computers smaller and more reliable. Then integrated circuits put thousands of transistors on a single chip, making computers even smaller and faster.
This is why historians cannot point to a single invention date. The computer was not invented — it evolved.
The difference between "first" and "most important"
Babbage's Analytical Engine was the first design that matches what we call a computer. Zuse's Z3 was the first working programmable computer. ENIAC was the first electronic general-purpose computer. Each of these claims is true, and each one answers a different question.
For practical purposes, ENIAC is often called "the first computer" because it was the first machine that could actually do useful work fast enough to matter. But if you are asking about the history of ideas — when did someone first think of a machine that could follow instructions and do any kind of math — the answer is Babbage in 1837.
What came after ENIAC
After ENIAC, computers got smaller, faster, and cheaper. The UNIVAC (Universal Automatic Computer), completed in 1951, was the first computer sold commercially. It was still room-sized and cost hundreds of thousands of dollars, but it was the first computer built for sale rather than for a single research project.
Transistors, invented in 1947, replaced vacuum tubes in the 1950s and 1960s. Transistors were smaller, used less power, and generated less heat. Integrated circuits, invented in 1958, put many transistors on a single chip. By the 1970s, computers small enough to fit on a desk became possible. The Apple II (1977) and the IBM Personal Computer (1981) brought computing to homes and small businesses.
Each of these was a major step, but none of them would have been possible without the work that came before — including Babbage's design, Zuse's programmable machine, and ENIAC's electronic circuits.
Frequently Asked Questions
Did Charles Babbage actually build the Analytical Engine?
No, Babbage designed it but never finished building it. He ran out of money and the manufacturing technology of the 1800s was not precise enough for such a complex machine. However, in 1991, the Science Museum in London built one from his original plans, and it worked exactly as he had designed it.
Was ENIAC the first computer ever made?
ENIAC was the first electronic general-purpose computer that actually worked, but Konrad Zuse's Z3 (1941) was the first working programmable computer. The answer depends on what you mean by "first" — first designed, first built, first electronic, or first practical.
How long did it take to build ENIAC?
ENIAC took about three years to build, from 1943 to 1946. It required a team of engineers and cost about $500,000 at the time, which is roughly $8 million in today's money.
Could ENIAC do the same things a modern computer can do?
ENIAC could do any calculation a modern computer can do, but it was much slower and could only work on one problem at a time. A modern smartphone is millions of times faster and can run thousands of programs at once. But the basic idea — following instructions to do math — is the same.
Why did computers need to be so big in the beginning?
Early computers needed thousands of vacuum tubes to store and process information. Each tube was the size of a light bulb. Transistors, invented in 1947, were much smaller, and integrated circuits made computers smaller still. Today, a chip the size of a postage stamp contains billions of transistors.