555 timer calculator (astable and monostable)
Frequency, high time, low time and duty cycle of a 555 astable oscillator from R1, R2 and C; the R1 and R2 for a frequency and duty cycle you want; and the pulse width of a 555 one-shot. Results update as you type.
Indicative calculation; verify before use.
Astable: frequency and duty cycle from R1, R2 and C
Use a prefix: p, n, u or µ, m, k, M (4k7 = 4.7 kΩ, 100n = 100 nF, 4u7 = 4.7 µF). m is milli, M is mega.
Keep the frequency at 100 kHz or below: TI's NE555 datasheet (SLFS022, section 6.3.2) recommends this to reduce distortion (datasheet).
Astable: R1 and R2 for a frequency and duty cycle
| R1 | R2 | Frequency | Duty |
|---|
In this circuit the duty cycle is always above 50 %, because C charges through R1 + R2 but discharges through R2 only. The E24 row rounds each resistor to the nearest E24 value and shows what you then get; the tolerance of the capacitor and resistors comes on top.
Monostable: pulse width t = 1.1 R C
How it works
In astable mode the capacitor charges through R1 and R2 from 1/3 to 2/3 of the supply, and the output is high; then the discharge pin pulls it back down through R2 alone, and the output is low. Each half takes ln 2 ≈ 0.693 time constants, which is where the factor comes from. R1 (TI calls it RA) runs from VCC to the discharge pin, R2 (RB) from the discharge pin to threshold and trigger. In monostable mode a trigger starts one output pulse that lasts until C has charged through R to 2/3 of the supply: ln 3 ≈ 1.1 time constants.
Worked example (astable): R1 = 1 kΩ, R2 = 10 kΩ, C = 10 nF: tH = 0.693 × 11 000 × 10 nF = 76.2 µs, tL = 0.693 × 10 000 × 10 nF = 69.3 µs, so f = 1 / 145.6 µs = 6.87 kHz with a duty cycle of 11 / 21 = 52.4 %.
Worked example (design): 1 kHz at 60 % duty with C = 100 nF: R2 = 0.4 / (0.693 × 1000 × 100 nF) = 5.771 kΩ and R1 = 0.2 / (0.693 × 1000 × 100 nF) = 2.885 kΩ. With the nearest E24 values, 3.0 kΩ and 5.6 kΩ, you get 1.016 kHz at 60.6 %.
Worked example (monostable): R = 100 kΩ and C = 10 µF give tw = 1.1 × 100 000 × 10 µF = 1.1 s.
The formulas give the nominal timing. The real part also depends on the tolerance of R and C, the capacitor's leakage, and the device's own timing error and drift, which the datasheet lists in its electrical characteristics. CMOS versions (such as TLC555) have their own datasheets; check the formulas there.
Sources (checked 2026-11-03):
- Texas Instruments, xx555 Precision Timers, data sheet SLFS022 (NA555, NE555, SA555, SE555), sections 6.3.1 Monostable Operation and 6.3.2 Astable Operation: https://www.ti.com/lit/ds/symlink/ne555.pdf