555 Timer Calculator - Astable and Monostable Modes
Enter your resistor and capacitor values to calculate 555 timer outputs for astable (free-running oscillator) and monostable (one-shot pulse) modes. Choose your mode, enter component values in common units (kilo-ohms and nano-farads), and get frequency, period, duty cycle, time-high, time-low and pulse width instantly. The "Show your work" panel traces every formula with your actual numbers.
Formula
Worked example
Astable example: R1 = 10 kΩ, R2 = 10 kΩ, C = 100 nF. t_high = 0.693 × (10000 + 10000) × 100e-9 = 1.386 ms. t_low = 0.693 × 10000 × 100e-9 = 0.693 ms. T = 2.079 ms. f = 1/T = 481 Hz. Duty = 20000/30000 = 66.7%.
How the 555 timer works
The 555 timer IC (NE555, LM555) is one of the most widely manufactured electronic components ever made. It contains two voltage comparators, an SR flip-flop, a discharge transistor, and a resistor voltage-divider ladder. In astable mode the capacitor alternately charges through R1 and R2 (raising the output HIGH) and discharges through R2 alone (pulling the output LOW), creating a continuous square wave. In monostable mode the capacitor charges through R1 after a trigger pulse, and the output returns LOW once the capacitor voltage reaches two-thirds of the supply voltage. Because the timing constants 0.693 and 1.1 both come from the natural logarithm of 2 and 3 respectively, the timing is independent of supply voltage over the range of 5 V to 15 V.
Astable mode: free-running oscillator
In astable mode the 555 needs no external trigger. It continuously charges its timing capacitor through R1 + R2 (from VCC to 2/3 VCC), then discharges through R2 alone (from 2/3 VCC to 1/3 VCC), repeating indefinitely. The charge time (time HIGH) is t_high = 0.693 x (R1 + R2) x C, the discharge time (time LOW) is t_low = 0.693 x R2 x C, and frequency is f = 1.44 / ((R1 + 2 x R2) x C). Because the capacitor charges through both R1 and R2 but only discharges through R2, time HIGH is always greater than time LOW, so the duty cycle always exceeds 50%. To achieve exactly 50% duty cycle, add a fast switching diode (1N4148) across R2 with cathode toward pin 7: the capacitor then charges only through R1 and discharges only through R2, making both half-cycles equal when R1 = R2.
Monostable mode: one-shot pulse
In monostable mode the 555 has one stable state: output LOW. When pin 2 (trigger) is briefly pulled below 1/3 VCC, the output goes HIGH and the capacitor begins charging through R1. Once the capacitor reaches 2/3 VCC, the flip-flop resets, the output goes LOW, and the discharge transistor rapidly discharges the capacitor back to GND. The pulse width is T = 1.1 x R1 x C. During the timing period, additional trigger pulses on pin 2 are ignored (non-retriggerable). If a new trigger is needed before the pulse ends, use a 74121 or 74123 for retriggerable monostable behavior. Practical component selection: keep R1 between 1 kOhm and 10 MOhm, and C between 1 nF and 1000 uF. Very small capacitors are vulnerable to stray capacitance.
Component selection and practical tips
For resistors, values between 1 kOhm and 1 MOhm are recommended. Below 1 kOhm, the discharge transistor current limit is approached; above 1 MOhm, leakage currents in the capacitor and IC inputs become significant. For capacitors, electrolytic types work for slow oscillation (below a few hundred Hz) but their high leakage introduces error for long timing periods; use polyester film or ceramic capacitors above a few hundred Hz. Add a 10 nF to 100 nF decoupling capacitor between VCC (pin 8) and GND (pin 1) placed close to the IC to suppress supply noise. If you need duty cycles below 50%, use a CMOS 555 (TLC555, LMC555) with the diode trick. Above 500 kHz, the bipolar NE555 loses accuracy and the CMOS variants are strongly preferred.
Common 555 timer astable component combinations
| R1 (kΩ) | R2 (kΩ) | C (nF) | Frequency | Duty cycle | Application |
|---|---|---|---|---|---|
| 10 | 68 | 10000 | ~1 Hz | 88% | Slow LED blink |
| 10 | 10 | 100 | ~480 Hz | 67% | Audio tone (low) |
| 1 | 1 | 10 | ~4.8 kHz | 67% | Audio tone (mid) |
| 1 | 10 | 1 | ~67 kHz | 92% | PWM signal |
| 10 | 10 | 0.1 | ~480 kHz | 67% | High-freq clock (CMOS 555 recommended) |
Approximate frequency and duty cycle for popular R1, R2, C combinations. All resistances in kΩ, capacitance in nF.
Frequently asked questions
Why can the 555 astable circuit never achieve exactly 50% duty cycle without modification?
The capacitor charges through both R1 and R2 (from VCC, through pin 7 via the discharge transistor, to the capacitor) but discharges only through R2. Because the charge path is always longer than the discharge path, time HIGH is always greater than time LOW, making the duty cycle inherently above 50%. To achieve 50%, add a diode across R2 so the charge path uses only R1 and the discharge path uses only R2, then set R1 = R2.
What is the difference between the NE555 and CMOS 555 timers?
The NE555 and LM555 are bipolar ICs with an output that can source or sink up to 200 mA, making them able to drive LEDs and small motors directly. They work reliably up to about 500 kHz. CMOS variants like the TLC555 and LMC555 draw far less supply current (typically under 1 mA), can run from supplies as low as 1.5 V, operate accurately to several MHz, and are preferred for battery-powered and high-frequency designs. The formulas are identical for both families.
How do I calculate the 555 timer frequency without a calculator?
For astable mode, use f = 1.44 / ((R1 + 2 x R2) x C). Express all resistances in ohms and capacitance in farads. For example, R1 = 10 kOhm = 10000 Ohm, R2 = 10 kOhm = 10000 Ohm, C = 100 nF = 0.0000001 F. Then f = 1.44 / ((10000 + 20000) x 0.0000001) = 1.44 / 0.003 = 480 Hz.
How does capacitor size affect the 555 timer output?
Capacitance is linearly proportional to timing: doubling C doubles both time HIGH and time LOW, cutting the frequency in half. Halving C halves the timing periods and doubles frequency. This makes the capacitor the most convenient component to swap when you need a large change in frequency.
Can the 555 timer be used as a PWM controller?
Yes. In astable mode the duty cycle controls the average voltage seen by a load, which is the principle of pulse-width modulation. You can vary duty cycle by connecting a potentiometer between R1 and R2, or by injecting a control voltage on pin 5 (control voltage pin) to shift the comparator thresholds dynamically. Both methods keep frequency roughly constant while changing the duty cycle.