top of page

Examples of Relay-based Adders

Abstract: This section surveys 1-bit digital adders, a fundamental computer component alongside the Boolean operations AND, OR, and NOT. It compares relay-based designs starting with five relays down to one relay per adder. It addresses a gap in the limited literature on relay-adder types. Eight circuit examples are presented.

Introduction

In 1937, Bell Labs mathematician Dr. George Stibitz built the Model K 1-bit binary adder on his kitchen table. This landmark invention bridged an intellectual divide that had endured for more than a century.

​

Gottfried Wilhelm Leibniz formalized binary arithmetic circa 1679 (published in 1703) and Joseph Henry and Edward Davy developed the electromechanical relay in the 1830s.  The two concepts lived in different universes. Stibitz’s breakthrough was marrying binary arithmetic with electromechanical logic circuits. Surprising it was not done long before – See Appendix A.

George Stibitz with model K adder.png

Fig 1, Stibitz with his replica of the original Model-K Half Adder, 1980

Source: www.computerhistory.org

Figure 1 shows a replica of the Model-K that he built since the original was lost to time.

​

The first digital adder was remarkably simple. First, let’s look at the logic diagram of what he built. It was called a “half-adder”. A full 1-bit adder has a Carry_in bit and a half-adder does not. Figure 2 shows this circuit made of a XOR gate and an AND gate with Sum and Carry_out bits (S and C). This diagram is agnostic to the implementation details. If you are unfamiliar with logic gates check out the interactive logic explainer.

half adder logic diag.png

Fig 2, Logic diagram of a 1-bit “half adder”

Figure 3 shows a replica built by Stibitz on display at the Computer History Museum in Mountain View, CA. It implements the logic in Figure 2. There are two input keys A and B, and two output lamps, Sum and Carry. Two telephone relays perform the addition logic.  

Replica of original half-adder Model-K.png

Fig 3, Replica of original half-adder Model-K built by G. Stibitz

Source: www.computerhistory.org

This author built a Model-K “replica of a replica” in 2026. The two batteries are 18V each, (36V in series) to power the two telephone relays very similar to the original Model-K relays (~1935). Below is a short video demo of this replica. The relay circuit schematic is described in Appendix B.

Stibitz adder.mp4

It’s easy to imagine Stibitz reasoning on how to extend his idea by including a Carry_in bit and end up with Figure 4. This makes it a full adder in modern terms; 3 inputs, 2 outputs. It’s very likely he built a demo board of this too using telephone relays from the Bell System. Chaining together K full 1-bit adders create a composite adder of length K bits. As will be seen, there are many ways to implement this diagram using relays plus other methods using vacuum tubes and transistors. 

​

Incidentally, Konrad Zuse (Germany, Z3 computer) and Stibitz worked entirely independently in the lead-up to World War II, neither knew of the other's work, but both arrived at using electromechanical telephone relays for binary arithmetic at almost the same time although using completely different circuits for their version of a full adder. 

full binary adder diag.png

Fig 4, Combing 2 half-adders to make a full adder

The Stibitz experiment started a fire inside Bell Labs. Along with engineer Sam Williams, Stibitz took the lead working with 20 other engineers and began building relay calculators then relay computers. They built the first Complex Number Calculator, the Model 1 in 1940 using 450 relays [E. G. Andrews].  The full adder circuit that Stibitz used in the Model 1 is described below.  

How to add using relays

No matter what clever full adder circuits engineers invent they all accomplish the same thing:  A + B + Cin = 2*Cout + Sum, where the variables are binary values.  The "+" is an add symbol here but sometimes used for an OR operation. The following sections will review designs spanning from 5 to 1 relay(s) to implement a 1-bit addition.

​

The adder examples below are “pure relay” designs, and the following are not used:

  • Polarized relays or relays with 2 coils

  • Diodes/resistors to assist in the logic OR and AND functions

  • Transistors or vacuum tubes
     

