555 Timer IC: Astable Circuit and Frequency Calculation

The 555 IC is a timer that generates a square wave with two resistors and one capacitor. In the astable (free-running) configuration, the frequency is approximately f ≈ 1.44 / ((RA + 2·RB) · C). For example, with RA = 1 kΩ, RB = 68 kΩ and C = 10 µF, the output drives an LED that blinks roughly once per second. This article covers the 555’s pins, how the astable circuit works, the calculation step by step, and the most common mistakes when building the circuit.
What is the 555 IC?
The 555 is a timing IC that contains two comparators, a flip-flop, a discharge transistor and a voltage divider made of three equal resistors. The external resistor and capacitor set how long the capacitor takes to charge and discharge, and the IC turns these times into high and low levels at the output. Manufacturers sell this design under different names: NE555 and LM555 are bipolar (classic) versions, while parts such as the ICM7555 are CMOS versions with the same pinout.
The IC is used in three ways:
- Monostable (one-shot): When triggered, it holds the output high for a set time and then drops back on its own. The time is calculated as t = 1.1 · R · C.
- Astable (free-running): It produces a continuous square wave without any trigger. LED flashers, buzzer drivers, clock signals and PWM experiments use this configuration.
- Bistable: With its trigger and reset inputs, it works as a simple set/reset latch.
This article focuses on the astable configuration; you can find all the timers in our store in the Programmable Timers and Oscillators category.
555 pin connections
All 555s in DIP-8 and SOIC-8 packages have the same pin order. Viewed from the top with the notch facing up, pin 1 is at the top left; the numbers increase down the left row and continue from bottom to top on the right row.

| Pin | Name | Function |
|---|---|---|
| 1 | GND | Ground, the reference for all voltages. |
| 2 | TRIG | Drives the output high when its voltage falls below 1/3 of the supply voltage. |
| 3 | OUT | Output. It can drive a load by both sourcing and sinking current. |
| 4 | RESET | Active low. If unused, tie it to VCC to prevent false triggering. |
| 5 | CONT | Direct access to the internal threshold voltage (2/3 VCC). Applying an external voltage changes the frequency. |
| 6 | THRES | When its voltage exceeds 2/3 VCC, it drives the output low and turns on the discharge transistor. |
| 7 | DISCH | Open-collector (open-drain in CMOS versions) discharge output; discharges the capacitor while the output is low. |
| 8 | VCC | Supply voltage. |
How does the astable circuit work?
In the astable configuration, the TRIG (2) and THRES (6) pins are tied together and connected to the timing capacitor. Resistor RA goes between VCC and DISCH (7), and resistor RB goes between DISCH and the capacitor.

Operation has two phases:
- Charge (output high): The discharge transistor is off. The capacitor charges through RA + RB. When its voltage reaches 2/3 VCC, the upper comparator flips the flip-flop.
- Discharge (output low): The output goes low and the transistor on the DISCH pin turns on. The capacitor now discharges into pin 7 through RB only. When the voltage falls to 1/3 VCC, the lower comparator returns the circuit to the charge phase.
The capacitor thus swings between 1/3 VCC and 2/3 VCC. Because both the charge rate and the threshold voltages are proportional to the supply, the frequency is largely independent of the supply. As a result, the frequency is only slightly sensitive to supply changes (typically 0.3%/V for astable operation in TI datasheets); even so, bipolar versions do not operate below 4.5 V. When the circuit is first powered, the capacitor starts from 0 V, so the first high level lasts longer than the following ones.

