Electrical Trade & Electronics Electronics Design & RF TI xx555 datasheet timing equations

555 Timer Calculator (Astable & Monostable)

Enter R1, R2 and the timing capacitor and this calculator returns the astable output frequency, period, high and low times and duty cycle, or the pulse width of a monostable one-shot. It also works backwards: give it a target frequency or pulse width and it tells you the resistor or the capacitor that hits it. The equations are the ones printed in the Texas Instruments xx555 datasheet, evaluated with exact natural logarithms rather than the rounded 0.693, 1.44 and 1.1 constants, so the answers agree with a bench measurement as closely as your components allow.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Circuit modeAstable oscillates continuously; monostable emits one pulse each time you trigger it.Astable (free-running oscillator)
R1 — charge resistorThe resistor from the supply to pin 7. In monostable mode this is the only timing resistor.10000 Ω
R2 — discharge resistorThe resistor between pin 7 and pin 6/2, used only by the astable circuit.68000 Ω
Timing capacitor CThe capacitor from pin 6/2 to ground — read its printed value, not the one you meant to fit.10 µF
Target frequencyThe frequency you want; the calculator solves for the R2 or the capacitor that reaches it.1 Hz
Target pulse widthHow long you want the one-shot output to stay high after a trigger.1 s

It returns

  • Frequency — For a monostable this is 1 ÷ pulse width — the fastest rate at which the one-shot can be retriggered.
  • Period or pulse width — One full cycle in astable mode; the length of the single output pulse in monostable mode.
  • Output high time
  • Output low time — Astable only. A monostable's low time is set by how often you trigger it, not by R and C.
  • Duty cycle — Fraction of each cycle the output spends high. Astable only.
  • Resistor for the target — R2 in astable mode, R in monostable mode, keeping the capacitor as entered.
  • Capacitor for the target — The capacitor that hits the target with the resistors exactly as entered.

The formula

f=1ln2(R1+2R2)C
D=R1+R2R1+2R2
T=ln3RC

In plain text: f = 1 / (ln2 · (R1 + 2·R2) · C) ≈ 1.44 / ((R1 + 2·R2)·C)

  • fAstable output frequency (Hz)
  • R1Resistor from the supply to the discharge pin (Ω)
  • R2Resistor from the discharge pin to the threshold/trigger node (Ω)
  • CTiming capacitor from the threshold/trigger node to ground (F)
  • ln 20.693147 — the constant that falls out of charging between 1/3 and 2/3 of the supply (—)

The datasheet prints f = 1.44/((R1+2R2)C); 1.44 is 1/ln2 rounded to three figures. This calculator uses the exact logarithm, so it differs from the rounded form by about 0.2%.

Updated Category Electronics Design & RF Verified against published test cases Reading time 13 min

What the 555 is actually timing

The 555 does one thing: it watches the voltage on a capacitor and flips its output when that voltage crosses fixed fractions of the supply. Inside the chip an internal divider of three equal resistors creates two references, one at one third of the supply and one at two thirds. A comparator on the threshold pin trips when the capacitor climbs past two thirds, and a comparator on the trigger pin trips when it falls past one third. Between those two trip points a flip-flop holds the output high or low and switches a transistor that can short the capacitor to ground through the discharge pin.

Every 555 timing equation is therefore an RC charging problem with the endpoints already chosen for you. The chip does not care what the supply voltage is, because both references scale with it: a circuit timed at 5 V keeps the same period at 12 V. That supply independence is why the part survived from 1972 into current production, and it is why you can size the components on paper and expect the bench to agree.

Two wiring patterns account for almost all uses. In the astable arrangement the capacitor cycles endlessly between one third and two thirds of the supply, giving a square wave whose frequency you set with two resistors and a capacitor. In the monostable arrangement the capacitor sits discharged until a trigger pulls the trigger pin low, then charges once from zero to two thirds of the supply and stops, giving one output pulse of a length you choose.

Where 0.693 and 1.1 come from

Both constants are logarithms, and knowing which logarithm tells you immediately why the astable and monostable formulas differ.

A capacitor charging through a resistor toward a supply V follows v(t) = V(1 − e−t/RC). In the astable circuit the capacitor never starts from zero after the first cycle: it swings between V/3 and 2V/3. Solve the charging equation for the time to move between those two levels and the supply voltage cancels, leaving t = RC · ln 2. That is where 0.693 comes from, and the cancellation of V is exactly the supply independence described above.

