KickSolve • Free • Private

Logic Gate Circuit Drawer

Type a Boolean expression and see it drawn as a logic gate circuit. Switch the inputs on and off to watch the signals travel and the output change, redraw the circuit with NAND gates only or NOR gates only, count the gates, and download the diagram as SVG or PNG. Nothing is uploaded.

Interactive input switchesNAND-only and NOR-onlySVG and PNG download
Examples
Circuit diagramClick an input switch to turn it on or off
Simplify firstOpen truth table
Gate count and signal levels

How to use Logic Gate Circuit Drawer on KickSolve

Three quick steps, no account needed.

Type your expressionUse words such as AND, OR, NOT or symbols such as ∧, ∨, ¬, or the algebra style A'B + AB'. Pick an example if you want a start.
Look at the circuitEvery operator becomes a gate. Inputs are on the left and the output is on the right. Click an input switch to turn it on or off and watch the signal.
Change, count and saveRedraw with NAND-only or NOR-only gates, read the gate count and the number of levels, then download the picture as SVG or PNG.

Why choose KickSolve

Built for students, teachers and engineers who need a clean circuit diagram fast.

Private by designYour expressions stay in your browser and are never uploaded.
Instant drawingThe circuit is redrawn as you type. No button to press.
Clear, correct drawingsShapes, wires and labels are laid out for you, and the circuit is checked against the expression.
No signup, no limitsNo account, no watermark and no limit set by a server.

About Logic Gate Circuit Drawer on KickSolve

What it does and how to get the best results.

What is a logic gate circuit drawer?

A logic gate circuit drawer turns a Boolean expression into a circuit diagram. Each operator in the expression becomes a gate: AND, OR, NOT, XOR, NAND or NOR. Wires join the inputs, the gates and the output. This is the same picture you draw by hand in a digital logic course, but made in a second and always matching the expression.

How to draw a logic circuit from a Boolean expression

The method is the same every time, and the tool does these steps for you.

  1. Find the operator that is applied last. It becomes the final gate, next to the output.
  2. Give each of its inputs the circuit of the smaller part of the expression.
  3. Repeat until only variables are left. These become the inputs on the left.
  4. Join everything with wires. If a variable or a part is used more than once, one wire can feed several gates.

For example, (A AND B) OR NOT C needs an AND gate for A and B, a NOT gate for C, and an OR gate that takes both results.

Logic gate symbols

These are the seven gates that the drawer uses. The small circle on the output of NOT, NAND, NOR and XNOR means that the result is inverted.

ANDA · BTrue only when all inputs are true.
ORA + BTrue when at least one input is true.
NOTA'Flips the input: true becomes false.
NAND(A · B)'False only when all inputs are true.
NOR(A + B)'True only when all inputs are false.
XORA ⊕ BTrue when an odd number of inputs are true.
XNOR(A ⊕ B)'True when the inputs are equal.

Try the circuit: input switches

Each input is a switch on the left of the diagram. Click it, or tab to it and press Space, to turn it on or off. A wire that carries a 1 is drawn in the accent colour, and a wire that carries a 0 is grey. The gates that output 1 are tinted, and the output lamp on the right shows the final result. This is a quick way to check your expression for one set of inputs, or to see how a signal moves through the circuit. To see all combinations at once, use the truth table button under the diagram.

Gate count and levels

The tool counts the gates and the levels of gates between an input and the output. Fewer gates means a smaller and cheaper circuit. Fewer levels means a faster circuit, because a signal has to pass through fewer gates. The count lists how many gates of each type are used. If you want a smaller circuit, simplify the expression first. Press Simplify first to open the Boolean Expression Solver with your expression filled in. It gives the minimal SOP and POS, and has a button that brings the simplified form back here as a circuit, with the gate counts side by side.

Many-input gates or two-input gates

With Many inputs, a chain such as A AND B AND C is drawn as one AND gate with three inputs, which is how a data sheet lists it. With Two inputs only, the same chain uses two 2-input gates. Use this option when your course or your parts only allow 2-input gates.

Reusing repeated parts

When the same part appears more than once, for example (A AND B) in two places, the circuit only needs one gate for it. The output of that gate can feed both places. With Reuse repeated parts on, the drawer does this for you. Turn it off to see one gate for each place the part is written.

NAND-only and NOR-only circuits

NAND and NOR are called universal gates, because any logic function can be built from NAND gates alone, or from NOR gates alone. Real chips often use only one type, because it is simple to make. Choose NAND only or NOR only under Build with and the drawer rewrites the circuit for you:

  • NOT becomes a NAND (or NOR) gate with both inputs joined.
  • AND becomes a NAND followed by a NOT, and OR becomes a NAND with both inputs inverted.
  • XOR uses the well-known four-gate NAND circuit.

The result is checked against the original expression, so the new circuit does exactly the same job.

Shapes (ANSI) and boxes (IEC) symbols

