Audited ·Last updated 27 Jul 2026·8 citations·Tier 1·0 uses

Wavelength & Frequency Calculator

Free wavelength calculator — convert between wavelength, frequency, and photon energy using c = λf and E = hf with exact SI constants.

Wavelength & Frequency Calculator

Solve for
Wavelength λ in metres (SI base unit). For nanometres divide by 1e9 — e.g. 550 nm = 5.5e-7 m. Required when solving for frequency.
m
Frequency f in hertz (cycles per second). For MHz multiply by 1e6, for GHz multiply by 1e9. Required when solving for wavelength.
Hz
Phase speed of the wave. Defaults to c = 299,792,458 m/s (speed of light in vacuum, exact by 2019 SI). Override for waves in glass (~2e8), water (~2.25e8), or for sound waves (~343 m/s in air).
m/s
Wavelength
0
Wavelength λ in metres, equal to v / f. The spatial period of the wave — the distance over which the wave repeats itself.
Frequency
545,077,196,363,636.3 Hz
Photon energy
0 J
Wavelength (nm)
550 nm
Period
0 s

Background.

This wavelength calculator (and frequency calculator, depending on which way you run it) solves the universal wave equation v = λf for whichever quantity you do not know, and then returns the photon energy E = hf, the period T = 1/f, and the wavelength in nanometres as bonus outputs.

For electromagnetic waves in vacuum the wave speed is the speed of light c = 299,792,458 m/s — a value that has been exact by definition since the 2019 SI redefinition, in which the metre is now derived from c and the second rather than the other way around. For waves in any other medium (light in glass, microwaves in a waveguide, sound in air, water waves in a tank) you override the mediumSpeed input with the phase velocity of the wave in that medium, and the same c = λf relation becomes v = λf with no other change to the math.

Pick a 'solve for' mode, enter the one quantity you know in SI base units (metres for wavelength, hertz for frequency), and the tool returns the full set: wavelength in metres and nanometres, frequency in hertz, photon energy in joules, and period in seconds.

The reason this single triangle of equations matters so much, and the reason physicists and engineers reach for it dozens of times a day, is that it ties together the three different languages we use to describe waves: a spatial-period language (wavelength, in metres — what you measure with a ruler and a diffraction grating), a temporal-period language (frequency, in hertz — what you read off a spectrum analyser or a stopwatch on a pendulum), and an energy language (photon energy, in joules or electronvolts — what matters for photochemistry, atomic spectroscopy, and the photoelectric effect). The same green photon at 550 nm has frequency 5.45 × 10¹⁴ Hz and carries 2.25 eV of energy — three numbers that look unrelated until you go through c = λf and E = hf.

Below the widget you will find a tour of the electromagnetic spectrum from radio (kilometre wavelengths, kilohertz frequencies, sub-microelectronvolt photons) up through visible light, ultraviolet, X-ray, and gamma (sub-picometre wavelengths, exahertz frequencies, megaelectronvolt photons), the derivation of why c is now an exact integer rather than a measured quantity, the change of wavelength (but not frequency) when light enters a denser medium such as glass or water, the relationship to the Planck relation E = hf and how it underwrites Einstein's 1905 explanation of the photoelectric effect, and worked examples drawn from astronomy (redshift), telecommunications (Wi-Fi at 2.4 GHz), and medical imaging (X-ray at 0.1 nm). The calculator is a thin shell over a pure-function solver registered at wavelengthFrequency.solve in the Quanta engine; 30 unit tests cover the visible spectrum, radio, microwave, X-ray, and non-vacuum media so the number you read here is the same number used in our other physics tooling.

What is wavelength & frequency calculator?