Also, race conditions are not considered and with a clocked adder races are not a worry. There are published schematics using more than 5 relays per 1-bit  adder. For an example of a 1-bit adder using 12 relays see the DIY page. Cases with more than 5 relays is not the focus of this coverage. 

​

The instances below provide one example circuit for each case. There are other alternative schematics for each case but not considered here. Early designs of relay switching circuits used trial and error methods. By the 1940s, systematic synthesis techniques had reduced much of the guesswork. More on this later. 

​

The 5-relay case

First, let’s do a brute force mapping of Figure 4 using five relays, one per logic function. This is certainly the most straightforward but not the most efficient use of relays as we will see. The 1:1 implementation is Figure 5. A single relay is needed per XOR, AND or OR operator.  By inspection you can see how each relay performs its assigned logical operation.

​

For this design the logic state convention is: logic 1 = +V (48 vdc for this case) and logic 0 = Ground (0 volts). This design has the advantage of needing only a single form-C contact (SPDT) per relay, 5 in total. By examination, there are at most two relay operate delays from in to out. 

​

Relay-based systems support at least six conventions for digital logic states;  See Appendix D for a comparison of logic conventions. Figure 5 uses Case #2 in the Appendix D table.  

Technical diagram showing a 1-bit full adder circuit using five relays, composed of XOR, AND, and OR gate configurations. The drawing is a clean, educational wire-frame style schematic.

Fig 5, A five relay 1-bit binary full adder

The XOR function is often implemented using 2 relays as is the AND gate. So, another version of Fig 5 would have 9 relays. Since Fig 5 is a simple mapping of logic gates implementing Fig 4, it is easy to understand how this adder works.

The 4-relay case

Next, is a full adder design using 4 relays. There are 6 form-C (SPDT) contacts total. For this case, logic 1= +V and logic 0 = Ground. Figure 6 uses a nomenclature that was first introduced by Bell Labs in the 1930’s. It uses a relay‑contact notation where the ‘X’ symbol is a NO (normally open) contact and a ‘I’ symbol is a NC (normally closed) contact. To many readers, a schematic using this notation is easier to understand compared to forcing all the contacts to be aligned with the relay’s coil (as in Fig 5).

Technical diagram of a 4-relay full adder circuit, including a truth table for reference. The image is a clean, educational schematic illustrating electrical logic and relay connections.

Fig 6, A four relay binary 1-bit full adder [5] 

In a cascade of Fig 6 adders to make a K bit adder, the A and B relays engage at the same time and may be followed by the H relay. By examination, there is no “ripple carry delay” effect between stages. So, this is a fast design compared to cascading Figure 5 circuits. Also, relay H is referenced, and H is engaged when H = A XOR B, the “half-sum”.

The 3-relay case

Next, a 3-relay adder is developed in Figure 7. This circuit also implements the Figure 4 logic diagram.

Technical schematic diagram of a 3-relay full adder circuit. The drawing illustrates electronic relay logic symbols and connections on a white background.

Fig 7, A three relay full binary adder [5]

There are 8 form-C contacts total. So, as the number of relays decreases, the number of total contacts increases. In the end, the adder logic equation can be implemented using combinations of relays and total contacts trading off one for the other. Both are related to reliability, space, power and cost.

​

Both the B and C relays in Fig 7 need three form-C (SPDT) contacts and this is not a commonly available (or inexpensive) relay type. This design has a ripple delay carry effect, slowing the final sum of K bits when Figure 7’s are cascaded.  Also, H is referenced and this is: H = A XOR B, the “half-sum”.

The 2-relay case

This is the most interesting case. It was the “Holy Grail” for engineers –"Can I build it in two?”

​

 Let’s start with the 2-relay design by Dr. George Stibitz as described in his famous US patent 2,668,661, “Complex Computer”, filed in 1941. Figure 8 shows Figure 3 of the patent.  This circuit was used in Bell’s first relay calculator, the Model 1. The terms “ADDEND” and “AUGEND” (A, B) were common in 1941 but not so today. Stibitz must have been very satisfied inventing his 2-relay full adder considering his first half-adder was also 2-relays.  

