What Is a Wavelength Calculator?

A wavelength calculator solves the wave equation, lambda = v / f: give it any two of wavelength, frequency and wave speed, and it returns the third, in the units you actually work in. Wavelength is the physical size of one complete wave cycle, measured from crest to crest. Frequency is how many cycles pass a fixed point every second. Multiply the two together and you get the wave speed, which is why the three quantities lock together — for an FM signal metres long, a sound wave the size of a guitar, or green light five ten-millionths of a millimetre across.

This page covers the two wave families people ask about most. For light and other electromagnetic waves it works in a vacuum or inside a material — air, water, glass or a refractive index you type yourself — and adds the photon energy calculator output, in electron volts and joules. For sound in air it uses the standard speed of sound at room temperature, with an optional temperature adjustment. A custom mode accepts any wave speed at all, covering waves on strings, water waves and seismic waves. The guide below explains how to calculate wavelength by hand, works three checked examples step by step, lays out the electromagnetic spectrum in one table, and is plain about the one fact most calculators hide: what happens to wavelength inside a medium.

How This Wavelength Calculator Works

Quick answer: Choose the wave type, choose what to solve for, then enter the other two values with their units. Wavelength = wave speed divided by frequency, so light at 100 MHz in a vacuum gives 299,792,458 / 100,000,000 = 2.9979 m. Frequency = speed divided by wavelength, and speed = wavelength multiplied by frequency.

The wave type selector fixes how the wave speed is found. Light mode divides the exact speed of light in a vacuum, 299,792,458 metres per second, by the refractive index of the medium you pick. Sound mode takes 343 metres per second at 20 degrees Celsius, adjusted for any temperature you enter. Custom mode takes the speed straight from the speed field. The solve-for selector decides which quantity is the unknown, and the two known quantities each get a value box and a unit menu, so you can mix nanometres with terahertz without converting anything by hand.

The results panel always shows the solved quantity converted into every unit of its kind: a wavelength answer appears in nanometres, micrometres, millimetres, metres and kilometres side by side, and a frequency answer appears in hertz, kilohertz, megahertz, gigahertz and terahertz. The formula steps are written out line by line, so homework working can be copied honestly and checked. For light, a second panel reports the photon energy and the vacuum wavelength beside the in-medium one, so the shortening effect of the medium is visible rather than hidden. The defaults are the first worked example, 100 megahertz in a vacuum, and must return 2.9979 metres.

The Wavelength Formula, Worked Step by Step

The wavelength formula is a single sentence: wavelength equals wave speed divided by frequency, lambda = v / f. Everything on this page is that sentence plus unit conversion. Work the first example exactly as the engine does. The wave is an FM radio signal at 100 megahertz in a vacuum, so the speed is the full speed of light, 299,792,458 m/s, and the frequency in hertz is 100 x 10^6 = 100,000,000 Hz. Divide: 299,792,458 / 100,000,000 = 2.9979 metres. An efficient half-wave FM antenna is half of that, about 1.5 metres long.

The second example runs at the opposite end of the scale, and exercises the wavelength to frequency direction. Green light has a wavelength of 500 nanometres, which is 500 x 10^-9 = 0.0000005 metres. Frequency = speed divided by wavelength: 299,792,458 / 0.0000005 = 5.996 x 10^14 hertz. The same frequency gives the photon energy through E = h x f: 6.62607015 x 10^-34 x 5.996 x 10^14 = 3.973 x 10^-19 joules, which is 2.48 electron volts.

The third example changes the wave family. The musical note A above middle C has a frequency of 440 hertz, and sound in air at 20 degrees Celsius travels at 343 metres per second. Wavelength = 343 / 440 = 0.7795 metres, about 78 centimetres — a wavelength you can measure with a tape measure, unlike light. The table below collects these checks with three more, and every row can be reproduced in the workbench above.

QuestionWorkingResult
Wavelength of 100 MHz light in a vacuum299,792,458 / 100,000,0002.9979 m
Frequency of 500 nm green light299,792,458 / 0.00000055.996 x 10^14 Hz
Photon energy of 500 nm green lighth x f, then convert to eV2.48 eV = 3.973 x 10^-19 J
Wavelength of 440 Hz sound in air at 20 °C343 / 4400.7795 m
Wavelength of 500 nm light in water (n = 1.333)500 / 1.333375.1 nm
Wavelength of 100 MHz light in water (n = 1.333)2.9979 / 1.3332.2490 m

Frequency to Wavelength and Wavelength to Frequency

Most visits to a page like this are one of two conversions, and both are the same division read in opposite directions. Frequency to wavelength: divide the wave speed by the frequency. A Wi-Fi signal at 2.4 gigahertz converts to 299,792,458 / 2,400,000,000 = 0.1249 metres, about 12.5 centimetres — the size of the antennas inside a router. A microwave oven at 2.45 gigahertz works at about 12.2 centimetres, which is why the oven cavity and its rotating turntable are sized the way they are. Wavelength to frequency: divide the wave speed by the wavelength. The red end of visible light at 700 nanometres converts to 4.283 x 10^14 hertz, and the violet end at 400 nanometres converts to 7.495 x 10^14 hertz, so the whole of human vision spans less than a factor of two in frequency.

