10M+ Electronic Components In Stock
ISO Certified
Warranty Included
Fast Delivery
Hard-to-Find Parts?
We Source Them.
Request a Quote

CD4017 Decade Counter IC: Working Principle, Pinout, and Applications

May 29 2026
Source: DiGi-Electronics
Browse: 741

The CD4017 is one of the most widely used decade counter ICs in digital electronics because it provides simple sequential output control without programming. Its ability to activate one output at a time makes it ideal for LED chasers, timers, automation circuits, frequency dividers, and step-by-step switching applications. This article explains the CD4017 working principle, pin functions, practical applications, troubleshooting techniques, and how it compares with other counter and control solutions.

Figure 1. CD4017 IC

What Is the CD4017 IC?

The CD4017 is a CMOS decade counter and decoder IC that counts from 0 to 9 using sequential outputs. Unlike binary counters that produce binary-coded signals, the CD4017 turns ON only one output pin at a time. Each clock pulse moves the HIGH output to the next pin in sequence. After Q9, the IC automatically returns to Q0 and repeats the cycle.

CD4017 IC Specifications and Features

CD4017 IC Specifications

ParameterSpecification
IC TypeCMOS Decade Counter
Outputs10 decoded outputs
Counting Range0 to 9
Operating Voltage3V to 15V
Clock TriggerPositive edge-triggered
TechnologyCMOS
Package TypesDIP and SMD
Output TypeSequential decoded outputs
Maximum Clock FrequencyDepends on supply voltage
Output Drive CapabilityCan drive LEDs, logic inputs, and small transistor stages
Power ConsumptionLow power consumption
Noise ImmunityGood noise resistance with proper decoupling

CD4017 IC Features

• Sequential counting from 0 to 9

• Only one output remains HIGH at a time

• Wide operating voltage range from 3V to 15V

• Compatible with battery-powered and low-voltage circuits

• Positive edge-triggered clock input

• Low power consumption due to CMOS technology

• Good electrical noise immunity

• Can directly drive LEDs and logic inputs

• Supports DIP and SMD package types

• Suitable for LED chasers, timers, sequencers, and automation circuits

• Requires minimal external components

• More power-efficient than older TTL logic ICs

• Stable operation in portable and embedded systems

• External drivers can control relays, motors, and high-current loads

CD4017 Pinout and Pin Functions

Figure 2. CD4017 Pinout

Pin NumberPin NameTypeDescription / Function
1Q5OutputFifth decoded output activated during count state 5
2Q1OutputFirst decoded output activated after the first clock pulse
3Q0OutputDefault HIGH output after reset or power-up
4Q2OutputThe second decoded output in the sequence
5Q6OutputSixth decoded output in the sequence
6Q7OutputSeventh decoded output in the sequence
7Q3OutputThe third decoded output in the sequence
8GNDPowerGround connection for the IC
9Q8OutputEighth decoded output in the sequence
10Q4OutputFourth decoded output in the sequence
11Q9OutputNinth decoded output in the sequence
12Carry OutOutputUsed for cascading multiple CD4017 ICs for longer counting sequences
13Clock EnableControl InputEnables or disables counting. HIGH stops counting, LOW allows normal operation
14ClockInputReceives clock pulses from push buttons, oscillators, 555 timers, or logic circuits. Each rising edge advances the counter by one step
15ResetControl InputImmediately resets the counter back to Q0 when activated
16VDDPowerPositive power supply input (3V to 15V typical operating range)

How the CD4017 Works

Figure 3. How the CD4017 Works

The CD4017 works by receiving clock pulses and moving the active HIGH output through ten decoded output pins. At reset or power-up, Q0 is the active output. Each rising clock edge then moves the HIGH signal to the next output in the sequence.

Inside the IC, a Johnson counter and decoding circuit control this sequence. Instead of producing a binary count, the CD4017 activates only one decoded output at a time, which makes it easy to use for LED chasers, timing circuits, and step-by-step switching applications.

Counter StateActive Output
Reset / Power-UpQ0 HIGH
1st Clock PulseQ1 HIGH
2nd Clock PulseQ2 HIGH
3rd Clock PulseQ3 HIGH
4th Clock PulseQ4 HIGH
5th Clock PulseQ5 HIGH
6th Clock PulseQ6 HIGH
7th Clock PulseQ7 HIGH
8th Clock PulseQ8 HIGH
9th Clock PulseQ9 HIGH
10th Clock PulseReturns to Q0

The CD4017 responds to the rising edge of the clock signal. This means the count advances when the clock input changes from LOW to HIGH. A clean and stable clock signal is important because noisy or bouncing signals can create extra unwanted counts.

Only one output is HIGH at a time because the internal decoding logic selects one active output for each count position. After Q9 becomes HIGH, the next clock pulse restarts the sequence from Q0. This cycle continues as long as clock pulses are applied, the clock enable pin allows counting, and the reset pin is not activated.

How to Use the CD4017 in Circuit Design

Basic CD4017 Circuit Setup

