← Back to Calculators

⬛ PWM Duty Cycle Calculator

Frequency · Period · On/Off Time · Average Voltage · Live Waveform · Arduino & ESP32 Presets

PWM Parameters

Frequency
Period (T)
On-Time (ton)
Off-Time (toff)
Avg Voltage
Resolution (8-bit)
256 steps
T = 1/f  |  ton = D × T  |  toff = T − ton
Vavg = D × Vs  (D = duty cycle 0–1)
D = 50% → Vavg = Vs/2  |  D = 100% → Vavg = Vs

⚡ Quick MCU Presets

〜 Live PWM Waveform

ON = High pulse OFF = Low Avg voltage
Common PWM Frequencies:
Motor speed control: 1–20 kHz
LED dimming: 200 Hz – 2 kHz (avoid flicker)
Servo control: 50 Hz (20ms period, 1–2ms pulse)
Audio class-D amp: 200–500 kHz
SMPS / Buck converter: 50–500 kHz