The relationship is an inverse proportion, and holding that shape in your head prevents most errors. Double the frequency and the wavelength halves. Halve the wavelength and the frequency doubles. There is no adding or averaging involved: if a result ever comes out with a higher frequency and a longer wavelength than the numbers you started from, at the same wave speed, something has been typed wrongly.

Light and the Electromagnetic Spectrum

Light is one band of a single family. Every electromagnetic wave travels at the same speed in a vacuum, so the entire spectrum is one long application of lambda = v / f: as wavelength shrinks from kilometres to trillionths of a metre, frequency climbs in exact step. The bands have historical names rather than sharp physical borders, but the names are useful because each band interacts with matter differently, and each has its own technology.

BandWavelength rangeFrequency rangeFamiliar source
Radio wavesMore than 1 mLess than 3 x 10^8 HzFM radio at 100 MHz, 2.9979 m
Microwaves1 mm to 1 m3 x 10^8 to 3 x 10^11 HzMicrowave oven at 2.45 GHz, 12.2 cm
Infrared700 nm to 1 mm3 x 10^11 to 4.3 x 10^14 HzRemote controls, heat cameras
Visible light400 nm to 700 nm4.3 x 10^14 to 7.5 x 10^14 HzGreen light at 500 nm
Ultraviolet10 nm to 400 nm7.5 x 10^14 to 3 x 10^16 HzSunlight beyond violet
X-rays0.1 nm to 10 nm3 x 10^16 to 3 x 10^18 HzMedical imaging
Gamma raysLess than 0.1 nmMore than 3 x 10^18 HzRadioactive decay

Read the table with photon energy in mind and a pattern emerges: the further down you go, the more energy each photon carries, and the more the wave can knock electrons loose, break chemical bonds and damage tissue. A 100 megahertz radio photon carries about 4.14 x 10^-7 electron volts, roughly six million times less than a green light photon. The boundaries are the standard approximate ranges used by NASA and OpenStax; references differ slightly at the edges.

Photon Energy: E = h x f

Quick answer: Photon energy is E = h x f, where h is the Planck constant, 6.62607015 x 10^-34 joule seconds, and f is the frequency. Green light at 5.996 x 10^14 Hz carries 3.973 x 10^-19 joules per photon, which is 2.48 electron volts. Shorter wavelength means higher frequency means more energy per photon.

The photon energy calculator panel on this page exists because wavelength questions in physics and chemistry rarely stop at wavelength. The energy of a single photon is fixed by its frequency alone, through the Planck relation E = h x f. Because frequency and wavelength trade against each other at a fixed speed, the same energy can be written directly from wavelength as E = h x c / lambda, and a useful shortcut falls out of the constants: photon energy in electron volts is approximately 1240 divided by the wavelength in nanometres. Green light: 1240 / 500 = 2.48 eV. Red light at 700 nm: 1240 / 700 = 1.77 eV. Ultraviolet at 300 nm: 1240 / 300 = 4.13 eV — above the roughly 3 to 4 eV needed to break many molecular bonds, which is why ultraviolet causes sunburn.

Two honest cautions belong with this panel. First, photon energy is the energy per photon: total beam energy is photon energy multiplied by the number of photons, so a bright red lamp pours out more total energy than a dim ultraviolet source. Second, the electron volt is a unit of convenience, not different physics: 1 eV is exactly 1.602176634 x 10^-19 joules, and this calculator reports both units.

Wavelength in a Medium: Refractive Index

Here is the fact this page states plainly because so many calculators get it quietly wrong. When light enters a material medium, its frequency stays exactly the same and its wavelength shortens. The light slows down — in water to about three quarters of its vacuum speed, in common glass to about two thirds — and since frequency is set by the source and cannot change at the boundary (wave crests cannot pile up or vanish at the surface), the only quantity free to adjust is the wavelength: lambda in the medium = lambda in a vacuum divided by n, the refractive index. Green light that measures 500 nanometres in a vacuum measures about 375 nanometres in water and about 333 nanometres in glass, while its frequency stays at 5.996 x 10^14 hertz and its photon energy stays at 2.48 eV throughout.

This is why the medium selector changes the speed, not the frequency, and why the second results panel shows the vacuum wavelength beside the in-medium one. The presets here are vacuum 1.0 exactly, air 1.0003, water 1.333 and glass 1.5, with a custom field for anything else — diamond, for the curious, is about 2.42. One limit to know: real refractive indices vary slightly with wavelength itself, an effect called dispersion, which is how prisms split colours. This calculator uses the single standard index you select, as the page states, rather than modelling dispersion.

Sound Waves and the Speed of Sound

Sound obeys the same wave equation with a far smaller speed, and one extra complication: the speed itself depends on the air. In dry air at 20 degrees Celsius, sound travels at 343 metres per second, the standard value this calculator uses. Warm the air and the molecules pass the disturbance along faster, by roughly 0.6 metres per second per degree; cool it and sound slows by the same step. The optional temperature field applies the standard adjustment, 343 + 0.606 x (temperature - 20). At freezing point the speed falls to about 331 metres per second, and because a slower speed at a fixed frequency means a shorter wavelength, the 440 hertz concert A contracts from 0.7795 metres to 331 / 440 = 0.752 metres. Every number in this paragraph is one the calculator above produces, so you can verify the direction of the effect yourself in the workbench.

