• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Hire Me | Contact | Calculators-online
You are here: Home / NOT, NAND Gate Frequency Calculator

NOT, NAND Gate Frequency Calculator

Here we will learn how to use a NAND Gate Oscillator Calculator using CD4011 or any CMOS NAND gate IC.

This calculator will take values of:

  • R = timing resistor (in ohms)
  • C = timing capacitor (in µF)
  • and give you:
  • Output frequency in Hz
  • Time period
  • ON time
  • OFF time (assuming 50% duty cycle square wave for simplicity).
NAND Gate Oscillator Calculator
Calculator by homemade-circuits.com

NAND Gate Oscillator Calculator

Here is how this NAND oscillator actually works. We take two NAND gates from a 4011 IC — like pin 1-2-3 and 4-5-6 — and connect them in a way that they keep toggling the output ON and OFF rapidly.

Circuit Wiring Details

First we take a 4011 NAND gate IC which has 4 gates inside.

We use 2 gates only for this oscillator, one gate to make the feedback oscillate and the second gate to buffer or invert it for clean square wave.

Now connect it like this:

  • Pin 1 and 2 (inputs of 1st NAND) → tied together
  • A resistor (R) → goes from pin 3 (output of 1st NAND) back to pin 1/2
  • A capacitor (C) → goes from pin 1/2 to ground

This forms a delay feedback loop. When power is ON, capacitor charges through resistor and changes logic at inputs, which changes output, which again discharges the capacitor. This keeps flipping the state like a seesaw.

Then we take pin 3 (oscillating output) and feed it to another gate input, like pin 4 and 5 tied together, so output at pin 6 gives you final clean square wave.

Frequency Formula We Used

We used the standard NAND oscillator timing formula:

f = 1 / (1.38 × R × C)
  • R in ohms
  • C in farads
  • Result will be in Hz
  • ON and OFF times assumed 50-50, so:
ON = OFF = 1 / (2 × f)

Example

Say:

  • R = 100k
  • C = 0.1 µF

Then:

f = 1 / (1.38 × 100000 × 0.1e-6) ≈ 72.46 Hz

So output blinks around 72 times per second.

Notes:

  • Do not go too low with resistor or cap, IC might heat or output become messy.
  • Always use ceramic or MKT cap (not electrolytic).
  • Works from 5V to 15V (best at 9V or 12V).
  • You can use all 4 gates for more buffering or logic expansion.

NAND Gate ICs (Standard + Schmitt Trigger)

The above calculator can be used for all the following ICs to calculate the frequency output of their oscillator configuration:

IC NumberTypeGatesLogic FamilyNotes
CD4011Standard NAND4CMOSBasic CMOS NAND, works great
CD4093Schmitt NAND4CMOSBest for oscillators (clean switching)
74LS00Standard NAND4TTL (LS)Works, but avoid for analog timing (noisy)
74HC00High-speed NAND4HC (CMOS)Fast, low-power CMOS version
74AC00Advanced CMOS4AC familyVery fast, not ideal for RC timing
SN74LVC1G00Single NAND1Tiny logicWorks but for surface mount only
CD4023Triple 3-input NAND3CMOSExtra input, use carefully

if you are building a simple RC oscillator then CD4011 and CD4093 are the kings. TTL ones like 74LS00 work but eat more power and glitch more often. 4093 is safest if you are going serious.

NOT Gate ICs (Inverters)

These ICs can be used in NOT gate oscillator configuration, where:

  • R connects from output to input
  • C goes from input to ground
  • Output gives square wave
IC NumberTypeGatesLogic FamilyNotes
CD4069UBUnbuffered Inverter6CMOSBest for oscillator use
CD4069BBuffered Inverter6CMOSAlso works, slight edge in output drive
CD4049UBUnbuffered Inverter6CMOSGood, robust
CD4050Non-inverting buffer6CMOSNot suitable (not inverter)
74LS04TTL inverter6TTLWorks but noisy, avoid for slow oscillators
74HC04Fast inverter6HCCMOS fast version
74HCT04TTL-compatible CMOS6HCTFor 5V logic
SN74LVC1G04Single inverter1TinyTiny SMD version

For NOT gate oscillator, always go with CD4069UB or CD4049UB, since they give perfect square wave even with high resistor/cap values. TTL ones like 74LS04 work only if you keep frequency high and R low.

Avoid These ICs for RC Oscillators:

ICReason
CD4050Not an inverter, can't toggle on its own
74ACxxWay too fast, RC charging is unstable
Any Open-Collector GatesNeed external pull-ups, won’t oscillate by themselves
Buffers (like 74LS07)Not logic inverters

Best Choices for Reliable Oscillator

TypeBest ICsWhy Good
NAND GateCD4011, CD4093Simple, reliable, easy to get
NOT GateCD4069UB, CD4049UBClean switching, noise-free
TTL Option74LS00, 74LS04Work, but power-hungry + noisy

Reader Interactions

Questions & Answers

Total Posts: 4
Newest Oldest
Degand
September 10, 2025 • 1 year ago #185041

