Skip to content
digiwleeaTools
LearnGlossaryAboutCheat sheetHow a CPU worksBuild a CPUToolsOpen the lab →

NOR gate using NAND gates: four gates, live

A NOR gate takes four NAND gates: two NANDs with tied inputs invert A and B, a third NANDs those to make A OR B, and a fourth inverts that into NOR. Y is 1 only when A and B are both 0.

NOR is OR followed by NOT, so the recipe is the OR gate from three NAND gates plus one more NAND used as an inverter. The OR part is De Morgan's law: NAND(NOT A, NOT B) = NOT (NOT A AND NOT B) = A OR B. Equivalently, NOR = NOT A AND NOT B, which the circuit computes as the inverted inputs ANDed with NAND logic. Going the other way, a NAND gate from NOR gates also takes four, the dual of this circuit. The NAND universal gates page shows NOT, AND, OR and NOR from NANDs at once.

Live circuit: click the inputs to toggle them and watch the outputs update. It runs the real simulator, right here on the page.

Open this circuit in the lab →

Embed or cite this circuit

Free to embed on a course page, blog or worksheet: paste this code. The circuit stays live, and the small digiwleea badge links back here.

To cite it: digiwleea, “NOR gate from NAND gates”, https://digiwleea.wleeaf.dev/tools/build/nor-from-nand/

What you need

Step by step

  1. Place inputs A and B and a probe Y.
  2. Invert A and B, each with a NAND gate whose inputs are tied together.
  3. NAND the two inverted signals: that is A OR B.
  4. Invert that with a fourth NAND gate and probe the result as Y.
  5. Try all four rows: Y is 1 only for A = B = 0.

NOR from NAND truth table

ABNOT ANOT BA OR BY = A NOR B
001101
011010
100110
110010

All input rows are checked on the live circuit before the page is built.

You can also read the full theory in the lesson on the NAND gate. Prefer to build it yourself from scratch? Open the digiwleea lab and place the gates on the canvas, or start from the logic gate simulator.

More builds: Universal gates: NAND only, NOR only

All 246 build guides, by topic

Each of these is one step from a transistor to a working CPU. Build every gate from CMOS transistors and work all the way up in the free digiwleea lab, with the free theory reference alongside.

Open the NOR gate from NAND gates in the lab →

Frequently asked

How many NAND gates are needed to make a NOR gate?

Four: two NANDs invert the inputs, a third NANDs them into A OR B, and a fourth inverts that into NOR.

How many NOR gates make a NAND gate?

Also four, by the same pattern with the roles swapped: invert both inputs with NORs, NOR them into AND, then invert.

Why is NAND a universal gate?

Because NAND alone can make NOT, AND and OR, and every Boolean function can be written with those three. NOR is universal for the same reason.