Skip to main content
ReferenceComputing historyBeginner

Konrad Zuse and the Z3: the roots of programmable computing

In 1941, Konrad Zuse built the Z3, a binary relay computer driven by punched tape. Explore its design, limits, the Z4 and Plankalkül.

Show contents

On 12 May 1941, in Methfesselstraße in Berlin’s Kreuzberg district, Konrad Zuse demonstrated a machine to a small group of experts. Built from electromechanical relays, it read a program from punched tape, worked with binary floating-point numbers and stored 64 values. This was the Z3.

The demonstration marks a distinctive moment in computing history. An independent engineer, working outside the major laboratories during wartime, had brought together several ideas familiar from modern computers. It also shows why identifying “the first computer” requires a clear set of criteria.

The Z3 makes more sense when seen alongside its designer’s earlier machines, the surviving Z4 and the programming language he devised in the 1940s.

An engineer’s answer to repetitive calculations

Born in Berlin in 1910, Konrad Zuse studied civil engineering at the Technische Hochschule in Charlottenburg, now the Technical University of Berlin. In 1935, aged 25, he joined the aircraft manufacturer Henschel Flugzeugwerke. His work involved lengthy structural stress calculations for aircraft components.

These calculations often followed the same pattern: the operations stayed much the same while the input values changed. Zuse had already considered mechanising them as a student. After only a few months at Henschel, he left to build a calculating machine and set up his own business.

His ambition went beyond a faster calculator. He wanted to automate an entire calculation: an engineer would prepare a sequence of operations, and the machine would carry it out, retaining intermediate results without requiring someone to intervene at every step.

Z1 and Z2: from mechanical binary to relays

The Z1, a mechanical binary machine

Zuse built his first machine between 1936 and 1938 in his parents’ living room. He called it V1, short for Versuchsmodell, or experimental model; after the war he replaced V with Z. The Z1 was mechanical, but departed sharply from contemporary calculators. Instead of decimal wheels with ten positions, as used by Charles Babbage and in punched-card machinery, it worked in binary.

Small metal plates and rods represented the two states: movement stood for 1, no movement for 0. Mechanical logic gates combined those movements. The Z1 used floating-point arithmetic, performed the four basic operations, held 16 numbers in mechanical memory and read a program punched into 35 mm cinema film. It ran at roughly four steps per second.

Mechanical precision proved its weakness. The many cut-metal parts had to slide and mesh without jamming. The Z1 never became reliable enough to run for long without supervision.

The Z2, a relay experiment

Zuse turned to electromechanical relays, switches operated by electromagnets and widely used in telephone exchanges. Open and closed contacts naturally represent a bit. Although slower than electronic circuits, relays avoided the Z1’s troublesome mechanical tolerances.

The Z2 was a proof of concept, in the words of computing historian Raúl Rojas, who studied the machines’ architecture in detail. It established that relay arithmetic could work and prepared the way for the Z3.

The Z3: a programmable relay computer

The machine’s main parts

Zuse began building the Z3 in the late 1930s; it was operational in 1941. Its logical organisation followed the Z1, with relays throughout. Part of the development was funded by the Deutsche Versuchsanstalt für Luftfahrt, Germany’s aeronautical research institute.

Its main components were:

  • memory for 64 floating-point numbers;
  • a binary floating-point arithmetic unit, with two programmer-visible registers;
  • a control unit to decode instructions and coordinate the machine;
  • a punched-tape reader supplying the program;
  • a decimal keyboard for input and a lamp display for results.

Z3 architecture: the punched-tape reader supplies instructions to the control unit, which coordinates the relay arithmetic unit and memory for 64 numbers. A decimal keyboard provides input and lamps display results. The tape is read in sequence, without conditional branches.

Original Bethemesh diagram, simplified from Raúl Rojas’s descriptions. Arrows show information flow rather than the actual wiring.

Arithmetic and storage were separate. Rojas notes that this division would later be associated with von Neumann architecture. There was a crucial difference, however: the Z3’s program remained on tape, outside its memory.

Binary floating-point numbers

