In this guide
- What was the first computer? Short answer by definition
- Who invented the computer? Charles Babbage, the “father of the computer”
- Konrad Zuse’s Z3 (1941): the first working programmable computer
- The Atanasoff-Berry Computer (1939-1942): first electronic digital machine
- Colossus (1943-1944): the secret British computer
- ENIAC (1945): the computer most people mean
- The Manchester Baby (1948): the first modern computer?
- So, when was the first computer invented?
- FAQ
When was the first computer invented? The honest answer depends on what you count as a computer. The first design for a general-purpose, programmable computer was Charles Babbage’s Analytical Engine, drawn up in England from the 1830s but never built. The first working programmable computer was Konrad Zuse’s Z3 in Germany in 1941, and the first general-purpose electronic computer was ENIAC, completed in the US in 1945 and unveiled in February 1946.
Between those sit two more strong claimants: the Atanasoff-Berry Computer (1939-1942) and Britain’s code-breaking Colossus (1943-1944). Even the Computer History Museum says the hunt for a single “first” depends on the definition. Below is each contender, what it did and what it can fairly claim.
What was the first computer? Short answer by definition
| If “first computer” means… | The answer | When |
|---|---|---|
| First design for a programmable, general-purpose computer | Babbage’s Analytical Engine | 1830s (never completed) |
| First working programmable, automatic computer | Zuse’s Z3 (electromechanical relays) | 1941 |
| First electronic digital computing machine | Atanasoff-Berry Computer (not programmable) | 1939-1942 |
| First programmable electronic computer | Colossus | 1943-1944 |
| First general-purpose electronic computer | ENIAC | 1945 (announced 1946) |
| First computer to run a program stored in its memory | Manchester Baby | 21 June 1948 |
The word “computer” itself is older than all of these: until the mid-20th century it meant a person who did calculations by hand, often for astronomy, navigation tables or the military.
Who invented the computer? Charles Babbage, the “father of the computer”
Charles Babbage, an English mathematician, is usually called the father of the computer. In 1822 he proposed the Difference Engine, a mechanical calculator that would produce error-free mathematical tables. The British government funded it, but only a part was finished.
In the 1830s he moved on to something far bigger: the Analytical Engine. On paper it had everything a modern computer has:
- a “mill” that did arithmetic (a processor),
- a “store” that held numbers (memory),
- punched cards for input, borrowed from the Jacquard loom,
- and the ability to make decisions and repeat steps (conditional branching and loops).
It was never built; the engineering and money weren’t there. But in 1843 Ada Lovelace published notes on the machine, including a method for calculating Bernoulli numbers that is often called the first computer program, and she saw that such a machine could work with symbols, not just numbers.
Babbage’s designs weren’t fantasy. London’s Science Museum built his Difference Engine No. 2 from his drawings, finishing the calculating section in 1991, and it works.
Older calculating devices like the abacus, Pascal’s mechanical calculator (1640s) and the ancient Greek Antikythera mechanism did one kind of job. They weren’t programmable, which is why most historians don’t call them computers.
Konrad Zuse’s Z3 (1941): the first working programmable computer
Working alone in Berlin, the German engineer Konrad Zuse built a series of machines. His Z3, finished in 1941, was the first fully automatic, program-controlled computer that actually worked. It used about 2,600 telephone relays instead of electronics, read its program from punched film and worked in binary floating-point numbers.
The original was destroyed in an Allied bombing raid in 1943. Zuse supervised a replica in the 1960s, now at the Deutsches Museum in Munich. Because it was electromechanical rather than electronic, and because Germany’s wartime work stayed little known abroad, the Z3 is often left out of English-language lists.
The Atanasoff-Berry Computer (1939-1942): first electronic digital machine
At Iowa State College, physicist John Vincent Atanasoff and graduate student Clifford Berry built a machine to solve systems of linear equations. The ABC used vacuum tubes for arithmetic, binary numbers and a rotating drum of capacitors for memory, ideas that every later electronic computer relied on.
It had a big limitation: it wasn’t programmable. It did one type of problem. Its fame came later, in court. In the 1973 case Honeywell v. Sperry Rand, a US federal judge ruled the ENIAC patent invalid, finding that ENIAC co-inventor John Mauchly had derived ideas from Atanasoff, whom he had visited in 1941. That ruling is why some people call the ABC “the first electronic digital computer.”
Colossus (1943-1944): the secret British computer
At Bletchley Park, codebreakers needed to break the German Lorenz cipher used by Hitler’s high command. Post Office engineer Tommy Flowers designed Colossus, which used around 1,600 vacuum tubes (valves) in the first version and about 2,400 in the improved Mark 2, ready in June 1944 for D-Day.
Colossus was electronic and could be configured with switches and plugs, so it’s often called the first programmable electronic digital computer. But it was built for one job, codebreaking, not general calculation. After the war most units were destroyed and the project stayed secret until the 1970s, which is why ENIAC got the credit for decades. The National Museum of Computing at Bletchley Park has a working rebuild.


