Duty Cycle Calculator

Calculate pulse duty cycle and frequency from signal on time and total period for PWM, electronics, and control applications.

Calculate pulse duty cycle
Enter on time and period in milliseconds using the same time unit for both values.

About duty cycle and pulse timing

Duty cycle describes the fraction of a repeating period during which a signal, switch, or device is active. It is expressed as a percentage: divide on time by the complete period and multiply by one hundred. A signal that remains high for 2.5 milliseconds in every 10-millisecond period has a 25 percent duty cycle. The period also determines frequency. When period is entered in milliseconds, dividing 1,000 by it gives cycles per second, or hertz. Pulse-width modulation, commonly called PWM, varies average delivered power by changing duty cycle while usually keeping amplitude fixed. A 0 percent command is always off, 100 percent is continuously on, and 50 percent is active for half of each period. Motors, heaters, LEDs, power converters, audio circuits, servos, and digital communications all use related timing concepts. The physical response depends on switching frequency, load behavior, filtering, and the electronic driver, so equal duty percentages do not guarantee equal perceived or mechanical outputs. Both time entries must use the same unit for the ratio. This calculator labels them in milliseconds and derives frequency accordingly, but the percentage itself would be unchanged if both were expressed in microseconds or seconds. On time cannot exceed the entire period. If a waveform is described by separate high and low durations, add them to find total period before calculating: period equals high time plus low time. For an active-low signal, decide whether the relevant on state is electrically low and enter that duration. Duty cycle can influence heating and component ratings. Pulsed devices may tolerate a high instantaneous current only for specified pulse widths, repetition rates, temperatures, and cooling conditions. Average power can sometimes scale approximately with duty cycle, but switching loss, resistance, inductance, startup behavior, and thermal time constants complicate real systems. Consult data sheets and measure the waveform under load rather than assuming the mathematical average guarantees safe operation. Use an oscilloscope, logic analyzer, timer configuration, or trusted design specification to obtain on time and period. Triggering and noise can make automated measurements unstable, so inspect several cycles when precision matters. The calculator provides the exact timing ratio and associated frequency, making it useful for checking microcontroller timers, PWM commands, pulse trains, and laboratory measurements. It does not model rise time, jitter, dead time, missing pulses, or waveform distortion; include those effects separately when they are significant to system performance.

Duty cycle examples

These pulse timings illustrate the relationship between active duration, period, and frequency.

Pulse timingDuty cycleFrequency
2.5 ms on, 10 ms period25%A 10 ms period repeats at 100 Hz.
3 ms on, 5 ms period60%A 5 ms period repeats at 200 Hz.
0.5 ms on, 2 ms period25%A 2 ms period repeats at 500 Hz.

How to calculate duty cycle

  1. Measure or identify how long the signal remains in its active state during one cycle.
  2. Measure the complete period from one equivalent edge to the next in milliseconds.
  3. Confirm that on time does not exceed the period and that both values use milliseconds.
  4. Select Calculate duty cycle to see the active percentage and repetition frequency.

Duty cycle calculator FAQ

What does a 50% duty cycle mean?

The signal is active for exactly half of every repeating period and inactive for the other half. It does not necessarily mean the connected device produces half of its maximum perceived output.

How do I calculate duty cycle from high and low time?

Add high time and low time to get the total period, then divide the active-state duration by that period. Multiply the ratio by one hundred to express it as a percentage.

How are frequency and period related?

Frequency is the reciprocal of period when period is measured in seconds. For a period in milliseconds, divide 1,000 by the period to obtain hertz.

Can duty cycle exceed 100%?

No, because active time cannot be longer than the complete cycle that contains it. A value above 100 percent indicates mismatched units, incorrect measurements, or an incorrect period.

Does PWM duty cycle directly equal motor speed?

Not generally. Duty cycle changes average drive, but load, supply voltage, motor characteristics, controller behavior, and feedback determine actual speed.