Calculate square wave frequency, period, duty cycle, and high/low times from timing values or 555 astable resistor and capacitor inputs.

Optional settings

Square Wave Frequency Formula

Choose the conversion or timing mode that matches the values you know.

Period and frequency:

f = 1 / T

Pulse times and duty cycle:

T = thigh + tlow; f = 1 / T; D = (thigh / T) × 100%

555 timer astable mode:

f = 1.4427 / ((R1 + 2×R2) × C)
  • f = frequency in hertz (Hz)
  • T = period in seconds (s)
  • thigh = time the signal is high
  • tlow = time the signal is low
  • D = duty cycle as a percentage
  • R1, R2 = timing resistors in ohms (Ω)
  • C = timing capacitor in farads (F)

The 555 formula assumes a standard astable circuit where C charges through R1 + R2 and discharges through R2 only. This always produces a duty cycle above 50%. Modified diode circuits or other topologies need their own timing equations; adding a diode alone does not guarantee exactly 50% duty. Actual timing also depends on component tolerances and the timer’s operating limits.

Square-wave voltage and resistor power

Choose “Power from square-wave voltage” to calculate average power from the actual high and low voltages across a constant resistor and the high-state duty cycle. Use signed voltages, so a bipolar waveform can have a negative low level. The result includes both the alternating signal and any DC component.

d = D / 100 VRMS = √[d × Vhigh² + (1 − d) × Vlow²] Pavg = VRMS² / R Vavg = d × Vhigh + (1 − d) × Vlow

Here D is the high-state duty percentage, d is its decimal fraction, the voltages are in volts, R is the positive load resistance in ohms, and average power is in watts. A 0% or 100% duty cycle is the constant-voltage limit. Equal high and low voltages also describe DC. Frequency does not change average power for this ideal two-level, constant-resistance model.

RMS voltage gives the equivalent DC heating effect; average voltage alone does not determine heating power. This calculation assumes instantaneous transitions and ignores reactive loads, switching losses and source limitations. It does not establish a component or equipment power rating.

Reference Tables

Common period and frequency pairs you can use to sanity-check a result:

Frequency Period Half cycle
1 Hz1 s500 ms
60 Hz16.67 ms8.33 ms
1 kHz1 ms500 µs
38 kHz26.32 µs13.16 µs
1 MHz1 µs500 ns
16 MHz62.5 ns31.25 ns

Illustrative waveform frequencies by application (check the actual device specifications):

Application Typical range
LED blink / heartbeat1 Hz to 10 Hz
Audio tones20 Hz to 20 kHz
Servo PWM50 Hz
Motor / LED PWM500 Hz to 25 kHz
IR remote carrier36 kHz to 40 kHz
Switching power supplies50 kHz to 1 MHz
Microcontroller clocks1 MHz to 200 MHz

Worked Example

Problem: A 555 astable uses R1 = 4.7 kΩ, R2 = 10 kΩ, and C = 0.1 µF. Find the frequency and duty cycle.

Solution:

  • R1 + 2·R2 = 4,700 + 20,000 = 24,700 Ω
  • (R1 + 2·R2) · C = 24,700 × 0.0000001 = 0.00247 s
  • f = 1.4427 / 0.00247 ≈ 584 Hz
  • thigh = 0.693 × (R1 + R2) × C ≈ 1.018 ms
  • tlow = 0.693 × R2 × C ≈ 0.693 ms
  • Duty cycle = 1.018 / (1.018 + 0.693) ≈ 59.5%

FAQ

Is a square wave always 50% duty? A pure square wave is 50%. Anything else is a rectangular or pulse wave, but the period-to-frequency math is the same.

Why does my 555 never reach 50%? The standard astable charges through R1 + R2 and discharges through R2 alone, so thigh is always longer than tlow. Make R1 small relative to R2 to get close to 50%, or add a steering diode.

What is angular frequency? ω = 2πf, in radians per second. It is mostly used in phase and Fourier calculations, not in pulse timing.