Electronics

PWM Duty Cycle

Duty cycle lookup for common PWM resolutions and average voltage vs supply.

8-bit PWM (0–255)

ValueDutyAvg @ 5 VAvg @ 3.3 V
00 %0 V0 V
3212.5 %0.625 V0.41 V
6425 %1.25 V0.83 V
9637.5 %1.875 V1.24 V
12850 %2.5 V1.65 V
16062.5 %3.125 V2.06 V
19275 %3.75 V2.48 V
22487.5 %4.375 V2.89 V
255100 %5.0 V3.3 V

10-bit PWM (0–1023)

ValueDutyNotes
00 %
10210 %
25625 %
51250 %
76875 %
1023100 %Full on

Formulas

Duty D= value / max_count
Avg voltage= D · (V_high − V_low) + V_low
Top count (timer)= F_clk / (prescaler × F_pwm)
Usable bits= log₂(top_count + 1)

Notes

  • At very low duty (< 1% of top), minor clocking errors dominate — use a higher-resolution timer.
  • Motor / LED drivers often have a minimum on-time — below it the output stays off.
Was this article helpful?