CLASSROOM MOTION WORKSHEETS

Checking frequency from a period given in milliseconds

The Frequency Calculator takes a period in seconds. A period given in milliseconds has to be converted first, or the frequency comes out wrong by a factor of 1,000.

Frequency is the reciprocal of a period in seconds

The Frequency Calculator computes frequency = 1 / period and returns hertz when the period is in seconds. A hertz is one cycle per second. If a signal repeats every 20 milliseconds, the period in seconds is 0.02, and the frequency is 1 / 0.02 = 50 Hz. The calculator has no way to know that the number you typed was meant in milliseconds, so the conversion is your job. The Time converter on this site handles it: 20 milliseconds converts to 0.02 second. Doing the conversion in a separate step also leaves a visible record of where the unit changed.

What happens if you skip the conversion

Typing 20 into the period field treats the value as 20 seconds. The reciprocal is 1 / 20 = 0.05, so the calculator reports 0.05 Hz. That is a perfectly valid answer to a different question, a signal with a period of 20 seconds, which repeats once every 20 seconds. The error is a factor of 1,000, exactly the factor between seconds and milliseconds, because the reciprocal inverts the scale. The correct 50 Hz and the incorrect 0.05 Hz differ by that factor of 1,000, which is a reliable signature of an unconverted milli prefix.

More conversions to practice

A period of 5 milliseconds is 0.005 second and gives 200 Hz. A period of 1 millisecond is 0.001 second and gives 1,000 Hz, or 1 kHz. A period of 2 milliseconds gives 500 Hz, and a period of 250 milliseconds is 0.25 second and gives 4 Hz. Going the other way, a period of 16.667 milliseconds is 0.016667 second, which gives about 60 Hz. Each pair satisfies frequency times period equals one, with the period in seconds. The Time converter confirms the first step for each, and the Frequency Calculator completes the second.

Mains and display examples

Power systems give familiar examples. A 50 Hz supply has a period of 20 milliseconds, as in this guide, and a 60 Hz supply has a period close to 16.67 milliseconds. Both frequencies are in use in different parts of the world. Video refresh rates work the same way: a display refreshing 60 times per second updates about every 16.67 milliseconds. These are only illustrations of the arithmetic. The calculators do not identify a power system, a standard or a device, and a frequency quoted for a real supply should be checked against the utility or the equipment documentation.

Prefixes and powers of ten

The prefix milli means one thousandth, so 1 millisecond is 0.001 second. Micro means one millionth, so a period of 100 microseconds is 0.0001 second and gives 10,000 Hz. The reciprocal turns a small period into a large frequency, so each step of 1,000 in the period prefix moves the frequency in the opposite direction by 1,000. Remembering this relation catches mistakes quickly: a period in milliseconds should produce a frequency in the hundreds or thousands of hertz for periods of a few milliseconds, and a result of 0.2 Hz for a 5 ms period is a clear sign that the conversion was skipped. The SI Brochure from the BIPM lists these prefixes with their exact powers of ten, and the hertz is defined there as one cycle per second, which is why the reciprocal of a period in seconds lands directly in hertz without any extra factor.

Keeping the source unit visible

The mathematics is the same whether the period is entered in seconds or milliseconds, as long as the reciprocal is taken in a consistent unit. If you prefer to work with milliseconds, the reciprocal gives cycles per millisecond, and 1 / 20 = 0.05 cycles per millisecond, which equals 50 cycles per second. That agrees with the 50 Hz result and shows the source of the 0.05 figure. The confusion arises only when a number in milliseconds is labeled as seconds. Writing the unit next to each number in your notes, including intermediate values, prevents this. Consider a logic analyzer trace that shows a pulse repeating every 20 ms. Reading the axis as 20 and typing that into a seconds field is the error, whereas keeping 20 ms in the notes and converting at the moment of entry gives 0.02. Spreadsheet users can add a helper column that divides the millisecond value by 1,000 and feeds only that column to the reciprocal, so the conversion is visible in every row.

Choosing the right output unit

Large frequencies are usually reported with prefixes. 1,000 Hz is 1 kilohertz and 1,000,000 Hz is 1 megahertz. A 1 millisecond period gives 1 kHz, a 1 microsecond period gives 1 MHz. The Frequency Calculator returns hertz, so a result such as 200,000 may be better read as 200 kHz. The conversion is only a change of prefix and not a change of value. When comparing against a data sheet, check whether it states the frequency in hertz, kilohertz or megahertz and convert the calculator result to match.

Periods that are not exact

Measured periods carry uncertainty, and the reciprocal amplifies relative error equally, a 1 percent uncertainty in the period gives about a 1 percent uncertainty in the frequency. A reading of 20.2 milliseconds corresponds to about 49.5 Hz, not 50. Rounding the period before taking the reciprocal changes the answer in the same way, so keep the unrounded value in the calculation. For a repeating signal, timing several cycles and dividing by their number gives a better period than timing a single cycle.

What the conversion does not do

The calculators return numbers from the values you supply. They do not measure a physical signal, choose a sample rate, verify a device or check compliance with any standard. A frequency that comes from a period only describes a repeating pattern, and many real signals are not perfectly periodic. Use the guide to practice unit handling, and use instruments and documentation for real measurements. The worksheet also does not choose how a frequency should be reported. Some fields give it in hertz, some in cycles per minute, as with rpm or heart rate, and some in beats per minute. Converting a result in hertz to cycles per minute means multiplying by 60, so 50 Hz is 3,000 cycles per minute, a number that appears in discussions of rotating machinery running at mains frequency.

Reproduce the checks

Millisecond-to-second conversion

Open the Time converter and enter:

Value
20
From
milliseconds
To
second

Expected output:

Converted value

0.02

The period is converted before inversion.

Correct seconds input

Open the Frequency Calculator and enter:

Period
0.02

Expected output:

Frequency

50

The reciprocal has units per second.

Twenty-second control

Open the Frequency Calculator and enter:

Period
20

Expected output:

Frequency

0.05

This describes a different period.

References and implementation scope

The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.

Sources

Related tasks