Wavelength (λ, the Greek letter lambda) is the spatial period of a wave — the distance, measured along the direction of propagation, between two consecutive points that are in the same phase of oscillation (two adjacent crests, or two adjacent troughs, or two adjacent zero-crossings going in the same direction). It is measured in metres in SI, but in practice the unit is matched to the regime: kilometres for AM radio, metres for FM radio and HF, centimetres for microwaves, micrometres for infrared, nanometres for visible light and ultraviolet, ångströms or picometres for X-rays. Frequency (f, sometimes ν the Greek letter nu in physics texts) is the temporal period of the same wave — the number of complete cycles passing a fixed point per second. It is measured in hertz (Hz), where 1 Hz = 1 cycle per second, with multiplier prefixes scaling up through kHz, MHz, GHz, THz, PHz, and EHz. Wavelength and frequency are tied together by the wave equation v = λf, where v is the phase speed of the wave in whichever medium it is travelling through. For electromagnetic waves in vacuum, v is the speed of light c — a defined constant equal to 299,792,458 m/s exactly. Because v is fixed for a given medium, wavelength and frequency are inversely proportional: a wave with twice the frequency has half the wavelength. The full electromagnetic spectrum spans 24 orders of magnitude in frequency, from extremely low frequency radio at a few hertz (wavelengths of thousands of kilometres) at one end through the visible band (about 400–750 nm, 400–750 THz) to gamma rays beyond 10²⁰ Hz with sub-femtometre wavelengths at the other. The photon-energy language adds a third dimension: by the Planck relation E = hf, where h = 6.62607015 × 10⁻³⁴ J·s (also exact post-2019 SI), the same wave can be described as a stream of quanta each carrying energy proportional to the frequency. Radio photons carry nanoelectronvolts and so are imperceptible individually; visible photons carry a couple of electronvolts and trigger chemical changes in the retina; X-ray photons carry kiloelectronvolts and ionise atoms.

How to use this calculator.

  1. Choose what to solve for: 'Frequency' if you know the wavelength, 'Wavelength' if you know the frequency, or 'Photon energy' if you want E = hf and have either λ or f.
  2. Enter the known quantity in SI base units. Wavelength must be in metres — for nanometres divide by 1,000,000,000 (550 nm = 5.5e-7 m); for ångströms divide by 1e10 (1 Å = 1e-10 m). Frequency must be in hertz — for MHz multiply by 1,000,000; for GHz by 1,000,000,000; for THz by 1,000,000,000,000.
  3. Leave the wave speed field at its default 299,792,458 m/s for any electromagnetic wave in vacuum or (to two decimal places) in air. Override it only for waves in a refractive medium (light in water ≈ 2.25 × 10⁸ m/s, light in glass ≈ 2.0 × 10⁸ m/s) or for non-EM waves (sound in air ≈ 343 m/s at 20 °C).
  4. Leave the field for the unknown quantity blank — the calculator computes it from the input you supplied. If you set solveFor = 'energy' and provide both wavelength and frequency, frequency takes precedence.
  5. Read the primary output (wavelength) plus the four derived outputs: frequency in Hz, photon energy in joules, wavelength in nanometres for spectroscopic convention, and period T in seconds.
  6. To convert the photon energy from joules to electronvolts, divide by 1.602176634 × 10⁻¹⁹ (the elementary charge e, exact by SI definition). A red photon at 700 nm carries about 2.84 × 10⁻¹⁹ J = 1.77 eV.

The formula.

c = λ × f

The three relationships baked into the calculator are:

v = λ × f (wave equation — any wave, any medium) c = λ × f (electromagnetic waves in vacuum, with c = 299,792,458 m/s exactly) E = h × f (Planck relation — photon energy) T = 1 / f (period, the temporal partner of wavelength)

