electrician.wiki

Electronics calculators

555 timer calculator

Work out a 555’s astable frequency and duty cycle, a monostable pulse width, or the R1 and R2 for a target frequency, with standard values and every step shown.

New to this? How the 555 timer works

Report a problem with this result

How to use the 555 timer calculator

Choose a mode. Astable takes R1, R2 and C and returns the frequency, period, high and low times and duty cycle of a free-running 555 oscillator. Monostable takes R and C and returns the length of the output pulse after each trigger. Design astable works the other way: give a target frequency, a duty cycle and the capacitor you have, and it returns the exact R1 and R2, the nearest E12 or E24 preferred values, and the frequency and duty cycle those standard parts really give. Values take the shorthand printed on parts: 10u is 10 µF, 100n is 100 nF, 4n7 is 4.7 nF and 1M is 1 MΩ.

Tick Diode across R2 for duty cycles of 50 % or less. The calculator then asks for the supply voltage and the diode’s forward voltage, because a real diode lengthens the high time noticeably at low supply voltages. Enter 0 V for the textbook ideal-diode result.

555 timer formulas

In astable mode the capacitor charges through R1 and R2 until it reaches ⅔ of the supply, then discharges through R2 alone into pin 7 until it falls to ⅓ of the supply. The high and low times, frequency and duty cycle are:

tH=ln⁡(2)·(R1+R2)·C
tL=ln⁡(2)·R2·C
f=1ln⁡(2)·(R1+2·R2)·C≈1.44(R1+2·R2)·C
D=R1+R2R1+2·R2

The 1.44 in datasheets and textbooks is 1/ln 2 = 1.443 rounded, so the shortcut reads 0.19 % low; this calculator uses ln 2 exactly. Because the capacitor always charges through more resistance than it discharges through, the duty cycle without a diode is always above 50 %. In monostable mode the capacitor starts from 0 V and the pulse ends at ⅔ of the supply:

t=ln⁡(3)·R·C≈1.1·R·C

Why ln 2 and ln 3? An RC circuit closes the same fraction of its remaining gap in each time constant. Charging from ⅓ to ⅔ of the supply halves the gap to the supply, and discharging from ⅔ to ⅓ halves the gap to 0 V: both take ln 2 = 0.6931 time constants. The monostable charge from 0 V to ⅔ shrinks the gap from the full supply to a third of it, a factor of three: ln 3 = 1.099 time constants, the familiar 1.1RC. Both thresholds come from an internal divider across the supply, so the supply voltage cancels out of every result.

Worked examples

An LED flasher

The classic first 555 circuit: R1 = 1 kΩ, R2 = 10 kΩ and a 10 µF electrolytic, driving an LED from pin 3.
  1. 1. High time: C charges through R1 + R2

    tH=ln⁡(2)·(R1+R2)·C=0.6931·(1kΩ+10kΩ)·10µF=76.25ms
  2. 2. Low time: C discharges through R2 into pin 7

    tL=ln⁡(2)·R2·C=0.6931·10kΩ·10µF=69.31ms
  3. 3. Frequency

    f=1tH+tL=176.25ms+69.31ms=6.87Hz
  4. 4. Duty cycle: share of each period the output is high

    D=R1+R2R1+2·R2=1kΩ+10kΩ1kΩ+2·10kΩ=52.38 %

R1 = 1 kΩ, R2 = 10 kΩ and C = 10 µF oscillate at 6.87 Hz (period 146 ms): high for 76.2 ms, low for 69.3 ms, a 52.4 % duty cycle.

A one-second-plus delay

A push button pulls pin 2 low; the output should stay high for about a second with R = 100 kΩ and C = 10 µF.
  1. 1. Pulse width: C charges from 0 V to ⅔ of the supply through R

    t=ln⁡(3)·R·C=1.099·100kΩ·10µF=1.099s
  2. 2. Check against the 1.1RC rule of thumb

    t≈1.1·R·C=1.1·100kΩ·10µF=1.1s

R = 100 kΩ and C = 10 µF give a 1.1 s output pulse (t = ln 3 · RC ≈ 1.1RC) each time the trigger pin (2) is pulled below ⅓ of the supply.

Designing a 1 kHz, 60 % oscillator

A test tone at 1 kHz with a 60 % duty cycle, built around a 10 nF film capacitor and E24 resistors.
  1. 1. High and low times from the target

    tH=Df=0.61kHz=600µstL=1−Df=1−0.61kHz=400µs
  2. 2. R2 from the low time

    R2=tLln⁡(2)·C=400µs0.6931·10nF=57.71kΩ
  3. 3. R1 from the high time (C charges through R1 + R2)

    R1=tHln⁡(2)·C−R2=600µs0.6931·10nF−57.71kΩ=28.85kΩ
  4. 4. Nearest E24 values and what they give

    f=1ln⁡(2)·(R1+2·R2)·C=10.6931·(30kΩ+2·56kΩ)·10nF=1.016kHz

