What Is logicsimulation.com?
Every computer, phone and digital device is built from logic gates — tiny circuits that take binary inputs (0 or 1) and produce a binary output according to a fixed rule. Understanding how these gates combine into adders, multiplexers, latches and registers is the core of every digital electronics and computer architecture course, but it is hard to build that intuition from static diagrams in a textbook.
logicsimulation.com is an interactive workbench for exactly that. You place gates on a canvas, connect them with wires and flip input switches; the simulator evaluates the circuit instantly and highlights every wire that carries a logic 1. You can see why a NAND gate is universal, how a carry ripples through a full adder, or how an SR latch remembers a bit — by building it yourself rather than reading about it.
The simulator runs entirely in your browser. Nothing has to be installed, and your circuits stay on your own device unless you choose to export them.
Features
Every time you toggle a switch or draw a wire, the whole circuit is re-evaluated. Wires carrying a logic 1 light up, so you can follow a signal from input to output.
Place gates, switches, LEDs, clocks, flip-flops, multiplexers and 7-segment displays on a canvas and connect their ports with wires. Undo, redo and touch input are supported.
39 ready-made textbook circuits — from single gates to half and full adders, SR and JK flip-flops, shift registers, priority encoders and a clock divider — that open in the editor with one click.
A structured mini-course that starts with binary states and boolean basics and ends with flip-flops, memory and small projects, with example circuits for every chapter.
Graded exercises from "connect your first wire" to building a full adder or an XOR gate from NANDs only. The simulator checks your circuit against the expected truth table.
Click any gate to see its truth table and live state, or open the logic analyzer to watch signals over time as waveforms — useful for clocked, sequential circuits.
How to Build Your First Circuit
- Add inputs. Drop one or more INPUT switches on the canvas. Each switch can be toggled between 0 and 1.
- Place gates. Pick a gate such as AND, OR or XOR from the toolbox and place it next to the inputs.
- Draw wires. Drag from an output port to an input port to connect components. A wire glows when it carries a 1.
- Add outputs. Connect the final gate to an OUTPUT LED or a 7-segment display to see the result.
- Test every case. Toggle the inputs through every combination and compare the outputs with the truth table you expect.
A good first exercise is a half adder: two inputs A and B, an XOR gate for the Sum output and an AND gate for the Carry output. Toggle all four input combinations and you have just built the circuit that every CPU uses to add binary numbers. The half adder guide walks through it step by step.
The 12-Chapter Tutorial
Inside the simulator, the Tutorials tab offers a structured course. Each chapter explains one topic and links to example circuits you can open and modify:
- Introduction to Digital Logic
- Binary States & Boolean Basics
- Basic Gates: AND, OR, NOT
- Universal Gates: NAND & NOR
- XOR and XNOR
- Combining Gates into Circuits
- Adders & Subtractors
- Multiplexers & Decoders
- Sequential Logic Basics
- Flip-Flops & Memory Concepts
- Building Small Projects
- Practice Challenges
Learn the Fundamentals
Complete guide to the AND gate: definition, truth table, boolean expression, transistor implementation, real-world applications, and worked examples.
Complete guide to the XOR gate: exclusive OR definition, truth table, applications in binary addition, parity checking, and cryptography. With worked examples.
Complete guide to all seven logic gates: AND, OR, NOT, NAND, NOR, XOR, XNOR. Truth tables, boolean expressions, applications, and worked circuit examples.
Complete reference for boolean algebra rules: identity, null, complement, idempotent, De Morgan's theorems, absorption, and distributive laws with worked examples.
Beginner's guide to digital logic: binary numbers, logic levels, logic gates, boolean algebra, and how computers process information. Start your journey here.
Logic Gates
Free online logic gate simulator. Build circuits with AND, OR, NOT, NAND, NOR, XOR, XNOR gates. Instant real-time simulation for students and engineers.
Use this free interactive AND gate simulator to test inputs, generate truth tables, and learn digital logic instantly. No download required.
Test the OR gate online with this free interactive simulator. Visualise truth tables, toggle inputs, and learn digital logic step by step.
Simulate the NOT gate (inverter) online. Toggle the input and watch the output invert instantly. Includes truth table, boolean expression, and circuit examples.
Interactive XOR gate simulator with truth table, boolean expression, and real circuit examples. Learn how exclusive OR works in binary addition and error detection.
Simulate the NAND gate — the universal logic gate. Build any circuit from NAND gates alone. Free interactive tool with truth table and circuit examples.
Free interactive NOR gate simulator. Explore the second universal logic gate — build any circuit from NOR gates alone. Includes truth table and worked examples.
Simulate the XNOR gate online. Learn how it functions as a digital equality detector. Free tool with truth table, boolean expression, and circuit examples.
Circuits and Techniques
Generate truth tables for any logic gate or boolean expression online. Free tool with AND, OR, NOT, NAND, NOR, XOR, XNOR tables plus multi-input variants.
Learn to simplify boolean algebra expressions step by step using De Morgan's theorems, absorption, idempotent and complement laws, then verify them in the simulator.
Learn Karnaugh map (K-map) simplification with worked 2, 3, and 4-variable examples. Free digital logic tool for minimising boolean expressions.
Simulate binary addition circuits online. Learn how half adders and full adders combine to add multi-bit binary numbers. Free interactive tool.
Simulate a half adder circuit online. See how XOR and AND gates combine to produce Sum and Carry outputs. Free interactive digital logic tool.
Simulate a full adder circuit online. Learn how Sum and Carry-Out are computed from 3 inputs including Carry-In. Free interactive digital logic tool.
Simulate binary decoders online. Learn how 2-to-4 and 3-to-8 decoders work in address decoding, memory selection, and seven-segment displays. Free tool.
Simulate multiplexer (MUX) circuits online. Learn how 2-to-1, 4-to-1, and 8-to-1 multiplexers work. Free interactive tool for digital logic students.
Ready to Build a Circuit?
Open the editor and start with a single gate, or load one of the 39 example circuits from the library.
Frequently Asked Questions
- Is logicsimulation.com free?
Yes. The simulator, tutorials, circuit library and challenges are free to use. There is no account, download or installation.
- Who is it for?
It is built for university and high-school students taking digital electronics or computer architecture, for teachers who want an interactive classroom demo, and for hobbyists who want to try a circuit before building it on a breadboard.
- Which components are available?
All seven basic gates (AND, OR, NOT, NAND, NOR, XOR, XNOR) including 3-input variants, input switches, output LEDs, clock and pulse generators, SR, D, JK and T flip-flops, multiplexers, half and full adders and 7-segment displays.
- Can I save my circuits?
Yes. Circuits can be saved as a JSON file on your computer and loaded again later. Your challenge progress is stored in your own browser.
- Does it work on phones and tablets?
Yes. The editor supports touch input for placing components and drawing wires, and the layout adapts to small screens.