Frequency and duty cycle formulas
The astable relationships given in the datasheets are:
- High time:
tH = 0.693 · (RA + RB) · C - Low time:
tL = 0.693 · RB · C - Period:
T = tH + tL = 0.693 · (RA + 2·RB) · C - Frequency:
f = 1 / T ≈ 1.44 / ((RA + 2·RB) · C) - Duty cycle (the fraction of time the output stays high):
D = (RA + RB) / (RA + 2·RB)
The number 0.693 is ln 2: the time the capacitor takes to go from 1/3 to 2/3 (or the reverse) is ln 2 times the RC time constant. 1.44 is the rounded value of 1/0.693.
Example calculation 1: 1 Hz LED flasher
With the values in the schematic, RA = 1 kΩ, RB = 68 kΩ, C = 10 µF:
- tH = 0.693 × (1 kΩ + 68 kΩ) × 10 µF = 0.693 × 69,000 × 0.000010 ≈ 0.478 s
- tL = 0.693 × 68 kΩ × 10 µF ≈ 0.471 s
- T ≈ 0.949 s, f ≈ 1.05 Hz
- D = 69 / 137 ≈ 50.4%
Choosing RA small relative to RB brings the duty cycle close to 50%. The LED lights while the output is high.
Example calculation 2: approximately 1 kHz audio signal
To get an audible tone from a passive buzzer, let’s target 1 kHz and choose C = 10 nF. Inverting the formula gives RA + 2·RB = 1.44 / (1000 × 10 nF) = 144 kΩ. Taking standard values RA = 10 kΩ and RB = 68 kΩ:
- RA + 2·RB = 146 kΩ
- f = 1.44 / (146,000 × 0.000 000 01) ≈ 986 Hz
- D = 78 / 146 ≈ 53.4%
Compare the two examples: while the sum RA + 2·RB stayed almost the same (137 kΩ and 146 kΩ), making the capacitor 1000 times smaller raised the frequency roughly 1000 times. A practical method is to make the coarse adjustment with the capacitor and the fine adjustment with the resistors (with a trimpot in series with RB if needed). The actual frequency deviates by the tolerance of the resistors and especially the capacitor; with electrolytic capacitors this deviation can be large.
NE555, LM555 and ICM7555 compared
All three parts have the same pinout and the same astable formulas; the differences are in supply range, current consumption and output drive. Values are taken from the respective datasheets (25 °C).
| Parameter | NE555 (TI datasheet) | LM555 (TI datasheet) | ICM7555 (Renesas datasheet) |
|---|---|---|---|
| Technology | Bipolar | Bipolar | CMOS |
| Supply range | 4.5–16 V (recommended) | 4.5–16 V | 2–18 V |
| Absolute maximum supply | 18 V | — | 18 V |
| Supply current, 5 V, no load | 3 mA typ., 6 mA max. (output low) | 3 mA typ., 6 mA max. (output low) | 40 µA typ., 200 µA max. |
| Output current | ±225 mA (absolute max.) | Up to 200 mA source/sink | 100 mA (absolute max.) |
| Astable timing accuracy | — | 2.25% typ. (initial) | 2% typ. (RA = RB = 10 kΩ, C = 0.1 µF, 5 V) |
| Frequency | 100 kHz or below recommended to reduce distortion | — | 1 MHz typ. (under a specific test condition) |
| Version in our store | NE555N, DIP-8, 0–70 °C | LM555CM, SOIC-8, 0–70 °C | ICM7555IBAZ-T, SOIC-8, −25…+85 °C |
If you are experimenting on a breadboard with through-hole parts, the NE555N in a DIP-8 package is the easiest. In battery-powered circuits that spend long periods in standby, a CMOS version such as the ICM7555 draws current at the µA level rather than mA on its own. For this saving to show up in battery life, choose large timing resistors and a small capacitor; Renesas also warns that otherwise the total current will rise through the resistors. If you need to drive higher-current loads such as relays or many LEDs directly, the bipolar version has higher output current. Each part’s datasheet is on its product page; since there may be small differences between manufacturers, refer to the document for the part you are designing with.
Things to watch when building the circuit
- Supply decoupling: The output of a bipolar 555 draws short, high current pulses from the supply as it switches; Renesas’s ICM7555 datasheet gives these pulses as 300–400 mA for the bipolar version. So place a 100 nF ceramic capacitor between VCC and GND, as close to the IC as possible.
- CONT pin: If unused, connect it to ground through 10 nF (0.01 µF). TI’s NE555 datasheet notes that this capacitor can improve operation; it keeps noise from moving the threshold voltage.
- RESET pin: Do not leave it floating; connect it to VCC. A floating RESET input can cause the circuit to stop at random.
- Lower limit of RA: During the discharge phase, RA passes current directly from VCC into pin 7. With a 9 V supply and RA = 1 kΩ, this current is 9 V / 1 kΩ = 9 mA. Choosing RA too small stresses the discharge transistor; the accuracy figures in the LM555 datasheet are given for RA and RB in the 1 kΩ–100 kΩ range.
- Upper limit of the resistors: The threshold and trigger inputs have a small input current. The LM555 datasheet gives a maximum of 20 MΩ for RA + RB at a 15 V supply; the limit in the NE555 datasheet is lower. In practice, for long times it is safer to choose a larger capacitor than a very large resistor.
- Electrolytic capacitor: Because of its high leakage current and tolerance, prefer a film or C0G/NP0 ceramic capacitor for precise timing. If you use an electrolytic, connect its positive lead to the pin 6/2 side and its negative lead to GND.
- Output load: On a bipolar 555, the output high level does not reach VCC. According to the TI datasheet, with a 5 V supply and a 100 mA load, the output high level is typically 3.3 V. Account for this drop when calculating the LED resistor.
How do you calculate the LED resistor?
With the output high, measure the voltage at pin 3 with a multimeter (VOH) while the LED load is connected and the circuit is running slowly (or the oscillation has stopped with the output stuck high). Then use R = (VOH − VLED) / ILED. For example, if you measured 7.5 V at the output with a 9 V supply and your LED’s datasheet gives a forward voltage of 2 V at 10 mA: R = (7.5 − 2) / 0.010 = 550 Ω, and the nearest standard value is 560 Ω.
Common mistakes
- Not tying pin 2 and pin 6 together: The astable circuit’s self-triggering depends on this connection. If either is left open, the circuit either does not oscillate at all or runs once and stops.
- Expecting a duty cycle below 50%: In the basic circuit, charging is through RA + RB and discharging only through RB, so tH is always greater than tL. For a lower duty cycle, add a diode in parallel with RB with its anode on the pin 7 side; charging is then roughly through RA and discharging through RB, and the formulas become approximate because of the diode drop.
- Mixing up the pin order: Pin 1 (GND) is to the left of the notch and pin 8 (VCC) to the right. If the IC is inserted backwards, the supply lands on the wrong pins and the part can be damaged; check the notch and the dot before inserting it.
- Pushing to too high a frequency: For the bipolar 555, TI recommends 100 kHz or below to reduce distortion. If a higher frequency is needed, switch to a CMOS version.
- Skipping the decoupling capacitor: Especially in circuits that share the same supply with a microcontroller, the 555’s switching pulses can reset other circuits.
Try the circuit step by step
- Place the NE555N on the breadboard across the center channel and connect pin 8 to the VCC rail and pin 1 to the GND rail.
- Connect pin 4 to VCC, pin 5 to GND through 10 nF, and pin 2 and pin 6 to each other.
- Place RA between VCC and pin 7, RB between pin 7 and pin 6/2, and C between pin 6/2 and GND.
- Connect an LED with a series resistor to the output and add 100 nF decoupling to the supply.
- Apply power. If you have an oscilloscope, you will see an exponential curve swinging between 1/3 and 2/3 VCC on pin 6 and a square wave on pin 3. If your multimeter has frequency measurement, compare the result with your calculation.
Frequently asked questions
What voltage does the 555 IC run on?
For bipolar versions such as the NE555 and LM555, the recommended range is 4.5–16 V and the absolute limit is 18 V. CMOS versions such as the ICM7555 operate from 2 V to 18 V, so a CMOS version should be chosen for 3.3 V circuits.
Why is the 555 frequency different from what I calculated?
The largest share is usually the capacitor tolerance. Besides that, the IC’s own timing error (a few percent in the datasheets), resistor tolerances and the leakage current of an electrolytic capacitor change the result. For fine adjustment you can add a trimpot in series with RB; if you replace RB entirely with a trimpot, the low phase disappears when the trimpot is turned to zero.
How is the time calculated in monostable mode?
In the one-shot configuration, the output stays high for t = 1.1 · R · C after the trigger. For example, with 100 kΩ and 47 µF the time is about 5.2 seconds.
Can an LM555 or ICM7555 be used in place of an NE555?
The pinout is the same and the astable formulas do not change. When switching to a CMOS version, the supply current drops sharply but the output current limit also decreases; if you are driving a load that draws high current, you may need to add a transistor or MOSFET to the output.
Conclusion
To build an astable oscillator with a 555, all you need are two resistors, a timing capacitor, correct connection of the auxiliary pins (pins 2 and 6 tied together, pin 4 to VCC, pin 5 to ground through a capacitor) and a decoupling capacitor. Calculate the frequency with f ≈ 1.44 / ((RA + 2·RB) · C) and the duty cycle with (RA + RB) / (RA + 2·RB); make coarse adjustments with the capacitor and fine adjustments with the resistors. The DIP-packaged NE555N for breadboard experiments, the LM555CM for SMD designs and the ICM7555IBAZ-T for low-current battery-powered circuits are good starting points.
References
- Texas Instruments, NA555, NE555, SA555, SE555 Precision Timers datasheet (SLFS022)
- Texas Instruments, LM555 Timer datasheet (SNAS548D)
- Renesas, ICM7555, ICM7556 General Purpose Timers datasheet (FN2867)
Products in this article
-
$0.10NE555N
CV2-1-3IC OSC SINGLE TIMER 500KHZ 8-DIP643 In Stock -
$1.50LM555CM
Texas Instruments · EE01331IC OSC SGL TIMER 100KHZ 8-SOIC14 In Stock -
$1.50ICM7555IBAZ-T
Renesas Electronics America Inc. · EE02266-26IC OSC SINGLE TIMER 1MHZ 8-SOIC10 In Stock
More from Temel Elektronik
- Temel ElektronikIntermediate
What Is the 74HC595? Wiring Diagram and Driving LEDs
What is the 74HC595 and how do you wire it? Step by step: pinout, the SER, SCK and RCK signals, daisy-chaining, and resistor calculation…
- Temel ElektronikIntermediate
What Is a Zener Diode? Series Resistor Calculation and Reading the Code
What is a Zener diode and how does it work? Series resistor calculation, reading the voltage from 1N47xx and BZX55C codes, power selection and…
- Temel ElektronikIntermediate
1N4007 vs. UF4007 vs. 1N5819: Which Diode Goes Where?
The 1N4007 rectifies mains, the UF4007 handles high frequency, the 1N5819 runs cool. Reverse voltage, recovery time and substitution rules in tables.


