555 Timer Calculator: Astable, Monostable, PWM, VCO and Ramp

1 — ground 2 — trigger 3 — output 4 — reset 5 — control 6 — threshold 7 — discharge 8 — supply 555
Eight pins, and the three that matter are threshold, trigger and discharge: inside are two comparators with thresholds at 1/3 and 2/3 of VCC, a flip-flop and a transistor that discharges the capacitor.

Introduction

The 555 dates from 1972 and still sells hundreds of millions of units per year, which says something about the design. There is nothing mysterious inside: a divider made of three equal resistors sets two thresholds at 1/3 and 2/3 of the supply voltage, two comparators monitor them, a flip-flop remembers which comparator switched last, and a transistor discharges the capacitor when required.

That structure gives the chip one of its most useful properties: because the thresholds are fractions of VCC and the capacitor also charges from VCC, the ratio between the relevant voltages does not change with the supply voltage. Timing depends only on R and C. You can move from 5 to 12 V and the frequency remains the same: current consumption changes, output amplitude changes, but timing does not.

The basic equations fit on a single line, but this page also calculates the details that datasheets often mention only briefly: why the classic astable configuration cannot go below 50% duty cycle, how pin 5 can modulate it, which resistor values are too small or too large, and why a bipolar 555 injects current spikes into the supply at every transition.

ModeEquationNote
Astable, high time\( t_H = \ln 2\,(R_1+R_2)\,C \)Charges through R1 and R2
Astable, low time\( t_L = \ln 2\,R_2\,C \)Discharges through R2 only
Frequency\( f = \dfrac{1.44}{(R_1+2R_2)\,C} \)Independent of VCC
Duty cycle\( D = \dfrac{R_1+R_2}{R_1+2R_2} \)Always greater than 50%
Monostable\( T = \ln 3\,R\,C \simeq 1.1\,RC \)From 0 to 2/3 of VCC

Global parameters and device

Card 1 — Astable

555 762 3 84 15 R1R2C +Vccground output
The capacitor charges through R1 and R2 and discharges through R2 only, via pin 7. That is the entire reason for the duty-cycle asymmetry.

The capacitor swings between 1/3 and 2/3 of VCC. While charging, current comes from VCC through R1 and R2 in series; while discharging, pin 7 pulls the junction between the two resistors to ground, so the capacitor discharges through R2 alone. This directly gives the equation and explains why the high time always contains an extra term compared with the low time.

The key point is that both the thresholds and the charging reference are fractions of VCC, so the voltage ratios involved do not depend on the supply, and neither do the timing intervals. Change VCC in the global parameters: the frequency does not move.

The peak discharge current is VCC/R1 and all of it flows through the internal transistor. This is why R1 should never be made too small, and it is the value to check before running a 555 at high frequency.

Card 2 — Duty cycle below 50%

555 762 3 84 15 R1R2C diode
The diode bypasses R2 during charging: the high time depends only on R1, the low time only on R2, and the duty cycle can be reduced as far as you want.

One of the most common 555 questions is how to obtain a duty cycle below 50%. The classic configuration cannot do it: the high time contains R1+R2 while the low time contains R2 only, so the high time must be longer. The solution is to provide a charging path that bypasses R2, using a diode.

The card also calculates the duty cycle for an ideal diode. Comparing it with the real result is useful: a 0.6 V forward drop lowers the effective charging voltage, slowing the charge and making the duty cycle differ from R1/(R1+R2). The difference is noticeable at a 5 V supply and almost disappears at 15 V. A 0.3 V Schottky diode roughly halves the error.

Card 3 — Monostable

555 762 3 84 15 RC trigger output
Threshold and discharge share the same node: the capacitor starts from zero and the pulse ends when it reaches 2/3 of VCC.

Here the capacitor starts from zero rather than 1/3: the discharge transistor holds it at ground until a trigger arrives. It must then rise to 2/3 of VCC, so the interval is ln(3)·RC rather than ln(2)·RC, which is the origin of the familiar 1.1 factor.

Two practical traps matter. First, if the trigger pulse lasts longer than the intended output pulse, the output remains high until the trigger rises again—the 555 is not retriggerable in the way you might expect. Second, after the pulse ends the capacitor needs time to discharge; retriggering too soon makes the next pulse shorter.

Long delays require large capacitances, and electrolytic leakage current introduces timing error. Above roughly ten seconds, a CMOS 555 with a high resistance and a smaller film capacitor is usually preferable to the opposite approach.

Card 4 — Design: from frequency and duty cycle to components

TheoreticalE12E24

This is the design direction: start by choosing C, because capacitors are available in fewer values and with lower precision. Once C is fixed, adjust the resistors. As a rough rule, use around 100 nF for audio-range frequencies, 10 nF above 10 kHz, and microfarads for long delays.

If you request a duty cycle below 50%, the card automatically switches to the diode topology because that duty cycle does not exist in the classic circuit. Above 50%, the standard two-resistor network is sufficient.

