To convert milliseconds (ms) to hertz (Hz), divide 1,000 by the time in milliseconds, provided that time represents one complete, repeating cycle. Enter the cycle duration in ms to get its frequency in cycles per second; for example, 20 ms corresponds to 50 Hz.
Formula
The conversion uses the reciprocal relationship between period and frequency:
f = 1 / T, or, when the period is entered in milliseconds, f (Hz) = 1,000 / T (ms).
- f is frequency in hertz (Hz), meaning cycles per second.
- T is the period or duration of one complete cycle in seconds. The input is in milliseconds (ms), where 1,000 ms = 1 second.
The calculator also displays the entered period converted to seconds. Its frequency result is rounded to two decimal places. A zero duration is not allowed because division by zero is undefined.
Worked Example
Using the calculator’s default period of 20 ms:
- Convert the period to seconds: 20 ÷ 1,000 = 0.020000 s.
- Apply the reciprocal formula: 1 ÷ 0.020000 = 50 cycles per second.
- Express cycles per second as hertz: 50 Hz.
The calculator therefore returns 50 Hz and 0.020000 s.
What Milliseconds and Hertz Measure
A millisecond is a unit of time: one thousandth of a second. Hertz is a unit of frequency: one cycle occurring each second. They describe different quantities, so there is no direct conversion between an arbitrary time interval and frequency unless the interval is the period of a repeating event.
For a regularly repeating signal, the period is the time from one point in a cycle to the same point in the next cycle. If a signal completes one cycle every 0.02 seconds, it completes 50 cycles in one second. That is 50 Hz. Shorter periods mean higher frequencies; longer periods mean lower frequencies.
In everyday technical contexts, Hz may describe a repeating electrical signal, a vibration, or a regularly timed digital event. The conversion itself is the same in each case, but the input must genuinely represent one cycle. A duration such as “the signal was active for 20 ms” is not necessarily a 20 ms period: it could instead be the length of a single pulse.
How to Use the Converter
- Identify the time for one complete cycle, not merely an unrelated elapsed time or the length of a partial cycle.
- Enter that duration in milliseconds. If your measurement is in seconds, multiply it by 1,000 first; if it is in microseconds, divide it by 1,000 to obtain milliseconds.
- Read the frequency in Hz. The additional seconds result can help you check the unit conversion.
For example, a period of 2.5 ms gives 1,000 ÷ 2.5 = 400 Hz. A period of 250 ms gives 1,000 ÷ 250 = 4 Hz. A period of 1,000 ms is one second, so its frequency is 1 Hz.
Reading Results and Converting Other Units
Hertz means “per second.” Larger frequency units can make high values easier to read: 1 kilohertz (kHz) is 1,000 Hz, and 1 megahertz (MHz) is 1,000,000 Hz. Thus 20,000 Hz is 20 kHz. To convert a result from Hz to kHz, divide by 1,000; to convert kHz to Hz, multiply by 1,000.
For very short periods, converting the input unit carefully matters. One microsecond (µs) is 0.001 ms, so a period of 100 µs is 0.1 ms and corresponds to 10,000 Hz, or 10 kHz. Do not enter 100 as though it were milliseconds: that would describe a period 1,000 times longer and produce 10 Hz.
Frequency and period are reciprocals, not quantities that increase together. Doubling the period halves the frequency. For example, changing a cycle from 10 ms to 20 ms changes its frequency from 100 Hz to 50 Hz.
Common Mistakes and Limits
- Using a non-period duration: The formula applies to one complete repeating cycle. A pulse width, delay, or total recording length alone does not determine frequency.
- Mixing units: This calculator expects milliseconds. Entering seconds or microseconds without conversion creates a result off by a factor of 1,000.
- Confusing period with frequency: A value of 20 ms is not 20 Hz. Its reciprocal is 50 Hz.
- Assuming a changing signal has one exact frequency: If cycle lengths vary, a single period may not represent the whole signal. Measurements or analysis methods suited to varying signals may be needed.
- Relying on displayed precision: The result is rounded to two decimal places. Rounding does not improve the accuracy of the original timing measurement.
The calculation assumes a positive period and a regular repeating cycle. It does not measure a signal or decide whether an observed duration is a full cycle; those depend on the source and measurement method. If a measured period is uncertain, the calculated frequency is uncertain too. As a useful approximation for small errors, a relative timing error of 1% produces roughly a 1% frequency error in the opposite direction.
Frequently Asked Questions
How many Hz is 1 ms?
One millisecond is 0.001 seconds. If it is the period of one complete cycle, the frequency is 1 ÷ 0.001 = 1,000 Hz, or 1 kHz.
How do I convert 10 ms to Hz?
Divide 1,000 by 10. A 10 ms cycle period corresponds to 100 Hz.
Can I convert any number of milliseconds to Hz?
You can calculate a reciprocal, but it represents a frequency only when the milliseconds describe one complete cycle. An arbitrary duration does not necessarily define a repeating rate.
Is 50 ms equal to 50 Hz?
No. If 50 ms is the period, frequency is 1,000 ÷ 50 = 20 Hz. Milliseconds measure time; hertz measures cycles per second.
How do I convert Hz back to milliseconds?
Use the inverse relationship: period in milliseconds = 1,000 ÷ frequency in Hz. For instance, 25 Hz has a period of 40 ms.
Related
Formula used
in ms | Cycle duration | ms | 20 | 0.000001 out hz | Frequency | Hz | 1000 / ms | 2 out sec | Cycle duration | s | ms / 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
- Resolution Bandwidth Calculator: RBW Explained1,000.00 Hz
- RC Parallel Impedance Calculator for Speakers1.56 ohm
- RF Frequency Range Calculator: Find the Band20.000 MHz
- Equivalent Impedance: How to Calculate It30.00 ohm
- Capacitor Calculation: Find Capacitance and Charge
- Gaussian Beam Focusing Calculator With Temperature16.93 um