Hello and thank you very much for your work.
I already designed my oscillator using this component NC7WZ132K8X (2 NAND schmitt trigger gates) but it is advanced CMOS. As you said concerning the 74AC00 ”very fast, not ideal for RC timing”, do you think this component is also not ideal for oscillator ?
bye

Reply
SwagatamAdmin
September 10, 2025 • 1 year ago #185058

Hey Degand, this NC7WZ132K8X is advanced CMOS and very fast but since it has Schmitt trigger input, that makes it good for RC oscillator. The Schmitt trigger makes clear switching thresholds and prevents unstable multiple transitions so the RC timing works okay. But if you use normal fast gate like 74AC00 without Schmitt then it will not work good for oscillator because it switches too fast without clean threshold. So this NC7WZ132K8X is fine for simple oscillator but do not expect precise frequency.

Reply
Degand
September 11, 2025 • 1 year ago #185095

I am so glad you answered me. Thanks for your confirmation. I adapted your calculation based on the voltage thresholds of the NC7WZ132K8X. It’s okay, I don’ t need a precise frequency. First, I choose a tantalum capacitor but due to the leak current of this kind of capacitors I choose a MLCC X7R capacitor like you recommended.
Thank you so much,
Yves

Reply
SwagatamAdmin
September 11, 2025 • 1 year ago #185101

It’s my pleasure! Sure, MLCC X7R type capacitor might be the right choice for your specific application…Please keep up the good work…

Reply

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

My YouTube Channel

Circuit Simulator: Draw and Simulate Schematics

circuit simulator image



Categories

  • Arduino Projects (95)
  • Audio and Amplifier Projects (134)
  • Automation Projects (18)
  • Automobile Electronics (104)
  • Battery Charger Circuits (90)
  • Datasheets and Components (109)
  • Electronics Theory (151)
  • Energy from Magnets and Earth (43)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (98)
  • Lamps and Lights (161)
  • Meters and Testers (72)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (30)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Security and Alarm (65)
  • Sensors and Detectors (107)
  • SMPS and Converters (46)
  • Solar Controller Circuits (62)
  • Temperature Controllers (44)
  • Timer and Delay Relay (51)
  • Voltage Control and Protection (44)
  • Water Controller (37)
  • Wireless Circuits (31)





Subscribe to get New Circuits in your Email



Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |



Recent Comments

  • Swagatam on SMPS DC CDI Circuit for Motorcycles using Ferrite Core Transformer
  • Swagatam on Signal Injector Circuits for Quick Troubleshooting of all Audio Equipment
  • Swagatam on How to Harvest Free Electricity from Your Rocking Chair: The Rocking Chair Reading Lamp Concept
  • Jorge on Build this Open Baffle Hi-Fi Loudspeaker System with Crossover Network
  • Ike on How to Harvest Free Electricity from Your Rocking Chair: The Rocking Chair Reading Lamp Concept

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Stack Exchange
  • Linkedin

Calculators

  • ZVS Induction Heater + Tank Calculator Tool
  • Zener Diode Calculator
  • Wire Current and Thickness Calculator (Ampacity Calculator)
  • Voltage Divider Calculator
  • Transistor Base Resistor Calculator
  • Transistor Astable Multivibrator Calculator
  • TL431 Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Ferrite Core Air Gap Calculator Tool
  • Parallel MOSFET Calculator Tool: How to Connect MOSFETs in Parallel Safely
  • LC Resonance Calculator for EV Battery Charger Circuits
  • LED String Series Resistor Calculator
  • PFC (Power Factor Correction) Calculator Tool: 3kW
  • Passive Power Factor Correction (PFC) Calculator
  • LM567 IC Calculator Tool
  • SMPS Flyback Boost Converter Calculator
  • Shunt Resistor Calculator for Ammeters
  • SCR and Triac Gate Resistor Calculator
  • Battery Back up Time Calculator
  • Boost Converter Calculator (Non-Isolated)
  • Bootstrap Capacitor Calculator
  • Buck Converter Calculator
  • Buck-Boost Converter Calculator
  • Capacitance Reactance Calculator
  • DCM Flyback Transformer & Wire Gauge Wire Size Calculator Tool
  • Filter Capacitor Calculator
  • IC 4047 Calculator (Frequency and PWM)
  • IC 4060 Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • IC SG3525, SG3524 Calculator
  • Inductance Calculator
  • Induction Heater Inductor and Resonant Frequency Calculator
  • Induction Heater Work Coil Calculator
  • Inverter LC Filter Calculator
  • LC Resonance Calculator
  • LED Current Calculator
  • LM317, LM338, LM396 Calculator
  • NAND/NOT Gate RC Values Calculator
  • NOT, NAND Gate Frequency Calculator
  • Notch Filter Calculator Tool
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • RC Filter Calculator
  • Reactance Calculator
  • Sine Table Calculator for SPWM Arduino Code
  • Small Signal Transistor(BJT) and Diode Quick Datasheet
  • SMPS Calculator for Toroidal Ferrite Transformers
  • SMPS Flyback Transformer Calculator – Design by Target Duty Cycle
  • TL431 Calculator
  • Op-Amp Hysteresis Resistor Calculator

© 2026 · Swagatam Innovations