Clock Duty Cycle Calculator

Calculate any two of frequency, period, duty cycle, or high/low times. Shows a live waveform with the timing marked out.

Calculator Electronics Updated Oct 15, 2026
How to Use
  1. Enter any two of: frequency, period, duty cycle percentage, tHigh, or tLow.
  2. The remaining values compute automatically.
  3. Waveform preview updates live, showing the on/off windows.
  4. Common PWM duty cycles: 0% = off, 50% = square wave, 100% = on.
Input
Hz (kHz, MHz OK)
s (ms, us OK)
%
s (ms, us OK)
s (ms, us OK)
Presets
Waveform
Frequency
—
Period
—
Duty
—%
tH / tL
—

Worked Example

An RC servo signal repeats at 50 Hz with a 1.5 ms pulse (the center position). Period T = 1 ÷ 50 = 20 ms. Duty = 1.5 ÷ 20 = 7.5%, so the signal is low for 20 − 1.5 = 18.5 ms. The full travel, 1 ms to 2 ms, is only 5% to 10% duty.

For a PWM output, 7.5% of a 16-bit timer's 65,536 counts is 4,915 counts for the center, and each 0.1 ms of pulse is 328 counts.

The common mistake: keeping the percentage when the frequency changes. Move the same 7.5% to a 333 Hz digital-servo frame and the pulse shrinks to 0.225 ms, far outside the servo's range. Servos read the pulse width, so recompute the duty for the new period.

Show Work

Enter any two values to see the rest.

Formulas

Frequency ↔ Period
T = 1 / f
Reciprocal relationship.
Duty Cycle
D = tH / T × 100%
tHigh as fraction of period.
tHigh
tH = D × T
On-time from duty cycle.
tLow
tL = T − tH
Off-time is the rest.
Period from Times
T = tH + tL
Full cycle is on + off time.
Duty from Times
D = tH / (tH + tL)
Without computing period.

About Duty Cycle

Duty cycle is everywhere in electronics. Digital clocks typically run at 50% for balanced rise/fall timing. PWM signals span 0-100% for variable control of motors, LEDs, and switching regulators. Servo signals use extreme duty cycles (5-10%) in a fixed 50Hz period.

Beware of asymmetric duty in digital clocks: a 30/70% duty cycle still has the right frequency, but setup/hold margins are cut in half on one half-cycle. Clock synthesizers and crystal oscillators always output near 50% duty for this reason.

History of Clock Signals and Duty Cycle

"Duty" was first an electrical-machinery term, describing how a motor or welder is used: continuous, short-time or intermittent duty, with the duty cycle being the share of time it runs. Pulse electronics took the word over during the Second World War's radar development. Radar PRF (pulse repetition frequency) and duty cycle directly governed average transmitter power and range ambiguity.

Digital clock signals converged on ~50% duty in the 1970s as TTL became dominant. Setup and hold times specify how long data must be stable before and after a clock edge; asymmetric duty effectively shortens one of those windows. Modern DDR4 memory actually uses both edges (dual-edge triggering) for 2× data rate, making clock duty accuracy a first-class signal-integrity parameter — JEDEC limits DDR4's average clock high and low times to roughly 48–52% of the period.

PWM for power control exploded in the 1980s with the MOSFET revolution: switching an FET at 20-100 kHz with variable duty lets a DC bus drive motors, LEDs, solenoids, and power supplies with near-zero switch loss. Today PWM dominates drive electronics from multi-kilovolt rail traction inverters to milliamp phone vibration motors.

About This Calculator

Enter any two of: frequency, period, duty cycle, tHigh, tLow. The tool solves for the rest using T = 1/f, D = tH/T, tL = T − tH. Units with SI prefixes parse automatically (kHz, MHz, µs, ns). The waveform visualization shows one period at scale with the on/off windows marked.

Common gotchas: servo signals use 20 ms period (50 Hz) with 1-2 ms pulse width, which is 5-10% duty — not a 5 Hz signal. LED PWM should stay above ~200 Hz to avoid visible flicker for moving eyes; 1 kHz is a safe default. Motor PWM typically runs 16-25 kHz (above hearing). Everything runs client-side; no values leave your browser.

Frequently Asked Questions

What is duty cycle?

The fraction of one period during which the signal is high, expressed as a percentage. 25% duty means the signal is high 25% of each cycle, low 75%. A square wave is 50% duty.

Frequency vs period?

They're reciprocals. f = 1/T. Frequency (Hz) is cycles per second; period (seconds) is time per cycle. A 1kHz clock has a 1ms period.

When does duty cycle matter?

In PWM (pulse-width modulation) for motor speed, LED brightness, power delivery. Also in digital clocks where very asymmetric duty can cause setup/hold violations. Most digital gear expects 40-60% duty.

How is tHigh different from duty?

Duty is a percentage; tHigh is an absolute time. t_high = D × T. A 50% duty cycle at 1 kHz means tHigh = 500µs; at 10 kHz it means tHigh = 50µs.

Does a servo read duty cycle or pulse width?

Pulse width. A standard servo centers on a 1.5 ms pulse whatever the repeat rate: at 50 Hz that is 7.5% duty, but a digital servo driven at 333 Hz sees the same 1.5 ms as 50% duty. Set the high time, not the percentage, when you change the frame rate.

How do I use the Clock Duty Cycle Calculator?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Is it free? Does it work without internet?

Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.

Where does my data go?

Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.

Common Use Cases

PWM Motor Control

Drive a DC motor with 75% duty PWM at 20 kHz (above hearing, so no whine): the average voltage is 75% of the supply, giving roughly three-quarter speed under a steady load.

LED Dimming

Run LEDs at 1 kHz PWM with 20% duty: they give 20% of their light, which the eye sees as roughly half as bright, since perceived brightness is far from linear. 1 kHz is fast enough to avoid visible flicker.

Clock Signal Analysis

Measuring a 100MHz CPU clock on a scope — verify duty is close to 50% for clean timing.

Servo Signal

R/C servos expect a 20ms period (50Hz) with 1-2ms pulse (5-10% duty) encoding position.

Audio Waveform Generation

Synthesize a square wave at 440Hz (A4 note) for basic tone generation.

Last updated: