How to Calculate Frequency
- Frequency
- kHz
- Result
- Frequency
- MHz
- Result
- Period
- 0.01 s
- You entered
This calculator works out the frequency of a repeating event when you know its period (the time for one complete cycle). You enter the period in seconds, milliseconds, microseconds, or nanoseconds, and you get the frequency in hertz, kilohertz, megahertz, or gigahertz. The formula is straightforward: frequency equals 1 divided by the period.
Formula
The relationship between frequency (f) and period (T) is:
f = 1 / T
- f = frequency in hertz (Hz) – the number of cycles per second
- T = period in seconds (s) – the time for one complete cycle
If you measure the period in milliseconds, microseconds, or nanoseconds, first convert it to seconds by multiplying by 0.001, 0.000001, or 0.000000001 respectively.
Worked Example
Using the default values from the calculator: period = 0.01 seconds.
Step 1: Identify the period. T = 0.01 s (already in seconds).
Step 2: Apply the formula f = 1 / T.
Step 3: f = 1 / 0.01 = 100 Hz.
Step 4: Convert to kHz: 100 Hz / 1000 = 0.1 kHz. To MHz: 100 / 1,000,000 = 0.0001 MHz.
The calculator shows frequency = 100.0000 Hz, which matches.
When to Use This Calculation
You use this whenever you have the time for one complete cycle and need to know how many cycles occur per second. Common situations include:
- Determining the frequency of a sound wave from its period.
- Working out the frequency of an alternating current (AC) signal on an oscilloscope.
- Finding the refresh rate of a display if you know the time between frames.
- Calculating the frequency of a pendulum or any periodic motion.
How to Read the Result
The main result is in hertz (Hz), which means cycles per second. A frequency of 50 Hz means 50 complete cycles happen every second. The additional outputs give the same value in kilohertz (kHz) and megahertz (MHz) for convenience – 1 kHz = 1000 Hz, 1 MHz = 1,000,000 Hz. Choose the unit that matches the scale of your signal; for example, audio frequencies are often in the hundreds or thousands of Hz, while radio signals are in MHz or GHz.
Common Mistakes
- Mixing up period and frequency: The period is the time per cycle, not the number of cycles per time. Always divide 1 by the period, not the other way around.
- Forgetting to convert units: If you enter a period in milliseconds but treat it as seconds, the result will be off by a factor of 1000. Always check the unit you selected.
- Using the wrong reciprocal: For a period of 0.5 s, the frequency is 2 Hz, not 0.5 Hz. A common error is to simply invert the number without understanding the units.
- Rounding too early: If you round the period to a shorter decimal before calculating, the frequency can be significantly off. Keep full precision until the final step.
Tips
- When measuring the period from an oscilloscope, count several cycles and divide by the number of cycles to get a more accurate average period.
- Use the unit that makes the period a convenient number – for example, if the period is 0.0002 seconds, enter it as 200 microseconds to avoid many decimal places.
- Remember that frequency and period are reciprocals: if you know one, you always know the other. A quick mental check – a shorter period means a higher frequency.
- For very high frequencies (like radio waves), you may want to work in megahertz or gigahertz directly. The calculator gives you those conversions automatically.
Limitations of the Formula
The formula f = 1/T applies to perfectly periodic signals – ones that repeat identically. It does not apply to non-repeating or random signals. Also, the period must be non-zero; a zero period would imply infinite frequency, which is physically impossible. In practice, measurements always have some uncertainty, so the calculated frequency inherits that uncertainty. For example, if your period measurement has a 5% error, the frequency will also have roughly a 5% error.
Troubleshooting
If you get an error or a zero result: Check that the period is not zero or negative. A zero period cannot be used. Enter a positive number.
If the frequency seems too high or too low: Verify the unit you selected for the period. A period of 1 millisecond should give 1000 Hz, not 1 Hz. Double-check the unit dropdown.
If you are unsure about the period: Measure it again using a reliable timer or oscilloscope. For very short periods, use a high-speed measurement tool.
If the result shows too many decimal places: The calculator rounds to 4 decimal places by default. You can round further for your own use, but keep the full precision for calculations.
Frequently Asked Questions
What is the difference between period and frequency?
The period is the duration of one cycle (e.g., 0.02 seconds). The frequency is how many cycles occur in one second (e.g., 50 Hz). They are reciprocals: f = 1/T and T = 1/f.
How do I convert frequency from Hz to kHz or MHz?
Divide by 1000 to get kHz, or by 1,000,000 to get MHz. For example, 2500 Hz = 2.5 kHz = 0.0025 MHz.
Can I calculate frequency if I only know the wavelength and speed?
Yes, for a wave, frequency = speed / wavelength. This calculator uses period, but if you know the speed (e.g., speed of light) and wavelength, you can compute the period as wavelength / speed and then use this calculator.
What units can I use for the period?
This calculator accepts seconds, milliseconds, microseconds, and nanoseconds. Choose the one that matches your measurement. The result is always in hertz, with additional outputs in kHz and MHz.
Why is the frequency sometimes shown as a very small number?
If the period is long (e.g., 2 seconds), the frequency is 0.5 Hz. That is correct – a slow repetition rate. For example, a pendulum with a 2-second period has a frequency of 0.5 Hz.
Does the formula work for any repeating event?
Yes, as long as the event repeats with a constant period. It works for sound waves, AC electricity, rotating machinery, and even heartbeats. For irregular events, you would need an average period over many cycles.
Related
Formula used
in t | Period | s | 0.01 | 0 sel u | Period unit | seconds=1, milliseconds=0.001, microseconds=0.000001, nanoseconds=0.000000001 out f | Frequency | Hz | 1 / (t * u) | 4 out fk | Frequency | kHz | (1 / (t * u)) / 1000 | 4 out fm | Frequency | MHz | (1 / (t * u)) / 1000000 | 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.