Each number occupied 22 bits in memory: one sign bit, seven exponent bits and 14 bits for the fractional part of the mantissa. The leading 1 of a normalised mantissa was implicit, giving 15 significant bits. The principle resembles scientific notation, expressed in base 2. Six is 110 in binary, or 1.1 × 2²; 0.75 is 0.11, or 1.1 × 2⁻¹. The mantissa carries the significant digits, while the exponent determines the position of the binary point.

This representation accommodates both very large and very small values, useful in structural calculations. Zuse reserved the extreme exponent values for special cases: the lowest encoded zero and the highest infinity. You can check the binary representation of an integer such as 6 with the number base converter.

The operator still worked in decimal. Numbers were entered on a decimal keyboard and displayed in decimal using lamps. The machine handled conversion into and out of its internal binary representation.

Reading a program one instruction at a time

Each instruction occupied a row of eight positions on the punched tape. There were nine instructions: load a number from memory, store a number, add, subtract, multiply, divide, take a square root, read keyboard input and display a result. Memory instructions carried a six-bit address, allowing 64 locations.

A typical sequence was “load a, load b, multiply, store the result in c”. The same tape could be run again with different keyboard input. Program and data were separate.

The relay memory provided 64 directly addressed 22-bit locations for data and intermediate results. Instructions stayed on the sequentially read tape. A calculation could neither rewrite that tape nor alter a program held in memory.

The clock ran at approximately 5 Hz, meaning five cycles per second rather than five instructions. An instruction could take several cycles; multiplication took a few seconds. Slow by modern standards, automatic execution still removed the copying errors and fatigue associated with long runs of manual calculations.

A decisive limit: no conditional branch

The Z3’s instruction set had no conditional branch. It could not select a different part of the program according to a result. The tape passed through the reader in order.

Joining its ends produced a loop that repeated the calculation, but this mechanical arrangement did not itself supply a loop-termination test. The machine could not directly choose between alternatives in the manner of a modern “if… then… else”.

Was the Z3 the first programmable computer?

The answer depends on which properties matter. Several commonly conflated features need to be considered separately:

Property Meaning Z3 in 1941
Automatic Carry out successive operations without human intervention at every step Yes
Programmable Change the calculation by changing the program rather than rewiring Yes, using external punched tape
Digital Represent information using discrete states Yes, in binary
Electromechanical Calculate using relays Yes
Electronic Calculate using valves or transistors, without moving parts No
Stored-program Keep instructions in memory alongside data No
Result-dependent branching Directly select another sequence of instructions according to a result No conditional branch instruction

Against other 1940s machines, the Z3 has a specific place. Colossus, used from 1944, was electronic and specialised in cryptanalysis. ENIAC was electronic and general-purpose, but decimal and initially programmed through cables and switches. The Manchester Baby ran a program held in electronic memory in 1948.

The Z3 was a binary, automatic, programmable computer working in 1941. This is more informative than an unqualified claim to be “the world’s first computer”. Babbage’s Analytical Engine had embodied the idea of a card-programmed machine a century earlier but remained unfinished. Zuse built a working programmable machine using binary arithmetic and relays.

The Z3 and the Turing machine

In 1936, Alan Turing defined a mathematical model of computation, the Turing machine. A system that can, in principle, simulate such a machine is called Turing-complete or universal. How does the Z3 fit?

The absence of conditional branches initially seems to rule it out. Yet a paper by Raúl Rojas, published in the IEEE Annals of the History of Computing in 1998, showed a theoretical way around this. A looped tape and arithmetic transformations can simulate both branching and indirect addressing. Every section runs on each pass, while arithmetic ensures that only the selected section changes the relevant data.

The result concerns a Turing machine whose tape has a given finite size, subject to the model’s memory and numerical-representation assumptions. The external program tape must be allowed to grow as long as necessary, becoming extremely large. The historical machine’s 64 words do not provide unbounded memory. Rojas established a theoretical equivalence with bounded-memory computing, extending his more general 1996 work on computation without conditional branches.

This later proof must be distinguished from the Z3’s historical operation. Zuse never programmed it this way, and the construction would be exceptionally slow and cumbersome. It reveals a theoretical property of the computing model, rather than a practically usable universal computer in 1941.

Building computers during the war

Zuse worked in Nazi Germany during the war. Twice called up for short periods of military service, he obtained permission to return to Berlin, dividing his time between Henschel and his own company. Between 1936 and 1945 he built six machines: Z1, Z2, Z3, Z4 and the specialised S1 and S2 calculators.

