← All tools
PWM Signal Laboratory
Build a square wave from frequency and duty, then read its timing, average and RMS values against a live waveform.
Calculator inputs and results
Result
- Period T
- —
- On-time ton
- —
- Off-time toff
- —
- Duty D
- —
- Time-average voltage
- —
- RMS voltage
- —
Waveform & time-averageIDEAL SQUARE WAVE
T = 1/fsw · ton = D · T · toff = T − ton
Ideal square wave between 0 V and VH: Vavg = D · VH · VRMS = VH · √D
Ideal square wave between 0 V and VH: Vavg = D · VH · VRMS = VH · √D
Read this before you commit a design
This is an ideal two-level waveform with zero rise and fall time. Real GPIO outputs have finite edges, driver delay, and loading; a gate driver, LED string, motor or RC filter each responds to the waveform differently. The average is what a slow load integrates, not what a fast one sees. Nothing here is a measurement.