​

True, there is a third relay, C, in the figure. This is not strictly necessary since it could be part of another circuit that records the total sum. So, for this discussion, the C relay is not part of the basic adder.

Stibitz 2 relay patent figure 3.png

Fig 8, two relay adder schematic from the Stibitz patent

First, why are there four carry lines? The Carry_in and Carry_out lines are so-called “dual rail”.  The 2-relay case needs C_in and NOT(C_in), two lines. Likewise, the adder carry outputs are C_out and NOT(C_out).

​

Fortunately, the Carry pairs propagate naturally in a chain (C_out to C_in) of similar circuits to build a K bit adder.  So, the dual carry method is not a burden except on the first bit’s carry input. Using the dual rail approach gives a designer C and NOT(C) lines to propagate between stages “for free” and this enables a 2-relay design.  The dual rail carry adder design has been criticized as “cheating” because it requires two carry-input lines. Although it adds overhead to a solitary 1-bit adder, it is an elegant and effective solution for a chain of K such adders.

​

The logic levels are: logic 1 = Ground and logic 0 = float (open).  The two relays in the figure have +48 VDC (or other value) on one side of each coil and the other sides are connected to the inputs A and B respectively (implied but not shown). So, when “Carry_in  1” is a logic 0 then “Carry_in 0” must be a logic 1 (and the reverse). This is an amazing design and has no ripple carry delay across K chained identical 1-bit adders.

​

Let’s follow the signal paths for one case: A=0, B=0, C_in = 1. This means that A and B are floating (both relays are off) and Carry_in 1 = Ground and Carry_in 0 = floating.  We would expect Carry_out = 0 and Sum = 1. Examining Figure 9, you can see the red pathing for this case.

Tracing an add 2 relays.png

Fig 9, Tracing out the case A=B=0 and C_in = 1

Calling Konrad Zuse

In 1941 Konrad Zuse of Germany created his first all-relay computer, model Z3. It used a 5-relay 1-bit adder design that Zuse thought, at the time, was the most economical use of relays. See Appendix C for an analysis of this 5-relay design.

​

During WW2 in 1944 the original Z3 was destroyed. In about 1960 Zuse rebuilt the Z3 and it’s now at the Deutches Museum in Munich. This replica uses a 2-relay adder of Zuse’s own design (Fig 10). In Zuse’s words “Only years later (after his first 5-relay adder design) did my general research in switching theory lead me to solve the same exercise in (fewer steps)” [2, page 197]. Some authors claim incorrectly that Zuse’s 1941 Z3 used a 2-relay adder.

​

Zuse came to learn that George Stibitz and Howard Aiken also invented a 2-relay design according to [2, page 199]. To see Aiken’s version of the 2-relay full adder visit Figure 2.11 of [3]. This design was used in The Harvard Mark II computer in 1947 (~13,000 relays).

​

The second Zuse design (dual rail) can be expressed using two A and two B relays. A1 (B1) and A2 (B2) coils are in parallel so each only needs 2 SPDT contacts. It is not easy to find a single relay with 4 SPDT contacts, but Zuse did. So, Figure 10 is easier to build and to understand.

Technical diagram of a 1-bit Konrad Zuse relay adder circuit. This schematic illustrates the logical flow and relay connections for binary addition.

Fig 10, Zuse 2-relay adder using 2x2 relays in parallel, redrawn based on [4]

This circuit is very similar to the Stibitz adder in Fig 8 with its contact stack only slightly modified due to logic convention.  The logic convention used is logic 1 = +V (12v for this case) and logic 0 = float (open).

The R30 2-relay adder

