Skip to main content
The new Teacher Workspace is here. Your first 3 assignments are free. Try it →

Half adder

A half adder is a digital circuit that adds two 1-bit binary inputs and gives two outputs: sum and carry. In Intro to Electrical Engineering, it is the first step toward building binary arithmetic circuits.

Last updated July 2026

What is the half adder?

A half adder is a simple digital circuit in Intro to Electrical Engineering that adds two single-bit binary inputs, usually labeled A and B. It produces two outputs: the sum bit and the carry bit. For one-bit addition, that is enough to show whether the result stays in the same place or spills over into the next place value.

The logic is straightforward. The sum output is made with an XOR gate, so the sum is 1 only when the inputs are different. The carry output is made with an AND gate, so the carry is 1 only when both inputs are 1. In Boolean form, S = A XOR B and C = A AND B.

The truth table has four input combinations. If A and B are both 0, the result is sum 0, carry 0. If one input is 1 and the other is 0, the result is sum 1, carry 0. If both inputs are 1, the result is sum 0 with a carry of 1, which matches binary addition: 1 + 1 = 10.

That last case is the reason the half adder is only a partial adder. It does not accept a carry in from a previous stage, so it cannot handle multi-bit addition by itself. If you are adding larger binary numbers, you need a full adder or a chain of adders that can bring in and pass along carry signals.

In circuit work, the half adder is often drawn as a logic diagram with one XOR gate and one AND gate sharing the same two inputs. That makes it a nice first example for mapping binary arithmetic into hardware. You move from arithmetic on paper to signals, gates, and output lines you can trace through a schematic.

A common mistake is thinking the sum output alone gives the answer. In binary hardware, the carry is part of the answer too, because it tells you whether the result belongs in the next higher place value. Without the carry output, the circuit would lose information whenever the inputs are both 1.

Why the half adder matters in Intro to Electrical Engineering

The half adder is the cleanest bridge between binary addition and real digital hardware. Once you understand it, binary arithmetic stops being just a math rule and starts looking like a circuit design problem: how do you turn input bits into outputs with logic gates?

This term shows up right where Intro to Electrical Engineering moves from truth tables into building arithmetic blocks. A half adder is not a final design for a computer processor, but it is the first building block inside larger adders. That makes it a useful model for how engineers combine small logic functions into more useful systems.

It also teaches you how to read and design simple logic diagrams. If you can trace why XOR gives the sum and AND gives the carry, you are ready for more complicated circuits like full adders and ripple carry adders. You also get practice translating between three representations of the same idea: a truth table, Boolean equations, and a gate-level schematic.

In labs or problem sets, this concept often shows up as a quick design question or a circuit analysis task. You may be asked to complete a truth table, identify which gates are needed, or explain what happens for the input pair 1 and 1. The half adder gives you a compact, checkable example of how digital systems do arithmetic one bit at a time.

Keep studying Intro to Electrical Engineering Unit 15

Official unit cheatsheet

open one-pager

How the half adder connects across the course

Full Adder

A full adder extends the half adder by adding a carry in from a previous bit position. That extra input is what makes multi-bit binary addition possible. If a problem includes three inputs instead of two, you are usually looking at a full adder rather than a half adder.

Binary Addition

Half adders are a hardware version of binary addition for one-bit inputs. The circuit matches the same place-value idea you use on paper, especially the case where 1 + 1 becomes 10. Understanding the binary rule makes the truth table easier to memorize and check.

Logic Gates

The half adder is built from logic gates, so it is a direct example of how gates combine into a useful function. The XOR gate produces the sum output and the AND gate produces the carry output. This makes it a good checkpoint for whether you can connect gate behavior to circuit output.

Ripple Carry Adder

A ripple carry adder chains together multiple adder stages so you can add larger binary numbers. The half adder is one of the simplest pieces that can appear inside that bigger structure. It also shows why carry handling matters, since each stage has to pass its carry to the next one.

Is the half adder on the Intro to Electrical Engineering exam?

On a quiz or problem set, you may be asked to fill in a half adder truth table, draw the gate-level circuit, or write the Boolean expressions for sum and carry. The usual move is to check the two inputs, then decide whether the outputs are different or both 1. If the inputs differ, the sum is 1 and the carry is 0. If both inputs are 1, the sum is 0 and the carry is 1.

You may also see a design question that asks why a half adder cannot be used by itself for multi-bit addition. The answer is that it has no carry in, so it cannot account for a carry from a lower bit. That distinction often shows up when comparing half adders with full adders or when reading a logic diagram in class.

The half adder vs Full Adder

A half adder adds only two single-bit inputs, while a full adder adds two bits plus a carry in. If a circuit needs to handle carry from a previous stage, it is not a half adder anymore.

Key things to remember about the half adder

  • A half adder adds two single binary digits and gives a sum output plus a carry output.

  • The sum comes from an XOR gate, and the carry comes from an AND gate.

  • It works for only two inputs, so it cannot handle carry in from a previous addition stage.

  • The 1 + 1 case is the big clue: the circuit outputs sum 0 and carry 1, just like binary 10.

  • Half adders are a basic building block for larger adders used in digital circuits.

Frequently asked questions about the half adder

What is a half adder in Intro to Electrical Engineering?

A half adder is a digital circuit that adds two one-bit binary inputs and produces a sum and a carry. It is usually built with an XOR gate for the sum and an AND gate for the carry. In this course, it is one of the first examples of arithmetic done with logic gates.

What is the difference between a half adder and a full adder?

A half adder has two inputs and no carry in. A full adder has two data inputs plus a carry in, so it can be chained into multi-bit addition circuits. If the problem includes a previous carry, you are dealing with a full adder.

Why does a half adder use XOR and AND?

XOR gives the correct sum bit because it is 1 only when the inputs are different. AND gives the carry because a carry happens only when both inputs are 1. Those two gate behaviors match binary addition exactly for one-bit inputs.

How do you write the truth table for a half adder?

List the four input pairs, 00, 01, 10, and 11. Then fill in the outputs: 00 gives sum 0 carry 0, 01 and 10 give sum 1 carry 0, and 11 gives sum 0 carry 1. That table is a fast way to check the circuit.