Deriving λ = c / f and f = c / λ from the first line is a straightforward division — solve the equation for whichever variable is the unknown. The reason c is now an exact integer rather than a measured quantity with experimental uncertainty is that in 1983 the General Conference on Weights and Measures (CGPM) redefined the metre as 'the length of the path travelled by light in vacuum during a time interval of 1/299,792,458 of a second'. Before 1983 the metre was a physical artefact and then a wavelength of a krypton-86 transition, and c had to be measured by experiment with finite uncertainty. After 1983 the metre is derived from c and the second, so c is fixed by definition. The 2019 SI redefinition extended the same logic to four other base units, fixing exact numerical values for the Planck constant h, the elementary charge e, the Boltzmann constant k_B, and the Avogadro constant N_A — so the kilogram, the ampere, the kelvin, and the mole are now all defined in terms of these invariants of nature rather than physical artefacts. The Planck relation E = hf was introduced by Max Planck in 1900 to explain blackbody radiation, then promoted by Einstein in 1905 from a mathematical trick to a physical statement: each photon really does carry energy hf, which is why the photoelectric effect has a sharp frequency threshold. Two subtleties matter for the calculator. First, when light crosses from vacuum into a refractive medium with refractive index n, the frequency f is unchanged (the source is what determines f), but the phase speed drops to v = c/n and so the wavelength drops too: λ_medium = λ_vacuum / n. The calculator handles this if you override mediumSpeed to c/n. Second, for matter waves (electrons, neutrons) the relevant relation is the de Broglie wavelength λ = h/p, not λ = c/f — this calculator is for waves with a frequency, not for matter waves with a momentum.

A worked example.

Example

Classic spectroscopy problem: what is the frequency and photon energy of green light at 550 nm — the peak sensitivity of the human eye's M-cone photoreceptors and the wavelength right at the centre of the visible band? Enter solveFor = 'frequency' and wavelength = 5.5e-7 m (which is 550 nanometres). The wave speed stays at its default c = 299,792,458 m/s for light in vacuum. The calculator computes f = c / λ = 299,792,458 / 5.5e-7 ≈ 5.4508 × 10¹⁴ Hz, or about 545 terahertz. The period T = 1/f ≈ 1.835 × 10⁻¹⁵ s, which is 1.83 femtoseconds — a single oscillation of the electric field completes in less time than it takes light to cross an atom. The photon energy E = h × f = 6.62607015 × 10⁻³⁴ × 5.4508 × 10¹⁴ ≈ 3.612 × 10⁻¹⁹ J. Dividing by the elementary charge to convert to electronvolts: 3.612 × 10⁻¹⁹ / 1.602 × 10⁻¹⁹ ≈ 2.255 eV. So a green photon at 550 nm carries about 2.25 electronvolts of energy — enough to drive photosynthesis (which needs ~1.8 eV per photon to split water), enough to trigger an isomerisation of retinal in your retina (~2 eV barrier), and enough to be visible to the eye, but not enough to ionise any common atom or molecule (which needs ~5–15 eV). If you re-ran the same calculation with the wavelength changed to 700 nm (deep red), the frequency would drop to about 428 THz and the photon energy to about 1.77 eV; at 400 nm (violet), it would rise to 750 THz and 3.10 eV. Across the entire visible band the photon energy roughly doubles, which is why blue and ultraviolet are the bands that drive most photochemistry and red is the band that mostly gets through tissue and atmosphere unabsorbed.

wavelength0
solve Forfrequency

Frequently asked questions.

