Frequency Calculator Hz: Convert Period to Hertz
- Period in ms
- ms
- Result
- Period
- 0.02 seconds
- You entered
- Number of cycles
- 1
- You entered
A frequency calculator in Hz (hertz) works out how many cycles of a repeating event occur per second. You enter the period (the time for one complete cycle) or the number of cycles and the time span, and the calculator returns the frequency in hertz, along with the equivalent in kilohertz, megahertz, or gigahertz when relevant. This page explains the formula, shows a worked example, and covers common pitfalls when converting between period and frequency.
Formula
The fundamental relationship between frequency and period is:
f = n / t
Where:
- f = frequency in hertz (Hz), which is cycles per second
- n = number of cycles (dimensionless)
- t = total time for those cycles in seconds (s)
If you are dealing with a single cycle (n = 1), the formula simplifies to f = 1 / t. For example, a period of 0.02 seconds gives a frequency of 1 / 0.02 = 50 Hz.
Worked Example
Using the default values from the calculator above (t = 0.02 s, n = 1):
- Start with the formula: f = n / t
- Plug in the numbers: f = 1 / 0.02
- Divide: 1 ÷ 0.02 = 50
- Result: f = 50 Hz
The calculator also shows the period in milliseconds: 0.02 s × 1000 = 20 ms. This matches the common 50 Hz mains frequency used in many parts of the world, where each cycle lasts 20 ms.
How to Use the Calculator
Enter the period in seconds (or the time for multiple cycles) and the number of cycles. The calculator returns the frequency in hertz. If you have a time in milliseconds, convert it to seconds first by dividing by 1000. For example, a period of 5 ms is 0.005 s, giving f = 1 / 0.005 = 200 Hz.
You can also use it in reverse: if you know the frequency, you can find the period by t = n / f. For instance, a 60 Hz signal has a period of 1/60 ≈ 0.01667 s, or 16.67 ms.
Common Mistakes and How to Avoid Them
- Mixing units: The most frequent error is entering a period in milliseconds without converting to seconds. Always convert to seconds before dividing.
- Confusing frequency and period: Remember that frequency is cycles per second, while period is seconds per cycle. They are reciprocals (for n = 1).
- Forgetting multiple cycles: If you time 10 cycles in 2 seconds, the frequency is 10/2 = 5 Hz, not 1/2 = 0.5 Hz. The formula f = n/t accounts for this.
- Rounding too early: When doing multi-step conversions, keep extra digits until the final answer to avoid rounding errors.
When to Use Frequency in Hertz
Hertz is the SI unit for frequency, used in virtually every technical field. Common applications include:
- Audio: Sound wave frequencies range from about 20 Hz to 20 kHz (20,000 Hz). A 440 Hz tone is the standard tuning note for musical instruments.
- Radio and wireless: FM radio broadcasts operate around 88–108 MHz (megahertz), while Wi-Fi uses 2.4 GHz or 5 GHz (gigahertz).
- Electrical power: Mains electricity is 50 Hz in Europe and much of Asia, and 60 Hz in North America and parts of South America.
- Computing: CPU clock speeds are often measured in gigahertz (GHz), e.g., 3.5 GHz means 3.5 billion cycles per second.
Limits of the Formula
The formula f = n/t assumes a constant, repeating cycle. It works for sine waves, square waves, and any periodic signal. However, it does not apply to non-repeating events or to signals with varying frequency over time. For those, you would need more advanced analysis like Fourier transforms or instantaneous frequency estimation.
Also note that the calculator gives the average frequency over the measured time. If the signal is not perfectly stable, the result is an average, not an instantaneous value.
Frequently Asked Questions
How do I convert from Hz to kHz, MHz, or GHz?
Divide by 1000 for each step up: 1 kHz = 1000 Hz, 1 MHz = 1,000,000 Hz, 1 GHz = 1,000,000,000 Hz. For example, 2.5 MHz = 2,500,000 Hz. To go the other way, multiply by the same factors.
What is the difference between Hz and BPM (beats per minute)?
BPM is a measure of tempo in music, counting beats per minute. To convert BPM to Hz, divide by 60. For example, 120 BPM = 2 Hz. Conversely, multiply Hz by 60 to get BPM. This is useful for musicians and DJs.
Can I use this calculator for angular frequency (rad/s)?
No, angular frequency (ω) is measured in radians per second and is related to frequency by ω = 2πf. To convert from Hz to rad/s, multiply by 2π (about 6.283). For example, 50 Hz corresponds to ω ≈ 314.16 rad/s.
Why is 440 Hz the standard tuning pitch?
440 Hz for the A above middle C was internationally standardized in 1955 (ISO 16). It is a convention, not a law of physics; some orchestras tune slightly higher or lower for historical or acoustic reasons. The calculator works for any frequency, not just standard pitches.
What does “cycles per second” really mean?
It means how many complete repetitions of a waveform occur in one second. For a simple sine wave, one cycle is one full rise and fall. For a digital clock signal, one cycle is one high and low transition. The period is the duration of one such cycle.
How do I measure frequency with an oscilloscope?
Measure the time between two corresponding points on consecutive cycles (e.g., peak to peak). That time is the period. Then take the reciprocal to get frequency. Many oscilloscopes have a built-in frequency measurement that does this automatically. Ensure the time base is set correctly to get an accurate reading.
Related
Formula used
in t | Period | seconds | 0.02 | 0 in n | Number of cycles | - | 1 | 1 out f | Frequency | Hz | n / t | 2 out period_ms | Period in ms | ms | t * 1000 | 2
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.