Enter the frequency in megahertz and the number of cycles into the calculator to determine the equivalent time in nanoseconds.

MHz to ns Converter

Enter the frequency in MHz and choose the number of cycles to calculate the elapsed time in nanoseconds.

For one cycle, the period in nanoseconds is calculated as ns = 1000 / MHz. For multiple cycles, multiply by the number of cycles.

MHz to ns Formula

The following formula is used to calculate the time in nanoseconds from a frequency in megahertz.

ns = (1000 × C) / MHz

For a single cycle, this simplifies to:

ns = 1000 / MHz

Variables:

  • ns is the elapsed time in nanoseconds
  • MHz is the frequency in megahertz
  • C is the number of cycles

To calculate nanoseconds from megahertz, divide 1000 by the frequency in MHz and multiply by the number of cycles if more than one cycle is needed.

What is MHz to ns Conversion?

MHz to ns conversion is the process of converting a signal frequency into its corresponding time period. Megahertz measures how many millions of cycles occur per second, while nanoseconds measure the duration of those cycles. Because frequency and period are reciprocals, a higher frequency always produces a smaller period, and a lower frequency produces a larger period.

How to Calculate MHz to ns?

The following steps outline how to calculate nanoseconds from megahertz.


  1. First, determine the frequency in megahertz (MHz).
  2. Next, divide 1000 by the frequency to find the time for one cycle in nanoseconds.
  3. If needed, multiply the one-cycle result by the total number of cycles.
  4. After inserting the values and calculating the result, check your answer with the calculator above.

Example Problem: 

Use the following variables as an example problem to test your knowledge.

Frequency (MHz) = 50

Number of Cycles (C) = 1

Time (ns) = 1000 / 50 = 20 ns

MHz to ns Conversion Table

The table below lists common megahertz values and their corresponding period in nanoseconds for one cycle.

Frequency (MHz) Period (ns, 1 cycle)
1 1000 ns
5 200 ns
10 100 ns
25 40 ns
50 20 ns
100 10 ns
200 5 ns
500 2 ns
1000 1 ns

In electronics, digital design, and timing analysis, specifications are often given as either frequency in MHz or period in ns. Converting between these values helps interpret datasheets, compare signal timings, and understand how quickly repeating events occur in a system.