What is the formula for wavelength and frequency?
For any wave, the relationship is v = λ × f, where v is the phase speed of the wave in the medium, λ is the wavelength in metres, and f is the frequency in hertz. For electromagnetic waves in vacuum, v is the speed of light c = 299,792,458 m/s exactly, so the equation becomes c = λf. Solving for wavelength gives λ = c/f; solving for frequency gives f = c/λ. The two quantities are inversely proportional at any fixed wave speed — a wave with twice the frequency has half the wavelength.
What unit is wavelength measured in?
The SI base unit for wavelength is the metre, but in practice the chosen prefix matches the regime. Radio engineers use metres and kilometres. Microwave engineers use millimetres and centimetres. Spectroscopists working in the visible, ultraviolet, and near-infrared use nanometres (1 nm = 10⁻⁹ m). X-ray crystallographers use ångströms (1 Å = 10⁻¹⁰ m = 0.1 nm) or picometres. Astronomers sometimes use micrometres (microns) for thermal infrared. The calculator accepts metres as input — to enter 550 nm you would type 5.5e-7 (which is 550 × 10⁻⁹).
Why is the speed of light exact?
Since 1983 the metre has been defined as the distance light travels in vacuum in 1/299,792,458 of a second. Before that, the metre was a physical artefact (the International Prototype Metre bar in Paris) and then, from 1960 to 1983, a wavelength of a specific krypton-86 emission line. Under those earlier definitions, c had to be measured experimentally and had a small experimental uncertainty. After 1983, the logic inverted: c is the defined constant, and the metre is whatever length light travels at that speed in 1/299,792,458 s. So c = 299,792,458 m/s is exact by definition, with zero uncertainty. The 2019 SI redefinition extended the same approach to the kilogram, ampere, kelvin, and mole — all defined now in terms of exact invariants of nature.
How does wavelength change when light enters glass or water?
When light passes from vacuum (or air) into a denser medium with refractive index n > 1, the frequency f stays the same — frequency is set by the source and cannot change at an interface without violating conservation of energy of individual photons. The phase speed v drops to c/n, and because v = λf with f fixed and v reduced, the wavelength also drops to λ_medium = λ_vacuum / n. For example, green light at 550 nm in vacuum becomes about 414 nm in water (n ≈ 1.33) and about 367 nm in flint glass (n ≈ 1.50). The frequency stays at 545 THz throughout, which is why colour is determined by frequency, not wavelength — the colour you perceive when looking at an object underwater is the same as in air, even though the wavelength inside your eye is technically shorter.
What is the photon energy at a given wavelength?
Photon energy follows the Planck relation E = h × f, where h = 6.62607015 × 10⁻³⁴ J·s is the Planck constant (exact since the 2019 SI redefinition). Combining with f = c/λ gives the wavelength form E = hc/λ. Quick benchmarks: a 1 m radio photon carries about 1.99 × 10⁻²⁵ J ≈ 1.24 µeV (microelectronvolts); a 1 cm microwave photon carries 124 µeV; a 10 µm thermal-infrared photon carries 124 meV; a 550 nm green photon carries 2.25 eV; a 100 nm extreme-ultraviolet photon carries 12.4 eV (above the ionisation threshold of most molecules); a 1 nm X-ray photon carries 1240 eV = 1.24 keV; a 1 pm gamma photon carries 1.24 MeV. The convenient memory aid is the formula E (in eV) ≈ 1240 / λ (in nm).
What is the wavelength of Wi-Fi at 2.4 GHz?
Wi-Fi on the 2.4 GHz band operates at frequencies around 2.4 × 10⁹ Hz. Using λ = c/f = 299,792,458 / 2.4 × 10⁹ ≈ 0.1249 m, so about 12.5 cm. The 5 GHz band is roughly half that (6 cm), and the new 6 GHz band (Wi-Fi 6E) sits around 5 cm. These wavelengths matter for antenna design — a half-wave dipole is half a wavelength long, so a 2.4 GHz antenna is about 6 cm and a 5 GHz antenna is about 3 cm, which is why router antennas are stubby. They also matter for room behaviour: 12.5 cm waves diffract well around furniture and through drywall, which is why 2.4 GHz has better range than 5 GHz inside a house even though it has lower bandwidth.
What is the difference between wavelength and period?
Wavelength is the spatial period of the wave — measured in metres, it is the distance over which the wave repeats. Period T is the temporal period — measured in seconds, it is the time over which the wave repeats at a fixed point in space. The two are connected by the wave speed: in one period T, the wave advances by one wavelength λ, so v = λ/T. Since T = 1/f, this is the same equation as v = λf. The period output of this calculator is the inverse of the frequency: a 1 GHz signal has T = 1 ns, a 550 THz green light wave has T ≈ 1.83 fs, and a 50 Hz mains-frequency oscillation has T = 20 ms.
How do I convert frequency from MHz or GHz to Hz?
One megahertz (MHz) is 10⁶ Hz, so multiply by 1,000,000 — a 100 MHz FM broadcast station is at 100,000,000 Hz = 1 × 10⁸ Hz. One gigahertz (GHz) is 10⁹ Hz, so multiply by 1,000,000,000 — a 2.4 GHz Wi-Fi channel is at 2.4 × 10⁹ Hz. One terahertz (THz) is 10¹² Hz, so multiply by 1,000,000,000,000 — green light at 545 THz is at 5.45 × 10¹⁴ Hz. The calculator expects hertz as input; type the numerical value with the appropriate power of ten in scientific notation (e.g. 2.4e9 for 2.4 GHz).
What is the electromagnetic spectrum, briefly?
The electromagnetic spectrum is the full range of frequencies (or equivalently wavelengths or photon energies) of electromagnetic waves, all of which propagate at c in vacuum. From low to high frequency: radio (below ~300 MHz, wavelengths metres to kilometres) used for broadcast and long-range communications; microwave (~300 MHz to 300 GHz, wavelengths millimetres to metre) used for Wi-Fi, radar, and microwave ovens; infrared (~300 GHz to 430 THz, wavelengths 700 nm to 1 mm) emitted by warm bodies and used for thermal imaging; visible light (~430–750 THz, 400–700 nm) what the eye sees; ultraviolet (~750 THz to 30 PHz, 10–400 nm) carrying enough energy to break chemical bonds; X-ray (~30 PHz to 30 EHz, 10 pm to 10 nm) used in medical imaging and crystallography; and gamma (above ~10 EHz, wavelengths below 10 pm) from nuclear transitions and astrophysical sources. The boundaries between bands are by convention, not by physics — they are all the same kind of wave.
Can I use this calculator for sound waves or water waves?
Yes — set the mediumSpeed input to the phase speed of the wave in your medium. Sound in dry air at 20 °C travels at about 343 m/s, so a 440 Hz concert-pitch A has wavelength 343/440 ≈ 0.78 m. Sound in water travels at about 1500 m/s, so the same 440 Hz tone has wavelength 1500/440 ≈ 3.4 m underwater. Deep-water ocean swells with a 10-second period (f = 0.1 Hz) travelling at about 15 m/s have wavelengths around 150 m. The wave equation v = λf is universal — only the photon-energy output E = hf is meaningful exclusively for electromagnetic waves, since the Planck relation describes the quantisation of the electromagnetic field. For sound waves the 'photon energy' output is technically a phonon energy if you take the quantum-acoustics interpretation, but in everyday acoustics it has no operational meaning — ignore it.