Figure 4. Basic CD4017 Circuit Setup

A standard CD4017 circuit requires a regulated power supply, a clock input, reset control, and properly connected outputs. The VDD and GND pins must be wired correctly, and unused control inputs should not be left floating. Stable wiring ensures predictable counting and prevents unintended output transitions.

Clock Signal Generation

Figure 5. Clock Signal Generation

The CD4017 advances one count for every rising-edge clock pulse. Common clock sources include oscillators, push-button circuits, logic gates, and 555 timers. The clock signal must remain clean and stable because noise or switch bounce can create false triggering and skipped counts.

Reset Logic and Count Control

Figure 6. Reset Logic and Count Control

The reset input immediately forces the counter back to Q0. Reset control is commonly used for startup initialization, sequence synchronization, and limiting the counter to fewer than ten states. Proper reset wiring is important for stable and repeatable operation.

Clock Frequency Control

Figure 7. Clock Frequency Control

The output transition speed depends entirely on the clock frequency. Lower clock frequencies create slower sequencing, while higher frequencies increase switching speed. Frequency control is important in timing circuits, pulse division systems, and synchronized switching applications.

Using the CD4017 as a Divide-by-N Counter

Figure 8. Using the CD4017 as a Divide-by-N Counter

The CD4017 can create custom counting ranges by feeding a selected output back to the reset pin. When the selected output becomes active, the counter automatically resets and restarts from Q0.

Desired DivisionReset ConnectionOutput Sequence
Divide-by-2Q2 → ResetQ0 → Q1
Divide-by-3Q3 → ResetQ0 → Q1 → Q2
Divide-by-4Q4 → ResetQ0 → Q1 → Q2 → Q3
Divide-by-5Q5 → ResetQ0 → Q1 → Q2 → Q3 → Q4
Divide-by-10No reset feedbackFull Q0–Q9 sequence

This method allows compact hardware frequency division without additional decoding circuitry.

Cascading Multiple CD4017 ICs

Figure 9. Cascading Multiple CD4017 ICs

Multiple CD4017 ICs can be cascaded to extend sequential output ranges beyond ten states. The Carry Out pin is commonly used to coordinate additional counter stages.

Reliable cascading requires:

• synchronized reset behavior

• stable clock distribution

• short clock traces

• proper grounding

• local decoupling capacitors for each IC

As more stages are added, propagation timing and synchronization become increasingly important.

CD4017 Applications

LED Chaser and Decorative Visual Sequencing

Figure 10. LED Chaser and Decorative Visual Sequencing

The CD4017 is widely used in LED chaser circuits where lights turn on one after another to create a moving visual effect. This makes it suitable for decorative lighting, signage, display borders, festival lights, model projects, and educational demonstrations. Its decoded outputs simplify visual sequencing because each LED stage can be activated in a clear repeating pattern without programming.

Traffic-Light Simulation Systems

Figure 11. Traffic-Light Simulation Systems

Traffic-light controllers benefit from the CD4017 because the IC naturally produces ordered sequential outputs. This allows predictable stage progression for red, yellow, and green timing sequences in educational models and simple signaling systems.

Electronic Dice and Random-Looking Displays

Figure 12. Electronic Dice and Random-Looking Displays

Electronic dice circuits use rapid output sequencing to create changing display patterns that appear random when stopped. The CD4017 is suitable because its sequential operation simplifies multi-output visual cycling without software control.

Industrial and Event Automation Sequencing

Figure 13. Industrial and Event Automation Sequencing

The CD4017 can also be used in simple automation systems where outputs must activate in a fixed order. In industrial or event-control setups, it can sequence relays, indicators, stage effects, warning lights, display panels, or timed switching stages. This makes it useful when a predictable step-by-step control pattern is needed without using a microcontroller.

Audio-Reactive LED Displays

Figure 14. Audio-Reactive LED Displays

In audio visualization circuits, the CD4017 creates moving LED patterns that respond to changing audio activity. This allows simple sound-reactive visual effects in hobby audio equipment and entertainment displays.

Frequency Division and Timing Applications

Figure 15. Frequency Division and Timing Applications

The CD4017 is useful in frequency-division circuits where slower timing signals must be generated from a faster clock source. This makes it suitable for pulse division, timing control, and sequential timing systems.

Relay Sequencing and Automation Control

Figure 16. Relay Sequencing and Automation Control

Automation systems often require outputs to activate in a predefined order from a single trigger source. The CD4017 is useful for relay sequencing, timed switching, alarm progression systems, and step-based machine control where simple hardware sequencing is preferred over programmable control.

CD4017 With 555 Timer

Figure 17. CD4017 With 555 Timer

The 555 timer and CD4017 are commonly paired to create simple automatic sequencing circuits. In this configuration, the 555 timer generates clock pulses while the CD4017 advances through its decoded outputs.

The 555 timer is usually configured in astable mode to generate continuous square-wave pulses. The timer output connects directly to the CD4017 clock input, allowing automatic output sequencing. The sequencing speed depends on the pulse frequency generated by the 555 timer. Adjusting the timing resistors or the capacitor changes the output transition rate.