The R30 relay computer uses a novel 2-relay adder. This one is super-efficient in contact use and has no ripple carry delay. Fig 11 shows the details. After researching, there is no reference that names the inventor. Relay R1 coil voltage can be +- or -+ in polarity and this enables an XOR function. 

​

This design has “hot switching” on some contacts (as does Fig 6), and this was a concern during development. For example, the R2 relay’s form-C contact has solid ground and +48 on two of the three contacts. I was worried that contact stickiness or odd bouncing dynamics could cause a momentary power supply short. Based on oscilloscope relay measurements there is ample swinging contact headroom, so the three contacts never touch simultaneously even at 30 operations per second.  The contact-to-contact bounce is small, on the order of < 3 ms.

The R30 uses 6 of these units plus input A and input B latches (as most adders need) to make a full 6-bit hardware adder. This requires 24 (6x4) relays. It is not a dual rail design so this reduces contact use. However, relay R2 does invert the input carry line so this, in effect, creates a dual rail for the input carry only. 

Fig 11, R30 computer 1-bit full adder

r30 2 relay adder.png

The 1-relay case

Surprisingly, a 1-relay full dual rail adder is possible, but it requires A, NOT(A), B, Cin, NOT(Cin), Cout, and NOT(Cout) signals. Figure 12 shows an implementation using logic 1 = +V and logic 0 = GND. Relay K energizes only when A and B differ, thereby performing the XOR function. A second relay could generate NOT(A) from A, but that would make it a 2-relay design, albeit still quite simple. Thus, the 1-relay approach is most practical when NOT(A) is already available and when the relay type matches your availability. 

Technical schematic diagram showing an electrical circuit with a relay coil and multiple switch poles. The minimalist line drawing illustrates a connection controlled by a relay.

Fig 12, 1-relay full adder requiring A and NOT(A) inputs [5]

Conclusion

This survey presents eight ways to build a 1-bit full binary adder. My research uncovered a large range of published relay circuits and logic conventions.  How many more designs are posssible?  I also found floating logic signals more widespread than anticipated. A key lesson is the tradeoff between fewer relays with more contacts each and more relays with fewer contacts each. This variety gives designers more options.

​

For an introduction to structured synthesis rather than trial-and-error design see “Adders – let me count the ways” It also provides a catalog of binary adders organized by relay count and synthesis method.

References

  1. E. G. Andrews, "Telephone Switching and the Early Bell Laboratories Computers," The Bell System Technical Journal (BSTJ), Vol. 42, No. 2 (March 1963), pp. 341–353.

  2. Konrad Zuse, “The Computer – My Life”, 1993 edition

  3. Howard Aiken and the Staff of the Computation Laboratory, Description of a Relay Calculator, Harvard Collage, 1949

  4.  https://clicksrelaycpu.blogspot.com/2015/11/

  5. Kovalick, Al, developed the 1, 3 and 4 relay adders using synthesis methods described here. 

Appendix A

The Stibitz 1-bit Half-Adder – A Monumental Breakthrough

The following is a quote from [1] reflecting on the long gestation period for digital computers to arise when the concepts and components were ripe for harvesting years before. Dr. George Stibitz was a mathematician at Bell Laboratories (AT&T) and was familiar with relays as a logic switching element. 

"In the 1920's, the valuable bistable flip-flop circuit came into use, called the "W and Z" relay combination in telephone switching…. Also, Boolean algebra for optimizing logic circuitry was being studied, beginning in the late 1930's, by G. R. Stibitz, C. E. Shannon, W. Keister, and others. 

​

In brief, many of the more important computer operations and concepts were, in the 1920's and 1930's, already incorporated into the panel (telephone) switching system, and, as the value of the new circuits was recognized, into other systems as well. It might be asked, therefore, why automatic digital computers were not developed simultaneously? In the period from 1925, for example, this writer (Andrews) heard many of his colleagues say with firm conviction that relay circuit techniques could be used to carry out arithmetical operations commonly performed with desk-type adding machines. The reasons are the traditional ones of economics and failure to see a compelling need. But more importantly, no one had taken the initiative to make a thorough study of all aspects of such a project.

