Uploaded May 2026 | Updated November 2026, 4 days ago
How does a computer add two numbers — not with code, but with actual electronics? In this video we build the circuits that make addition happen at the hardware level, starting from the simplest possible adding circuit and working up to something that can add multi-bit binary numbers.
We cover:
• The rules of binary addition (and why carrying works the same as primary school)
• The half adder — the smallest adding circuit, built from one XOR gate and one AND gate
• The full adder — why the half adder isn't enough, and how to fix it with two half adders and an OR gate
• The ripple carry adder — chaining full adders together to add 4-bit (and larger) binary numbers
• Overflow — what happens when the answer doesn't fit
Everything is demonstrated in a logic gate simulator so you can see exactly how the signals flow through the circuit. No code required — just logic gates doing what they do.This is the foundation of how virtually every processor ever built handles addition. Next time we'll look at how computers deal with fractions and floating-point numbers — which is where things get weird.
-- Chapters --
0:00 Introduction — How do computers add?
0:53 Binary addition rules
2:41 The half adder (XOR + AND gates)
5:28 Half adder demo in the simulator
7:15 Why the half adder isn't enough
8:20 The full adder (two half adders + OR gate)
10:45 Full adder demo in the simulator
12:30 The ripple carry adder
14:15 4-bit adder demo & overflow
15:40 Conclusion & what's next
“Music by Karl Casey @ White Bat Audio”
How does a computer add two numbers — not with code, but with actual electronics? In this video we build the circuits that make addition happen at the hardware level, starting from the simplest possible adding circuit and working up to something that can add multi-bit binary numbers.
We cover:
• The rules of binary addition (and why carrying works the same as primary school)
• The half adder — the smallest adding circuit, built from one XOR gate and one AND gate
• The full adder — why the half adder isn't enough, and how to fix it with two half adders and an OR gate
• The ripple carry adder — chaining full adders together to add 4-bit (and larger) binary numbers
• Overflow — what happens when the answer doesn't fit
Everything is demonstrated in a logic gate simulator so you can see exactly how the signals flow through the circuit. No code required — just logic gates doing what they do.This is the foundation of how virtually every processor ever built handles addition. Next time we'll look at how computers deal with fractions and floating-point numbers — which is where things get weird.
-- Chapters --
0:00 Introduction — How do computers add?
0:53 Binary addition rules
2:41 The half adder (XOR + AND gates)
5:28 Half adder demo in the simulator
7:15 Why the half adder isn't enough
8:20 The full adder (two half adders + OR gate)
10:45 Full adder demo in the simulator
12:30 The ripple carry adder
14:15 4-bit adder demo & overflow
15:40 Conclusion & what's next
“Music by Karl Casey @ White Bat Audio”
![Calculators, Reverse Polish Notation, and the Birth of Computing
What happens when you set out to build a pocket calculator? Well in this case it turns out you also accidentally invent desktop computers, and spawn a bunch of CPUs that are still being used today.
Follow along as we go through the thoroughly bizarre story of how trying to do complex maths and fit it in our pockets lead directly to the machine youre using right now to watch this video.
Calculators were originally like computers - huge boxes that required care and maintenance and sat firmly on a desk plugged into the wall. Today everyone wants to own a smartphone, back then everyone wanted a pocket calculator.
The story of trying to cram a whole shoebox of electronics into a pocket involves dodgy corporate dealings, people starting their own companies and deciding that while calculators were nice, being able to program them would be even better.
Part of the difficulty of building a calculator is working out how to understand the maths the operators were entering. A basic four function calculator can be thought of as a simple state machine, but once we get to doing scientific functions or longer multi stage formulae. And this is where a technique known as Reverse Polish Notation comes in.
Blog: https://ncot.uk
Social Media: https://social.ncot.uk
Credits / Attributions
https://en.wikipedia.org/wiki/Wilhelm_Schickard
Wilhelm Schickard 1592–1635. Astronom, Geograph, Orientalist, Erfinder der Rechenmaschine, Tübingen 1978
Replica of Schickards calculating machine
Herbert Klaeren
https://en.wikipedia.org/wiki/Blaise_Pascal
A Pascaline signed by Pascal in 1652
https://commons.wikimedia.org/w/index.php?curid=2542893
Anita MK8 calculator
https://commons.wikimedia.org/wiki/File:Bundesarchiv_B_145_Bild-F038812-0014,_Wolfsburg,_VW_Autowerk.jpg
Bundesarchiv, B 145 Bild-F038812-0014 / Schaack, Lothar / CC-BY-SA 3.0
Intel C1103 - By Thomas Nguyen - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=49532861
Intel 4004 - By the Science Museum - [1], CC BY 4.0, https://commons.wikimedia.org/w/index.php?curid=133513690
Intel 8008 - By Konstantin Lanzet - CPU Collection Konstantin LanzetCamera: Canon EOS 400D, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=5694177
Intel 8080 - By The Science Museum UK - [1], CC BY 4.0, https://commons.wikimedia.org/w/index.php?curid=133514392
Intel 8086 - By Thomas Nguyen - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=46809082
6502 - CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=91538
Zilog Z80 - By The original uploader was Damicatz at English Wikipedia. - Transferred from en.wikipedia to Commons., CC BY 2.5, https://commons.wikimedia.org/w/index.php?curid=1830432
Busicom logo - By Comrade-yutyo - Own workThis file was derived from: Busicom back 1.jpg:, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=126212890
http://www.vintagecalculators.com/html/busicom_141-pf.html
Intel https://commons.wikimedia.org/wiki/File:Intel_Employees_at_Bowers_Campus_In_Santa_Clara.jpg
HP-35 - By Mister rf - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=83581216 Calculators, Reverse Polish Notation, and the Birth of Computing](https://i.ytimg.com/vi/aGCt2G4FdHs/mqdefault.jpg)