For 1 kHz at 60 % duty with C = 10 nF, R1 = 28.85 kΩ and R2 = 57.71 kΩ exactly; the nearest E24 values, 30 kΩ and 56 kΩ, give 1.016 kHz at 60.6 % duty.

A 38 kHz infrared carrier on 5 V

IR remote receivers expect a carrier near 38 kHz at about 50 % duty. On 5 V with a 1N4148 across R2, the diode drop makes R1 much smaller than R2.
  1. 1. High and low times from the target

    tH=Df=0.538kHz=13.16µstL=1−Df=1−0.538kHz=13.16µs
  2. 2. Charge factor with the diode’s voltage drop

    k=ln⁡(2·VCC−3·VDVCC−3·VD)=ln⁡(2·5V−3·0.7V5V−3·0.7V)=1.002
  3. 3. R2 from the low time

    R2=tLln⁡(2)·C=13.16µs0.6931·1nF=18.98kΩ
  4. 4. R1 from the high time (C charges through R1 alone)

    R1=tHk·C=13.16µs1.002·1nF=13.13kΩ
  5. 5. Nearest E24 values and what they give

    f=1k·R1·C+ln⁡(2)·R2·C=11.002·13kΩ·1nF+0.6931·20kΩ·1nF=37.19kHz

For 38 kHz at 50 % duty with C = 1 nF and a diode across R2, R1 = 13.13 kΩ and R2 = 18.98 kΩ exactly; the nearest E24 values, 13 kΩ and 20 kΩ, give 37.19 kHz at 48.4 % duty.

555 frequency and pulse-width tables

These tables are computed by the same engine as the calculator. Frequency scales inversely with C, so each row is ten times the one below it; duty cycle depends only on the ratio of R1 to R2.

Astable frequency with R1 = 1 kΩ, no diode
CR2 = 1 kΩR2 = 4.7 kΩR2 = 10 kΩR2 = 47 kΩR2 = 100 kΩ
1 nF481 kHz139 kHz68.7 kHz15.2 kHz7.18 kHz
10 nF48.1 kHz13.9 kHz6.87 kHz1.52 kHz718 Hz
100 nF4.81 kHz1.39 kHz687 Hz152 Hz71.8 Hz
1 µF481 Hz139 Hz68.7 Hz15.2 Hz7.18 Hz
10 µF48.1 Hz13.9 Hz6.87 Hz1.52 Hz718 mHz
100 µF4.81 Hz1.39 Hz687 mHz152 mHz71.8 mHz
Duty cycle66.7 %54.8 %52.4 %50.5 %50.2 %
Monostable pulse width t = ln 3 · R · C
RC = 10 nFC = 100 nFC = 1 µFC = 10 µFC = 100 µF
10 kΩ110 µs1.1 ms11 ms110 ms1.1 s
100 kΩ1.1 ms11 ms110 ms1.1 s11 s
1 MΩ11 ms110 ms1.1 s11 s110 s

Duty cycles below 50 %: the diode and its voltage drop

A diode across R2 (anode at pin 7) lets the capacitor charge through R1 alone and discharge through R2, so the duty cycle becomes roughly R1 / (R1 + R2) and can go well below 50 %. The textbook formula, tH = ln 2 · R1 · C, assumes an ideal diode. A real one drops its forward voltage VD, so the capacitor charges towards VCC − VD and takes longer to reach ⅔ of the supply:

tH=k·R1·C
k=ln⁡(2·VCC−3·VDVCC−3·VD)
How much longer the high time is than the ideal-diode formula ln 2 · R1 · C
SupplySchottky, 0.3 VSilicon (1N4148), 0.7 V
5 V+15.0 %+44.6 %
9 V+7.8 %+20.4 %
12 V+5.7 %+14.5 %
15 V+4.5 %+11.3 %

At 5 V a silicon diode stretches the high time by almost half, which is why a “50 %” 555 built with equal resistors and a 1N4148 runs noticeably asymmetric on a 5 V rail. This calculator includes the drop; use a Schottky diode, a higher supply, or a smaller R1 to compensate.

Practical pitfalls

  • Bipolar or CMOS. The original bipolar NE555 is rugged and drives heavy loads, but draws milliamps and tops out around 100 kHz. CMOS versions run from lower voltages, draw microamps, accept far larger timing resistors and run into the megahertz range, at the cost of output drive. The datasheet figures:
