Frequency and Wavelength Calculator: Formula & Examples
- Frequency (from wavelength)
- MHz
- Result
- Frequency
- 100 MHz
- You entered
- Wavelength
- 3 m
- You entered
This calculator converts between frequency and wavelength for electromagnetic waves in a vacuum or air. You enter either the frequency in hertz (Hz) or the wavelength in meters, and it returns the corresponding value using the speed of light. The tool also shows the calculation steps so you can verify the result by hand.
Formula
The fundamental relation is:
c = λ × f
where:
- c = speed of light ≈ 299,792,458 m/s (exact in a vacuum)
- λ (lambda) = wavelength in meters (m)
- f = frequency in hertz (Hz, cycles per second)
To find wavelength: λ = c / f. To find frequency: f = c / λ. The calculator uses the exact speed of light and lets you enter frequency in MHz (megahertz) or wavelength in meters; it converts internally to base units.
Worked Example
Using the default values: frequency = 100 MHz, wavelength = 3 m.
- Convert 100 MHz to Hz: 100 × 10� = 100,000,000 Hz.
- Calculate wavelength: λ = 299,792,458 / 100,000,000 = 2.9979 m.
- Calculate frequency from 3 m: f = 299,792,458 / 3 = 99,930,819.33 Hz = 99.9308 MHz.
So a 100 MHz signal has a wavelength of about 2.998 m, and a 3 m wave has a frequency of about 99.93 MHz. The calculator rounds to four decimal places as shown.
When to Use This Calculator
This tool is useful in radio communications, antenna design, physics homework, and any field dealing with electromagnetic waves (radio, microwaves, light, X-rays). You might need to know the wavelength to choose an antenna length (often a quarter or half wavelength), or you might have a wavelength from a diffraction experiment and need the frequency.
It works for any electromagnetic wave in a vacuum or air (the difference is negligible for most practical purposes). For sound waves or waves in cables, the speed is different, so the calculator would give wrong results – those cases need the actual propagation speed.
How to Read the Results
The first output is the wavelength derived from the frequency you entered; the second is the frequency derived from the wavelength you entered. If you enter both, the calculator shows both conversions independently – they are not linked, so you can check consistency. For example, if you enter 100 MHz and 3 m, you get 2.9979 m and 99.9308 MHz, which are slightly different because 3 m is not exactly the wavelength of 100 MHz.
Units matter: the calculator expects frequency in MHz and wavelength in meters. If you have frequency in GHz, divide by 1000 to get MHz (e.g., 2.4 GHz = 2400 MHz). If you have wavelength in centimeters, divide by 100 to get meters (e.g., 12 cm = 0.12 m).
Common Mistakes and Misconceptions
- Using the wrong speed: For sound in air (~343 m/s) or in cables (~2/3 of c), the result is completely off. This calculator is only for electromagnetic waves in free space.
- Unit confusion: Mixing MHz and Hz is the most frequent error. 1 MHz = 1,000,000 Hz. The calculator handles it, but if you do it by hand, always convert to Hz first.
- Rounding too early: Rounding the speed of light to 300,000,000 m/s gives a 0.07% error, which is fine for most purposes, but the calculator uses the exact value for precision.
- Thinking frequency and wavelength are independent: For a given wave, they are inversely proportional. Doubling frequency halves wavelength.
Limits of the Formula
The formula c = λf is exact for all electromagnetic waves in a vacuum. In air, the speed is about 0.03% lower, which is negligible for most engineering work. The formula does not apply to waves in a material medium (like glass or water) where the speed is significantly different; there you need the refractive index. Also, for extremely high frequencies (like gamma rays), the wave nature still holds, but practical measurements often involve energy (E = hf) rather than wavelength.
This calculator does not account for Doppler shifts, relativistic effects, or waveguides where the effective wavelength differs from free space. Those situations require more advanced formulas.
Frequently Asked Questions
How do I convert GHz to MHz for this calculator?
Multiply the GHz value by 1000. For example, 2.4 GHz = 2400 MHz. Enter 2400 in the frequency field. If you have a wavelength in nanometers (like visible light), convert to meters by dividing by 1,000,000,000 (e.g., 500 nm = 5 × 10�� m = 0.0000005 m).
What is the wavelength of 2.4 GHz Wi-Fi?
Using the exact speed of light: λ = 299,792,458 / 2,400,000,000 = 0.1249 m, or about 12.5 cm. This is why Wi-Fi antennas are often around 6 cm (quarter wave) or 12.5 cm (half wave).
Why does the calculator give different answers if I enter both frequency and wavelength?
Because the two outputs are independent. If you enter a frequency and a wavelength that do not correspond exactly (like 100 MHz and 3 m), the calculator shows the wavelength that matches the frequency (2.9979 m) and the frequency that matches the wavelength (99.9308 MHz). They are only equal if you enter a pair that satisfies c = λf exactly.
Can I use this for sound waves?
No, because sound waves travel at about 343 m/s in air, not at the speed of light. You would need a different speed value. The calculator is specifically for electromagnetic waves. For sound, use the formula with the actual speed (e.g., 343 m/s) and the same relationship.
What is the relationship between wavelength and antenna length?
For a simple dipole antenna, the classic length is half the wavelength (λ/2) or a quarter wavelength (λ/4) for a monopole. So if you know the frequency, you can calculate the wavelength and then design the antenna. This calculator gives you the wavelength directly.
Does the calculator work for light in glass or water?
No, because the speed of light is slower in those materials. The wavelength changes, but the frequency stays the same. You would need to divide the vacuum wavelength by the refractive index (e.g., 1.5 for glass) to get the wavelength in the material.
Related
Formula used
in f | Frequency | MHz | 100 | 0 in w | Wavelength | m | 3 | 0 out wl | Wavelength (from frequency) | m | 299792458 / (f * 1e6) | 4 out fr | Frequency (from wavelength) | MHz | 299792458 / w / 1e6 | 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.