ENIAC (1945): the computer most people mean
ENIAC (Electronic Numerical Integrator and Computer) was built at the University of Pennsylvania’s Moore School by John Mauchly and J. Presper Eckert for the US Army, to calculate artillery firing tables. It was completed in late 1945 and announced to the public in February 1946.
It was enormous: about 18,000 vacuum tubes, roughly 30 tons and a room’s worth of panels. It was also the first electronic computer that could be reprogrammed to solve many different kinds of problems, which is why it’s widely called the first general-purpose electronic computer. Programming it meant rewiring cables and setting switches by hand, a job done by six women mathematicians (Kathleen McNulty, Jean Jennings, Betty Snyder, Marlyn Wescoff, Frances Bilas and Ruth Lichterman) whose role was overlooked for decades.
ENIAC’s team went on to design EDVAC, and Eckert and Mauchly built UNIVAC I (1951), one of the first computers sold commercially in the US.
The Manchester Baby (1948): the first modern computer?
There’s one more contender. ENIAC was programmed by rewiring; modern computers keep their program in memory, like data. The first machine to do that was the University of Manchester’s Small-Scale Experimental Machine, nicknamed the Baby, built by Frederic Williams, Tom Kilburn and Geoff Tootill. It ran its first stored program on 21 June 1948, a short routine by Kilburn that found the highest factor of a number in about 52 minutes.
The Baby led to the Manchester Mark 1 and the Ferranti Mark 1, sold from 1951. If you define a computer as a stored-program machine, as most computer scientists do today, 1948 is your date.
So, when was the first computer invented?

- The idea: 1830s, Charles Babbage (Analytical Engine).
- The first working programmable computer: 1941, Konrad Zuse (Z3).
- The first general-purpose electronic computer: 1945, ENIAC.
- The first stored-program computer: 1948, Manchester Baby.
For a school quiz, “ENIAC, 1945/46” is the answer most teachers expect, and “Charles Babbage” for “father of the computer”. A fuller answer mentions that Colossus and the Z3 came first in important ways. For how computers grew from there to laptops and supercomputers, see the evolution of computers, and for another invention story full of rival claims, who invented Wi-Fi and who invented the light bulb.
Sources worth reading: the Computer History Museum timeline and the University of Manchester’s history of the Baby.
FAQ
Who is the father of the computer?
Charles Babbage (1791-1871), the English mathematician who designed the Difference Engine and the Analytical Engine. The Analytical Engine had a processor, memory and punched-card input, the basic layout of every computer since.
What was the first computer called?
It depends on the definition, but the most common answer is ENIAC, the Electronic Numerical Integrator and Computer, completed in 1945. Earlier machines include the Z3 (1941), the Atanasoff-Berry Computer and Colossus.
How big was the first computer?
ENIAC filled a large room at the University of Pennsylvania, weighed about 30 tons and used around 18,000 vacuum tubes. Today a phone does vastly more in your pocket.
Was Alan Turing the inventor of the computer?
Not of a specific machine, but his 1936 paper described the “universal machine”, the theory behind every programmable computer. He worked at Bletchley Park (on the Enigma problem, not Colossus itself) and later designed the ACE computer and worked on the Manchester machines.
What was the first personal computer?
That’s a later story: the 1970s brought small computers for individuals, such as the Altair 8800 (1975), the Apple II and the Commodore PET (1977), and later the IBM PC (1981).




