100nF

555 timer calculator

Astable frequency and duty cycle, or one-shot pulse width, worked from the LM555 datasheet's own equations — in both directions, so you can also ask which resistors land on the frequency you want.

⅔⅓outhigh 47.8 µs · low 20.8 µs
Fig 1 — the capacitor sawtoothing between ⅓ and ⅔ VCC: 14.6 kHz at 69.7 % duty.
Frequency
14.6 kHz · period 68.6 µs
Duty cycle
69.7 % high
Output high / low
47.8 µs · 20.8 µs
Discharge pin current
1.11 mA as the low phase begins

How this is calculated

Standard: TI LM555 datasheet (SNAS548D) — Equations 1–5 and the monostable section

thigh=ln⁡2 (RA+RB) C,tlow=ln⁡2 RB Ct_{high} = \ln 2 \,(R_A + R_B)\,C, \qquad t_{low} = \ln 2 \, R_B \, C
Datasheet Equations 1 and 2, which print the constant as 0.693. It is ln 2 exactly: the capacitor crosses from ⅓ to ⅔ of the supply, which is one half of the remaining gap in both directions.
T=ln⁡2 (RA+2RB) C,f=1TT = \ln 2 \,(R_A + 2R_B)\,C, \qquad f = \frac{1}{T}
Equations 3 and 4. The charge path runs through both resistors and the discharge path through RB alone, which is the whole reason the duty cycle is asymmetric.
D=RA+RBRA+2RBD = \frac{R_A + R_B}{R_A + 2R_B}
Equation 5. It exceeds 50 % for every positive RA and approaches it only as RA vanishes — so the tool refuses to design for 50 % or below rather than returning a negative resistor.
tpulse=ln⁡3 RA Ct_{pulse} = \ln 3 \, R_A \, C
The monostable, printed in the datasheet as 1.1 RA C. The capacitor starts at zero and stops at ⅔ VCC, which is ln 3 = 1.0986 time constants; the datasheet’s rounding runs 0.13 % long.
RA=(2D−1) Tln⁡2⋅C,RB=(1−D) Tln⁡2⋅CR_A = \frac{(2D - 1)\,T}{\ln 2 \cdot C}, \qquad R_B = \frac{(1 - D)\,T}{\ln 2 \cdot C}
The same equations rearranged for the component solve; the results are also shown snapped to E24.

Assumptions

What sets a 555's frequency and duty cycle

The 555 is two comparators, a flip-flop and a transistor, wired so that a capacitor is forced to shuttle between one third and two thirds of the supply. Everything the chip does follows from that: the timing intervals are just the RC crossings between those two thresholds, which is why the datasheet's famous constants are logarithms wearing a disguise.

Charging from ⅓ toward VCC, the capacitor reaches ⅔ after exactly ln 2 time constants — the remaining gap halves — and discharging from ⅔ toward zero it reaches ⅓ after ln 2 again. That is the 0.693 printed in the datasheet's Equations 1 to 3. The one-shot starts from an empty capacitor instead and stops at the same ⅔ threshold, which takes ln 3 = 1.0986 time constants; the datasheet rounds it to 1.1. This tool computes with the logarithms and shows the rounding for what it is: 0.02 % on the astable, 0.13 % on the one-shot, both invisible next to a capacitor's tolerance.

It also runs the equations backwards. Given a frequency and duty cycle it returns the resistor pair, snapped to E24, which is the question people actually arrive with.

555 astable frequency chart

The output frequency for the resistors and capacitors in the drawer, computed by the calculator above with RA = RB, which fixes the duty cycle at 66.7 % and makes the chart one-dimensional in each direction: ten times the resistor or ten times the capacitor is one tenth of the frequency. For a duty cycle nearer 50 % make RB much larger than RA, and read the frequency off the calculator instead.

C \ RA = RB1 kΩ4.7 kΩ10 kΩ47 kΩ100 kΩ
1 nF481 kHz102 kHz48.1 kHz10.2 kHz4.81 kHz
10 nF48.1 kHz10.2 kHz4.81 kHz1.02 kHz481 Hz
100 nF4.81 kHz1.02 kHz481 Hz102 Hz48.1 Hz
1 µF481 Hz102 Hz48.1 Hz10.2 Hz4.81 Hz
10 µF48.1 Hz10.2 Hz4.81 Hz1.02 Hz481 mHz

Worked example: a 3.9 kΩ, 3 kΩ and 10 nF astable

The defaults are the datasheet's own Figure 15 astable: RA = 3.9 kΩ, RB = 3 kΩ, C = 0.01 µF.

t_high = ln2 × (3.9k + 3k) × 10 nF      = 47.83 µs
t_low  = ln2 × 3k × 10 nF               = 20.79 µs
T      = ln2 × (3.9k + 6k) × 10 nF      = 68.62 µs   →  14.57 kHz
D      = 6.9k / 9.9k                    = 69.7 %

And the same equations run backwards, for 1 kHz at 60 % with 100 nF:

T      = 1 ms,  t_high = 600 µs,  t_low = 400 µs
R_B    = 400 µs / (ln2 × 100 nF)        = 5.77 kΩ   →  E24 5.6 kΩ
R_A    = 200 µs / (ln2 × 100 nF)        = 2.89 kΩ   →  E24 3.0 kΩ

Note what the E24 snapping costs: 5.6 kΩ and 3.0 kΩ give 1.02 kHz at 60.6 %, which is a better result than the capacitor's own ±10 % will deliver. Chasing exact resistors on a 555 is almost always effort spent in the wrong place.

Where the 555 timing equations stop being valid

The duty cycle of the classic astable is stuck above 50 %, and no choice of resistors escapes it: the capacitor charges through RA and RB in series but discharges through RB alone, so the high phase is always the longer one. The tool refuses to design for 50 % or below rather than handing back a negative resistor. The usual escape is a diode across RB so the charge path bypasses it, which buys duty cycles below half at the cost of putting a diode drop in the timing — the equations above no longer apply to it.

The resistor range matters more than it looks. The datasheet specifies its timing error with RA between 1 kΩ and 100 kΩ. Go far below and the discharge transistor's own saturation becomes part of the timing; go far above and leakage at the threshold pin does. The tool flags the range rather than pretending the specification follows you out of it.

A bipolar 555 also has a habit that no equation shows: the output stage crowbars several tens of milliamps through the supply on every edge. That current is why a 555 needs real decoupling right at the chip and why it is a notorious noise source next to analogue circuitry — seewhy 100 nF for what that capacitor is doing, and prefer a CMOS variant (LMC555, TLC555) when the board has anything sensitive on it.

Common 555 timer mistakes

Further reading