Wavelength Calculator: Frequency, Wave Speed and Photon Energy
By FindMySum · Last reviewed
A wavelength calculator converts between a wave's wavelength and its frequency using the speed at which the wave travels. The same equation covers radio stations, Wi-Fi, visible light, X-rays and sound. For light, the calculator also gives the energy of a single photon and names the part of the electromagnetic spectrum the wave belongs to. This article explains each step and the worked examples behind the defaults.
The wave equation
Every travelling wave obeys:
v = f × λ
where v is the wave speed in metres per second, f the frequency in hertz (cycles per second) and λ the wavelength in metres. Rearranged:
- λ = v ÷ f to find the wavelength,
- f = v ÷ λ to find the frequency.
The period, the time for one cycle, is T = 1 ÷ f.
Choosing the wave speed
Light and radio in a vacuum. All electromagnetic waves travel at c = 299,792,458 m/s in a vacuum. That value is exact, because since 1983 the metre has been defined from it. In air light is only about 0.03% slower, so the vacuum speed is fine for radio and most everyday optics.
Light in a medium. In water, glass or plastic light slows to v = c ÷ n, where n is the refractive index: about 1.333 for water and 1.5 for common glass. The frequency doesn't change at the boundary, so the wavelength inside the material is shorter by the factor n.
Sound in air. Sound is a pressure wave in the air itself, so its speed depends on the air's temperature. The calculator uses v = 331.3 × √(1 + T ÷ 273.15) m/s, which follows from the ideal-gas behaviour of air: 331.3 m/s at 0 °C and 343.2 m/s at 20 °C.
Anything else. Sound in water (about 1,480 m/s), in steel (about 5,900 m/s) or waves on a string all work with the custom speed option.
Worked examples
Green light (the default). 550 nm in a vacuum: f = 299,792,458 ÷ 0.000 000 550 = 5.4508 × 10¹⁴ Hz, or 545.08 THz. That sits in the visible band, in the green part.
FM radio. 100 MHz: λ = 299,792,458 ÷ 100,000,000 = 2.998 m, in the radio band.
Concert A. 440 Hz in air at 20 °C: λ = 343.21 ÷ 440 = 0.780 m.
Microwave oven. 2.45 GHz: λ = 12.24 cm. The standing waves inside the oven have hot spots about half a wavelength (6 cm) apart, which is why ovens have turntables.
Photon energy
Light is emitted and absorbed in packets called photons, and each photon's energy depends only on its frequency:
E = h × f = h × c ÷ λ
Planck's constant h is exactly 6.626 070 15 × 10⁻³⁴ J·s. For green light at 545.08 THz, E = 3.612 × 10⁻¹⁹ J. Dividing by the elementary charge (1.602 176 634 × 10⁻¹⁹ C, also exact) converts to electronvolts: 2.254 eV. A handy shortcut is E (eV) ≈ 1,239.84 ÷ λ (nm).
Photon energy explains why ultraviolet light causes sunburn but infrared doesn't: a 300 nm UV photon carries about 4.1 eV, enough to break chemical bonds, while a 1,000 nm infrared photon carries 1.2 eV and only warms the skin. The photoelectric effect, solar cells and LEDs all depend on photons having at least a threshold energy. For light in a medium the calculator uses the frequency, which doesn't change, so the photon energy is the same as in a vacuum.
The electromagnetic spectrum
The calculator labels the band from the vacuum wavelength, using a common simplified division:
| Band | Vacuum wavelength |
|---|---|
| Gamma rays | below 0.01 nm |
| X-rays | 0.01 nm to 10 nm |
| Ultraviolet | 10 nm to 380 nm |
| Visible light | 380 nm to 750 nm |
| Infrared | 750 nm to 1 mm |
| Microwaves | 1 mm to 1 m |
| Radio waves | above 1 m |
These edges are conventions rather than physical boundaries. Astronomers, radio engineers and medical physicists draw them slightly differently, and X-rays and gamma rays overlap: they are distinguished by their source (electrons or the nucleus) as much as by wavelength. Inside the visible band the calculator also names the colour, from violet below 450 nm to red above 620 nm.
More questions
Why is a radio antenna often a quarter of a wavelength long?
A quarter-wave antenna resonates at the frequency it is designed for, so it radiates and receives efficiently with a simple ground plane. For the 2 m amateur band (146 MHz) the wavelength is 2.05 m, so a quarter-wave whip is about 51 cm, slightly shorter in practice because signals travel a little slower along a real conductor.
What is a wavenumber?
The wavenumber is the number of waves per unit length, the reciprocal of the wavelength. Spectroscopists use it in reciprocal centimetres (cm⁻¹): a 1,000 nm infrared wavelength is 10,000 cm⁻¹. It is convenient because it is proportional to photon energy, like frequency.
Why does the sky look blue if violet light has a shorter wavelength?
Air molecules scatter short wavelengths much more strongly than long ones (Rayleigh scattering goes as 1 ÷ λ⁴), so both violet and blue are scattered across the sky. Sunlight contains less violet than blue, some violet is absorbed high in the atmosphere, and our eyes are less sensitive to violet. The mix we see is blue.
Does the frequency of sound change when it moves from air into water?
No. As with light entering glass, the frequency is set by the source and stays the same across the boundary. The speed changes, from about 343 m/s in air to about 1,480 m/s in water, so the wavelength stretches by the same factor of about 4.3.
How does wavelength relate to the Doppler effect?
When a source moves towards you, each crest is emitted a little closer to the one before, so the wavelength you receive is shorter and the frequency higher; moving away, the wavelength stretches. Police radar, weather radar and astronomers measuring the redshift of galaxies all use this shift.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.