555 Timer Calculator — Astable & Monostable

Frequency, period, duty cycle and pulse width for the NE555 from R1, R2 and C — with the duty-cycle trap and the pin 7 current limits called out.

Inputs

Mode

Astable free-runs as a square-wave oscillator. Monostable fires one pulse per trigger.

Ω

Charges C on its own path. Accepts 8k2. Keep R1 + R2 above 1 kΩ.

Ω

Carries charge current on the way up and the whole discharge current on the way down.

F

Accepts 10n, 100n, 1u, 10u. Use film below 1 µF; electrolytics drift badly.

V

Timing does not depend on this — it only sets the charge and discharge currents.

Results

Frequency1 kHzf = 1.44 / ((R1 + 2R2) × C)
Period
999.5 µsT = ln(2) × (R1 + 2R2) × C
Output high time
528.2 µstH = 0.693 (R1 + R2) C
Output low time
471.3 µstL = 0.693 R2 C
Duty cycle
52.84 %D = (R1 + R2) / (R1 + 2R2)
Charging resistance
76.2 kΩ
Discharge resistance (R2)
68 kΩ
Peak charging current
78.74 µA
Peak pin 7 sink current
88.24 µA

Duty cycle is 52.8%. A plain astable can never go below 50% — C charges through R1 + R2 but discharges through R2 alone. Making R1 much smaller than R2 approaches 50% asymptotically; a diode across R2 (cathode to pin 7) bypasses R2 on the charge path and gets you below it.

Fit a 100 nF ceramic capacitor directly across pins 8 and 1 and a 10 nF from pin 5 to ground. The output stage switches tens of milliamps in nanoseconds, and without decoupling that spike moves the comparator references and double-triggers the timer.

Diagram

555 astable: capacitor voltage and output waveformAstable oscillator. The capacitor ramps exponentially from one third to two thirds of the supply through R1 plus R2 in 528 µs, then back down through R2 alone in 471 µs. That is a period of 1 ms, a frequency of 1 kHz, and a duty cycle of 52.8 percent. Two and three quarter cycles are shown.0⅓V+⅔V+V+C voltage⅔V+⅓V+T = 1 ms528 µstH471 µstL0 s687 µs1.37 ms2.06 ms2.75 ms0V+TimePin 3Capacitor VOutput⅓ & ⅔ V+ trip

Worked examples

1 Hz LED blinker

The circuit everyone builds first: one flash per second, straight off a 9 V battery through a series LED on pin 3.

0.988 Hz — 541 ms on, 471 ms off, 53.4% duty

38 kHz IR remote carrier

The carrier frequency almost every consumer IR receiver module is tuned to. Gate this with your data stream to build a transmitter.

38.2 kHz, 52.4% duty — inside the ±5% window a TSOP receiver will accept

1-second delay one-shot

Monostable: press the button, get exactly one 1.1-second pulse no matter how long the button is held.

1.099 s output pulse — the textbook 1.1RC result

50 ms switch debounce

A monostable used as a debouncer: the first contact bounce triggers it, and every bounce after that is ignored for 50 ms.

51.6 ms of dead time — comfortably longer than the 1–10 ms a real switch bounces for

50 Hz servo-frame oscillator

A 20 ms frame rate, the repetition rate an RC servo expects. Note how far the duty cycle is from the 5–10% a servo actually wants.

50.3 Hz, but 11.6 ms high — a second 555 in monostable is what makes the real pulse

How the 555 actually works

When to use this: you need a square wave, a clock, a flashing LED, a tone, a PWM carrier, a delay after a button press, or a debouncer — and you would rather solder three passives than write firmware. The 555 has been the default answer to all of those since 1972, and the two formulas below cover essentially every one of them.

Almost every 555 tutorial hands you the equations and stops. The equations are far easier to remember, and far easier to debug, once you know what is inside the package. There are only five blocks, and every quirk of the chip follows from them.

The resistor divider. Three 5 kΩ resistors sit in series between V+ and ground — that is where the name comes from. They create two fixed reference voltages at exactly one third and two thirds of the supply. Because those references are derived from the same supply that charges your timing capacitor, they scale with it. This is the single most important fact about the 555: the trip points move with the supply, the charging curve moves with the supply, the ratio stays constant, and so the timing does not depend on supply voltage at all. A 555 keeps time on a battery sagging from 9 V to 6 V.

Two comparators. The upper one watches the threshold pin (pin 6) against the ⅔ V+ reference. The lower one watches the trigger pin (pin 2) against the ⅓ V+ reference. One says “the capacitor has charged far enough”, the other says “the capacitor has discharged far enough”, or in monostable use, “something outside has asked me to start”.

