Binary Logic Lab: Gates and a Half Adder

Change binary inputs and compare gate outputs, a half adder, and complete truth tables.

Free, with no sign-up.

For High school students and adults reviewing the topic.

About 8 minutes.

How does it work?

  1. Change the controls or open a named preset. Read the outputs, then check a challenge.

What will you get?

Compare the model’s outputs and check two challenges.

What does the model assume?

  • Inputs and outputs are ideal binary values, either 0 or 1. Voltage thresholds and propagation delays are not modeled.
  • NOT uses input A; input B has no effect for that selection. Both B rows remain visible in the table.
  • Output is the gate’s result bit, or the sum bit for the half adder. Carry is defined for the half adder only.

Which setup would you like to try?

What can you change?

Range: 0 to 1 bit.

Range: 0 to 1 bit.

What does the model predict?

QuantityValueUnit
Output or sum0bit
CarryNot used by this gate
Gate diagram and truth table
A = 1B = 0ANDOutput = 0

Wire labels give the bits. The dotted wire is the half adder’s carry output.

Truth table
ABOutputCarryInput row
000Not used by this gateOther inputs
010Not used by this gateOther inputs
100Not used by this gateCurrent inputs
111Not used by this gateOther inputs

Can you reach these targets?

Find inputs that make NAND output 0.

  • Target: Output or sum = 0 bit; tolerance 0 bit.
  • Gate or circuit (NAND)

Find inputs that give a half-adder carry of 1 and a sum of 0.

  • Target: Carry = 1 bit; tolerance 0 bit.
  • Target: Output or sum = 0 bit; tolerance 0 bit.
  • Gate or circuit (Half adder)
Read the topic guide