Partial funding by the DVL reflects the interest of aeronautical research. His work nevertheless remained outside the major programmes of the period and became known abroad only after the war. This delayed circulation helps explain his initially limited place in histories written in the United States and Britain.

Much of the work was destroyed. The Z1 was lost in a bombing raid in 1943; the Z2, Z3, S1 and S2 also disappeared during the war. Working Z3 replicas were later built in Berlin and Munich. Zuse reconstructed the Z1 in the 1980s; that reconstruction has been displayed at Berlin’s Deutsches Technikmuseum since 1989.

The Z4: the survivor

The Z4 continued the Z3’s approach: binary floating-point arithmetic and a tape program. It was nearly finished by the end of the war.

In 1945 Zuse left Berlin with the machine and reached Hinterstein in the Bavarian Allgäu. Post-war conditions prevented him from continuing his business. The Z4 was subsequently installed in nearby Hopferau, close to Füssen.

In 1949, Eduard Stiefel, head of ETH Zurich’s Institute of Applied Mathematics, heard about it and visited. ETH agreed to lease the machine following repairs and adaptations. It entered service in Zurich in summer 1950 and remained there until 1955. Historian Herbert Bruderer describes a slow machine without a stored program that was nevertheless more modern than many comparable American machines: binary, tape-programmable and capable of floating-point arithmetic.

With his other machines lost during the war, the Z4 is the only one of Zuse’s pre-1945 computers to survive. Since 1988 it has been on display in the computing section of the Deutsches Museum in Munich.

Machine Construction Technology Fate
Z1 1936–1938 Mechanical, binary, floating-point, tape program Destroyed in 1943; rebuilt by Zuse in the 1980s
Z2 Late 1930s Experimental relay machine Lost during the war
Z3 Operational in 1941 Relays, binary, floating-point, tape program Lost during the war; working replicas built later
Z4 Completed in 1945 Relays, binary, floating-point, tape program ETH Zurich, 1950–1955; later Deutsches Museum

After the war Zuse established the computer manufacturer Zuse KG, which Siemens took over in 1967.

Plankalkül: a language for describing computations

Stranded in Hinterstein in 1945, Zuse returned to theoretical work begun in 1943. He sought a general way to describe computation as the production of new data from existing data according to a prescription. He used Rechenplan, or calculation plan, for what we would call a program, and Plankalkül for the notation used to write it.

Plankalkül reached well beyond the Z3’s nine instructions. F. L. Bauer and H. Wössner’s 1972 analysis identifies:

  • structured data, including arrays and records built up from bits;
  • conditions and repetition, absent from the Z3’s instruction set;
  • subprograms with input parameters and results;
  • constraints on values, such as restricting a chessboard square to thirteen states: twelve kinds of piece or an empty square;
  • a two-dimensional notation, with superimposed lines expressing indices and variable structure.

Zuse’s examples included analysing chess positions, revealing an interest in computation beyond numerical arithmetic.

This early design needs to be placed in context. It remained on paper, without a contemporary machine implementation, and had limited circulation. Heinz Rutishauser, a contributor to ALGOL, wrote in 1967 that it had never received the attention it deserved. In 2000, Raúl Rojas’s team at Freie Universität Berlin produced an implementation and described Plankalkül as the first high-level programming language. The claim concerns the design’s early date; its direct influence on languages that entered practical use is harder to establish.

Konrad Zuse’s legacy

Zuse died in 1995. Often described in Germany as the “father of the computer”, he gained recognition later elsewhere, partly because his machines had remained little known.

His contribution lies in combining several ideas in an early working machine:

  • binary representation and arithmetic;
  • floating-point numbers with special encodings for zero and infinity;
  • separate arithmetic and memory units;
  • an external program that changed the calculation without rewiring;
  • early thinking about programming languages, embodied in Plankalkül.

Electronics, direct conditional branching and stored programs were further steps realised by other teams, with Colossus, ENIAC, the Manchester Baby and EDSAC. Comparing these machines is most useful when it reveals the different routes towards modern computing rather than simply ranking them.

Frequently asked questions

