EN

555 timer: frequency, duty cycle and pulse duration

The 555 is the best-selling chip in history: eight pins that turn two resistors and a capacitor into an oscillator (astable mode: blinking LED, sound generator, clock) or a timer (monostable mode: one pulse of a precise duration at each trigger).

Pick the mode, enter R and C: the calculator gives the frequency, the period, the high and low times, the duty cycle — or the pulse duration — and flags the component values that cause trouble in practice.

Useful landmarks: in astable mode, R1 and R2 between 1 kΩ and 1 MΩ, C between 100 pF and a few hundred µF. The duty cycle always stays above 50 % in the basic circuit (charging goes through R1 + R2, discharging through R2 alone).

The circuit

Operating mode

Switch mode then run the calculation again to adapt the fields.

Components (astable)

Glossary: astable, monostable, bistable — the three modes in one sentence each

  • Astable — free-running square wave, no trigger required.
  • Monostable — one pulse of set width on a falling edge at pin 2.
  • Bistable — set / reset flip-flop; the output stays until the other pin is told.

This calculator covers astable and monostable. Bistable is the same chip with the RC stripped off.

Glossary: frequency, period, duty cycle, edge, pulse

Frequency f in hertz, period T = 1/f. Duty cycle is the high fraction of T, in percent. An edge is the 0→1 or 1→0 jump; a pulse is a high (or low) of finite width. Astable has a duty cycle; monostable has a pulse width.

The 555 pin by pin: the role of each of the 8 legs

PinNameJob
1GND0 V
2TRIGFalling below ⅓ VCC sets the output high
3OUTTotem-pole, ~200 mA source/sink on a bipolar 555
4RESETActive low; tie to VCC if unused
5CTRLAccess to the ⅔ VCC reference; 10 nF to ground
6THRRising above ⅔ VCC resets the output low
7DISCHOpen collector that dumps the timing cap to ground
8VCC4.5–16 V (bipolar); CMOS goes lower

How it works inside: the two comparators, the flip-flop and the 1/3–2/3 thresholds

A resistor string makes ⅓ and ⅔ of VCC. One comparator watches pin 2 against ⅓, the other watches pin 6 against ⅔. Their outputs set and reset an RS flip-flop, which drives pin 3 and the discharge transistor on pin 7. The timing capacitor is just a triangle (well, an exponential) bouncing between those two rails.

Pull pin 5 and you move both thresholds. That is how a 555 becomes a PWM modulator with a control voltage.

Where the constants 0.693 and 1.1 come from: the exponential charging of a capacitor

V(t) = VCC(1 − e−t/RC). The time from ⅓ to ⅔ of VCC is ln(2)·RC ≈ 0.693 RC. That is one astable half, give or take which resistor is in the path. Monostable starts from 0 and runs to ⅔: ln(3)·RC ≈ 1.099 RC, rounded to 1.1.

tH = ln(2) · (R1 + R2) · C   ·   tL = ln(2) · R2 · C   ·   tmono = ln(3) · R · C

The same exponential as any RC time constant, with the thresholds nailed at ⅓ and ⅔.

Complete astable wiring diagram, with the pin 5 decoupling capacitor

  • 8 to VCC, 1 to ground, 4 to VCC.
  • R1 from VCC to pin 7; R2 from 7 to 6; 6 tied to 2; C from that node to ground.
  • 10 nF from pin 5 to ground. Not optional next to a motor or a long supply lead.
  • Output on 3. Bypass VCC to ground right at the chip (100 nF).

f = 1.44 / ((R1 + 2 R2) · C)   ·   duty = (R1 + R2) / (R1 + 2 R2)

Duty is always > 50 % in this wiring, because charge goes through R1+R2 and discharge through R2 only.

Complete monostable wiring diagram and the trigger circuit

R from VCC to pins 6 and 7 (tied), C from there to ground. Pin 2 sits high and is pulled low to fire. A 10 kΩ pull-up and a button to ground is the usual trigger; a 10 nF across the button kills bounce. Pulse width t = 1.1 RC. Hold pin 2 low longer than t and the output stays high — retriggering. A short pulse, then, not a switch you leave down.

Getting a 50 % duty cycle or less: the diode across R2