Sound wavelengths explain everyday acoustics. Human hearing runs from about 20 hertz to 20,000 hertz — wavelengths from about 17 metres down to about 1.7 centimetres at 343 m/s. Long bass waves bend around doorways and through walls, which is why you hear a neighbour's bass and not the words; short high-note waves are blocked and reflected like light. Instrument design is wavelength made physical: pipes and strings resonate at simple fractions of the wavelength, which is why wind instruments are the sizes they are. Humidity shifts the speed of sound only slightly compared with temperature.

Units and Conversions: nm, µm, mm, m, km and Hz to THz

Wavelengths in real problems span more than fifteen powers of ten, so unit fluency matters more here than in almost any other school topic. The length ladder on this page runs nanometres (nm), micrometres (µm), millimetres (mm), metres (m) and kilometres (km), each step a factor of a thousand except mm to m. The anchors worth memorising: visible light lives in nanometres, roughly 400 to 700; microwaves live in millimetres and centimetres; radio lives in metres and beyond. The frequency ladder runs hertz, kilohertz, megahertz, gigahertz and terahertz, also in thousand-fold steps: radio in megahertz, phones and Wi-Fi in gigahertz, and light itself in the hundreds of terahertz.

Two habits prevent nearly all conversion errors. First, convert before you calculate, or use a tool that converts internally: the formula fed a wavelength in nanometres and a speed in metres per second returns a frequency wrong by a factor of a billion, silently. Second, sanity-check every answer against an anchor you know — FM radio near 3 metres, green light near 500 nanometres, concert A near 0.78 metres. This calculator shows every result in all five units of its kind precisely so the anchor check is always one glance away.

Wavelength in Radio, Music and Everyday Life

Once you start seeing wavelengths, they appear everywhere. Radio and communications are designed around them: antenna lengths are fractions of a wavelength, the 12.5 centimetre wavelength of 2.4 gigahertz Wi-Fi sets the size of router antennas and lets signals slip through doorways. Music is wavelength you can hear being managed: organ pipes, guitar strings and room modes all follow from 343 divided by the frequency.

Medicine and industry choose wavelengths deliberately. Ultrasound imaging uses megahertz sound whose wavelength in tissue is around a millimetre or less, fine enough to picture a foetus; the same physics at concert-hall frequencies could picture nothing smaller than a doorway. Ultraviolet lamps disinfect at wavelengths near 254 nanometres because the photon energy there, about 4.9 eV, breaks the bonds in microbial DNA. Even colour is a wavelength statement: a paint reflecting at 650 nanometres is telling you its frequency, its photon energy and its place in the spectrum in a single number.

Common Wavelength Mistakes

Changing the frequency inside a medium — the deepest error in this topic. Frequency is fixed by the source; speed and wavelength adjust together. Using the vacuum speed of light inside glass or water without dividing by the refractive index. Prefix slips: entering 500 nanometres as 500 metres, or reading 5.996 x 10^14 hertz as 5.996 hertz. Confusing wavelength with period: period is the time of one cycle, the reciprocal of frequency, not a length at all. Reporting photon energy for a whole beam when E = h x f gives the energy of one photon. And expecting band boundaries to be exact — the spectrum table gives standard approximate ranges, and a wave near a boundary is the same wave whichever name a textbook gives it.

What This Calculator Cannot Do: An Honest Note

It uses the standard constants shown on this page — the speed of light in a vacuum, 299,792,458 m/s exactly, and the Planck constant, 6.62607015 x 10^-34 J s exactly, both as published by NIST — and single, standard refractive indices (vacuum 1.0, air 1.0003, water 1.333, glass 1.5). It does not model dispersion, the slight dependence of refractive index on wavelength that splits white light in a prism. For sound it uses the standard teaching model of dry air, 343 m/s at 20 °C with a linear temperature adjustment, not a full humidity and pressure model. It does not handle refraction angles, interference, diffraction or standing waves, and its photon energy is per photon, not the power of a beam. Inside those limits, the arithmetic is exact to the constants stated, with every step shown.

Sources & References

Source note: all seven sources above were checked live and returned HTTP 200 when this page was built. Substitutions disclosed: Encyclopaedia Britannica's wavelength article returned HTTP 403 to the checking tool, and the first-choice HyperPhysics wave page and the OpenStax high school Physics speed-of-sound page returned HTTP 404, so they were replaced with the NASA electromagnetic spectrum introduction and the OpenStax University Physics references listed above, which cover the same ground. The constants are the exact defined values published by NIST: the speed of light in a vacuum, 299,792,458 m/s, and the Planck constant, 6.62607015 x 10^-34 J s. The wave equation treatment follows The Physics Classroom and OpenStax; the spectrum band ranges follow NASA and OpenStax. Every worked figure in this guide was calculated with this page's own method, so you can reproduce each one exactly by entering the same numbers above.