Datasheet figureNE555 (bipolar)TLC555 (CMOS)LMC555 (CMOS)
Supply voltage4.5–16 V2–15 V1.5–15 V
Typical consumption at 5 V3 mA180 µAunder 1 mW
Output driveup to 200 mA, sink or source100 mA sink, 10 mA source (typical)tested at 50 mA sink, 10 mA source
Highest astable frequency100 kHz or below recommended2.1 MHz typical (1.2 MHz minimum)3 MHz typical
TI datasheetSLFS022KSLFS043KSNAS558N
  • Decoupling and the control pin. A bipolar 555 pulls a sharp current spike from the supply every time its output switches, enough to retrigger itself or upset nearby logic. TI recommends a 0.1 µF ceramic capacitor from VCC to ground right at the chip (for the TLC555, 0.1 µF ceramic plus 1 µF electrolytic). A 10 nF ceramic from the control pin (5) to ground keeps noise off the thresholds; avoid a leaky electrolytic there, because its leakage shifts them.
  • Choosing the timing capacitor. Electrolytics are typically ±20 % and leak, so long delays wander. Film capacitors (polyester, polypropylene) hold their value; C0G/NP0 ceramics suit small values. High-capacitance ceramics such as X7R and Y5V lose capacitance with applied voltage and temperature: fine for decoupling, poor for timing. To read a capacitor’s markings, decode its value code.
  • Resistor limits. Keep R1 at 1 kΩ or more: whenever pin 7 discharges, R1 connects the supply straight to it. At the top end, TI limits RA + RB on the bipolar part to about 3.4 MΩ at 5 V and 10 MΩ at 15 V, because the threshold input draws up to 250 nA. For long delays use a bigger capacitor, a CMOS 555, or a 555 driving a counter.
  • The first cycle is longer. At power-up the capacitor starts from 0 V rather than ⅓ of the supply, so the first high period of the LED flasher above is 121 ms instead of 76.2 ms. It matters for tone bursts and anything that counts pulses from power-on.
  • Reset and trigger. Tie RESET (pin 4) to VCC when unused. In monostable mode the trigger pulse must end before the output pulse does; if the input can stay low, couple it through a small capacitor with a pull-up so only the falling edge triggers.
  • Driving loads. An NE555 output can drive a small relay directly; put a flyback diode across the coil. For LEDs on the output, size the LED’s series resistor from the output high voltage, which sits a volt or two below VCC on the bipolar part.

To check the parts themselves, read the resistors’ colour bands; to bias the control pin from a fixed voltage, calculate the voltage divider that feeds it.

Method and verification

The calculator uses the timing equations in TI’s NE555 datasheet (SLFS022K, March 2026), with ln 2 and ln 3 evaluated exactly rather than as 0.693 and 1.1, and double precision throughout. With the diode option, the high time is solved from the capacitor’s exponential charge towards VCC − VD; with VD = 0 it reduces to the textbook ln 2 · R1 · C. In design mode the exact R1 and R2 come straight from the target high and low times, and each is then rounded on its own to the log-nearest E12 or E24 value before the real frequency and duty cycle are recomputed. Propagation delays, the discharge transistor’s resistance and capacitor tolerance are not modelled.

Test cases include the default flasher (6.87 Hz, 52.38 %), the component values of TI’s typical astable waveform (RA = 5 kΩ, RB = 3 kΩ, C = 0.15 µF: 874.4 Hz), checks of the diode factor against the raw charging equation at 5 V, 9 V and 15 V, design-to-analysis round trips with and without a diode, and rejection of duty cycles of 50 % or less without one.

Results assume nominal part values; real timing is usually limited by the capacitor’s tolerance. Updated 2026-10-14. Found a problem? Report it and we log every fix publicly.

Questions people ask

What is the formula for 555 astable frequency?
f = 1 / (ln 2 × (R1 + 2R2) × C), usually written f ≈ 1.44 / ((R1 + 2R2) × C). With R1 = 1 kΩ, R2 = 10 kΩ and C = 10 µF the 555 runs at 6.87 Hz with a 52.4 % duty cycle.
How do I get a 50 % duty cycle from a 555?
Put a diode across R2 so the capacitor charges through R1 alone, then make R1 equal to R2 for an ideal diode. A real silicon diode at 9 V lengthens the charge time, so R1 has to be about 83 % of R2; the design mode works this out for your supply.
What is the 555 monostable formula?
t = ln 3 × R × C ≈ 1.1 × R × C. With R = 100 kΩ and C = 10 µF the output pulse lasts 1.1 s.
What is the maximum frequency of a 555 timer?
TI recommends the bipolar NE555 for 100 kHz or below. CMOS versions go much higher: the TLC555 typically reaches 2.1 MHz (1.2 MHz minimum) and the LMC555 about 3 MHz, though timing accuracy falls off well before those limits.
Why does my 555 run at a different frequency than calculated?
Usually the timing capacitor: electrolytics are often ±20 % and leak. Other causes are the drop of a diode across R2, stray capacitance with very small capacitors, comparator delays above about 100 kHz, and the first cycle after power-up, which is longer than the rest.
Does the supply voltage change the 555 frequency?
Hardly. Both thresholds are fixed fractions of the supply, so the supply cancels out and the datasheet sensitivity is a fraction of a percent per volt. The exception is the diode-across-R2 circuit, whose high time depends on the supply through the diode’s voltage drop.