How the wavelength calculator works
Wavelength is the distance between matching points on successive wave cycles, such as one crest and the next. This calculator finds wavelength from frequency, or frequency from wavelength, using the speed of the wave in its medium. At a fixed speed, doubling the frequency halves the wavelength.
- 1Choose the wave type. Select electromagnetic waves for light, radio or other electromagnetic radiation; sound for acoustic waves; or another wave with a known speed.
- 2Enter the known quantity. Enter frequency or wavelength and select its unit. For electromagnetic waves, photon energy is another possible starting quantity.
- 3Set the medium. Choose vacuum, water or crown glass for light, or air, fresh water or steel for sound. Air uses a temperature input. For another wave, enter its propagation speed.
The results include wavelength, frequency and period, with the calculation steps. Electromagnetic results also include energy per photon, a spectrum region and an approximate visible color where applicable. Sound results identify the frequency as infrasonic, within the conventional audible band or ultrasonic.
Wavelength, frequency and period formulas
Use positive values. With speed in meters per second and frequency in hertz, wavelength is in meters and period is in seconds.
The period measures time; wavelength measures distance. During one period, a traveling wave advances by one wavelength. Convert units before dividing: 100 MHz means 100,000,000 Hz, while 532 nm means 532 × 10-9 m.
Worked example: a 100 MHz radio wave
In vacuum, use the exact speed of light, 299,792,458 m/s. Dividing by 100,000,000 Hz gives about 2.9979 m, displayed as 3.00 m to two decimal places. The period is 10 ns, the spectrum region is radio, and each photon has about 6.63 × 10-26 J of energy, equivalent to 4.14 × 10-7 eV.
Light in water and glass
These equations use the refractive index at the wave's frequency. Fixed material presets are approximations.
At a stationary boundary between transparent materials, light keeps its frequency while its speed and wavelength change. Using the water preset below, light with a vacuum wavelength of 532 nm has an in-water wavelength of about 399.1 nm. Its frequency remains 563.52 THz.
| Medium | Refractive index |
|---|---|
| Vacuum | 1 |
| Fresh water | 1.333 |
| Crown glass | 1.52 |
A wavelength input refers to the selected medium. Entering 532 nm with water selected therefore describes a different frequency from entering 532 nm with vacuum selected. Spectrum and color labels use the vacuum-equivalent wavelength, so shortening green light's wavelength in water does not relabel it violet.
Photon energy
The wavelength in E = hc ÷ λ₀ must be the vacuum-equivalent wavelength. Energy here is per photon, not total beam energy or power.
If photon energy is the input, first find frequency with f = E ÷ h, then wavelength with λ = v ÷ f. One electronvolt is exactly 1.602176634 × 10-19 J. For 532 nm light in vacuum, the energy is about 2.33 eV per photon; entering water without changing the frequency leaves that energy unchanged.
Electromagnetic spectrum regions
| Region | Vacuum wavelength |
|---|---|
| Radio | Above 10 cm |
| Microwave | 1 mm to 10 cm |
| Infrared | 700 nm to 1 mm |
| Visible | 400–700 nm |
| Ultraviolet | 10–400 nm |
| X-ray | 0.01–10 nm |
| Gamma ray | Below 0.01 nm |
Visible colors blend continuously, so a color label is an approximate guide for a single-frequency wave. It is not a calibrated color measurement or a prediction of how a mixture of wavelengths will look.
Wavelength of sound
Sound uses the same wavelength formula, but its speed is much lower than light's and depends on the material. For air, the temperature calculation uses a dry-air ideal-gas approximation:
Use γ = 1.4 and R = 287 J/(kg·K). The Celsius-to-kelvin conversion applies to the numerical temperature values.
At 20 °C, this model gives 343.20 m/s. A 440 Hz tone therefore has a wavelength of 343.20 ÷ 440, or about 0.780 m, and a period of 2.27 ms.
| Medium | Speed |
|---|---|
| Dry air, 0 °C, calculated | 331.29 m/s |
| Dry air, 20 °C, calculated | 343.20 m/s |
| Fresh water, 20 °C, preset | 1,480 m/s |
| Steel, representative preset | 5,960 m/s |
The conventional audible band is about 20 Hz to 20 kHz. Frequencies below it are infrasound; those above it are ultrasound. A frequency inside that band does not guarantee that a particular person can hear it.
Checks before using the result
- 1Check the unit prefix. MHz and GHz differ by a factor of 1,000. Nanometers and micrometers also differ by 1,000.
- 2Match the medium to the measurement. Decide whether a quoted optical wavelength is measured in vacuum, air or another material before selecting the medium.
- 3Round after the calculation. Keep the original input precision. Extra displayed decimal places do not make an approximate material preset more accurate.
Frequently asked questions
Can I find wavelength from frequency alone?
You also need the wave's speed. Electromagnetic waves in vacuum use the known constant c, but sound and other waves need a speed appropriate to their medium.
How do I convert MHz to wavelength in meters?
For electromagnetic waves in vacuum, divide approximately 299.79 by the frequency in MHz. For a manual example, 299.79 ÷ 100 gives about 3.00 m.
Why does light keep its color when it enters water?
Its frequency stays unchanged at a stationary boundary, even though its speed and wavelength decrease. Color comparisons therefore use frequency or the equivalent vacuum wavelength.
What is the wavelength range of visible light?
This page uses approximately 400–700 nm for its spectrum classification. Human sensitivity does not end at sharp boundaries, so other references may give different approximate limits.
How do I convert nanometers to electronvolts?
For vacuum wavelength, divide approximately 1,239.84 by the wavelength in nanometers to obtain photon energy in eV. A 500 nm photon has about 2.48 eV of energy.
Does a higher sound frequency mean a louder sound?
No. Frequency describes the repetition rate and is associated with pitch, while loudness also depends on sound level and hearing sensitivity. Wavelength and frequency alone cannot determine loudness.
Sources
- 116.9 Waves · OpenStax, Rice University · Accessed November 2026
- 2SP 330, Section 2: The International System of Units · National Institute of Standards and Technology · Accessed November 2026
- 3The Electromagnetic Spectrum · NASA Goddard Space Flight Center · Accessed November 2026
- 41.1 The Propagation of Light · OpenStax, Rice University · Accessed November 2026
- 517.2 Applications of Diffraction, Interference, and Coherence · OpenStax, Rice University · Accessed November 2026
- 6Regions of the Electromagnetic Spectrum · NASA Goddard Space Flight Center · Accessed November 2026
- 7Acoustics: An Introduction to Its Physical Principles and Applications, Section 1-9 · McGraw-Hill Book Company · Accessed November 2026
- 817.2 Speed of Sound · OpenStax, Rice University · Accessed November 2026
- 917.6 Hearing · OpenStax, Rice University · Accessed November 2026