Introduction
The wavelength of an electromagnetic wave is the distance between matching points in successive cycles, such as one crest and the next. It is determined by the wave’s frequency and the speed at which it travels: wavelength equals speed divided by frequency. Because electromagnetic waves can travel at different speeds in different materials, their wavelength can change even when their frequency stays the same.
- The basic relationship between wavelength, frequency, and speed
- Why the medium matters
- What happens when a wave enters a new material?
- How the source sets frequency
- Wavelength across the electromagnetic spectrum
- Wavelength and photon energy are related but different
- Dispersion: why different colours can travel differently
- Standing waves and boundaries
- How to work out a wavelength
- Conclusion
The basic relationship between wavelength, frequency, and speed
Wavelength, usually represented by the Greek letter lambda (λ), measures the length of one complete cycle of a wave. Frequency, written as f, measures how many cycles pass a fixed point each second. Wave speed, often written as v, describes how quickly the wave pattern travels.
These three quantities are linked by a simple equation:
Wavelength = wave speed ÷ frequency
In symbols: λ = v ÷ f
This relationship gives the central answer to what determines wavelength: it depends on both the wave’s frequency and its speed in the place where it is traveling. If the speed stays constant, a higher frequency means a shorter wavelength. If frequency stays constant, a higher speed means a longer wavelength.
For example, imagine two waves traveling at the same speed. If one completes twice as many cycles each second as the other, its cycles must be packed into half the distance. Its wavelength is therefore half as long.
Why the medium matters
Electromagnetic waves include radio waves, microwaves, infrared radiation, visible light, ultraviolet radiation, X-rays, and gamma rays. In a vacuum, all electromagnetic waves travel at the same speed: the speed of light, represented by c. It is approximately 300 million metres per second.
In a vacuum, the wavelength can therefore be calculated from frequency using λ = c ÷ f. A radio wave with a frequency of 100 million cycles per second, or 100 megahertz, has a vacuum wavelength of about 3 metres. A wave with a frequency of 200 megahertz has a vacuum wavelength of about 1.5 metres.
However, electromagnetic waves do not travel at the vacuum speed in every material. In substances such as glass, water, or air, interactions with the material affect how quickly the wave’s pattern moves through it. The speed is generally lower than in a vacuum, so the wavelength is shorter for the same frequency.
A useful measure of this change is the refractive index, written as n. In a simple case, the wave’s speed in a material is approximately the vacuum speed divided by the refractive index: v = c ÷ n. A material with a higher refractive index generally slows the wave more and gives it a shorter wavelength inside that material.
For example, consider a 100-megahertz wave entering a material with a refractive index of 1.5. If the material behaves in a simple, non-dispersive way at that frequency, the wave travels at about two-thirds of its vacuum speed. Its wavelength becomes about 2 metres rather than 3 metres. The frequency remains 100 megahertz.
What happens when a wave enters a new material?
When an electromagnetic wave crosses a boundary, such as from air into glass, its speed and wavelength can change. Its frequency generally remains the same across the boundary. The incoming and transmitted waves must oscillate in step at the surface, so the rate of oscillation does not simply reset when the wave enters the new material.
Because frequency stays constant while speed changes, wavelength changes according to λ = v ÷ f. If the wave slows down, its wavelength gets shorter. When it leaves the material and returns to a region where it travels faster, its wavelength increases again.
This change in speed also helps explain refraction, the bending of a wave as it crosses a boundary at an angle. The part of the wave that enters the slower material first changes speed before the rest of the wavefront does. That difference turns the wave’s direction. Refraction changes direction, but the wavelength change itself is caused by the change in wave speed.
The familiar bending of light in a glass lens is one example. The lens changes the paths of light waves because their speed differs in glass and air. The frequency of each colour remains essentially unchanged as it crosses the boundary, while its wavelength in the glass is shorter than its wavelength in air.
How the source sets frequency
The frequency of an electromagnetic wave is linked to the way it is produced. In a radio transmitter, for instance, electrical charges are made to oscillate in an antenna. The rate of that oscillation helps determine the frequency of the radio waves produced. In atoms, changes between allowed energy states can produce or absorb light at particular frequencies.
Once a wave is traveling through a uniform material, its frequency and that material’s effect on wave speed together determine its wavelength. This is why it is useful to separate two questions: what sets the frequency, and what sets the wavelength in a particular location? The source and its motion or operating conditions are important to frequency; the propagation conditions are important to speed and thus wavelength.
There are situations where an observed frequency differs from the frequency emitted by a source. If the source and observer move relative to each other, the observer can measure a Doppler shift. The observed wavelength may also differ, depending on the wave’s speed in the observer’s surroundings. This effect is relevant to light from moving sources as well as to other kinds of waves, though the details depend on the situation.
Wavelength across the electromagnetic spectrum
The electromagnetic spectrum is commonly arranged by frequency or wavelength. Radio waves occupy the long-wavelength, low-frequency end, while X-rays and gamma rays have much shorter wavelengths and higher frequencies. Visible light lies between infrared and ultraviolet radiation.
In a vacuum, this ordering follows directly from the relationship between frequency and wavelength: because the speed is the same for all electromagnetic waves, higher frequency corresponds to shorter wavelength. The spectrum is a continuous range, even though it is divided into named regions for convenience.
Visible colours illustrate the relationship in a familiar way. Red light has a longer wavelength than violet light in a vacuum, and violet light has a higher frequency. The precise wavelength associated with a colour is not a single boundary, because visible light covers a range and human colour perception blends wavelengths in different ways.
When comparing wavelengths, it is important to specify the medium. A light wave may be described by its wavelength in a vacuum or by its shorter wavelength inside glass. The frequency is a more consistent way to identify the wave across a boundary, since it remains the same as the wave passes from one material to another.
Wavelength and photon energy are related but different
Electromagnetic radiation can also be described in terms of photons, which are individual packets of energy. A photon’s energy is proportional to the wave’s frequency. Since frequency and wavelength are inversely related in a vacuum, shorter-wavelength radiation corresponds to higher-energy photons there.
This does not mean that wavelength alone determines every feature of a wave. Intensity, for example, relates to how much energy is carried through an area over time and depends on the wave’s amplitude as well as other conditions. Two electromagnetic waves can have the same wavelength but different intensities.
It is also useful to distinguish wavelength from the distance a wave travels overall. A wave can travel many wavelengths without changing its wavelength. Wavelength describes the spacing of its repeating pattern, not the total length of its journey.
Dispersion: why different colours can travel differently
In many materials, refractive index depends on frequency or wavelength. This property is called dispersion. It means that different frequencies may travel at different speeds in the same material, so they have different wavelengths there even if they entered together.
Dispersion explains why a prism can spread white light into a range of colours. The different visible frequencies are refracted by different amounts in the prism. Their wavelengths in the material and their resulting directions differ, allowing the colours to separate.
In a dispersive material, it is therefore not always accurate to use one refractive-index value for every frequency. Calculations need the material’s refractive index at the frequency or wavelength being considered. For many everyday explanations, a single approximate value is sufficient, but more precise work must account for dispersion.
Standing waves and boundaries
Wavelength can also be influenced by the space available for a wave to form a stable pattern. When waves reflect and overlap, they can create a standing wave, a pattern with fixed points of low motion called nodes and points of larger motion called antinodes. In a resonant cavity or waveguide, only certain patterns may fit the boundaries.
These boundary conditions can determine which wavelengths are supported in that system. For example, the size and shape of a resonant structure can affect the electromagnetic modes it supports. The wave still follows the relationship between speed, frequency, and wavelength; the boundaries constrain which combinations can persist.
This is different from saying that a boundary always changes wavelength. A boundary may reflect a wave, transmit it, or support a particular standing-wave pattern, depending on the materials, geometry, and frequency. The result has to be understood from the specific setup.
How to work out a wavelength
To calculate wavelength, identify the wave speed in the relevant medium and divide it by frequency. Keep units consistent: metres per second divided by cycles per second gives metres. A cycle per second is called a hertz (Hz).
For a 100-megahertz wave in a vacuum, use approximately 300,000,000 metres per second divided by 100,000,000 cycles per second. The result is about 3 metres.
If that same frequency travels in a material at 200,000,000 metres per second, its wavelength is 200,000,000 divided by 100,000,000, or 2 metres. The example shows why frequency alone is not enough to determine wavelength unless the wave speed or medium is also known.
Conclusion
An electromagnetic wave’s wavelength is determined by its frequency and its speed in the medium it is traveling through. In a vacuum, speed is the same for all electromagnetic waves, so higher frequency means shorter wavelength. In materials, speed can change, and wavelength changes with it while frequency generally remains constant across a boundary. These relationships explain the spectrum, refraction, and many everyday uses of electromagnetic waves.