During the charge phase the current reaches the capacitor through R1 and R2 in series, so the high time is tH = ln2 · (R1 + R2) · C. During the discharge phase the discharge pin pulls the junction of R1 and R2 to ground, so the capacitor empties through R2 alone: tL = ln2 · R2 · C. Add them and the period is T = ln2 · (R1 + 2R2) · C, whose reciprocal is the frequency the datasheet writes as 1.44/((R1+2R2)C). The 1.44 is simply 1/ln2 rounded.

The monostable is different because the capacitor starts fully discharged, at zero, and has to climb all the way to two thirds of the supply. Solving 2/3 = 1 − e−t/RC gives t = RC · ln 3, which is 1.0986 · RC. The datasheet rounds it to 1.1·RC, a 0.13% overstatement. This calculator uses the exact logarithms in both modes, and the direction of the difference depends on which quantity you compare. In astable mode its period runs about 0.19% shorter than a 1.44-based tool and its frequency therefore about 0.19% higher; in monostable mode its pulse runs about 0.13% shorter than a 1.1·RC tool, so the retrigger rate it reports is about 0.13% higher. Both gaps sit far inside any real capacitor tolerance, but they explain small disagreements between calculators.

Two structural consequences follow from the shape of the equations. First, the duty cycle (R1 + R2)/(R1 + 2R2) contains no capacitor term, so you tune frequency with C and duty cycle with the resistor ratio, independently. Second, because the numerator always exceeds half the denominator for any positive R1, this classic astable holds its output high for more than half of every cycle. You cannot reach 50% or below by choosing resistors; you have to change the topology. The same logic underlies the RC time constant calculator, which solves the same exponential for arbitrary start and end voltages.

Worked example: a 1 Hz blinker from 10 kΩ, 68 kΩ and 10 µF

You want a roughly one-second LED blink from a 555 in astable mode, and you have a 10 kΩ resistor, a 68 kΩ resistor and a 10 µF electrolytic on the bench. Work it through by hand.

  1. Convert the capacitor. 10 µF = 10 × 10−6 = 1 × 10−5 F.
  2. Charge-path resistance. R1 + R2 = 10,000 + 68,000 = 78,000 Ω.
  3. High time. tH = 0.693147 × 78,000 × 1 × 10−5 = 0.693147 × 0.78 = 0.540655 s.
  4. Low time. tL = 0.693147 × 68,000 × 1 × 10−5 = 0.693147 × 0.68 = 0.471340 s.
  5. Period. T = 0.540655 + 0.471340 = 1.011995 s.
  6. Frequency. f = 1 ÷ 1.011995 = 0.98815 Hz.
  7. Duty cycle. D = 78,000 ÷ 146,000 = 0.534247 = 53.42%.

Now run it backwards. Suppose you want exactly 1.000 Hz with the same 10 kΩ R1 and the same 10 µF capacitor. The period must be 1 s, so R1 + 2R2 = 1 ÷ (0.693147 × 1 × 10−5) = 144,269.5 Ω. Subtract R1 and halve: R2 = (144,269.5 − 10,000) ÷ 2 = 67,134.8 Ω. The nearest E24 value is 68 kΩ, which is the resistor you already fitted, and that is why the circuit lands at 0.988 Hz rather than 1.000 Hz. The 865 Ω gap between the exact R2 and the 68 kΩ you fitted costs 1.2% in frequency; the 10 µF electrolytic’s own tolerance dwarfs it.

How to read the result and choose components

Start from the capacitor, not the resistors. The capacitor sets the decade of the frequency and the resistors trim within it, so pick the capacitor first from the reference table below, then solve for the resistor. Fixing the capacitor also fixes the practical resistance range, and resistance is where the 555’s real limits live.

Keep the total timing resistance inside roughly 1 kΩ to 1 MΩ. Below about 1 kΩ, the discharge transistor has to sink a current large enough to matter against the device rating, and the supply current rises sharply. Above about 1 MΩ, the threshold pin’s own input current and the capacitor’s leakage stop being negligible next to the charging current, so the measured period runs long and drifts with temperature. Both bounds are engineering rules of thumb rather than absolute limits; the datasheet electrical tables are where you check a specific part.

Read the duty cycle as a design constraint rather than a result. For an indicator LED, anything from 20% to 80% looks fine. For driving a load through PWM, the classic astable’s floor of just above 50% is disqualifying, and you should either add a diode in parallel with R2 so the charge and discharge paths separate, or use the 555 as a fixed-frequency clock and generate the PWM elsewhere.

