Figure 1: 555 Timer Calculator — enter values to calculate the result with step-by-step workings.
Table of Contents
- Astable — Continuous Oscillator
- Example: 1 kHz Square Wave
- Example: LED Blink (~10 Hz)
- Getting 50% Duty Cycle
How the 555 Timer Generates Timing From Passive Components
The NE555 is the most widely produced integrated circuit in history — billions manufactured since 1972 and still in active production. It generates precise, repeatable timing using nothing more than two resistors and a capacitor. No code, no crystal, no clock source. The calculator above returns frequency, period, duty cycle, and individual HIGH/LOW pulse times, with the mode detected automatically from whether RB is zero or non-zero.
The 555 contains two comparators with thresholds at ⅓ VCC and ⅔ VCC, an SR flip-flop, and a discharge transistor. The capacitor charges and discharges between these two thresholds, and the flip-flop toggles the output each time a threshold is crossed. The constant 0.693 (ln 2) in all the timing formulas comes directly from this ⅓/⅔ voltage ratio. The Transistor Base Resistor Calculator uses a similar principle — a single transistor switching between two states, though without the internal comparator architecture.
The Formulas
thigh = 0.693 × (RA + RB) × Ctlow = 0.693 × RB × Cf = 1.44 / ((RA + 2RB) × C)Duty = (RA + RB) / (RA + 2RB) × 100%Monostable (one-shot):
T = 1.1 × R × C
Astable Mode — Continuous Oscillator
When both RA and RB are present, the 555 runs as a free-running oscillator. The capacitor charges through RA + RB (output HIGH) and discharges through RB alone (output LOW). The discharge pin (pin 7) shorts RB to ground through an internal transistor, bypassing RA during the LOW phase. Since the charge path is always longer than the discharge path, the duty cycle is always above 50% in the standard configuration.
Example: 1 kHz Square Wave
thigh = 0.693 × (10k + 10k) × 100n = 1.386 ms
tlow = 0.693 × 10k × 100n = 0.693 ms
T = 1.386 + 0.693 = 2.079 ms → f = 481 Hz
Duty cycle = 20k / 30k = 66.7%
Not exactly 1 kHz with equal resistors — the calculator lets you adjust values instantly to hit your target. The Emitter Resistor Calculator handles a related timing consideration when 555 outputs drive transistor amplifier stages.
Example: Visible LED Blink (~10 Hz)
thigh = 0.693 × 11k × 10µ = 76.2 ms
tlow = 0.693 × 10k × 10µ = 69.3 ms
f = 6.87 Hz | Duty = 11k / 21k = 52.4%
With RA much smaller than RB, the duty cycle approaches 50%. Making RA as small as possible (minimum ~1 kΩ to protect the discharge transistor) pushes toward a symmetric waveform.
Getting a 50% Duty Cycle
The standard 555 astable cannot produce exactly 50% duty because the charge and discharge paths are inherently different. Two common workarounds:
Diode bypass: Place a 1N4148 diode across RB with the cathode toward the capacitor. The capacitor charges through RA only (diode bypasses RB) and discharges through RB only. Set RA = RB for exactly 50% duty.
Flip-flop divider: Run the 555 at double the target frequency and divide with a D flip-flop (74HC74). The divided output is always a perfect 50% regardless of the input duty cycle. The Op-Amp Gain Calculator can help design an output buffer if the 555 or flip-flop output needs to drive a specific voltage level.
Monostable Mode — Single Pulse
When RB is zero, the calculator switches to monostable mode. A falling edge on pin 2 produces a single output pulse whose duration depends only on R and C. The constant 1.1 is ln(3) — the capacitor charges from 0 V to ⅔ VCC through R.
Example: 1.1 Second Delay
T = 1.1 × 100k × 10µ = 1.1 seconds
After the trigger, the output goes HIGH for exactly 1.1 seconds regardless of what the trigger pin does (non-retriggerable). Common uses: switch debouncing, relay timing, sequential delays.
For shorter pulses: R = 10 kΩ, C = 100 nF gives T = 1.1 ms (debounce). For very long delays (>30 s), a microcontroller is more reliable than a 555 with large electrolytics.
Capacitor Selection Guide
Polyester/polypropylene film: Good for 1 ms–10 s. Stable, low leakage.
Electrolytic: Only for very long delays (>10 s). ±20% tolerance, significant leakage shortens actual pulse time.
With 1% resistors and 10% capacitors, expect ±11% frequency variation. For tighter accuracy, use C0G caps or add a trimmer pot in series with RA. The LM317 Resistor Calculator faces a similar component tolerance issue when setting regulated output voltage.
Frequency Limits and Stability
The standard NE555 (bipolar) works reliably up to about 500 kHz. The CMOS variants (LMC555, TLC555) can reach 2–3 MHz with lower power and rail-to-rail output. Above these limits, internal propagation delays distort the waveform.
Frequency is theoretically independent of supply voltage because the ⅓/⅔ thresholds track VCC. In practice, frequency varies 1–2% over 5–15 V due to switching delays. Always bypass VCC with a 100 nF ceramic capacitor close to pins 1 and 8. The MOSFET Gate Resistor Calculator handles a related high-frequency switching concern where gate drive timing affects switching losses.
Frequently Asked Questions
How does the 555 astable circuit work?
How do I get a 50% duty cycle?
What is monostable mode?
What capacitor type should I use?
What is the maximum frequency?
Can I use a 555 for PWM?
Related Calculators
Browse all Electronics Calculators →