Calculate Duty Cycle
Choose your input mode, enter values, and get duty cycle instantly.
Quickly calculate duty cycle for PWM and pulsed signals using on-time/off-time, pulse width/period, or pulse width/frequency. Useful for electronics design, motor control, LED dimming, heaters, and power systems.
Choose your input mode, enter values, and get duty cycle instantly.
A duty cycle calculator is one of the most useful tools in electronics, control systems, and signal engineering. Any repetitive pulse waveform can be described by how long it remains ON versus how long it remains OFF. That ratio directly influences average power, effective output behavior, thermal performance, and end-device response. Whether you are working with PWM for LED dimming, motor control, switching regulators, RF pulse systems, or industrial actuators, accurately calculating duty cycle helps you design predictable and stable systems.
In simple terms, duty cycle is the percentage of one complete cycle that a signal stays in its active state. If a waveform is high for 2 milliseconds and low for 8 milliseconds, the full cycle is 10 milliseconds, so duty cycle is 2/10 = 0.2, or 20%. This single number can be more informative than amplitude alone because many real systems react to time-averaged energy delivery, not just peak level.
Duty cycle is a dimensionless ratio ranging from 0 to 1, usually presented as 0% to 100%. It compares the active duration (Ton) to total period (T). For digital pulse trains, active state generally means logic high. In power electronics, it usually means switch ON time. The fundamental relationship is:
Duty Cycle (%) = (Ton / T) × 100
Since period is the sum of ON and OFF times, another equivalent form is:
Duty Cycle (%) = Ton / (Ton + Toff) × 100
If you know frequency instead of period, use T = 1/f:
Duty Cycle (%) = Ton × f × 100
This page offers three practical input modes so you can calculate duty cycle from the measurements you already have:
Enter your values, choose units, and click calculate. The tool returns duty cycle percentage and decimal, period, frequency, ON and OFF durations, and mark:space ratio. The visual bar provides an immediate sanity check.
PWM (pulse-width modulation) controls average output by adjusting pulse width while keeping frequency mostly constant. For many loads, especially those with inductance or thermal inertia, the average effect tracks duty cycle closely. For example, a 12 V PWM output at 25% duty often behaves like roughly 3 V average in low-pass conditions. At 75%, the average moves near 9 V.
For a simple 0-to-V supply square wave:
These relationships are widely used for quick estimation, but exact behavior still depends on the load type, filtering, switching losses, and control loop dynamics.
| On-Time | Off-Time | Period | Duty Cycle | Typical Interpretation |
|---|---|---|---|---|
| 1 ms | 9 ms | 10 ms | 10% | Low average power, short pulses |
| 5 ms | 5 ms | 10 ms | 50% | Balanced ON/OFF waveform |
| 8 ms | 2 ms | 10 ms | 80% | High average power, long ON intervals |
| 0.5 µs | 0.5 µs | 1 µs | 50% | Typical clock-like square pulse |
| 2 µs | 8 µs | 10 µs | 20% | Narrow pulse operation |
Duty cycle and frequency are related but different. Frequency tells you how often cycles repeat per second. Duty cycle tells you what fraction of each cycle is active. You can keep frequency constant and vary only duty to control average output, which is exactly what most PWM systems do.
Example: If frequency is 10 kHz, each period is 100 µs. A 30 µs ON time gives 30% duty cycle. A 70 µs ON time gives 70% duty cycle. Same frequency, very different delivered energy.
LED dimming: Brightness is controlled by changing duty cycle at high enough frequency to avoid visible flicker.
Motor control: DC motor speed is often adjusted by PWM duty cycle, with torque and current behavior depending on load and inertia.
Switch-mode power supplies: Converter topology and feedback loop adjust duty cycle to regulate output voltage/current.
Heaters and thermal systems: Time-proportional control uses duty cycle over larger windows to regulate temperature efficiently.
What is a good duty cycle for PWM?
There is no universal best value. It depends on target output, thermal limits, switching losses, and application behavior.
Can duty cycle be over 100%?
No. In practical pulse terms, duty cycle is constrained between 0% and 100%.
Is 50% duty cycle always ideal?
Only when equal ON and OFF timing is desired. Many control applications intentionally use very different values.
How do I calculate duty cycle from frequency and pulse width?
Use D = Ton × f, then multiply by 100 for percentage.
What is mark-space ratio?
It is ON time compared to OFF time, commonly written as Ton:Toff.
Duty cycle is a core concept across modern electronics and control engineering. A reliable duty cycle calculator helps you convert raw timing measurements into practical design insight. Use the calculator above whenever you need quick and accurate duty cycle results from time or frequency data, and combine those values with real measurements to optimize performance, efficiency, and reliability.