Finally, treat the calculated frequency as a centre value with a tolerance band around it. The 555’s internal divider is tightly matched, so the chip contributes very little error; almost all of your deviation comes from the passive components. With a 5% film resistor and a 20% electrolytic, expect the frequency to land within roughly a quarter of the nominal value either way. If you need better, use a film or C0G capacitor and a 1% resistor, or trim R2 with a multi-turn preset while you watch the output on a frequency counter. When the square wave then drives a filter or a smoothing stage, size that stage separately with the RC filter cutoff frequency calculator.

Astable frequency for common resistor and capacitor pairs

Frequency in hertz, computed as f = 1 / (ln2 × (R1 + 2R2) × C). Duty cycle depends only on the resistor pair, so it is constant down each column.
CapacitorR1 = 10 kΩ, R2 = 10 kΩ
(66.67% duty)
R1 = 1 kΩ, R2 = 10 kΩ
(52.38% duty)
R1 = 10 kΩ, R2 = 100 kΩ
(52.38% duty)
10 nF4,809 Hz6,870 Hz687.0 Hz
100 nF480.9 Hz687.0 Hz68.70 Hz
1 µF48.09 Hz68.70 Hz6.870 Hz
10 µF4.809 Hz6.870 Hz0.6870 Hz
100 µF0.4809 Hz0.6870 Hz0.06870 Hz

Frequency scales exactly inversely with the capacitor, so every step down a column is a factor of ten. Use the table to choose the decade, then solve for the exact resistor with the calculator.

Mistakes that make a 555 miss its calculated timing

  • Using an electrolytic where the tolerance matters. Aluminium electrolytics are commonly specified at ±20% and their capacitance falls with age and temperature. Any period you calculate from one is a nominal figure, not a specification.
  • Leaving the control pin floating. Pin 5 taps the internal divider at two thirds of the supply. Without the customary 10 nF decoupling capacitor to ground it picks up noise, and that noise moves the threshold and jitters your period.
  • Expecting a duty cycle at or below 50% from the standard astable. The charge path always includes R1, so the high time always exceeds the low time. A diode across R2 lets the charge current bypass it and is the usual fix.
  • Forgetting that the CMOS variants are not the bipolar part. A 7555 or TLC555 runs at far lower supply current and tolerates much larger timing resistors, but its output cannot sink or source the hundreds of milliamps a bipolar NE555 can. The timing equations are identical; the drive capability is not.
  • Retriggering a monostable before its pulse ends. The standard 555 one-shot ignores triggers while the output is high, so a trigger train faster than the pulse width produces fewer pulses than you expect, not longer ones.
  • Omitting the supply decoupling capacitor. The output stage draws a current spike at every transition. Without a capacitor across the supply pins close to the chip, that spike modulates the supply and can cause double-triggering.

Which document these equations come from

The formulas are the ones printed in the Texas Instruments xx555 Precision Timers datasheet, which covers the NE555, SA555 and SE555 and is the current maintained descendant of the original Signetics NE555 data sheet. It gives the astable frequency as 1.44/((RA+2RB)C) and the monostable width as 1.1·R·C. This calculator evaluates the same physics with exact logarithms instead of those rounded constants. The datasheet is also where you should look up the supply-current, discharge-current and output-drive figures for the specific part you are fitting, because those differ between the bipolar and CMOS families even though the timing equations do not.

When a 555 is the wrong tool

Use a 555 when you need a simple, supply-independent oscillator or one-shot built from parts you already have, and when a few per cent of frequency error is acceptable. It is unbeatable for blinking, debouncing, generating a clean reset pulse or clocking a counter at a leisurely rate.

Reach for something else in three situations. If you need frequency accuracy better than about 1%, a crystal oscillator or a microcontroller timer is the right answer, because the 555’s accuracy is capped by the passive components, not the chip. If you need a duty cycle you can sweep from 0% to 100%, a microcontroller PWM peripheral does it in software with no extra parts. And if you need timing above a few hundred kilohertz, the bipolar 555’s propagation delays start to eat into the calculated period; a CMOS variant pushes the practical ceiling higher, but a dedicated oscillator is cleaner.

Once the timing is settled, the rest of the design usually needs current limiting and level setting. Size the indicator resistor with the LED series resistor calculator, set thresholds with the voltage divider calculator, check the supply current draw with the Ohm’s law calculator, and combine capacitors you do not have as a single value with the capacitor series and parallel calculator. If the 555 is clocking an amplifier stage, the op-amp gain calculator sizes the feedback network that follows it.

Key terms