An SR flip-flop. The lower comparator sets it, the upper one resets it. A flip-flop is what makes the 555 a timer rather than a comparator: it remembers which half of the cycle it is in, so the output does not chatter as the capacitor voltage crosses a threshold slowly.

A discharge transistor. An NPN with its collector on pin 7 and its emitter on ground, driven by the flip-flop. When the output is low, this transistor is hard on and provides the discharge path for your capacitor. It is rated to sink around 200 mA, and it is the part of the chip most often abused — every warning about keeping R1 + R2 above 1 kΩ is about protecting it.

An output stage. A totem-pole driver on pin 3 capable of sourcing or sinking 200 mA, which is remarkable for a chip this old and this cheap. It is also the reason the bipolar 555 is notorious for glitching: switching that much current in a few nanoseconds punches a hole in a poorly decoupled supply rail.

The formulas

Astable — a free-running oscillator, with R1 from V+ to pin 7, R2 from pin 7 to pins 6 and 2, and C from pins 6/2 to ground:

tHigh = ln(2) × (R1 + R2) × C ≈ 0.693 (R1 + R2) C
tLow = ln(2) × R2 × C ≈ 0.693 R2 C
T = tHigh + tLow = 0.693 (R1 + 2R2) C
f = 1 / T = 1.44 / ((R1 + 2R2) C)
D = (R1 + R2) / (R1 + 2R2)

Monostable — a one-shot, with a single R from V+ to pins 6 and 7:

T = ln(3) × R × C ≈ 1.1 R C

R1 and R2 are in ohms, C in farads, T and tHigh/tLow in seconds, f in hertz and D as a fraction between 0.5 and 1. Note that the supply voltage appears nowhere.

Where 0.693 and 1.1 come from

A capacitor charging through a resistor towards a supply closes a fixed fraction of the remaining gap in each time constant. In astable operation the capacitor swings between ⅓ V+ and ⅔ V+. Starting at ⅓ V+, the gap to the supply is ⅔ V+; ending at ⅔ V+, the gap is ⅓ V+. Exactly half the gap has been closed, and closing half a gap takes ln(2) = 0.6931 time constants. Discharging from ⅔ V+ down to ⅓ V+ is the same halving in reverse, so it also takes ln(2) time constants — just with a different resistance in the path.

In monostable operation the capacitor starts fully discharged at 0 V rather than at ⅓ V+. Now the gap goes from the full supply down to ⅓ V+, so one third of it remains, and closing two thirds of a gap takes ln(3) = 1.0986 time constants. Datasheets print this as 1.1RC, which overstates the real pulse by about 0.13% — utterly swamped by capacitor tolerance, but worth knowing when you are chasing the last percent.

Common R and C combinations

Pick the capacitor first. Capacitors come in roughly a dozen useful values per decade; resistors come in twenty-four. Choose C to put you in the right decade, then solve for the resistors. These astable combinations all use E12 parts and land within a few percent of a round number:

TargetCR1R2Actual fDuty
1 Hz blink10 µF10 kΩ68 kΩ0.99 Hz53.4%
10 Hz1 µF10 kΩ68 kΩ9.9 Hz53.4%
100 Hz100 nF10 kΩ68 kΩ98.8 Hz53.4%
1 kHz10 nF8.2 kΩ68 kΩ1.00 kHz52.8%
10 kHz1 nF8.2 kΩ68 kΩ10.0 kHz52.8%
38 kHz IR carrier1 nF1.8 kΩ18 kΩ38.2 kHz52.4%
100 kHz1 nF1 kΩ6.8 kΩ98.8 kHz53.4%

And for monostable one-shots, where a single resistor sets everything:

Target pulseRCActual (ln 3 · RC)
1 ms100 kΩ10 nF1.10 ms
10 ms100 kΩ100 nF11.0 ms
50 ms debounce47 kΩ1 µF51.6 ms
1 s delay100 kΩ10 µF1.10 s
10 s1 MΩ10 µF11.0 s
1 minute1 MΩ56 µF61.5 s

Notice that the last row is already uncomfortable: 56 µF means an electrolytic with −20/+80% tolerance and meaningful leakage of its own. Anything beyond a minute or so is a job for a CMOS 7555 with a low-leakage film capacitor, or for a counter chip dividing a faster and more accurate oscillator.

Why the duty cycle is always above 50%, and the diode fix

