Calculate square wave frequency, period, duty cycle, and high/low times from timing values or 555 astable resistor and capacitor inputs.
- All Physics Calculators
- All Frequency Calculators
- Frequency to Voltage Calculator
- Corner Frequency Calculator
- Sampling Frequency Calculator
Square Wave Frequency Formula
The calculator uses one of three formulas depending on which tab you select.
Period and frequency:
f = 1 / T
Pulse times and duty cycle:
T = t_high + t_low f = 1 / T D = (t_high / T) * 100%
555 timer astable mode:
f = 1.4427 / ((R1 + 2*R2) * C)
- f = frequency in hertz (Hz)
- T = period in seconds (s)
- t_high = time the signal is high
- t_low = 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%. Add a diode across R2 or use a different circuit topology to get a true 50% square wave.
Reference Tables
Common period and frequency pairs you can use to sanity-check a result:
| Frequency | Period | Half cycle |
|---|---|---|
| 1 Hz | 1 s | 500 ms |
| 60 Hz | 16.67 ms | 8.33 ms |
| 1 kHz | 1 ms | 500 µs |
| 38 kHz | 26.32 µs | 13.16 µs |
| 1 MHz | 1 µs | 500 ns |
| 16 MHz | 62.5 ns | 31.25 ns |
Typical square wave frequencies by application:
| Application | Typical range |
|---|---|
| LED blink / heartbeat | 1 Hz to 10 Hz |
| Audio tones | 20 Hz to 20 kHz |
| Servo PWM | 50 Hz |
| Motor / LED PWM | 500 Hz to 25 kHz |
| IR remote carrier | 36 kHz to 40 kHz |
| Switching power supplies | 50 kHz to 1 MHz |
| Microcontroller clocks | 1 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
- t_high = 0.693 × (R1 + R2) × C ≈ 1.018 ms
- t_low = 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 t_high is always longer than t_low. 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.