Astable
A circuit with no stable state. It flips continuously between high and low output, producing a square wave whose period you set with R1, R2 and C.
Monostable
A circuit with one stable state. It rests low until triggered, emits a single pulse of length ln3·R·C, then returns to rest. Also called a one-shot.
Duty cycle
The fraction of each period the output spends high, expressed as a percentage. In the standard 555 astable it equals (R1+R2)/(R1+2R2).
Discharge pin
Pin 7, the collector of an internal transistor that shorts the junction of R1 and R2 to ground while the output is low, emptying the timing capacitor through R2.
Control voltage pin
Pin 5, which exposes the two-thirds-supply reference. Grounding it through a 10 nF capacitor keeps noise off the threshold; driving it deliberately turns the astable into a voltage-controlled oscillator.

Frequently asked questions

What resistor and capacitor give exactly 1 Hz from a 555?

With a 10 µF capacitor and a 10 kΩ R1, you need R2 = 67,135 Ω, so a 68 kΩ resistor lands you at 0.988 Hz. If you want a rounder answer, keep R1 at 10 kΩ, fit a 68 kΩ R2 and change the capacitor instead: the calculator reports that 9.881 µF hits 1.000 Hz exactly. In practice you fit 68 kΩ and 10 µF and accept 0.99 Hz, because the capacitor tolerance is worth far more than the 1.2% error.

Why is my 555's duty cycle always above 50%?

Because the capacitor charges through R1 and R2 in series but discharges through R2 alone, the high time is always longer than the low time by exactly ln2 × R1 × C. The duty cycle (R1+R2)/(R1+2R2) therefore stays above 50% for any positive R1. Making R1 very small pushes it close to 50% but never below, and small R1 values overload the discharge pin. The standard fix is a diode across R2, cathode toward the capacitor, so charging bypasses R2 and the two paths become independent.

Does the supply voltage change the 555's frequency?

No, and that is the part's defining feature. The trigger and threshold references are generated by an internal divider from the same supply that charges the capacitor, so the supply voltage cancels out of the timing equation. A circuit that runs at 1 kHz on 5 V runs at 1 kHz on 12 V. What does change with supply is the output drive, the supply current and the rise and fall times, which is why high-frequency circuits behave slightly differently at different rails.

What is the difference between 1.44 and 1/ln2 in the frequency formula?

Nothing physical — 1.44 is 1/ln2 = 1.442695 rounded to three figures, and the datasheet prints the rounded version for hand calculation. Using 1.44 makes the calculated frequency about 0.19% lower than the exact value, because 1.44 is slightly smaller than 1.442695; the period it implies is correspondingly 0.19% longer. This calculator uses the exact logarithm. The difference is negligible against any real capacitor tolerance, but it explains small disagreements between calculators.

What is the highest frequency a 555 can produce?

The equations have no upper limit, but the device does: as the calculated period approaches the chip's internal propagation delay, the real output runs slower than the formula predicts and the waveform loses its square edges. Bipolar NE555 parts are comfortable into the low hundreds of kilohertz; CMOS versions such as the TLC555 go higher. Check the maximum frequency figure in the datasheet for the exact part number rather than assuming the family behaves alike.

Can I use this calculator for a 556 or a 7555?

Yes. The 556 is two independent 555 timers in one package and the 7555, TLC555 and LMC555 are CMOS reimplementations of the same architecture, so all of them use identical timing equations. What changes between families is the supply range, the supply current, the maximum output drive and the largest practical timing resistor — CMOS parts tolerate resistors into the tens of megohms where a bipolar part would drift.

How accurate will my real circuit be compared with the calculated value?

Almost all of the error comes from the passive components rather than the chip. A 5% resistor and a 20% electrolytic capacitor stack up to a frequency that can sit roughly a quarter away from nominal in either direction, which is the dominant term. Swap to a 1% metal-film resistor and a film or C0G capacitor and the error drops into the low single digits. If you need better than that, trim R2 with a multi-turn preset and measure the output.

Why does my monostable ignore some of my triggers?

The standard 555 one-shot is not retriggerable: once the output goes high, further trigger pulses are ignored until the timing capacitor reaches two thirds of the supply and the cycle ends. If your trigger source is faster than the calculated pulse width, you get fewer output pulses than input triggers. Either shorten the pulse by reducing R or C, or use a retriggerable one-shot such as a 74HC123.

Why does the low time show a dash in monostable mode?

Because a one-shot has no defined low time. The output rests low indefinitely until you trigger it, so the interval between pulses is set by your trigger source rather than by R and C. The duty cycle is blank for the same reason. Switch to astable mode and both figures appear, because there the circuit sets its own rhythm.

References