🔬
🔬 Science & engineering

Duty Cycle Calculator (% from pulse width and period, frequency or OFF time)

Results update as you type.

Your numbers

Understanding the duty cycle calculator — concept and principle

The duty cycle is the fraction of each period that a pulse signal is ON. It is the key number in PWM (pulse-width modulation), used to dim LEDs, control motor speed and regulate power supplies. This calculator converts between pulse width, period, frequency and OFF time, and gives the average and RMS voltage.

Square wave with 20% duty cycle2 ms on in every 10 ms10 msON 2 ms5 V0 Vduty = 2 ÷ 1020%100 Hz · average 1 V · RMS 2.236 V
The signal is high for 2 of every 10 ms, so it averages 20% of 5 V = 1 V.

How it is calculated

The principle

A load that responds slowly, such as a motor or the eye looking at an LED, effectively averages a fast pulse train. Switching fully on and off wastes little power in the switch, yet the average delivered can be set precisely by the share of time it is on. Heating in a resistor depends on the square of voltage, so the RMS value (√D times the peak) is what determines power, not the average.

Worked example

Default inputs: pulse width 2 ms, period 10 ms, high level 5 V.

  1. D = 2 ÷ 10 × 100% = 20%.
  2. Frequency = 1 ÷ 0.010 s = 100 Hz; OFF time = 10 − 2 = 8 ms; ON time 2 ms; period 10 ms.
  3. Average voltage = 0.20 × 5 = 1 V.
  4. RMS voltage = 5 × √0.20 ≈ 2.236 V.
How Duty cycle (%) changes with Period (ms)How Duty cycle changes with Period0204060802.557.51012.51520Example: 20Period (ms)
Each point is the calculator re-run with only “Period (ms)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Period (ms)Duty cycle (%)
2.580
540
7.526.67
1020
12.516
1513.33
2010

How to read the result

A 20% duty cycle delivers one fifth of the full average voltage, but power into a resistor is D × Vhigh² ÷ R, i.e. 20% of full power, matching (2.236 V)² ÷ R. Choose a PWM frequency high enough that the load averages it: LEDs often use hundreds of hertz or more to avoid visible flicker; motors often use kilohertz ranges.

Common mistakes

Keep in mind: Switching circuits can produce voltage spikes and interference. Follow component ratings and electrical safety practice.

Frequently asked questions

What does a 50% duty cycle mean?

The signal is on for half of each period.

How do I calculate duty cycle from frequency?

D = pulse width × frequency (with consistent units).

Why is RMS higher than average for PWM?

RMS weighs by voltage squared; for a pulse train it equals the peak × √D, which exceeds peak × D when D < 1.

Sources: Horowitz, P. & Hill, W., The Art of Electronics, 3rd ed. Cambridge University Press (PWM) · IEEE Std 194-1977, Standard Pulse Terms and Definitions

Checked 9 Nov 2026. Definitions of period, frequency and duty cycle of a rectangular pulse train; average value D·V and RMS value V·√D of a 0/V rectangular wave — standard formulas.

🔬 All science & engineering tools →🌍 Calculators by country →