Was the Z3 the first computer?

It depends on the definition. The Z3 was binary, automatic and programmable in 1941. It used relays rather than electronics, kept its program outside memory and lacked conditional branch instructions. It is more accurately described as a major early computer than as an absolute first.

Why did Zuse choose binary?

Binary simplifies the components: each element needs only two distinguishable states, whether a moving rod in the Z1 or an open or closed relay in the Z3. Base-2 arithmetic is also simpler to implement than base 10. Conversion at input and output allowed operators to keep working in decimal.

Was the Z3 Turing-complete?

The 1941 machine executed arithmetic sequences without conditional branches. Rojas’s 1998 publication demonstrated a theoretical equivalence with bounded-memory computation using a very long looped program tape and arithmetic transformations to simulate choices and indirect addressing. This was a later theoretical result, not a historical application or a practical universal computer of the period.

What was Plankalkül?

It was a programming language designed by Zuse in the 1940s, before the first languages used in practice. It described structured data, conditions, repetition and subprograms. It remained on paper at the time; a later implementation was completed in 2000.

Where can Zuse’s machines be seen?

The original Z4 is at the Deutsches Museum in Munich. Zuse’s 1980s reconstruction of the Z1 is at the Deutsches Technikmuseum in Berlin. Working Z3 replicas have been built in Berlin and Munich.

How did the Z3 differ from ENIAC?

The Z3 was electromechanical and binary, with a punched-tape program and storage for 64 numbers. ENIAC was electronic, much faster and decimal, with its initial program configured using cables and switches. They met different needs through different technical approaches.

Was this article useful?

Sources and references

  1. Raúl Rojas, The Z1: Architecture and Algorithms of Konrad Zuse’s First Computer (opens in a new tab), Freie Universität Berlin, arXiv preprint 1406.1886, revised in 2025, 2014Page in English
  2. Raúl Rojas, Simulating Konrad Zuse’s Computers (opens in a new tab), Dr. Dobb’s Journal, September 2000; archived copy, 2000Page in English
  3. Raúl Rojas, How to Make Zuse’s Z3 a Universal Computer (opens in a new tab), IEEE Annals of the History of Computing, 20(3), pp. 51–54; 1997 preprint, 1998Page in English
  4. Raúl Rojas, Los ordenadores de Konrad Zuse (opens in a new tab), Investigación y Ciencia, December 1997, pp. 22–30, 1997Page in Spanish
  5. Horst Zuse, Konrad Zuse’s Computer Z3 (opens in a new tab), Berlin, April 2016, 2016Page in English
  6. Raúl Rojas, Conditional Branching is not Necessary for Universal Computation in von Neumann Computers (opens in a new tab), Journal of Universal Computer Science, 2(11), pp. 756–768, 1996Page in English
  7. Raúl Rojas, 12. Mai 1941: Konrad Zuse stellt den ersten Computer vor (opens in a new tab), Konrad-Adenauer-Stiftung, Geschichtsbewusst, 2021Page in German
  8. Herbert Bruderer, Early History of Computing in Switzerland: Discovery of Rare Devices, Unknown Documents, and Scarcely Known Facts (opens in a new tab), IEEE Annals of the History of Computing, 39(1), January–March 2017, 2017Page in English
  9. Evelyn Boesch Trüeb, Bedienungsanleitung des legendären Computers Zuse Z4 entdeckt! (opens in a new tab), ETH Library, ETHeritage blog, 2020Page in German
  10. F. L. Bauer and H. Wössner, The Plankalkül of Konrad Zuse: A Forerunner of Today’s Programming Languages (opens in a new tab), Communications of the ACM, 15(7), pp. 678–685; copy hosted by New Jersey Institute of Technology, 1972Page in English
  11. Raúl Rojas, Cüneyt Göktekin, Gerald Friedland and Mike Krüger, Plankalkül: The First High-Level Programming Language and its Implementation (opens in a new tab), Freie Universität Berlin, Department of Mathematics and Computer Science; Refubium repository, 2000Page in English
ReferenceComputing historyBeginner

ALGOL: describing and structuring algorithms

How ALGOL changed program design: an international project, blocks, variable scope, recursion and language reports, from 1958 to Pascal and Simula.

1 November 20269 min