Wave Length Calculator
Convert between a wave’s frequency and its wavelength for light, sound in air, sound in water, or any custom wave speed. The period comes free with every calculation.
Every wave you have ever met, from the bass thumping through a wall to the Wi-Fi carrying this page, is described by the same trio: speed, frequency and wavelength. Change one and the others answer.
The Wave Length Calculator converts between frequency and wavelength for light in a vacuum, sound in air, sound in water, or any custom wave speed you provide. It also reports the period, the time each individual cycle takes.
This article explains the one equation behind every calculation, shows how to pick the right wave speed, works through light and sound examples, and flags the unit mistakes that trap nearly everyone the first time.
What Does the Wave Length Calculator Do?
The calculator runs the fundamental wave equation in both directions. Give it a frequency and it returns the wavelength; give it a wavelength and it returns the frequency. You choose the medium, which sets the wave speed, or enter a custom speed for anything from seismic waves to waves on a string.
Every result comes with the period, T = 1/f, the duration of a single oscillation. For light-speed calculations the wavelength is also shown in nanometers, the unit of rainbows and lasers; for slower waves it is shown in centimeters as well as meters.
The formula behind it all fits on one line. The wave equation is:
v = f × λ
Rearranged, wavelength is λ = v/f and frequency is f = v/λ. The calculator never does anything more exotic than this; its value is doing it instantly, with the right speed and the right units.How to Use the Wave Length Calculator
First, pick the direction with the two mode buttons: Frequency to Wavelength, or Wavelength to Frequency. The input label updates to match.
Next, choose the wave medium. Light in vacuum uses c = 299,792,458 m/s exactly; sound in air uses 343 m/s; sound in water uses 1,480 m/s. For anything else, choose Custom and type the speed in meters per second.
Then enter your value: a frequency in hertz, or a wavelength in meters, depending on the mode. Positive numbers only; a wave with zero frequency is not a wave.
Press Calculate. The hero number shows your answer in the natural unit, with the wave speed used, the complementary quantity, the period, and the formula restated so you can check the arithmetic yourself.
The Wave Equation, Visualized
Picture a rope shaken once per second: the frequency is 1 Hz, and each shake sends a hump traveling down the rope. The distance between consecutive humps is the wavelength, and the humps move at the rope’s wave speed.
Because one new hump appears every second and each hump is one wavelength behind the last, the speed must equal humps-per-second times spacing: v = fλ. This is not a definition to memorize but a picture to see.
Double the shaking to 2 Hz and the humps crowd twice as close: same speed, half the wavelength. That inverse relationship, wavelength shrinking as frequency grows, is the single most-used fact about waves.
Why the Medium Sets the Speed
Wave speed is a property of the medium, not of the wave. Light always travels at c in a vacuum regardless of color; sound always travels near 343 m/s in room-temperature air regardless of pitch.
This is why the same frequency means wildly different wavelengths in different media. A 440 Hz tone, the A above middle C, has a wavelength of about 78 cm in air but about 3.36 m in water, because 1480/440 ≈ 3.36. The calculator keeps these straight so you do not have to.
Frequency, Wavelength, and Period
Frequency counts cycles per second, measured in hertz. Wavelength measures meters per cycle. Period measures seconds per cycle. They are three views of the same oscillation, linked by v = fλ and T = 1/f.
The calculator always shows all three because real problems hand you whichever one is convenient. Antenna designers think in wavelength, audio engineers in frequency, and the period is what an oscilloscope actually displays.
Units: Where Everyone Stumbles
Hertz means per second, so 1 kHz is 1,000 Hz and 1 MHz is 1,000,000 Hz. Entering 440 kHz when you mean 440 Hz makes the wavelength a thousand times too small, and the calculator will faithfully report the wrong answer.
Wavelengths for light are absurdly small in meters: green light is about 0.000000532 m. That is why the calculator also prints nanometers, where green light is a friendly 532 nm.
Worked Example: Concert A: 440 Hz in Air
First: choose Frequency to Wavelength, select Sound in air (343 m/s), and enter 440.
Then: the calculator divides speed by frequency: λ = 343/440 ≈ 0.7795 m.
Then: the period is T = 1/440 ≈ 2.27 ms, and the wavelength is also shown as about 77.95 cm.
Answer: about 0.78 m, roughly two and a half feet. That is why bass traps and acoustic panels are sized in tens of centimeters: they are built to the scale of the wavelengths they absorb.
Worked Example: Green Light: 532 nm to Frequency
First: choose Wavelength to Frequency, select Light in vacuum, and enter 0.000000532 m (532 nm).
Then: the calculator divides c by the wavelength: f = 299,792,458 / 5.32e-7 ≈ 5.635e14 Hz.
Then: the period is 1/f ≈ 1.77 femtoseconds, and the nanometer readout confirms 532 nm.
Answer: about 563 THz. Visible light lives near 10^14 Hz, which is why optics uses wavelength or color instead: the frequency numbers are correct but unwieldy.
Worked Example: Whale Song: 20 Hz in Water
First: choose Frequency to Wavelength, select Sound in water (1,480 m/s), and enter 20.
Then: λ = 1480/20 = 74 m exactly.
Then: the period is 1/20 = 0.05 s, fifty milliseconds per cycle.
Answer: 74 m, longer than an Olympic swimming pool. Low-frequency sound travels enormous distances underwater precisely because these giant wavelengths diffract around obstacles instead of being blocked.
Worked Example: Custom Speed: Wave on a String at 120 m/s
First: choose Wavelength to Frequency, select Custom, enter 120 m/s, and enter a wavelength of 2.5 m.
Then: f = 120/2.5 = 48 Hz.
Then: the period is 1/48 ≈ 20.8 ms.
Answer: 48 Hz. Stringed instruments work exactly this way: the string’s tension and mass set the wave speed, your finger sets the wavelength, and the frequency follows from v = fλ.
Light vs Sound: Nine Orders of Magnitude
Light in a vacuum is nearly a million times faster than sound in air: 3e8 m/s against 343 m/s. The most common catastrophic error is computing a light wavelength with the sound speed, or vice versa.
Sanity-check by magnitude. Audible sound wavelengths run from centimeters to tens of meters. Visible light wavelengths run from 380 to 750 nm. Radio wavelengths run from millimeters to kilometers. If your answer lands in the wrong kingdom, the medium is wrong.
The calculator’s medium labels exist to prevent exactly this. Pause on the dropdown for one second before calculating; it is the cheapest error prevention in the whole workflow.
When the Custom Speed Is the Right Choice
Real media are rarely exactly the presets. Sound in air at 35°C is about 352 m/s, not 343. Sound in seawater varies with temperature, salinity and depth around 1,480 m/s. Light in glass slows to about 2e8 m/s.
Use Custom whenever the problem gives you a speed or describes nonstandard conditions. A textbook problem stating a wave speed of 25 m/s on a stretched string wants that number, not the nearest preset.
The custom field accepts any positive speed, including decimals. Enter it in m/s; if your source gives km/s, multiply by 1,000 first.
Common Wavelength Calculation Mistakes
Unit prefix errors dominate. Entering 2.4 GHz as 2.4 instead of 2,400,000,000 Hz gives a wavelength a billion times too large. Convert kilo, mega and giga to plain hertz before typing.
Second, mixing up the direction. If you have a wavelength and want the frequency, you must switch to Wavelength to Frequency mode; entering 532 (nm) into the frequency box computes the wavelength of a 532 Hz wave, which is a very different thing.
Third, forgetting that the medium matters. A 1,000 Hz tone is 34.3 cm in air but 1.48 m in water. Same frequency, different wave, because the speed changed.
Finally, treating the period as optional trivia. In electronics and acoustics the period is often the measured quantity, and T = 1/f converts an oscilloscope reading straight into a frequency.
Where Wavelength Calculations Are Useful
Antenna design lives on this calculation. A quarter-wave antenna for 2.4 GHz Wi-Fi needs λ/4 ≈ 3.1 cm elements, and every wireless device you own was dimensioned with v = fλ.
Audio engineering uses it for room acoustics. Knowing that 100 Hz spans 3.43 m tells you which room dimensions will resonate and where bass traps must go.
Optics and photography use the nanometer readout. Filters, lasers and LEDs are all specified by wavelength, and converting to frequency connects the spec sheet to photon energy via E = hf.
Science classes use it as the canonical inverse relationship. Few equations show so clearly that when one quantity goes up, the other goes down, which is why v = fλ is often a student’s first deep encounter with proportionality.
How to Interpret Your Result Correctly
Read the hero number with its unit attached. A bare 0.78 means nothing; 0.78 m is a sound wave and 0.78 nm would be an X-ray. The unit is part of the answer.
Check the magnitude against the medium’s kingdom: meters for sound, nanometers for light, kilometers for low-frequency radio. An answer in the wrong kingdom signals a wrong medium or a prefix error.
Use the period as a cross-check. If the frequency is 440 Hz, the period must be about 2.27 ms; if the calculator showed something else, the input was misread. The three quantities constrain each other, so any one of them verifies the other two.
Remember what the calculator does not know: real media disperse, meaning speed can depend slightly on frequency. For air, water and vacuum at ordinary precision the single-speed model is excellent, and the Custom option covers the rest.
Frequently Asked Questions
1. What is the formula for wavelength?
Wavelength is wave speed divided by frequency (λ = v / f); frequency is the reverse (f = v / λ).
2. What speed should I use for light?
In a vacuum, exactly 299,792,458 m/s. In glass or water light slows down, so use the Custom option with the material’s speed, roughly 2×10^8 m/s for typical glass.
3. What speed should I use for sound?
About 343 m/s in air at 20°C and about 1,480 m/s in water. For other temperatures or media, enter a custom speed: sound in air gains roughly 0.6 m/s per degree Celsius.
4. How do I convert frequency to wavelength?
Choose Frequency to Wavelength mode, pick the medium, and enter the frequency in hertz. The calculator divides the wave speed by your frequency and shows the wavelength in meters.
5. What is the period of a wave?
The time for one complete cycle: T = 1 / f. A 440 Hz tone has a period of about 2.27 milliseconds. The calculator reports it with every result.
6. Why is the wavelength also shown in nanometers?
Because light wavelengths in meters are unreadably small: green light at 5.32×10^-7 m is simply 532 nm.
7. Can wavelength be larger than a kilometer?
Easily. A 20 Hz sound in air spans 17 m, and low-frequency radio waves stretch for kilometers.
8. What happens if I enter zero?
The calculator asks for a positive value: zero frequency would mean infinite wavelength, which is not a wave.
9. Does temperature really change sound’s wavelength?
Yes, through the speed. Warmer air carries sound faster, so a fixed 440 Hz tone has a slightly longer wavelength on a hot day. Orchestras tune to a fixed frequency, not a fixed wavelength, for exactly this reason.
10. How are wavelength and color related?
Color is wavelength: roughly 380–450 nm looks violet, 495–570 nm green, and 620–750 nm red. Frequency carries the same information via f = c/λ.
11. What is the wavelength of Wi-Fi?
At 2.4 GHz, λ = c/f ≈ 12.5 cm; at 5 GHz, about 6 cm. That is why Wi-Fi antennas are a few centimeters long: they are sized as fractions of the wavelength.
12. Can I use this for waves on a string?
Yes, with the Custom option. Enter the string’s wave speed in m/s, which depends on tension and mass per unit length, then convert either direction between frequency and wavelength.
13. Why do bass notes have long wavelengths?
Because wavelength is speed divided by frequency. At 343 m/s, a 40 Hz bass note spans about 8.6 m, while a 10 kHz harmonic of the same instrument squeezes into 3.4 cm.
14. What is the difference between wavelength and amplitude?
Wavelength is the spatial length of one cycle; amplitude is the height of the wave, its loudness or brightness. This calculator deals only with wavelength, frequency and period.
15. How precise are the results?
The arithmetic is exact; the limiting factor is your input. Wave speeds are approximate for real media, so treat results beyond three significant figures as illustrative.