CD4016 – A CMOS Chip With Four Analog Switches

Pinout for the CD4016 IC

The CD4016 is a CMOS IC with four analog switches, which can be controlled individually using a control pin. The signal can flow in either direction between the two pins of each switch.

Each switch has an enable pin (A) and two input/output pins (X and Y). When the enable pin is set to HIGH, current can flow between X and Y in either direction. However, when enable is LOW, no current can flow between the pins. Just like a switch.

Pin Overview

Pin NamePin #TypeDescription
VDD14PowerSupply Voltage (+3 to +15V)
GND7PowerGround (0V)
A1-A45,6,12,13InputEnable pins for the four bilateral switches
X1-X41,3,9,11Input/OutputPin X for each switch
Y1-Y42,4,8,10Input/OutputPin Y for each switch
Pin overview for the 4016 IC

What is an analog switch?

An analog switch is a circuit that behaves like a relay, but without any moving parts.

Each switch is made of two MOSFET transistors. And it works with both analog and digital signals in either direction (bi-directional).

The switch can be opened or closed using an enable pin. When HIGH, the MOSFET switch closes so that current can flow. When the enable is set LOW the MOSFET switch opens so that current cannot flow. The 4016 IC has four of these switches.

How To Use The 4016 IC

First of all, you need to connect the VDD pin (pin 14) to your positive supply terminal and GND pin (pin 7) to your negative supply terminal. You can use a power supply voltage between 3V and 15V. Although, some versions of the 4016 chip support up to 20V. Check your datasheet for exact values.

The CD4016 IC has four bilateral switches that you can control by setting a pin HIGH or LOW. Since they are bidirectional, you can choose which pin (Y or X) you want to use as your input and output.

Pinout for the 4016 IC
4016 Pinout

CD4016 Example Circuit

Setting up a circuit with the 4016 is very simple.

Below is a practical example that you can build with the CD4016. It’s a circuit that lets you test one of the switches in the chip.

CD4016 example circuit for testing one of the switches
4016 Example circuit

To build this circuit you’ll need:

  • IC 4016, such as the CD4016BE
  • Light-Emitting Diode (LED)
  • A resistor of around 500-1000 Ω (R1)
  • A resistor of around 10k-100k Ω (R2)
  • Mechanical Switch (S1)

Whenever you close the mechanical switch S1, the analog switch of CD4016 will also close and the LED will light up. You can reverse the connection and the LED will still light since it is a bidirectional switch.

Alternatives and Equivalents for CD4016

You likely find the IC 4016 marked as CD4016, NTE4016, MC14016, HCF4016, TC4016, or HEF4016. Usually with a few extra characters at the end (Ex: CD4016BE).

This has to do with the manufacturer of the chip and the technology used. But the functionality and the pins are the same.

If you can’t find any of these chips in your local electronics store, check out my list of online stores with several options to buy from.

You could try one of the following IC alternatives with analog switch functionality:

  • CD4066: Quad analog switch (low “ON” resistance)

CD4016 Datasheet

Download the PDF datasheet for the IC 4016 here:

CD4016B (Texas Instruments)
HEF4016B (Nexperia)

Go back to the full overview of the 4000-series integrated circuits

3 thoughts on “CD4016 – A CMOS Chip With Four Analog Switches”

  1. Hello Oyvind,
    What a fantastic site! Thanks for making this information so easy to comprehend.
    I have a question about the CD4016: Does the voltage at VDD and GND need to be the same as the voltage sent to the enable pin? I would like to send a control voltage from the CV out of a small synthesizer in a regular pulse of ~5v to the enable pin, and then connect X,Y to the tap tempo switch leads of another unit. In this way, I would use the tempo of the synth to control the tempo of the other unit via CV. Do you think this will work?


Leave a Comment