TheCircuitDog.
Digital & Timing

PWM Duty Cycle Calculator

Find PWM duty cycle and switching frequency from the pulse on-time and total period.

Runs locally in your browser · no login
Enter the values above and select Calculate result.

Formula

Duty (%) = Ton / Tperiod × 100; f = 1 / Tperiod

Worked example

A 250 µs on-time in a 1000 µs period is 25% duty cycle at 1 kHz.

Engineering notes

Does not account for driver dead time, propagation delays or switching edges.

Always compare calculated values with the actual component datasheet, tolerance stack-up, operating temperature and circuit conditions before applying them to hardware.

Related tools