keepcalculator

06 Numbers and Powers

Convert Hz to Milliseconds: Formula & Calculator

Card No. 06·88845 · Updated · Standard formula, shown below

Period 20.000000 ms
Frequency
50 Hz
You entered
You enter
Frequency
You get
Period
Rounding
6 dp

This calculator converts a frequency in hertz (Hz) to its period in milliseconds (ms). You enter the frequency, and you get back the time for one complete cycle. The core formula is simple: period (seconds) = 1 / frequency (Hz), then converted to milliseconds.

Formula

The relationship between frequency and period is one of the most fundamental in physics and engineering:

T (seconds) = 1 / f (Hz)

To get the period in milliseconds, multiply by 1000 (since 1 second = 1000 milliseconds):

T (ms) = (1 / f) × 1000

  • f = frequency in hertz (Hz), the number of cycles per second.
  • T = period in milliseconds (ms), the duration of one cycle.

So if a signal has a frequency of 50 Hz, each cycle takes 1/50 of a second, or 20 ms. The calculator above does exactly this for any frequency you enter.

Worked Example

Let’s use the default value from the calculator: 50 Hz.

  1. Start with the formula: T (s) = 1 / f
  2. Plug in the frequency: T (s) = 1 / 50 = 0.02 seconds
  3. Convert to milliseconds: T (ms) = 0.02 × 1000 = 20 ms

The calculator shows 20 ms for 50 Hz, matching our manual calculation.

Why Convert Hz to Milliseconds?

Frequency (Hz) tells you how many cycles happen in one second. Period (ms) tells you how long one cycle lasts. They are two sides of the same coin, but sometimes one is more intuitive than the other.

For example, a 60 Hz power grid has a period of about 16.67 ms. An audio tone of 1 kHz (1000 Hz) has a period of 1 ms. A microcontroller running at 16 MHz (16,000,000 Hz) has a clock period of 62.5 nanoseconds, which is 0.0625 ms.

In electronics, timing diagrams often show delays and pulse widths in milliseconds or microseconds. If you know the clock frequency, converting to period helps you calculate how many clock cycles a given delay requires, or how fast a signal can toggle.

How to Choose the Right Unit

Hz and ms are both standard units, but the choice depends on the scale you’re working with:

  • Low frequencies (1–100 Hz): Period is often in milliseconds (10–1000 ms). This range includes mains power (50/60 Hz), audio bass notes, and heartbeats.
  • Audio frequencies (20 Hz–20 kHz): Period ranges from 50 ms down to 0.05 ms. Milliseconds are common, but microseconds are sometimes used for the highest notes.
  • Radio frequencies (MHz–GHz): Period is in microseconds, nanoseconds, or picoseconds. Millisecond conversions are rarely used, but the same formula applies.

If you’re working with very high frequencies, you might convert to microseconds (µs) or nanoseconds (ns) instead. Just remember: 1 ms = 1000 µs = 1,000,000 ns.

Common Mistakes and Misconceptions

The most common error is mixing up the reciprocal relationship. Frequency and period are inversely proportional, not directly proportional. Doubling the frequency halves the period, not doubles it.

Another frequent mistake is forgetting the unit conversion. If you compute 1/f and get seconds, you must multiply by 1000 to get milliseconds. For example, 1/1000 Hz = 0.001 seconds = 1 ms. Some people mistakenly say 0.001 ms, which is wrong by a factor of 1000.

Also, be careful with prefixes. 1 kHz = 1000 Hz, not 1024 Hz. 1 MHz = 1,000,000 Hz. Always convert to base hertz before using the formula.

Finally, note that the formula applies to periodic signals, like sine waves or square waves. For non-periodic events, like a single pulse, the concept of frequency doesn’t directly apply, and you’d measure the pulse width directly.

Practical Applications

Here are some real-world scenarios where you’d convert Hz to ms:

  • Audio production: Setting delay times. If you want a delay that syncs to a 120 BPM beat, that’s 500 ms per beat. But if you’re working with a specific frequency, converting to period helps with phase alignment.
  • Embedded systems: Calculating timer overflows. A timer running at 1 kHz generates an interrupt every 1 ms. If you need a 5 ms delay, you need 5 timer ticks.
  • Power electronics: Understanding switching frequencies. A 100 kHz switching regulator has a period of 10 µs (0.01 ms). This affects component sizing and ripple.
  • Signal processing: Determining the duration of one sample. If you sample at 44.1 kHz, each sample lasts about 22.7 µs (0.0227 ms).

Limitations of the Formula

The formula T = 1/f assumes a constant, stable frequency. In real signals, frequency can drift or vary over time, so the period may not be perfectly uniform. For example, a power grid frequency can vary slightly around 50 or 60 Hz, so the period varies accordingly.

Also, the formula gives the period of a single cycle, but if you’re measuring a signal with noise or jitter, the actual period may fluctuate cycle-to-cycle. In that case, you’d measure many periods and average them.

Finally, the calculator works for any positive frequency, but extremely high or low values may hit practical limits in measurement equipment. For most everyday applications, though, the simple reciprocal relationship is all you need.

Frequently Asked Questions

How many milliseconds is 1 Hz?

1 Hz means one cycle per second, so the period is 1 second, which is 1000 milliseconds.

How do I convert Hz to ms in Excel?

In Excel, if your frequency is in cell A1, enter the formula =1000/A1 to get the period in milliseconds. For example, =1000/50 returns 20.

Is 60 Hz equal to 16.67 ms?

Yes. 1/60 seconds = 0.016666… seconds, which is 16.666… ms. Rounded to two decimal places, it’s 16.67 ms.

What is the period of 50 Hz?

The period is 20 ms, because 1/50 second = 0.02 seconds = 20 ms.

Can I convert ms to Hz using the same calculator?

Yes, just invert the formula. If you have a period in milliseconds, divide 1000 by the period in ms to get Hz. For example, 10 ms → 1000/10 = 100 Hz.

Why do we use milliseconds instead of seconds for frequency?

Milliseconds are more convenient for frequencies in the range of 1 Hz to 1000 Hz, where the period is between 1 ms and 1000 ms. Using seconds would give decimals like 0.02 s, which is less intuitive than 20 ms.

Related

Formula used
in f | Frequency | Hz | 50 | 0.000001 | 1000000000
out ms | Period | ms | (1 / f) * 1000 | 6

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 Numbers and Powers drawer →