Skip to main content

555 Timer Calculator: Frequency, Duty Cycle and Pulse Width from R and C

How to size R1, R2 and C for an NE555. Astable frequency f=1.44/((R1+2R2)C), duty cycle, and monostable pulse width, with a worked LED blinker example.

Published By Li Lei
#555 timer #ne555 #electronics #astable #duty cycle

555 Timer Calculator: Sizing R and C for an NE555

The NE555 is the chip almost everyone meets first when they start poking at electronics. It blinks LEDs, drives buzzers, debounces buttons and stretches button presses into timed pulses, and it does all of this with two resistors and a capacitor. The hard part is never the wiring. It is picking R1, R2 and C so the chip actually does what you want, because the timing equations have a couple of sharp edges that trip up beginners (and people who should know better).

This is a walk through how a 555 sets its timing, why the basic astable circuit refuses to give you a clean 50% duty cycle, and how to go from "I want a 1 Hz blink" to actual part values. The 555 timer calculator does the arithmetic, but knowing what the numbers mean is what stops you from soldering the wrong cap in.

Astable mode: the chip as an oscillator

Wire a 555 with R1 from Vcc to the capacitor, R2 between the capacitor node and the discharge pin, and the capacitor to ground, and the output (pin 3) swings between HIGH and LOW forever. That is astable mode, the workhorse wiring for blinkers, tone generators and PWM-ish clocks.

The output frequency comes from one equation:

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

R1 and R2 are in ohms, C is in farads, and f comes out in hertz. The 1.44 is not magic. It is 1/ln(2) doubled up, dropping out of the capacitor charging and discharging between one third and two thirds of Vcc. That same ln(2) ≈ 0.693 shows up in the on/off split:

  • Output HIGH for t_high = 0.693·(R1+R2)·C (cap charging through R1+R2)
  • Output LOW for t_low = 0.693·R2·C (cap discharging through R2 alone)

Add those two and you get the full period 1/f. The fact that the capacitor charges through R1+R2 but discharges through R2 only is the whole reason the timing is asymmetric, and it is also the reason for the next gotcha.

Why the duty cycle is always above 50%

Duty cycle is the fraction of each cycle the output spends HIGH:

Duty = (R1 + R2) / (R1 + 2·R2)

Look at that expression. The numerator is always larger than half the denominator, so the result is always greater than 0.5. With R1 = R2 = 10 kΩ you land on exactly 0.667, a 66.7% duty cycle. Make R1 tiny next to R2 and you creep toward 50% from above, but you never reach it with the plain two-resistor circuit.

This catches people who expect a perfect square wave straight out of the chip. If you genuinely need 50%, you have two outs: shrink R1 until it is almost nothing compared to R2, or wire a diode across R2 so the charge path and discharge path use different resistances. For a blinking LED nobody cares, but for clocking digital logic the asymmetry matters.

A worked example: a one-per-second LED blinker

Say I want a status LED that blinks roughly once a second. I reach for round-ish hobby values: R1 = 10 kΩ, R2 = 68 kΩ, C = 1 µF. Plugging in:

f = 1.44 / ((10000 + 2·68000) · 1e-6)
  = 1.44 / ((10000 + 136000) · 1e-6)
  = 1.44 / (146000 · 1e-6)
  = 1.44 / 0.146
  ≈ 9.86 Hz

That is not 1 Hz, it is closer to ten blinks a second. The first time I built this on a breadboard I assumed the math, not my parts, was off, and spent ten minutes re-reading the datasheet before realizing I had simply mis-estimated. The fix is the capacitor. Bump C up to 10 µF and the frequency divides by ten to about 0.99 Hz, a clean once-per-second blink with the same two resistors. The HIGH and LOW times scale the same way, so the LED stays lit for a bit over half each cycle.

The lesson that stuck with me: pick the capacitor first to get into the right time ballpark, then trim the resistors. Capacitance moves frequency by orders of magnitude in one step, while resistors are for fine adjustment. If you want an audible tone instead, swap to C = 100 nF with R1 = 1 kΩ, R2 = 6.8 kΩ and the same formula lands near 980 Hz.

Monostable mode: the one-shot

Trigger pin 2 low and a monostable 555 fires a single output pulse, then goes quiet until triggered again. The width of that pulse is even simpler than the astable case:

t = 1.1·R·C

One resistor, one capacitor, no duty cycle to worry about. With R = 100 kΩ and C = 10 µF you get t = 1.1 · 100000 · 1e-5 = 1.1 seconds. Need a specific delay? Rearrange it: for a 5-second relay hold with C = 10 µF, solve R = t / (1.1·C) ≈ 455 kΩ. The 1.1 factor, like the astable 0.693, comes from the capacitor charging to 2/3 Vcc, and it is independent of supply voltage, which is why a 555 timer holds its timing whether you run it at 5 V or 12 V.

One-shots are how you stretch a noisy button press into a clean fixed-length pulse, hold a relay on after a momentary tap, or generate a reset pulse on power-up.

Choosing sane R and C values

The equations will happily hand you a "valid" answer for absurd parts, so a few practical guardrails:

  • Keep R1 and R2 between roughly 1 kΩ and 1 MΩ. Below 1 kΩ the internal discharge transistor sinks heavy current and the chip warms up; above 1 MΩ, leakage and the chip's own bias currents start to skew the timing.
  • Use a stable capacitor for timing. Film or C0G ceramic holds its value; cheap high-value ceramics drift a lot with temperature and voltage, so your blink rate wanders.
  • Watch your units. A 1 µF cap and a 1 nF cap are a thousand apart. A frequency that comes out 1000× wrong is almost always a µF/nF mix-up, not a circuit fault.

If you are also sizing the LED's series resistor or working out current through the discharge path, the Ohm's law calculator pairs naturally with this one: figure out the timing here, then size the supporting resistors there.

Wrapping up

The NE555 rewards a little understanding. Frequency is 1.44/((R1+2R2)C), the on/off split runs on 0.693, the one-shot runs on 1.1, and the duty cycle of the basic astable can never quite hit 50%. Pick C for the rough time scale, trim with the resistors, keep an eye on your units, and the chip will do exactly what the formula says. Punch your values into the calculator, read the frequency, duty cycle and pulse width, and share the link so the next person can see your exact design.


Made by Toolora · Updated 2026-06-13