The 555 timer and CD4017 combination provides simple hardware implementation, low component count, low cost, reliable clock generation, and easy sequential control without programming. This pairing is commonly used in LED chasers, timing demonstrations, simple automation circuits, and educational electronics projects.

Common CD4017 Problems and Troubleshooting

ProblemPossible CausesTroubleshooting / Solution
Outputs Skipping Randomly• Noisy clock signals
• Switch bounce
• Unstable power supplyUse a clean clock signal, add debouncing for switches, and improve power supply filtering.
Multiple LEDs Turning ON Together• Floating inputs
• Poor groundingEnsure unused inputs are properly connected and improve grounding connections.
Counter Not Advancing• Missing clock pulses
• Incorrect enable pin state
• Faulty power connectionsCheck the clock input signal, verify the enable pin wiring, and confirm the correct supply voltage.
Reset Pin Issues• Floating reset pin
• Noise on reset lineConnect the reset pin properly and avoid leaving it floating.
Noisy Clock Signal Problems• Long clock wires
• Electrical interferenceKeep clock lines short and stable to reduce false triggering.
Power Supply Stability Problems• Voltage fluctuations
• Poor filteringAdd decoupling capacitors near the IC power pins to improve stability and reliability.
Debouncing Problems with Push Buttons• Mechanical switch bounce generates multiple pulsesUse hardware or software debouncing to ensure one pulse per button press.

CD4017 vs Other Counter ICs

Figure 18. CD4017 vs Other Counter ICs

FeatureCD4017CD4022Binary CountersMicrocontrollers
Counter TypeDecade counter with decoded outputsOctal counter with decoded outputsBinary counting outputsProgrammable embedded controller
Number of Outputs10 decoded outputsFewer decoded outputsBinary-coded outputsDepends on the MCU model
Output OperationOne output HIGH at a timeOne output HIGH at a timeMultiple binary outputs change togetherSoftware-controlled
Programming RequiredNoNoNoYes
Ease of SequencingVery easyEasyRequires decoding logicFlexible through software
Hardware ComplexityLowLowModerateModerate to high
FlexibilityLimited to fixed sequencingLimited sequencingSuitable for digital countingHighly flexible
Best Use CaseLED chasers and simple sequencingSimple sequential controlDigital counting systemsAdvanced embedded systems
Main AdvantageSimple hardware sequencingSimple decoded countingCompact digital countingAdvanced control and communication
Main LimitationLimited functionalityFewer outputs than CD4017Less convenient for direct sequencingMore complex and costly

CD4017 Alternatives and Equivalent ICs

The CD4017 is not the only counter IC available. The best alternative depends on whether the circuit needs decoded outputs, binary counting, seven-segment display control, higher speed, or programmable operation.

Alternative IC / DeviceTypeBest Used ForDifference From CD4017
CD4022Octal decoded counterShorter 8-step sequencesSimilar to CD4017, but has 8 decoded outputs instead of 10
CD4026Decade counter with 7-segment driverDigital counters and numeric displaysDesigned to drive 7-segment displays instead of separate sequential outputs
CD404012-stage binary ripple counterFrequency division and binary countingProvides binary outputs, not one-at-a-time decoded outputs
CD4060Oscillator and binary counterTiming and frequency-divider circuitsIncludes oscillator function and binary divider outputs
74LS90TTL decade counterHigher-speed TTL logic circuitsCounts in BCD form and usually needs decoding for direct sequencing
74HC4017High-speed CMOS decade counter5V logic circuits and faster CMOS designsSimilar function to CD4017, but often better suited for modern logic-level systems
ArduinoProgrammable controller boardFlexible sequencing and automationRequires programming but offers much more control
MicrocontrollerEmbedded control deviceAdvanced automation, sensors, displays, and communicationMore powerful and flexible, but more complex than a CD4017

Frequently Asked Questions [FAQ]

Why is the CD4017 more practical than a binary counter in step-by-step output circuits?

Because it provides decoded sequential outputs directly, with only one output HIGH at a time, which removes extra decoding logic and simplifies LED, relay, and timing sequences.

How does the reset pin let the CD4017 work as a divide-by-N counter?

By feeding a selected output back to Reset, the counter restarts before Q9, so the sequence length is shortened to the required number of states.

Why does clock quality matter so much in CD4017 circuits?

Because the CD4017 advances on each rising clock edge, so noise, switch bounce, or unstable wiring can create false counts, skipped steps, or random output changes.

What limits the reliability of cascaded CD4017 stages in longer sequences?

Cascading increases timing sensitivity, reset coordination, and clock-distribution complexity, so poor synchronization or noisy wiring can cause unstable sequencing.

Why is the CD4017 still useful when microcontrollers can do the same job?

Because it gives simple hardware sequencing without programming, making it faster to build, easier to troubleshoot, and more cost-effective for fixed repetitive output control.