The two final results are the ones that matter: the frequency and duty cycle you actually obtain with standard component values. With E12 resistors, frequency error is typically a few percent. If you need substantially better accuracy, a 555 is probably not the right device; use a crystal-based source or a microcontroller.

Card 5 — PWM and VCO on pin 5

555 762 3 84 15 R1R2C Control voltage output
The usual 10 nF capacitor on pin 5 is removed: the applied control voltage now shifts the thresholds.

Pin 5 provides direct access to the internal divider: it normally sits at 2/3 of VCC and is usually bypassed with a 10 nF capacitor. If instead you force a voltage onto it, the upper threshold moves to that voltage and the lower threshold to half of it, and the timing circuit follows.

The interesting point is that the low time does not change: discharge always goes from Vctrl to Vctrl/2, always a factor of two regardless of the control voltage. The control therefore acts entirely on the charging interval, which is why pin 5 is generally more useful for duty-cycle modulation than as a VCO: the obtainable frequency range is modest and nonlinear.

If pin 5 is not otherwise used, keep the 10 nF bypass capacitor: without it, supply noise feeds directly into the comparator threshold and causes timing jitter.

Card 6 — Ramp generator

555 762 3 84 15 Constant IC ramp
With a constant current instead of a resistor, charging is linear: the capacitor carries a sawtooth ramp rather than an exponential waveform.
Re RaRb Vb I to C
The current source: Re sets the current, while the Ra/Rb divider sets Vb. The card calculates Re from the desired current.

In a normal astable circuit, the capacitor voltage is part of an exponential curve, so using it as a ramp—for a VCO, a time base or modulation—produces a nonlinear waveform. Replacing R1 with a constant-current source makes the slope equal to I/C and produces a linear ramp.

A simple source can be built with a PNP transistor: emitter toward VCC through RE, base held at a fixed voltage by a divider, collector connected to the capacitor. The current is (VCC−VB−VBE)/RE, and the card solves the equation in reverse: enter the desired current and it gives the required RE value.

Pin 3 still provides the normal square wave. Take the ramp from the capacitor through a high-impedance buffer—such as a voltage follower—because any load on that node changes the timing.

Card 7 — Set-reset flip-flop

555 762 3 84 15 RpRp set reset output
No timing R or C is required: grounding pin 6 disables the upper threshold, leaving set on pin 2 and reset on pin 4. Both inputs need pull-up resistors.

With R and C removed, the internal flip-flop remains, with the comparators acting as inputs. Pin 6 is grounded so the upper threshold never acts; a low pulse on pin 2 then sets the output high, while a low pulse on pin 4 resets it, and the output retains its state between pulses.

It is not the cheapest way to build a latch, but it is the kind of solution you use with what you already have in the drawer, and it has two practical advantages: the output can deliver 200 mA, so it can directly drive a relay or a lamp, and it is much more immune to contact bounce than a logic gate because the comparators have hysteresis.

If both push buttons are pressed together, reset wins because pin 4 acts directly on the flip-flop after the comparators.

Card 8 — Practical limits

This card checks the Card 1 values against the limits of the selected device. The lower resistance limit is set by the current through the discharge transistor: with R1 = 100 Ω and a 12 V supply, the transistor is asked to handle 120 mA every cycle. The upper limit is set by leakage currents at pins 6 and 7, which become comparable with the charging current when resistances reach many megohms and can seriously distort the timing.

One practical detail is often overlooked: during switching, a bipolar 555 briefly conducts through both sides of its output stage and draws a current spike of a few tens of milliamps for about a hundred nanoseconds. On a shared supply rail that spike is visible, and if the same circuit contains a microcontroller or an ADC, it is visible there too. A 100 nF bypass capacitor close to pin 8 is therefore not optional.

When current consumption matters—for example in a battery-powered circuit or a timer that must run for months—a CMOS version consumes far less current and avoids the bipolar switching spike, at the cost of lower output-current capability.

Reference tables

DeviceSupplyQuiescent currentOutput currentPractical max. frequency
PinFunctionIf unused
1Ground—
2Trigger, lower threshold at VCC/3Do not leave floating
3Output—
4Reset, active lowConnect to VCC
5Control, upper threshold10 nF to ground
6Upper threshold at 2VCC/3—
7Discharge, open collectorMay be left open
8Supply100 nF to ground

The device values are typical datasheet figures intended as an order-of-magnitude guide. Output-current capability in particular depends strongly on supply voltage and on whether the output is sinking or sourcing current; CMOS versions are often stronger when sinking than when sourcing.

The stated maximum frequency is a practical limit rather than an absolute one: above it, duty cycle is distorted because internal propagation delays become comparable with the charging and discharging intervals.

For E-series values: resistors are commonly available in E12 and E24, while capacitors are often found mainly in E6 and E12 with 10% or 20% tolerances. This is why the design card shows the frequency you actually obtain rather than only the requested value—see also the resistor color-code and E-series tool.