Duty Cycle Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter how long the signal stays high and low in each cycle, and its high voltage.
Result
Duty cycle
Period (ms)
- Frequency (Hz)
- Average voltage (V)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Time on, pulse width, in ms: enter 0 or more.
- Time off, in ms: enter 0 or more.
- High voltage, in V: enter 0 or more.
- Read the result: Duty cycle; the panel also shows Period (ms), Frequency (Hz) and Average voltage (V).
How this calculator works
Duty cycle D = pulse width ÷ period × 100%, with period T = time on + time off and frequency f = 1/T.
For a rectangular signal that switches between 0 V and V, the average (DC) value is D × V.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Time on, pulse width | ms | |
| Time off | ms | |
| Duty cycle | % |
Worked example
| Time on, pulse width | 2 ms |
|---|---|
| Time off | 8 ms |
| High voltage | 12 V |
| Period (ms) | 10 |
|---|---|
| Frequency (Hz) | 100 |
| Average voltage (V) | 2.4 |
Duty cycle 20%
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What does a 50% duty cycle mean?
The signal is on for half of each period: a square wave.
What is the duty cycle of 2 ms on and 8 ms off?
20%, at 100 Hz; with a 12 V supply the average is 2.4 V.
Does duty cycle change the frequency?
Not by itself. PWM keeps the period fixed and changes only the share of time the signal is on.