Diode across R2, anode at pin 7, cathode at pin 6: charge bypasses R2, discharge still uses it. Then tH = 0.693·R1·C, tL = 0.693·R2·C, duty = R1/(R1+R2). Set R1 = R2 for 50 %. A Schottky is cleaner than a 1N4148 if you care about the last few percent at high frequency.

Bipolar NE555 or CMOS TLC555/7555: consumption, top frequency, current spikes

NE555 (bipolar)TLC555 / 7555 (CMOS)
Supply current at 5 V3–6 mA~0.1–0.2 mA
Practical fmax~100 kHz~1–3 MHz
Output current~200 mA~50–100 mA
Supply spike at switching~400 mA, needs a local capmuch smaller
VCC min4.5 V~2 V

CMOS also has a much higher pin-7 impedance, so large R and small C work; bipolar 555s misbehave with R above a few megaohms.

Pick C first, R second: the method that avoids impractical values

1 Hz? Start with 10 µF, not 100 pF and a 20 MΩ resistor. R1 and R2 around 10–100 kΩ keep the thresholds honest. Example: C = 10 µF, R1 = R2 = 47 kΩ → f ≈ 1.02 Hz.

The real-world limits: thermal drift, capacitor tolerance, electrolytic leakage

  • NE555 tempco is tens of ppm/°C; the capacitor is usually worse.
  • ±10 % C is ±10 % f. 5 % film or 1 % if the note has to be A4.
  • Electrolytics leak. On a 10 s monostable that leakage is extra current around the resistor. Tantalum or film for long times; or accept a 10 s that is “about 10”.

Powering and loading the output: maximum current, driving LEDs, relays, buzzers

Bipolar 555: ~200 mA, enough for an LED with 220–470 Ω, a small piezo, not a 500 mA relay coil. Relays get a transistor and a freewheel diode. Always a 100 nF (and 10 µF if the wiring is long) on VCC — the bipolar part is famous for dipping the rail at every edge and resetting itself.

Classic circuits: blinker, two-tone siren, PWM, debounce, staircase timer

  • Blinker — astable, 1–2 Hz, LED on pin 3.
  • Two-tone siren — one astable modulating pin 5 of another.
  • PWM — diode trick, or a control voltage on pin 5.
  • Debounce — monostable longer than the bounce.
  • Stair-light timer — monostable of tens of seconds into a relay.

Worked examples: 1 Hz for an LED, 440 Hz for an A note, a 10 s delay

  1. 1 Hz LED. C = 10 µF, R1 = R2 = 47 kΩ. tH ≈ 0.65 s, tL ≈ 0.33 s, f ≈ 1.02 Hz. On two-thirds of the period, which is fine for a blinker. For 50 % add the diode and set R1 = R2.
  2. A4 = 440 Hz. C = 10 nF → R1 + 2 R2 ≈ 327 kΩ. R1 = 1 kΩ, R2 = 160 kΩ → ~449 Hz. Trim R2 or accept a slightly sharp A.
  3. 10 s monostable. C = 100 µF, R = 10 / (1.1 × 100e−6) ≈ 90.9 kΩ → 91 kΩ. Leakage on that electrolytic is the uncertainty, not the 0.1 kΩ.

Pin 5 as a voltage-controlled oscillator

The control pin is the ⅔ node. Pull it down and both thresholds drop, frequency rises. An audio envelope or a second 555 into pin 5 is the classic siren. Stay within a volt or two of ⅔ VCC or the comparators run out of range. The 10 nF still belongs there, unless the modulation is itself fast and you are doing it on purpose.

Reset is an enable, not a decoration

Pin 4 low forces the output low and dumps the cap. A microcontroller GPIO there is a clean start/stop. A floating pin 4 is a random reset on every nearby spark. Tie it high, or drive it. No third option.

The 555 next to a motor: decoupling is the circuit

Bipolar 555s dump a current spike into the supply at every transition. A motor on the same pair of wires is a noise generator. 100 nF ceramic plus 10 µF electrolytic at pins 8 and 1, 10 nF on pin 5, and a diode on the motor: that is the difference between a timer and a random-number chip.

Do not leave pin 4 or pin 5 floating. Reset false-triggers; control picks up hash and the frequency walks. Two resistors and two capacitors prevent an afternoon of “faulty 555s”.

Related calculators