The First General-Purpose Computer Was Built in the 1940s

The ENIAC (Electronic Numerical Integrator and Computer), completed in 1946 at the University of Pennsylvania, is widely recognized as the first general-purpose electronic computer. It was built to calculate artillery firing tables for the U.S. Army during World War II, though the war ended before it was finished. ENIAC weighed 30 tons, occupied 1,800 square feet of floor space, and used 18,000 vacuum tubes instead of transistors or microchips.

Before ENIAC, machines existed that could perform calculations—mechanical adding machines, punch-card tabulators, and specialized devices—but they were designed for one narrow task. ENIAC was different because it could be reprogrammed to solve many different kinds of mathematical problems. This programmability is what makes it the first true computer in the modern sense.

Key Takeaways

  • ENIAC, completed in 1946, is recognized as the first general-purpose electronic computer because it could be reprogrammed to solve different problems.
  • Earlier machines like the Analytical Engine (1837) and Colossus (1943) performed calculations, but ENIAC was the first to combine electronic speed with general-purpose programmability.
  • ENIAC used vacuum tubes for processing and could perform 5,000 additions per second, which was revolutionary for its time.
  • The invention of the transistor in 1947 and the integrated circuit in 1958 made computers smaller, faster, and practical for everyday use.

Earlier Machines That Led to the Computer

The path to the computer did not start in the 1940s. In 1837, British mathematician Charles Babbage designed the Analytical Engine, a mechanical device that could be programmed using punch cards and could perform different calculations based on those instructions. It was never built during his lifetime, but the design contained the core ideas of modern computing: a processor, memory, and programmable instructions.

During World War II, the British built Colossus (1943) to break German military codes. Colossus was electronic and fast, but it was designed only for code-breaking—it could not be reprogrammed for other tasks. This is why ENIAC, which arrived three years later, earned the title of first general-purpose computer.

How ENIAC Worked and What Made It Revolutionary

ENIAC processed information using vacuum tubes—glass tubes with heated filaments that could switch on and off to represent 1s and 0s in binary code. Each calculation required thousands of these tubes to fire in sequence. The machine could perform 5,000 additions per second, which was thousands of times faster than any mechanical calculator of the era.

Programming ENIAC meant physically rewiring parts of the machine and flipping hundreds of switches by hand. A single program could take days or weeks to set up. Despite this cumbersome process, ENIAC proved that electronic computing was possible and practical for serious scientific work. It was used to calculate hydrogen bomb designs and solve physics problems that would have taken human mathematicians months or years.

The Transistor Changed Everything

In 1947, just one year after ENIAC was completed, Bell Labs invented the transistor—a tiny electronic switch made from semiconductor material that could do the same job as a vacuum tube but was smaller, faster, and more reliable. Transistors generated far less heat and used much less power than vacuum tubes, which meant computers could be made smaller and run longer without breaking down.

By the 1950s, computers built with transistors replaced those built with vacuum tubes. These machines were still room-sized and cost hundreds of thousands of dollars, but they were practical enough that universities, large corporations, and government agencies began buying them. The transistor made the computer age possible.

The Integrated Circuit and the Path to Modern Computing

In 1958, engineers at Texas Instruments and Fairchild Semiconductor independently invented the integrated circuit—a way to put many transistors and other components on a single chip of silicon. This invention made computers exponentially smaller and cheaper to manufacture. By the 1970s, personal computers like the Apple II and Commodore 64 brought computing into homes and small businesses.

The integrated circuit is the reason your smartphone contains more computing power than ENIAC ever had, in a device that fits in your pocket. Every computer you use—whether a laptop, tablet, or phone—is built on the foundation of ideas that started with ENIAC and accelerated with the transistor and integrated circuit.

Why the Date Matters: 1946 vs. Other Claims

Different sources sometimes cite different dates for "the first computer" because the definition matters. If you count any machine that performs calculations, the abacus (invented around 2700 BCE) or Babbage's Analytical Engine (1837) could claim the title. If you count only electronic machines, Colossus (1943) comes first. If you count only general-purpose programmable electronic computers, ENIAC (1946) is the answer.

Most computer historians use 1946 and ENIAC because that machine combined three essential features: it was electronic (fast), it was programmable (flexible), and it was general-purpose (not locked into one task). This combination is what defines a computer in the modern sense.

Frequently Asked Questions

Was ENIAC really the first computer ever made?

ENIAC was the first general-purpose electronic computer. Earlier machines performed calculations or were electronic but designed for one specific task. ENIAC could be reprogrammed to solve many different problems, which is the key difference.

How much did ENIAC cost to build?

ENIAC cost approximately $500,000 to build in 1946. It was funded by the U.S. Army and took about three years to design and construct.

Could ENIAC run the software we use today?

No. ENIAC had only about 5 kilobytes of memory, while modern programs require millions or billions of bytes. ENIAC could only solve mathematical problems; it could not run word processors, web browsers, or any modern software.

Who actually invented the computer?

ENIAC was built by a team led by John Mauchly and J. Presper Eckert at the University of Pennsylvania. However, the computer as a concept evolved over centuries through contributions by Babbage, Alan Turing, and many others. No single person invented the computer.

When did computers become small enough for home use?

The first personal computers appeared in the mid-1970s, with the Apple II (1977) and Commodore 64 (1982) becoming popular in homes. These machines were possible because of the integrated circuit, invented in 1958, which made computers small and affordable enough for consumers.