• 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 | 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

Comments

Degand says:
September 10, 2025 at 3:05 am

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
Swagatam says:
September 10, 2025 at 7:48 am

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 says:
September 11, 2025 at 4:55 am

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
Swagatam says:
September 11, 2025 at 7:45 am

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

circuit simulator image

Subscribe to get New Circuits in your Email

Categories

  • Arduino Projects (95)
  • Audio and Amplifier Projects (133)
  • Automation Projects (18)
  • Automobile Electronics (103)
  • Battery Charger Circuits (87)
  • Datasheets and Components (109)
  • Electronics Theory (149)
  • Energy from Magnets (27)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (95)
  • Lamps and Lights (159)
  • Meters and Testers (71)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Renewable Energy (12)
  • Security and Alarm (64)
  • Sensors and Detectors (106)
  • SMPS and Converters (34)
  • Solar Controller Circuits (60)
  • Temperature Controllers (43)
  • Timer and Delay Relay (49)
  • Voltage Control and Protection (42)
  • Water Controller (37)
  • Wireless Circuits (31)

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 |

Social Profiles

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

Recent Comments

  • Swagatam on How to Make Dog Barking Preventer Circuit using High Frequency Deterrence
  • Swagatam on HX710B Air Pressure Sensor Datasheet, How to Connect
  • Yogesh on How to Make Dog Barking Preventer Circuit using High Frequency Deterrence
  • Klaas Hiemstra on HX710B Air Pressure Sensor Datasheet, How to Connect
  • Swagatam on HX710B Air Pressure Sensor Datasheet, How to Connect

© 2026 · Swagatam Innovations