The first general-purpose electronic computer was ENIAC, completed in 1946
ENIAC (Electronic Numerical Integrator and Computer) went online at the University of Pennsylvania in February 1946. It weighed 30 tons, occupied 1,800 square feet, and used 18,000 vacuum tubes instead of transistors or chips. ENIAC could perform 5,000 additions per second—fast enough to solve in hours what would take a human mathematician weeks with pencil and paper.
But ENIAC was not the first computer ever built. Earlier machines solved specific problems or performed calculations in mechanical ways. The question of which machine counts as "the first computer" depends on what you mean by computer: a machine that follows stored instructions, or straightforward a device that calculates?
Key Takeaways
- ENIAC, finished in 1946, was the first general-purpose electronic computer that could be reprogrammed to solve different problems.
- Earlier machines like Babbage's Analytical Engine (1837) and Colossus (1943) performed calculations or code-breaking but were either never fully built or designed for one specific task.
- ENIAC used vacuum tubes instead of mechanical gears or transistors, making it much faster than mechanical calculators but also enormous and power-hungry.
- The definition of "first computer" shifts depending on whether you count mechanical machines, single-purpose devices, or programmable electronic systems.
Charles Babbage's Analytical Engine: The design that came 100 years too early
In 1837, English mathematician Charles Babbage designed the Analytical Engine, a machine that could follow a sequence of instructions punched into cards—the same principle used to program early computers a century later. It had a memory unit, an arithmetic unit, and a control mechanism. On paper, it was a real computer.
Babbage never finished building it. The mechanical precision required to manufacture thousands of gears and levers did not exist in the 1800s. His design sat in notebooks and sketches, brilliant but unrealized. In 1843, mathematician Ada Lovelace wrote detailed notes about how the Analytical Engine would work and even described what we would now call the first computer algorithm—but the machine itself remained a blueprint.
Colossus: The first electronic computer, built to break codes
During World War II, British engineers at Bletchley Park built Colossus to crack the German Lorenz cipher. The first Colossus went into operation in December 1943, three years before ENIAC. It used 1,600 vacuum tubes and could read and process paper tape at high speed, performing logical operations that no mechanical machine could match.
Colossus was electronic and programmable, but it was built for one job: breaking a specific type of encrypted message. Once the war ended, it was dismantled and kept secret for decades. ENIAC, by contrast, was designed from the start as a general-purpose machine that could solve many different kinds of mathematical problems. That flexibility—the ability to reprogram it for new tasks—is why ENIAC usually gets the title of "first computer" in history books.
Why ENIAC became the landmark, even though it was not first
ENIAC was built by John Mauchly and J. Presper Eckert at the Moore School of Engineering. It was designed to calculate artillery firing tables for the U.S. Army, but its real significance was that it proved an electronic, programmable machine could work reliably. Earlier machines were either mechanical (and slow) or single-purpose (and inflexible).
ENIAC's vacuum tubes made it fast enough to be useful for real work. Its programmability meant you could change what it did without rewiring the whole machine—you just changed the instructions. That combination made it the ancestor of every computer that followed. When people say "the first computer," they usually mean the first machine that combined speed, flexibility, and reliability in one system.
The machines that came after ENIAC
ENIAC's success sparked a wave of computer building. EDVAC (1949) improved on ENIAC's design by storing programs in memory instead of on external punch cards. UNIVAC (1951) was the first commercial computer sold to businesses and government agencies. These machines still used vacuum tubes and filled entire rooms, but they were faster and more practical than ENIAC.
The transistor, invented at Bell Labs in 1947, eventually replaced vacuum tubes. Computers shrank, became cheaper, and ran cooler. By the 1960s, integrated circuits put thousands of transistors on a single chip. The personal computer revolution of the 1970s and 1980s put computing power on desks instead of in basements. But the basic principles—electronic circuits, stored programs, and the ability to reprogram for new tasks—came from ENIAC.
How "first computer" depends on your definition
If you count any machine that performs calculations, the abacus (around 2700 BCE) was the first computer. If you count mechanical calculators, Blaise Pascal's Pascaline (1642) was an early one. If you count machines that follow stored instructions, Babbage's Analytical Engine (1837) was the design, even though it was never built.
If you count machines that were actually built and worked, Colossus (1943) was electronic and programmable. If you count general-purpose machines that could be reprogrammed for many different tasks, ENIAC (1946) is the answer most historians give. The "first" depends on what features matter most to you.
Frequently Asked Questions
Was ENIAC really the first computer?
ENIAC was the first general-purpose electronic computer that could be reprogrammed to solve different problems. Colossus was electronic and programmable but built for one specific task. Babbage's Analytical Engine was a general-purpose design but was never fully built. The answer depends on which features you think matter most.
How fast was ENIAC compared to modern computers?
ENIAC performed about 5,000 additions per second. A modern smartphone performs billions of operations per second. ENIAC was revolutionary for its time, but it was millions of times slower than the computer in your pocket today.
Why did ENIAC use vacuum tubes instead of transistors?
The transistor was not invented until 1947, after ENIAC was already under construction. Vacuum tubes were the only electronic switches available in the early 1940s. They were large, hot, and power-hungry, but they worked fast enough to make electronic computing practical.
Could you program ENIAC the way you program computers today?
No. ENIAC was programmed by physically rewiring circuits and setting thousands of switches by hand. It took days or weeks to reprogram it for a new task. Modern computers use programming languages and software, which are far faster and easier to change.
What happened to ENIAC after it was built?
ENIAC ran at the University of Pennsylvania until 1955, solving mathematical and scientific problems. It was then dismantled, and parts were sent to museums. You can see pieces of ENIAC at the Smithsonian Institution and other science museums.