PPolySim OS

Logic Gates

Every computer is a mountain of tiny logic gates. Flip the inputs and watch each gate decide — and see why NAND alone can build any circuit.

Logic Gates & Truth TablesLive
1 AND 0 =
0

Controls

Every digital chip is built from a handful of logic gates. Toggle the inputs and watch the output flip. NAND and NOR are universal: any circuit can be built from either one alone. Educational tool.

▶ Run in Python

Data Inspector

AND output
0
A Bout
0 00
0 10
1 00
1 11

Governing equation

Reading this result: AND outputs 1 only when both inputs are 1 — the logical 'both'. With A=1 and B=0 the output is 0.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

Logic gates map binary inputs to a binary output. AND/OR/NOT are the basics; XOR detects difference; NAND and NOR are each universal, meaning any Boolean function can be built from just one of them. Educational tool.

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

More Electrical simulations

Frequently asked questions

Is this logic gate simulator tool really free?
Yes. Logic Gates runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.