๐ PWM (Pulse Width Modulation) is a technique used to control the power delivered to electronic components like LEDs, motors, and buzzers. One of the most important aspects of PWM is the duty cycleโthe percentage of time a signal stays ON during one cycle.
In this article, youโll learn what duty cycle means, how to calculate it, and how to use it in your electronics projects. Weโve also included a calculator to make it even easier.
Table of Contents
๐โโ๏ธ What Is PWM Duty Cycle?
The duty cycle of a PWM signal is the proportion of time the signal is in the “ON” state during a single PWM period. It’s usually expressed as a percentage.
- A 100% duty cycle means the signal is always ON
- A 0% duty cycle means it’s always OFF
- A 50% duty cycle means itโs ON half the time
This directly affects the average power delivered to the load.
๐ PWM Duty Cycle Calculator
๐ Powered by onesdr.com
๐งฎ Duty Cycle Formula
You can calculate the duty cycle using this formula:
Duty Cycle (%) = (Pulse Width / Period) ร 100
Where:
- Pulse Width = duration of the HIGH signal (in microseconds, ms, or seconds)
- Period = total duration of one PWM cycle
You can also find the period using frequency:
Period = 1 / Frequency

โก Example
If the pulse width is 2 milliseconds and the PWM period is 10 milliseconds:
Duty Cycle = (2 / 10) ร 100 = 20%
So the signal is ON for 20% of each cycle.
๐ Why Duty Cycle Matters
The duty cycle determines how much power is delivered to a device:
- For a DC motor, a higher duty cycle = more speed
- For an LED, a higher duty cycle = brighter light
- For a heater, a higher duty cycle = more heat
โจ Tips for Better PWM Control
- Use a high enough frequency to avoid flickering in lights or noise in motors
- Tune duty cycle to match load requirements
- Watch for thermal effects in high-power applications