There are two symbol standards. The shape style (ANSI or MIL) uses the curved gate drawings found in most textbooks in the United States. The box style (IEC) draws every gate as a rectangle with a label: & for AND, ≥1 for OR, =1 for XOR and 1 for NOT, with a small circle for an inverted output. It is common in Europe. Choose the one your course uses.

Common circuits you can draw

  • Half adder: the sum is A XOR B and the carry is A AND B.
  • Full adder: the sum is A ^ B ^ C and the carry is (A & B) | (C & (A ^ B)).
  • 2-to-1 multiplexer: (S & B) | (!S & A) picks B when S is 1 and A when S is 0.
  • Parity check: chain XOR over all the bits.
  • Equality check: A <-> B is 1 when both inputs are the same.

What expressions can I type?

You can use the words AND, OR, NOT, XOR, NAND, NOR, XNOR, IMPLIES and IFF, the symbols ∧ ∨ ¬ ⊕ → ↔ ↑ ↓, the programming symbols & | ! ^ and ->, and the algebra style such as A'B + AB'. They can be mixed. Implies and if-and-only-if are not gates, so the drawer builds them from the basic gates: A → B becomes (NOT A) OR B, and A ↔ B becomes an XNOR gate.

Logic Gate Circuit Drawer examples

Real input and output so you can see exactly what changes.

Half adder sum

Input

A XOR B

Output

Normal gates: 1 (1 XOR), 1 levels deep
NAND only: 4 gates
NOR only: 5 gates

Half adder carry

Input

A AND B

Output

Normal gates: 1 (1 AND), 1 levels deep
NAND only: 2 gates
NOR only: 3 gates

Full adder sum

Input

A ^ B ^ C

Output

Normal gates: 2 (2 XOR), 2 levels deep
NAND only: 8 gates
NOR only: 10 gates

Full adder carry

Input

(A & B) | (C & (A ^ B))

Output

Normal gates: 4 (2 AND, 1 OR, 1 XOR), 3 levels deep
NAND only: 6 gates
NOR only: 11 gates

2:1 multiplexer

Input

(S & B) | (!S & A)

Output

Normal gates: 4 (2 AND, 1 NOT, 1 OR), 3 levels deep
NAND only: 4 gates
NOR only: 7 gates

Majority of three

Input

AB + BC + AC

Output

Normal gates: 4 (3 AND, 1 OR (3-input)), 2 levels deep
NAND only: 6 gates
NOR only: 10 gates

When do you need a logic circuit drawer?

Common reasons people use this page.

Digital logic coursesCheck homework and draw answers.
TeachersMake clean diagrams for slides and tests.
Electronics projectsPlan a circuit before you build it.
Computer architectureDraw adders, multiplexers and decoders.
Exam revisionPractise reading and drawing gate circuits.
ProgrammersSee a complex condition as a circuit.

Privacy, limits and browser support

What happens to your data and what to expect.

  • How it works: with KickSolve, the circuit drawer runs in your browser with JavaScript. Your expressions are not sent to a server and are not stored.
  • Limits: up to 16 inputs and 300 gates in one drawing, so the diagram stays readable.
  • Browsers: current Chrome, Edge, Firefox and Safari on desktop and mobile.

Read the KickSolve privacy policy for details about the site itself.

Frequently asked questions

Quick answers.

How do I draw a logic circuit from a Boolean expression?

Type the expression in the box. The circuit appears at once, with one gate for each operator, inputs on the left and the output on the right.

Which gates does it use?

AND, OR, NOT, XOR, NAND, NOR and XNOR. Implies and if-and-only-if are built from these gates.

Can I change the inputs and see the output?

Yes. Each input is a switch. Click it to turn it on or off, and the wires, the gates and the output lamp update at once.

How do I draw a circuit with only NAND gates?

Choose NAND only under Build with. The drawer rewrites every gate using NAND gates, and the circuit still does the same job.

Can I draw it with only NOR gates?

Yes. Choose NOR only under Build with.

What is the difference between shapes and boxes?

Shapes are the classic ANSI gate drawings. Boxes are the rectangular IEC symbols with labels such as &, ≥1 and =1.

Can a gate have more than two inputs?

Yes. By default A AND B AND C is drawn as one 3-input AND gate. Choose Two inputs only if you need 2-input gates.

How are repeated parts drawn?

The part is drawn once and its output feeds every place that uses it. You can turn this off.

Can I download the circuit diagram?

Yes. Download it as an SVG file, which stays sharp at any size, or as a PNG image. You can also copy the SVG code.

How many variables and gates can I use?

Up to 16 inputs and 300 gates in one drawing.

How do I make the circuit smaller?

Simplify the expression first. Press Simplify first to open the Boolean Expression Solver with your expression filled in, then draw the minimal SOP or POS it gives. Fewer terms usually means fewer gates.

How do I get the truth table of the circuit?

Press Open truth table under the diagram. It opens the truth table generator with your expression filled in.

Is my expression uploaded anywhere?

No. Everything runs in your browser and nothing is stored.

More free tools from KickSolve

More free developer and student tools.