
The CD4030 is a CMOS chip with four XOR gates. Because each gate has two inputs and it has four gates inside, it’s usually called a Quad 2-Input XOR Gate.
This chip is more or less identical to the CD4070.
XOR means exclusive OR, and will only give a HIGH output if one of the inputs is HIGH and the other is LOW. Or to say it in another way: The output from an XOR gate will be HIGH only if the inputs are not equal.
Pin Overview
Pin Name | Pin # | Type | Description |
---|---|---|---|
VDD | 14 | Power | Supply Voltage (+3 to +15V) |
GND | 7 | Power | Ground (0V) |
A1 to A4 | 1, 5, 8, 12 | Input | Inputs A of the four XOR gates |
B1 to B4 | 2, 6, 9, 13 | Input | Inputs B of the four XOR gates |
Q1 to Q4 | 3, 4, 10, 11 | Output | Outputs from the four XOR gates |
What is an XOR gate?

The XOR gate is a logic gate that outputs HIGH if its two inputs are not equal. So if one of the inputs (both not both!) is HIGH, the output will be HIGH.
Input A | Input B | Output Y |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
How To Use the CD4030?
You need a power supply voltage of 3 to 15V. Some versions of the chip support up to 20V. Check the datasheet of your version of the chip for exact values.
To be able to use any of the XOR gates in the chip, you need to connect the VDD pin to the positive supply terminal and the GND pin to the negative supply terminal.
The A and B pins are the inputs to the four XOR gates in the IC.
The Q pins are the outputs from the XOR gates.

Build Something Useful This Evening
This gadget lets you use any IR remote-control to control your lamp, garden lights, heater oven, garage door, or anything else.

CD4030 Example Circuit – Toggle Flip-Flop
Here’s an example of an XOR gate being used to create a T Flip-Flop (a Flip-Flop that toggles):

Every time you have a rising clock edge, if T is HIGH, the output Q will toggle. So if Q was HIGH, it will be LOW. If it was LOW, it will be HIGH.
To build this you’ll need:
- A chip with D flip-flops such as the CD4013BE
- A chip with XOR gates such as the CD4030BE
Alternatives and Equivalents for CD4030
You likely find the 4030 IC marked as CD4030, NTE4030, MC14030, HCF4030, TC4030, or HEF4030. Usually with a few extra characters at the end (Ex: CD4030BE).
This has to do with the manufacturer of the chip and the technology used. But the functionality and the pins are the same.
If they don’t have any of these chips in your local electronics store, check out my list of online stores where you can find components and tools for all your electronics projects.
Can’t find the 4030? Then try one of the following IC alternatives with 2-input XOR gates:
- 4070: Quad 2-input XOR
- 74HC86: Quad 2-input XOR
4030 Datasheet
Download the PDF datasheet for the IC 4030 here:
CD4030B (Texas Instruments)
HEF4030B (Nexperia)
Go back to the full overview of the 4000-series integrated circuits

10 Simple Steps to Learn Electronics
Electronics is easy when you know what to focus on and what to ignore. Learn what "the basics" really is and how to learn it fast.