CD4030 – An IC with Four XOR Gates

Pinout for IC 4030

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 NamePin #TypeDescription
VDD14PowerSupply Voltage (+3 to +15V)
GND7PowerGround (0V)
A1 to A41, 5, 8, 12InputInputs A of the four XOR gates
B1 to B42, 6, 9, 13InputInputs B of the four XOR gates
Q1 to Q43, 4, 10, 11OutputOutputs from the four XOR gates
Pin overview for the 4030 IC

What is an XOR gate?

Logic gate symbol for XOR gate
XOR gate symbol

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 AInput BOutput Y
XOR Gate Truth Table

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.

CD4030 Pinout
Pinout for the CD4030

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):

CD4030 Example circuit XOR T Flip-flop

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:

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