NOR Calculator – Logical & Bitwise NOR Gate

Compute logical NOR and bitwise NOR, see truth tables, universal gate proofs (build AND/OR/NOT from NOR), bit-by-bit visualization, and multi-input NOR.

NOR Result (Decimal)
0
NOT(170 OR 85) — inverts each OR'd bit
Result (Binary)
0b00000000
8-bit binary
Result (Hex)
0x0
Hexadecimal representation
Intermediate OR
255
170 OR 85 = 255, then NOT
Input A (Binary)
0b10101010
Decimal: 170 | Hex: 0xAA
Input B (Binary)
0b01010101
Decimal: 85 | Hex: 0x55

Bit-by-Bit Visualization

b7
1
0
NOR
0
b6
0
1
NOR
0
b5
1
0
NOR
0
b4
0
1
NOR
0
b3
1
0
NOR
0
b2
0
1
NOR
0
b1
1
0
NOR
0
b0
0
1
NOR
0
🔵 Input A🟡 Input B🟢 NOR Result

Bit Breakdown Table

BitABA OR BNOR
b71010
b60110
b51010
b40110
b31010
b20110
b11010
b00110

Universal Gate: Build AND, OR, NOT from NOR

GateNOR ConstructionNOR ResultExpectedMatch
NOT AA NOR A8585
A AND B(A NOR A) NOR (B NOR B)00
A OR B(A NOR B) NOR (A NOR B)255255

NOR Truth Table Reference

ABA OR BA NOR B
0001
0110
1010
1110

NOR as Universal Gate

GateNOR-Only ConstructionNOR Gates Needed
NOTA NOR A1
AND(A NOR A) NOR (B NOR B)3
OR(A NOR B) NOR (A NOR B)3
NANDSee: NOT(AND) → 4 NOR gates4
XOR((A NOR A) NOR B) NOR (A NOR (B NOR B))5
Planning notes, formulas, and examples

About the NOR Calculator – Logical & Bitwise NOR Gate

The NOR gate — short for "NOT OR" — is one of the most important operations in digital logic because it is a universal gate. This means that any Boolean function can be implemented using only NOR gates, making it the foundational building block of circuit design. If you had an unlimited supply of NOR gates and nothing else, you could build an entire computer.

NOR computes the complement of the OR operation: it returns true only when all inputs are false. The moment any input becomes true, the NOR output drops to false. In a two-input truth table, NOR yields 1 for the single case (0,0) and 0 for the other three cases — the exact inverse of OR.

At the bitwise level, NOR applies this logic to each corresponding bit pair: compute OR, then flip every bit. This makes bitwise NOR useful for clearing specific bit patterns and creating inverted masks. NOR's universality is proven by constructing NOT (A NOR A), AND ((A NOR A) NOR (B NOR B)), and OR ((A NOR B) NOR (A NOR B)) entirely from NOR gates.

This calculator supports both logical and bitwise NOR for up to four inputs, with configurable bit widths. It includes a live universal-gate proof section that constructs AND, OR, and NOT from NOR using your actual input values and verifies the results match, making it an interactive digital-logic learning tool.

When This Page Helps

NOR is one of two universal gates and the foundation of several hardware families, yet its bit-level behaviour is non-obvious because it combines OR and NOT in a single operation. This calculator applies NOR bitwise across 8-, 16-, or 32-bit operands, showing the binary representation at every stage so you can trace each bit through the OR and inversion steps. It also proves NOR's universality by constructing NOT, AND, and OR from NOR gates alone, letting you verify the gate-count claims found in digital-logic textbooks.

How to Use the Inputs

  1. Choose between Bitwise NOR and Logical NOR mode.
  2. Select the number of inputs (2, 3, or 4).
  3. For bitwise mode, choose a bit width (4, 8, 16, or 32).
  4. Enter integer values or use preset buttons.
  5. View the NOR result with bit-by-bit breakdown.
  6. Check the Universal Gate section to see AND, OR, NOT built from NOR gates.
  7. Compare intermediate OR result with the final NOR (inverted) result.
  8. Reference the truth table and gate construction table.
Formula used
A NOR B = NOT(A OR B). Bitwise NOR: apply OR per bit, then invert each bit (within the chosen bit width).

Example Calculation

Result: 0 (0x00)

170 = 10101010, 85 = 01010101. OR gives 11111111 (255). NOR inverts to 00000000 (0).

Tips & Best Practices

  • NOR is a universal gate — you can build ANY logic gate using only NOR gates.
  • NOT from NOR: wire the same signal to both NOR inputs (A NOR A = NOT A).
  • NOR is true only when ALL inputs are false — the strictest gate.
  • In CMOS circuits, NOR gates are naturally efficient because of pull-down network topology.
  • NOR and NAND are both universal, but NAND is more common in practice due to speed.
  • Use the universal gate proof table to verify constructions with your own values.

How NOR Works at the Bit Level

The NOR operation performs an OR on each bit pair, then inverts every bit of the result. In 8-bit mode: 170 = 10101010 and 85 = 01010101. OR gives 11111111 (255); inverting every bit within the 8-bit width yields 00000000 (0). The inversion step is bounded by the chosen bit width — bits above that width are masked off — which is why the bit-width toggle matters: 8-bit NOR of 170 and 0 gives 85, but 16-bit NOR gives 65365.

NOR as a Universal Gate

Any Boolean function can be built from NOR gates alone. NOT requires one gate (A NOR A), OR requires two (NOR the NOR), AND requires three (NOR each input with itself, then NOR the results), and XOR can be built with four or five depending on the optimisation. This universality means an entire processor could theoretically be constructed using a single gate type, which simplifies manufacturing. In practice, CMOS libraries still use NOR alongside NAND because certain logic functions map more naturally to one or the other.

NOR in Real Hardware

The Apollo Guidance Computer famously used only NOR gates (about 5,600 of them) for its entire logic design. In modern CMOS, NOR gates have PMOS transistors in series and NMOS in parallel, making them slightly slower than NAND gates (which have the opposite topology). ECL (emitter-coupled logic) and some flash-memory architectures still favour NOR because of its read-speed advantage. Understanding NOR's properties helps hardware engineers choose the right gate library for timing-critical paths.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • A NOR gate computes NOT(A OR B). It outputs true (1) only when all inputs are false (0). It is the complement of the OR gate.