
Written and maintained by the PhDino author · Last reviewed 21 September 2026 · Checked against 2 independent reference calculations · how PhDino checks its numbers
The relationship between a clock signal's period, its frequency, and how long it spends high versus low each cycle.
A digital clock signal is a repeating square wave, and its frequency (how many cycles happen per second) is simply the inverse of its period (how long one full cycle takes) — the two describe exactly the same signal from two different, equally valid angles, whichever is more convenient for a given calculation.
Duty cycle describes the shape of that square wave within each period: the fraction of the period the signal spends "high" versus "low." A 50% duty cycle (equal high and low time) is extremely common for general clock distribution, but other duty cycles show up deliberately in applications like PWM (pulse-width modulation) motor control, where the duty cycle itself — not just the frequency — is the value being controlled.
Frequency = 1 ÷ period High time = period × duty cycle Low time = period − high time
Converts a clock period into a frequency and splits each cycle into its high and low times using the duty cycle. Enter the period in nanoseconds and the duty cycle as the percentage of each period the signal spends high.
Reach for it when a datasheet gives one form and you need the other, when checking a clock against minimum pulse-width limits, or when working out how much time each phase of a design that uses both clock edges really gets. Period and frequency are reciprocals, so halving one doubles the other.
A clock generator on a board runs with a 4 ns period, but its output is not quite symmetrical: the oscilloscope shows it high for 45% of each cycle. The logic it drives uses both edges, and the flip-flop datasheet asks for a pulse at least 2 ns wide in each state. Is the clock fit for it?
| You enter | Value |
|---|---|
| Clock Period | 4 ns |
| Duty Cycle | 45 % |
| The calculator returns | Value |
|---|---|
| Clock Frequency | 250.000 MHz |
| High Time | 1.800 ns |
| Low Time | 2.200 ns |
Worked by hand:
The clock runs at 250 MHz, but at 45% duty its high phase lasts only 1.80 ns, short of the 2 ns the flip-flops need, while the low phase of 2.20 ns is fine. Logic that works on one edge alone would not notice; logic that uses both edges gets only the shorter half. Even a perfect 50% clock would give 2.00 ns per phase, with no margin at all, so the real fix is a slower clock or faster parts, not just a duty-cycle correction.
Frequency tells you how many times per second a clocked system can act. The high and low times matter for anything that responds to a level or to both edges: each half of the cycle has to be long enough for whatever happens in it.
62.5 ns: 1,000 divided by 16. The same rule works in reverse, so a 62.5 ns period is a 16 MHz clock.
For single-edge logic it mostly does not, as long as each phase meets the minimum pulse width. It matters when both edges are used, and in circuits such as PWM outputs, where the fraction of time spent high sets the average output.
The period must be at least as long as the slowest path between two flip-flops: clock-to-Q delay plus logic delay plus setup time. The Flip-Flop Timing Margin calculator checks that budget for a given period.
Not for a clock: at 0% or 100% the signal never changes, so there are no edges to clock anything. The calculator accepts 1 to 99%.
PhDino earns a commission on qualifying purchases made through this link, at no extra cost to you.
Code: The Hidden Language of Computer Hardware and Software by Charles Petzold — Builds from switches and logic gates up to a working computer, one clear step at a time. (Bookshop.org UK, UK delivery only)
→ The full PhDino bookshelf on Bookshop.org (UK delivery only)