This trips up more people than everything else about the chip combined. In a standard astable the capacitor charges through R1 and R2 in series, but discharges through R2 alone into pin 7. The charging path is always the longer one, so the output is always high for longer than it is low. Duty cycle is (R1 + R2) / (R1 + 2R2), which tends towards 50% as R1 becomes negligible against R2 but can never get there — and R1 cannot be made arbitrarily small, because it is the only thing limiting the current through the discharge transistor.

The classic fix is a small-signal diode such as a 1N4148 across R2, cathode towards pin 7. On the charging half-cycle the diode conducts and shorts out R2, so the capacitor charges through R1 alone; on the discharging half-cycle the diode is reverse biased and the current goes through R2 as usual. That gives roughly:

tHigh ≈ 0.693 R1 C  and  tLow = 0.693 R2 C, so D ≈ R1 / (R1 + R2)

Now any duty cycle from a few percent to 95% is available, and R1 = R2 gives roughly 50%. “Roughly”, because the diode drops 0.6 V or so, which shifts the effective charging supply and makes the high time slightly longer than the formula predicts. If you need a duty cycle that is genuinely accurate rather than approximately right, run the 555 at twice your target frequency and divide by two with a 74HC74 flip-flop. The result is 50.00% by construction, independent of every tolerance in the circuit.

NE555, CMOS 7555 or a microcontroller?

NE555 (bipolar)LMC555 / TLC555 / ICM7555 (CMOS)Microcontroller timer
Supply range4.5–16 VAbout 1.5–15 V1.8–5.5 V
Quiescent current3–10 mAAround 100 µAMilliamps running, microamps asleep
Output drive200 mA source and sinkA few mA to tens of mATypically 20 mA per pin
Practical top frequencyAbout 500 kHz1–3 MHzTens of MHz
Maximum timing resistanceAbout 10 MΩHundreds of MΩNot applicable
Supply glitch on switchingSevere; demands decouplingNegligibleNegligible
Frequency accuracySet by R and C tolerance, so ±10% typicalSame, but drifts lessCrystal accurate, ±20 ppm
Effort to change the timingUnsolder a resistorUnsolder a resistorRecompile and reflash

For anything battery powered, anything below 4.5 V, anything with timing resistors above a megohm, and anything sensitive to supply noise, the CMOS versions are simply better parts and cost a few tens of cents more. Reach for the bipolar NE555 when you actually want the 200 mA output drive — driving a relay coil, a solenoid, or a string of LEDs directly.

Decoupling, pin 5 and the layout that makes it work

The most common 555 complaint — “my timer double-triggers”, “the frequency is not stable”, “there is a glitch on the output” — is nearly always a power supply problem rather than a timing problem. During each transition the bipolar output stage briefly conducts both halves of the totem pole at once and pulls a spike of current from the rail. That spike develops a voltage across the inductance of the supply wiring, and because the comparator references are derived from the rail, the trip points move for a moment. Sometimes they move far enough to re-trigger the flip-flop.

Two capacitors fix it, and both matter:

  • 100 nF ceramic directly across pins 8 and 1, with the shortest possible leads, plus 10 µF of bulk electrolytic or tantalum somewhere nearby. Short leads are not a nicety here — an extra centimetre of track is roughly 10 nH and defeats the point.
  • 10 nF from pin 5 to ground. Pin 5 is the control voltage pin, connected directly to the internal ⅔ V+ reference. Left floating it is a high-impedance antenna wired straight into the comparator that decides when your timing period ends. Bypassing it is the difference between a stable oscillator and one that shifts frequency when you wave your hand near the board.

Pin 4 is reset, active low, and it must be tied to V+ if you are not using it. A floating reset pin holds the output low intermittently and produces the same symptoms as a dead chip. Where the reset is genuinely useful, drive it from a pushbutton or a microcontroller pin to abort a monostable pulse before it finishes.

Practical notes that save an evening

  • The capacitor sets your accuracy, not the resistor. Resistors are ±1% for pennies; electrolytics are −20/+80% and drift with temperature and age. If a frequency has to be right, use a film or C0G/NP0 capacitor and trim with a resistor.
  • Keep R1 + R2 above 1 kΩ. Below that, the discharge transistor is being asked for more than a hundred milliamps every cycle, it stops saturating cleanly and the low output level rises.
  • Keep the timing resistance below about 10 MΩ on a bipolar 555. The threshold pin draws roughly 100 nA of bias current; through 10 MΩ that is a full volt of error, before board leakage and flux residue are considered.
  • A monostable ignores its trigger while it is running. That is exactly why it makes a good debouncer — the first bounce fires it and the rest are ignored — but it also means the trigger must return above ⅓ V+ before the period ends. If the trigger can be held low, feed it through a 10 nF and 10 kΩ differentiator.
  • Do not expect a 555 to make a servo pulse on its own. An astable gives you the 20 ms frame, but not the 1–2 ms pulse inside it. That takes a second 555 in monostable mode, triggered by the first.

How to use this calculator

  1. Choose astable or monostable

    Astable if you want a continuous square wave — a blinker, a tone, a clock. Monostable if you want one timed pulse per trigger — a delay, a debouncer, a one-shot.

  2. Pick the capacitor first

    C sets the decade. Use 1–10 nF for kilohertz, 100 nF for tens of hertz, 1–10 µF for seconds. Then solve for the resistors — resistors come in far more values than capacitors do.

  3. Enter the resistors

    For astable, R1 goes from V+ to pin 7 and R2 from pin 7 to pins 6 and 2. For monostable, a single R goes from V+ to pins 6 and 7. Type 8k2 or 100k directly.

  4. Check the duty cycle and the currents

    A plain astable can never go below 50% duty. If you need to, add a diode across R2. Also confirm the pin 7 sink current stays well under 200 mA and that R1 + R2 exceeds 1 kΩ.

  5. Snap to standard values and rebuild

    Move to the nearest E12 resistor, re-run the numbers, and confirm the frequency still lands where you need it once ±10% capacitor tolerance is included.

Frequently asked questions

What is the 555 timer astable frequency formula?

f = 1.44 / ((R1 + 2R2) × C). The exact constant is 1/ln(2) = 1.4427, which datasheets round to 1.44. The period splits into tHigh = 0.693 × (R1 + R2) × C while the capacitor charges through both resistors, and tLow = 0.693 × R2 × C while it discharges through R2 alone into pin 7.

Why is my 555 duty cycle always above 50%?

Because the capacitor charges through R1 + R2 but discharges through R2 only, so the charging path is always the longer one. Duty = (R1 + R2) / (R1 + 2R2), which approaches 50% as R1 shrinks relative to R2 but never reaches it. To get 50% or below you need a diode across R2, a CMOS 7555 in a different topology, or a divide-by-two flip-flop on the output.

How do I get exactly 50% duty cycle from a 555?

The cleanest way is to run the 555 at twice the frequency you want and divide it by two with a D-type flip-flop such as a 74HC74. The output is 50.00% by construction, independent of resistor tolerance. The quick way is a diode across R2 (cathode to pin 7) so charging bypasses R2 through the diode: set R1 ≈ R2 and you get roughly 50%, offset by the diode drop.

What is the 1.1RC in the monostable formula?

It is ln(3) = 1.0986, rounded. The capacitor starts at 0 V and charges towards V+; the comparator ends the pulse when it reaches ⅔ V+. Solving 1 − e^(−t/RC) = ⅔ gives t = RC × ln(3). The supply voltage cancels out entirely, which is why a 555 keeps time on a sagging battery.

Does the supply voltage change the 555 timing?

No, and that is the whole point of the design. Both comparator references come from the same internal 5 kΩ divider as the charging supply, so the ⅓ and ⅔ trip points scale with V+ exactly as the RC charging curve does. The ratio is fixed, so the times are fixed. Supply voltage only affects output drive, current consumption and the charge and discharge currents.

What are the minimum and maximum resistor values for a 555?

Keep R1 + R2 above about 1 kΩ so the discharge transistor on pin 7 never has to sink more than a couple of tens of milliamps, and stay under roughly 10 MΩ so that comparator input bias current and PCB leakage do not swamp the charging current. A bipolar NE555 draws around 100 nA of bias at the threshold pin; through 10 MΩ that is a 1 V error term.

Why does my 555 output have glitches or double-trigger?

Almost always supply bounce. The bipolar 555 output stage pulls tens of milliamps in a few nanoseconds during each transition, which drops volts across supply inductance and momentarily moves the comparator references. Fit a 100 nF ceramic capacitor directly across pins 8 and 1 with the shortest possible leads, plus 10 µF of bulk nearby, and add 10 nF from pin 5 to ground.

Should I use an NE555 or a CMOS 7555?

Use the CMOS part (LMC555, TLC555, ICM7555) unless you need to drive 200 mA directly. It runs from 2 V, draws about 100 µA instead of 10 mA, works with resistors up to hundreds of megohms, and does not produce the supply glitch the bipolar part is notorious for. The trade-off is output drive of a few milliamps and a higher price.

Sources and further reading

Last reviewed .

Related calculators