​

Dr. George Stibitiz also knew that Bell Laboratories engineers had been working for many years on dial switching systems. He noted that many of the design techniques therein employed were directly applicable to the design of an automatic computer…. He decided in favor of the true binary code for representing numbers. This was a new and revolutionary idea in the computing field, even though small numbers had previously been used in binary form in the (telephone) panel system decoder and in some European systems. Having made this fundamental decision, he then proceeded to design a relay-type computer (Model 1). Stibitz thereby satisfied another prerequisite for a new computer development, namely, he demonstrated that it was a feasible undertaking."

​

So, it's no surprise that the very first relay-based binary adder and calculator was created at Bell Labs, the home of telephone switching theory, exchange design and relay development. Stibitz was well aware that a typical metro telephone exchange may have 60,000 relays. Stibitz’s Model K adder is a classic example of how access breeds innovation. For more on relays and telephone switching see the companion site -- calling315.com.  

Appendix B

 George Stibitz Replica Model-K Half Adder

The schematic below describes the replica that I constructed (10/2026) based on the Stibitz version (original, 1937) in the Computer History Museum in Mountain View, CA. The two relays are original Western Electric U-type telephone flat spring models circa 1940’s. I started collecting used telephone relays while attending Lowell High School in San Francisco in pursuit of building a telephone system. 

​

The power supply is battery operated (four 9V cells for 36V, 2 cells inside each battery case designed for insertable batteries) or switchable to an external 36VDC wall plug supply. The 2 lamps are white LEDs. It is mounted on ½” white oak panel board. The A and B switches use spring steel cut from a flexible metal ruler whereas Stibitz used parts of a tin can. See article above for a video of the adder in operation.

Technical engineering diagram depicting a George Stibitz 1-bit half-adder circuit. The schematic details how relays, switches, and lamps are interconnected in a 36vdc configuration.

Model-K replica built by Al Kovalick, Santa Clara, Ca. 

Below is a simulator of the Stibitz' Half-Adder with A and B binary inputs. Very simple, yet a profound idea in 1937.  Remember that a Half-Adder does not have a carry input. 

Appendix C

The Konrad Zuse 5-relay adder from 1941

Konrad Zuse’s Z3 1941 relay computer used a 5-relay adder for its 1-bit adder module. These were chained using “carry_ out to carry_in” to make the final k-bit adder. The Z3 was a 22-bit floating point machine . There was no carry ripple delay effect. According to Zuse [2, page 198] "the carry is prepared in parallel through all binary locations using the C and D relays." This is a form of "carry lookahead" discussed here. 

​

For clarity, I reformatted the Zuse Fig A.12 schematic diagram on page 198 of [2]. The Truth Table below proves that this circuit is a full adder. As mentioned in the main article, the rebuilt Z3 in 1960 used his new 2-relay adder. Convention is logic 1 = Vs and logic 0 = float (open). Some contacts are delibrately not connected.

Zuse Z3 first adder 5 relay design v2.png

Zuse 5-relay adder used in Z3 Computer 1941

Digital chart illustration depicting the Zuse 5-relay adder truth table. The table is presented with a clean, educational, and technical aesthetic.

Truth Table 

Appendix D

Six digital logic conventions in common use

A binary 1 and 0 each need to be represented by a signal value. There are six common conventions shown in the table. All these are practical pairs and found in real world circuits. For cases 2 and 4, both the GND and +V signals need to sink or source current. Cases 1 and 2 may be the most common in use. If we added -V values the table would be expanded.

​

Many online adder circuits do not clearly define their logic convention. The table was created to add some structure to the landscape of choices. The # is the convention identifier number. 

Digital chart illustration showing electrical states for Logic 0. The table lists conditions like float, GND, and +V in a technical, minimalist style.
bottom of page