keepcalculator

04 Electricity and Signals

Convert Nanoseconds to Hertz: The Reciprocal Formula

Card No. 04·0246 · Updated · Standard formula, shown below

Frequency 1,000,000,000.00 Hz
Frequency
1,000,000.00 kHz
Result
Frequency
1,000.00 MHz
Result
Period
1 ns
You entered
You enter
Period
You get
Frequency, Frequency, Frequency
Rounding
2 dp

To calculate hertz (Hz) from nanoseconds (ns), take the reciprocal of the time in seconds: Hz = 1,000,000,000 ÷ ns. Enter a period in nanoseconds to get its equivalent frequency in cycles per second; this calculator assumes the nanoseconds describe the time for one complete cycle.

Formula

Frequency and period are reciprocals: f = 1 / T, where f is frequency in hertz and T is the period in seconds. Since one nanosecond is 10-9 seconds, converting the input first gives:

f (Hz) = 1 / (ns × 10-9 seconds/ns) = 109 / ns

The calculator’s outputs are:

  • Frequency in Hz: 1,000,000,000 divided by the period in nanoseconds.
  • Frequency in kHz: the Hz result divided by 1,000.
  • Frequency in MHz: the Hz result divided by 1,000,000.

A hertz is one cycle per second. The input must be a positive period: zero nanoseconds cannot represent a finite cycle time, so it is excluded. The calculator allows periods up to 1,000,000,000,000 ns, or 1,000 seconds, a broad range that also makes very low frequencies representable.

Worked Example

With the default input, the period is 1 ns. Convert it to seconds:

1 ns × 10-9 s/ns = 0.000000001 s

Take the reciprocal to find the frequency:

f = 1 / 0.000000001 s = 1,000,000,000 Hz

Convert the same result to larger units:

  • 1,000,000,000 Hz ÷ 1,000 = 1,000,000.00 kHz
  • 1,000,000,000 Hz ÷ 1,000,000 = 1,000.00 MHz

These values describe the same frequency in different units. The calculator rounds the kHz and MHz displays to two decimal places; the Hz result is an exact integer for this example.

How to Use the Conversion

Enter the duration of one full repeating cycle, measured in nanoseconds. The first result is the frequency in hertz, followed by equivalent values in kilohertz and megahertz. For example, a period of 4 ns gives 250,000,000 Hz, or 250 MHz. A period of 20 ns gives 50,000,000 Hz, or 50 MHz.

The direction of the relationship can feel counterintuitive: a smaller period means cycles happen more often each second, so the frequency is higher. Doubling the period halves the frequency; reducing the period to one quarter makes the frequency four times larger.

Use this calculation when a repeating signal’s period is known but its frequency is wanted. It is also useful in reverse: if frequency is known, the period in nanoseconds is 1,000,000,000 ÷ frequency in Hz. For instance, 100 MHz corresponds to a period of 10 ns.

What Nanoseconds and Hertz Measure

A nanosecond is a unit of time equal to one billionth of a second: 1 ns = 10-9 s. The prefix “nano-” means one billionth. Hertz measures frequency, or how many repetitions occur in one second. The unit is named for physicist Heinrich Hertz.

Period and frequency describe different aspects of the same regular repetition. Period is the time taken by one cycle; frequency is the number of cycles per unit time. For a steady periodic signal, knowing either one determines the other. Common frequency prefixes include kilohertz (kHz), equal to 1,000 Hz, and megahertz (MHz), equal to 1,000,000 Hz. A gigahertz (GHz) is 1,000,000,000 Hz.

Thus, 1 ns per cycle is 1 GHz, not 1 Hz. A 1 Hz signal takes one second per cycle, which is 1,000,000,000 ns. These are reciprocal examples: multiplying period in seconds by frequency in hertz gives 1 for an ideal, repeating cycle.

Important Assumptions and Common Errors

The calculation is valid when the entered duration is the period of one complete cycle. It does not automatically convert every measurement labeled “ns” into a meaningful frequency. A pulse width, delay, rise time, or time interval between unrelated events is not necessarily a full cycle. Applying the reciprocal to one of those values may produce a number with units of Hz, but that number may not describe the signal’s actual repetition rate.

  • Convert units correctly. The formula uses nanoseconds. If the time is in microseconds, milliseconds, or seconds, convert it to nanoseconds first, or use the matching reciprocal formula.
  • Do not multiply by a billion. For a period in ns, divide 1,000,000,000 by the period. Equivalently, multiply by 109 only when converting ns to seconds, then take the reciprocal.
  • Keep the prefixes straight. 1 GHz is one billion Hz; 1 MHz is one million Hz. A value expressed in MHz is not the same numerical value as its value in Hz.
  • Interpret rounding appropriately. Displayed decimal places are formatting, not evidence that the original timing measurement is exact. Measurement uncertainty in the period affects the calculated frequency.

For a changing or irregular signal, one period may not represent the whole signal. A variable period produces variable instantaneous frequency; an average frequency requires a defined measurement interval and a clear method for counting cycles. Likewise, a signal with several frequency components cannot be summarized by taking the reciprocal of an arbitrary time feature.

Frequently Asked Questions

How many hertz is 1 ns?
One nanosecond per cycle corresponds to 1,000,000,000 Hz, which is 1 GHz.

What is the formula for converting ns to Hz?
Divide 1,000,000,000 by the period in nanoseconds: Hz = 109 ÷ ns.

How many nanoseconds are in one hertz?
A frequency of 1 Hz has a period of one second, equal to 1,000,000,000 ns.

Is 10 ns equal to 100 MHz?
Yes, if 10 ns is the duration of one complete cycle. The reciprocal gives 1,000,000,000 ÷ 10 = 100,000,000 Hz, or 100 MHz.

Can I convert a pulse width in ns to Hz?
Not by itself. Pulse width is the duration of a pulse, while frequency depends on the time between corresponding points in successive cycles. Use the full period when calculating repetition frequency.

Why does a shorter nanosecond period mean more hertz?
Frequency counts cycles per second. If each cycle takes less time, more cycles fit into one second, so the reciprocal—and therefore the frequency—increases.

Related

Formula used
in ns | Period | ns | 1 | 0 | 1000000000000
out hz | Frequency | Hz | 1000000000 / ns | 2
out khz | Frequency | kHz | hz / 1000 | 2
out mhz | Frequency | MHz | hz / 1000000 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Electricity and Signals drawer →