PWM Duty Cycle Calculator
Enter pulse width and period (or frequency) to instantly compute duty cycle, on-time, off-time, and average output voltage.
PWM Parameters
V
Results
Duty Cycle
—
On-Time
—
Off-Time
—
Period
—
Frequency
—
Avg Voltage
—
0% (always off)
—
100% (always on)
Bar represents the fraction of each cycle the output is HIGH.
Waveform Preview
Two complete cycles shown. Width proportional to duty cycle.
Formulas
Duty cycle (D) = t_on / T × 100%
t_off = T − t_on
T (period) = 1 / f
V_avg = Vcc × D / 100
Summary
Enter pulse width and period (or frequency) to instantly compute duty cycle, on-time, off-time, and average output voltage.
How it works
- Enter the supply voltage (Vcc) and select the time unit (µs, ms, or s).
- Enter the pulse width (on-time) and the total period, or switch to frequency mode and enter frequency in Hz or kHz.
- Click Calculate to see duty cycle %, on-time, off-time, period, frequency, and average output voltage.
- Adjust any value and recalculate — the duty cycle bar updates to reflect the new ratio.
- Use Reset to clear all fields and start a new calculation.
Use cases
- Size PWM parameters for a DC motor speed controller.
- Set LED dimming level for a constant-current driver.
- Verify switching frequency and duty cycle for a buck or boost converter.
- Calculate average output voltage of a PWM-driven H-bridge.
- Check on-time and off-time constraints for a MOSFET gate driver.
- Teach or learn PWM theory with live numeric feedback.
Frequently Asked Questions
Last updated: 2026-06-11 ·
Reviewed by Nham Vu