555 Timer Calculator: Astable Frequency, Duty Cycle and Monostable Pulse Width
By FindMySum · Last reviewed
The 555 timer has been in production since 1972 and is still one of the most used chips in hobby and industrial electronics. Two resistors and a capacitor turn it into an oscillator; one resistor and a capacitor turn it into a one-shot pulse generator. This 555 timer calculator works out the frequency, duty cycle, high and low times of an astable circuit and the pulse width of a monostable one, and it can run the other way: give it the frequency and duty cycle you want, or the pulse width, and it finds the resistors and the nearest standard values you can buy.
How the 555 keeps time
Inside the chip are two comparators, a flip-flop and a discharge transistor. Three equal resistors set two reference levels: one third and two thirds of the supply voltage. When the voltage on the timing capacitor rises past two thirds, the output goes low and the discharge pin shorts the capacitor towards ground; when it falls below one third, the output goes high and the capacitor charges again.
A capacitor charging through a resistor follows an exponential curve. Going from one third to two thirds of the supply takes exactly RC × ln 2, which is 0.693 RC. Going from zero to two thirds takes RC × ln 3, which is 1.0986 RC, rounded to 1.1 RC on the datasheet. Because both levels are fractions of the supply, the timing is the same at 5 V and at 15 V.
Astable mode: a free-running oscillator
In astable mode the capacitor charges through RA and RB in series and discharges through RB alone:
- high time tH = 0.693 × (RA + RB) × C
- low time tL = 0.693 × RB × C
- period T = tH + tL = 0.693 × (RA + 2RB) × C
- frequency f = 1 ÷ T, often written 1.44 ÷ ((RA + 2RB) × C)
- duty cycle = tH ÷ T = (RA + RB) ÷ (RA + 2RB)
Because RA is only in the charging path, the high time is always longer than the low time, and the duty cycle is always above 50%. The calculator reports the duty cycle as the share of the period the output is high, the "output waveform duty cycle" in the Texas Instruments datasheet. Some application notes quote the low-time share instead, so check which one a circuit description means.
Worked example
The calculator opens with RA = 1 kΩ, RB = 6.8 kΩ and C = 100 µF, a classic slow blinker:
- tH = 0.693 × (1,000 + 6,800) × 0.0001 = 0.5405 s
- tL = 0.693 × 6,800 × 0.0001 = 0.4712 s
- T = 1.0118 s, so f = 0.988 Hz
- duty cycle = 0.5405 ÷ 1.0118 = 53.4%
An LED on the output blinks just under once a second, on a little longer than it is off.
Duty cycles below 50%: the diode trick
Put a diode across RB, pointing from the discharge pin towards the threshold pin, and the capacitor charges through RA alone while it still discharges through RB. The high time becomes 0.693 × RA × C and the low time stays 0.693 × RB × C, so the two are set independently. Equal resistors give a 50% square wave; a small RA and a large RB give short pulses. The calculator ignores the diode's forward drop of about 0.6 V, which lengthens the high time a little at low supply voltages.
Monostable mode: one pulse per trigger
In monostable mode the capacitor sits discharged until the trigger pin is pulled below one third of the supply. The output then goes high and the capacitor charges through R until it reaches two thirds, when the output drops and the capacitor is discharged again. The pulse width is
tw = 1.1 × R × C
The datasheet's example uses 9.1 kΩ and 0.01 µF for a 100 µs pulse. The trigger must return high before the pulse ends, and the comparator's storage time sets a practical minimum of about 10 µs.
Designing from a target
Choose the capacitor first: it comes in fewer values than resistors. Then for an astable circuit with target frequency f and duty cycle D:
- RB = (1 − D) ÷ (0.693 × f × C)
- RA = (2D − 1) ÷ (0.693 × f × C) without the diode, or D ÷ (0.693 × f × C) with it
For a monostable pulse of length t, R = t ÷ (1.1 × C). The calculator rounds each resistor to the nearest value in the E12, E24 or E96 series of IEC 60063 and shows the frequency, duty cycle or pulse width you would actually get with those parts. For 1 kHz at 60% with a 10 nF capacitor, the exact values are 28.86 kΩ and 57.72 kΩ; the nearest E24 parts, 30 kΩ and 56 kΩ, give 1,016 Hz at 60.6%.
Datasheet constants or exact ones?
The numbers 0.693, 1.44 and 1.1 are rounded. The exact values are ln 2 = 0.693147 and ln 3 = 1.098612. The difference is under 0.2%, far less than a typical capacitor tolerance of ±5% to ±20%, but the calculator offers both, labelled, so you can match a textbook or a datasheet.
Practical limits
- Resistance: the threshold pin draws a small bias current, so the datasheet limits RA + RB to about 3.4 MΩ at a 5 V supply and 10 MΩ at 15 V. The calculator warns above that.
- RA too small: when the discharge transistor turns on, RA connects the supply straight to it. Keep RA at 1 kΩ or more.
- Frequency: the bipolar 555 starts to distort above about 100 kHz; use a CMOS timer for faster work.
- Supply: the NE555 is specified from 4.5 V to 16 V. CMOS versions work from about 2 V and draw microamps instead of milliamps.
- Capacitor choice: electrolytic capacitors leak and drift; use film or C0G ceramic types where the timing matters.
Reading the waveform chart
The chart shows the output (a square wave between 0 V and the supply) and the capacitor voltage on the same time axis. In astable mode the capacitor saw-tooths between the one-third and two-thirds lines; in monostable mode it rises from zero until it hits two thirds and then drops back. Changing RB in astable mode mostly changes the falling part of the capacitor curve and the low time.
What the calculator leaves out
It treats the 555 as ideal: exact one-third and two-thirds thresholds, no discharge transistor saturation voltage, no diode drop and no output load. Real circuits differ by the component tolerances, so build the circuit and trim a resistor if the timing has to be precise. For RC time constants outside a 555, see the RC filter and capacitance calculators.
More questions
What do the eight pins of a 555 do?
Pin 1 is ground and pin 8 the supply. Pin 2 (trigger) starts a cycle when it falls below one third of the supply, pin 6 (threshold) ends it when it rises above two thirds, and pin 7 (discharge) shorts the timing capacitor to ground while the output is low. Pin 3 is the output, pin 4 resets the timer when pulled low, and pin 5 (control) gives access to the two-thirds reference; most circuits put 10 nF from pin 5 to ground.
Can a 555 drive an LED or a relay directly?
Yes. The bipolar NE555 output can sink or source up to about 200 mA, enough for an LED through a resistor or a small relay coil. Put a flyback diode across a relay coil to protect the output from the voltage spike when it switches off. CMOS versions such as the TLC555 can drive far less current, so check the datasheet of the part you have.
Why does my 555 run slower than the calculator says?
Electrolytic capacitors are often 20% above their marked value and leak, which stretches the charging time, especially with large resistors. A breadboard adds stray capacitance at high frequencies. Measure the capacitor if you can, use a film capacitor for accurate timing, and trim one resistor to bring the frequency in.
How do I make a 555 adjustable?
Replace RB (or a part of it) with a potentiometer in series with a fixed resistor, so the resistance never reaches zero. In astable mode that changes both the frequency and the duty cycle; with the diode circuit, two potentiometers (one for RA, one for RB) set the high and low times separately.
What is the difference between a 555 and a 556?
A 556 is two 555 timers in one 14-pin package, sharing the supply pins. The timing formulas are the same for each half. Designers use it to make a tone that switches on and off, or a monostable that triggers an astable.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.