Calculator: PWM duty cycle

Enter the labelled inputs to calculate: Duty cycle (%); Frequency (Hz).

Duty cycle (%)
20
Frequency (Hz)
100

How the calculation works

D=100·Ton/T; f(Hz)=1000/T(ms)

Ideal lumped components are assumed. Parasitics, saturation, mutual inductance, losses and switching ripple are excluded unless explicitly included in the formula.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

D=100·Ton/T; f(Hz)=1000/T(ms)

What assumptions apply?

Ideal lumped components are assumed. Parasitics, saturation, mutual inductance, losses and switching ripple are excluded unless explicitly included in the formula.

How precise are the displayed results?

Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How we verified this calculator

The calculator is checked against 3 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
On-time (ms) = 0.25
Period (ms) = 1
Duty cycle (%): 25
Frequency (Hz): 1000
2
On-time (ms) = 3
Period (ms) = 20
Duty cycle (%): 15
Frequency (Hz): 50
3
On-time (ms) = 0.0125
Period (ms) = 0.05
Duty cycle (%): 25
Frequency (Hz): 20000

How we test our calculators →

Also try:

Back to category →