Frequency Calculator Math: Formula & Examples
- Period
- s
- Result
- Period (T)
- 0.02 s
- You entered
- Frequency (f)
- 50 Hz
- You entered
This calculator computes the frequency of a wave from its period, or the period from the frequency, using the standard physics formulas. You enter either the time for one complete cycle (the period) or the number of cycles per second (the frequency), and you get the corresponding value in hertz or seconds. The math is simple division, but the units and prefixes often trip people up, so this page also explains how to handle milliseconds, megahertz, and everything in between.
Formula
The core relationship is:
f = 1 / T and T = 1 / f
- f = frequency, in hertz (Hz) — the number of complete cycles per second.
- T = period, in seconds (s) — the time for one complete cycle.
This works for any repeating wave: sound, light, radio, alternating current, or a pendulum. The two are reciprocals, so if one gets larger, the other gets smaller. A wave with a period of 0.5 seconds has a frequency of 2 Hz; a wave with a frequency of 1000 Hz has a period of 0.001 seconds.
Worked Example
Using the calculator defaults: a period T = 0.02 s (20 milliseconds).
Step 1: Write the formula. f = 1 / T
Step 2: Substitute. f = 1 / 0.02
Step 3: Divide. f = 50 Hz
So a period of 0.02 seconds corresponds to a frequency of 50 Hz — the standard mains electricity frequency in many countries. The calculator rounds the output to 3 decimal places, so it shows 50.000 Hz. If instead you enter a frequency of 50 Hz, the period comes out as 1 / 50 = 0.02 s (shown as 0.0200 s with 4 decimal places).
Why Frequency and Period Are Reciprocals
Imagine a wheel spinning once per second. Each full rotation is one cycle. The period is 1 second, and the frequency is 1 cycle per second, or 1 Hz. Now spin it twice as fast: each cycle takes 0.5 seconds, so the frequency is 2 Hz. The product of the two is always 1 (in compatible units). That is the entire math — there is no hidden constant.
This relationship holds for any periodic signal. In electronics, a 60 Hz power line has a period of about 16.67 ms. A 2.4 GHz Wi-Fi signal has a period of about 0.42 nanoseconds. The same formula applies across 20 orders of magnitude.
Common Unit Mistakes
The most frequent error is mixing prefixes. If someone says a signal has a period of 5 ms, you must convert to seconds first: 5 ms = 0.005 s. Then f = 1 / 0.005 = 200 Hz. If you forget the milli- prefix and use 5, you get 0.2 Hz — wrong by a factor of 1000.
- 1 ms = 0.001 s
- 1 µs = 0.000001 s
- 1 ns = 0.000000001 s
- 1 kHz = 1000 Hz
- 1 MHz = 1,000,000 Hz
- 1 GHz = 1,000,000,000 Hz
Also note that angular frequency (ω, in radians per second) is different: ω = 2πf. This calculator gives ordinary frequency in hertz, not angular frequency. If you are working with equations like v = ωr or XL = ωL, use ω = 2πf, not f directly.
How to Read the Result
The frequency tells you how many cycles occur each second. A higher frequency means more cycles per second, which usually means a shorter period. The result is the reciprocal, so if your period is extremely small (like 0.000001 s), the frequency is extremely large (1,000,000 Hz).
When you measure a period experimentally, you often time multiple cycles and divide by the count. For example, if 10 cycles take 0.2 seconds, the period is 0.02 s and the frequency is 50 Hz. This averaging reduces timing error.
In alternating current, the period is the time for one full positive-and-negative cycle. In sound, the period is the time for one compression-and-rarefaction cycle. In light, the period is the time for one electromagnetic oscillation. The math is identical.
Limits of the Formula
The simple reciprocal formula assumes a perfectly periodic, steady signal. Real signals may drift, have noise, or contain multiple frequencies. For a non-sinusoidal wave (like a square wave), the fundamental frequency is still the reciprocal of the period, but the waveform also contains harmonics. The formula does not describe those harmonics.
Also, the formula gives the instantaneous relationship. If the frequency changes over time (a chirp in radar, a musical note bending), the period at any instant is still 1/f, but you need a time-varying definition to describe it fully.
Finally, this is a purely mathematical conversion. It does not account for propagation speed, wavelength, or medium. To find wavelength, you would need the speed of the wave (e.g., speed of light for electromagnetic waves, speed of sound for acoustic waves). This calculator only converts between time and rate.
Why Use a Calculator
Doing the reciprocal in your head is easy for round numbers, but less so for values like 0.0000000004 seconds. A calculator avoids arithmetic slips and handles the decimal places automatically. It also lets you quickly explore: what period gives 60 Hz? What frequency gives 16.67 ms? The inputs are independent, so you can enter either one.
For engineering work, you often need more precision than the calculator shows. The formulas here are exact; the rounding is only for display. If you need more digits, use the raw expression 1/T or 1/f in your own tool.
Frequently Asked Questions
How do I convert frequency to period in milliseconds?
First compute T = 1/f in seconds, then multiply by 1000 to get milliseconds. For example, 50 Hz gives T = 0.02 s = 20 ms. Conversely, if you have a period in milliseconds, divide by 1000 to get seconds before taking the reciprocal.
What is the difference between frequency and angular frequency?
Frequency (f) counts cycles per second, in hertz. Angular frequency (ω) measures radians per second, where one full cycle is 2π radians. The conversion is ω = 2πf. Many physics and engineering equations use ω, so always check which one a formula expects.
Why do I get a huge number when I enter a tiny period?
Because they are reciprocals. A period of 1 nanosecond (1e-9 s) gives a frequency of 1e9 Hz, or 1 GHz. This is normal — extremely fast oscillations have extremely short periods.
Can I use this for sound waves or light waves?
Yes, the period-frequency relationship applies to any periodic wave. However, to convert frequency to wavelength, you need the wave speed. For sound in air at room temperature, that is roughly 343 m/s; for light in vacuum, it is 299,792,458 m/s. This calculator only handles the time-rate part.
What if my signal is not a perfect sine wave?
The fundamental frequency is still the reciprocal of the period of the repeating pattern. But a square wave, triangle wave, or pulse train contains harmonics at integer multiples of the fundamental. The simple formula gives the fundamental only.
How do I measure the period of a signal on an oscilloscope?
Measure the time between two identical points on consecutive cycles, such as two rising edges crossing the same voltage level. That time is the period. Then take the reciprocal to get frequency. Many oscilloscopes do this automatically.
Related
Formula used
in t | Period (T) | s | 0.02 | 0 in f | Frequency (f) | Hz | 50 | 0 out freq | Frequency | Hz | 1 / t | 3 out per | Period | s | 1 / f | 4
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.