← All tools
// Number

NAND Calculator online

Bitwise NAND — Binary, Octal, Decimal, Hex & ASCII — multi-input

NAND Calculator
by
CHUNKY
MUNSTER

How to Use NAND Calculator

  1. Paste at least two values — one per line, or separated by commas, semicolons, or spaces.
  2. Set Input Base or leave on Auto Detect (handles Binary, Octal, Decimal, Hex and ASCII text).
  3. Enable Show Intermediate Results to see each NAND step in a table.
  4. Click Calculate NAND — results appear in all five bases simultaneously.

NAND (Not AND) is the complement of the AND gate. It returns 0 only when ALL input bits are 1 — for every other combination the output is 1. Bitwise NAND applies this to every bit position independently across both operands.

NAND Truth Table

A B A NAND B
001
101
011
110

Why NAND is a Universal Gate

Any boolean function — AND, OR, NOT, XOR, NOR, or any combination — can be implemented using only NAND gates. This makes NAND the most important gate in digital electronics. Modern chips implement most logic using NAND (or NOR) gates for this reason. Examples:

Frequently Asked Questions

What is NAND?

NAND (Not AND) outputs 0 only when ALL input bits are 1. For all other combinations it outputs 1. It is the complement of AND: A NAND B = NOT(A AND B) = ~(A & B).

Why is NAND called a universal gate?

Any boolean function can be implemented using only NAND gates. NOT, AND, OR, XOR, and every other gate can be built from NAND, making it sufficient to construct any digital circuit.

How do I NAND hex values?

Set Input Base to Hex, paste your hex strings and click Calculate NAND. Results appear in all bases including Binary, Decimal and ASCII.

How does multi-input NAND work?

NAND is applied successively: NAND(A, B) first, then NAND(result, C), and so on. Enable Show Intermediate Results to see each step in a table.

See also: NOR Calculator, XOR Calculator, NOT Calculator, Bitwise Calculator.