References& sources.

  1. [1]NIST CODATA 2018 Recommended Values — speed of light in vacuum c = 299,792,458 m/s (exact). National Institute of Standards and Technology, Committee on Data for Science and Technology.
  2. [2]NIST CODATA 2018 Recommended Values — Planck constant h = 6.62607015 × 10⁻³⁴ J·s (exact, post-2019 SI). National Institute of Standards and Technology.
  3. [3]BIPM (2019). The International System of Units (SI), 9th edition. Bureau International des Poids et Mesures — the official document defining the 2019 SI redefinition in which c, h, e, k_B, and N_A are all fixed exactly and the metre, kilogram, ampere, kelvin, and mole are derived from them.
  4. [4]Feynman, R. P., Leighton, R. B. & Sands, M. (1964). The Feynman Lectures on Physics, Volume I, Chapter 17 'Space-Time'. Caltech / Addison-Wesley. The wave equation v = λf and its derivation from the kinematics of a propagating disturbance.
  5. [5]Halliday, D., Resnick, R. & Walker, J. (2014). Fundamentals of Physics, 10th edition. Wiley. Chapter 16 §16-2 (transverse waves, wavelength and frequency) and Chapter 33 §33-1 (Maxwell's prediction of electromagnetic waves and the constancy of c).
  6. [6]Planck, M. (1901). Ueber das Gesetz der Energieverteilung im Normalspectrum. Annalen der Physik, 309(3), 553–563. The original derivation of E = hν (Planck relation) from the blackbody radiation law.
  7. [7]Einstein, A. (1905). Über einen die Erzeugung und Verwandlung des Lichtes betreffenden heuristischen Gesichtspunkt. Annalen der Physik, 322(6), 132–148. Einstein's photoelectric-effect paper which promoted the Planck relation from a mathematical trick to a physical statement about photons.
  8. [8]Hyperphysics — Wave Equation and Electromagnetic Spectrum reference pages, Georgia State University. Conceptual overview of the c = λf relation and tabulated benchmark frequencies for the full EM spectrum.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon