Wavelength Calculator
Use this Wavelength Calculator to calculate wavelength, frequency, wave speed, period, photon energy, refractive index, and electromagnetic spectrum region. Enter any known wave values, choose units, and get a clean result with properly rendered formulas and step-by-step physics explanations.
Calculate Wavelength, Frequency, or Wave Speed
Select a calculation mode, enter known values, and calculate instantly. The default wave speed is the speed of light in vacuum, but you can use sound speed, custom medium speed, or refractive index.
What Is a Wavelength Calculator?
A Wavelength Calculator is a physics tool that calculates wavelength from wave speed and frequency, frequency from wavelength and speed, wave speed from frequency and wavelength, period from frequency, and photon energy from wavelength or frequency. Wavelength is one of the most important wave quantities in physics because it describes the distance between repeating points on a wave, such as crest to crest or compression to compression.
Waves appear in many areas of science: light, radio waves, microwaves, sound, water waves, seismic waves, strings, springs, electromagnetic radiation, and quantum particles. Although these waves can behave differently, many introductory calculations use the same relationship: wave speed equals frequency multiplied by wavelength. This simple equation connects distance, time, and repeated oscillation.
This calculator is designed for students, teachers, science writers, engineers, tutors, and anyone who needs a clean wave calculation. It supports common wavelength units such as meters, centimeters, millimeters, micrometers, nanometers, picometers, and kilometers. It also supports frequency units including hertz, kilohertz, megahertz, gigahertz, and terahertz. For speed, it supports meters per second and several practical conversion units. The calculator converts everything into SI units internally, calculates the result, and displays helpful converted values.
The tool also includes photon energy calculations using Planck’s equation. This is especially useful for electromagnetic radiation, where a photon’s energy is related to frequency and wavelength. A short wavelength corresponds to higher frequency and higher photon energy, while a long wavelength corresponds to lower frequency and lower photon energy. This is why ultraviolet radiation is more energetic than visible red light, and X-rays are more energetic than ultraviolet.
How to Use the Wavelength Calculator
Start with the Wave Formula tab if you want to calculate wavelength, frequency, wave speed, or period. Select what you want to solve for. The calculator will show the input fields needed for that calculation. For example, if you want wavelength, enter frequency and wave speed. If you want frequency, enter wavelength and wave speed. If you want wave speed, enter frequency and wavelength.
The wave speed preset lets you quickly select common values. Light in vacuum uses the standard speed of light, approximately \(299{,}792{,}458\,m/s\). Sound in air at about 20°C is commonly approximated as \(343\,m/s\). Sound in water is much faster, often approximated around \(1480\,m/s\). You can also choose custom speed for any wave or medium.
Use the Photon Energy tab when working with electromagnetic radiation, such as visible light, infrared, ultraviolet, X-rays, radio waves, lasers, or photons. You can enter wavelength, frequency, or energy, and the calculator will compute the related quantities using \(E=hf\) and \(c=f\lambda\). The result shows wavelength, frequency, period, photon energy in joules, and photon energy in electronvolts.
Use the Medium / Refractive Index tab when light travels through a material instead of vacuum. In a medium, light speed becomes \(v=c/n\), where \(n\) is refractive index. Frequency remains the same when light enters a new medium, but wavelength changes because speed changes. This is why wavelength in glass or water is shorter than wavelength in vacuum for the same light frequency.
Wavelength Calculator Formulas
The central wave equation is:
Solving for wavelength gives:
Solving for frequency gives:
Period and frequency are reciprocal quantities:
For photons, energy is calculated using Planck’s equation:
For light traveling in a medium:
Wave Speed, Frequency, and Wavelength
Wave speed tells how quickly a wave pattern travels through space or through a medium. Frequency tells how many cycles pass a fixed point per second. Wavelength tells the physical distance covered by one full cycle. These three quantities are connected. If speed stays the same and frequency increases, wavelength decreases. If speed stays the same and frequency decreases, wavelength increases.
This inverse relationship is easy to see in electromagnetic waves. Blue light has a shorter wavelength and higher frequency than red light. Radio waves have much longer wavelengths and much lower frequencies than visible light. Gamma rays have extremely short wavelengths and extremely high frequencies. The wave equation lets you move between these descriptions.
Sound waves also follow the same structure, but their speed depends strongly on the medium. Sound travels through air much slower than light. It travels faster in water than in air, and often faster still in solids. A 1000 Hz sound wave in air has a wavelength of about 0.343 m if the speed of sound is 343 m/s. The same frequency in water has a longer wavelength because the wave speed is higher.
Period and Frequency
Frequency and period describe the timing of a repeating wave. Frequency is cycles per second. Period is seconds per cycle. If a wave has a frequency of 10 Hz, it completes 10 cycles every second, so one cycle takes 0.1 seconds. If a radio wave has a frequency of 100 MHz, its period is only 10 nanoseconds.
The reciprocal relationship is useful because some wave problems provide period rather than frequency. Once period is known, frequency is \(f=1/T\). Once frequency is known, period is \(T=1/f\). This calculator displays period automatically when enough wave information is available.
Photon Energy and Wavelength
Electromagnetic radiation can be described as waves and also as photons. A photon is a packet of electromagnetic energy. The energy of a photon depends on frequency through \(E=hf\), where \(h\) is Planck’s constant. Because frequency and wavelength are connected by \(c=f\lambda\), photon energy can also be written as \(E=hc/\lambda\).
This means short-wavelength photons have higher energy. Ultraviolet photons have more energy than visible photons. X-ray photons have more energy than ultraviolet photons. Long-wavelength radio photons have very low energy compared with visible light. This energy difference explains why different parts of the electromagnetic spectrum interact with matter differently.
The calculator displays photon energy in joules and electronvolts. Joules are the SI unit of energy, while electronvolts are more convenient for atomic, optical, and quantum physics. One electronvolt is the energy gained by one electron moving through a potential difference of one volt.
Wavelength in a Medium
When light enters a material such as water, glass, acrylic, diamond, or another transparent medium, its speed changes. Refractive index measures how much the medium slows light compared with vacuum. The formula is \(n=c/v\). Rearranged, the speed in the medium is \(v=c/n\).
The frequency of light does not change when it crosses from one medium to another. However, because speed changes and frequency stays constant, wavelength changes. In a material with refractive index 1.5, wavelength becomes two-thirds of the vacuum wavelength. This is important in optics, lenses, interference, thin films, fiber optics, and wave propagation.
For sound and other mechanical waves, the term refractive index may not be the main model, but medium still matters. The wave speed depends on physical properties such as elasticity, density, temperature, pressure, and tension. Always use the correct speed for the wave and material you are analyzing.
Electromagnetic Spectrum Guide
The electromagnetic spectrum is commonly divided into regions by wavelength and frequency. The exact boundaries can vary slightly by source and context, but the broad order is stable: radio waves have the longest wavelengths, then microwaves, infrared, visible light, ultraviolet, X-rays, and gamma rays. Visible light is only a narrow slice of the spectrum, roughly from about 380 nm to 750 nm.
| Region | Approximate Wavelength Range | Notes |
|---|---|---|
| Radio | Longer than about 1 m | Broadcasting, communication, astronomy |
| Microwave | 1 mm to 1 m | Radar, microwave ovens, wireless communication |
| Infrared | 750 nm to 1 mm | Heat radiation, remote controls, thermal imaging |
| Visible | About 380 nm to 750 nm | Human-visible colors from violet to red |
| Ultraviolet | 10 nm to 380 nm | Higher-energy light beyond violet |
| X-ray | 0.01 nm to 10 nm | Medical imaging and material analysis |
| Gamma ray | Shorter than about 0.01 nm | Very high-energy radiation |
Wavelength Calculation Examples
Example 1: Find the wavelength of light with frequency \(600\,THz\). Convert terahertz to hertz: \(600\,THz=600\times10^{12}\,Hz\). Use \(\lambda=c/f\).
Example 2: Find the wavelength of a 1000 Hz sound wave in air at 343 m/s.
Example 3: Find photon energy for 500 nm light.
Example 4: Find wavelength in water if vacuum wavelength is 500 nm and refractive index is 1.33.
Accuracy and Limitations
This calculator uses simplified wave physics formulas. It assumes ideal wave relationships and constant wave speed. Real waves can be affected by dispersion, temperature, pressure, tension, medium composition, boundary conditions, nonlinear effects, absorption, scattering, and measurement uncertainty. For many educational problems, the formulas are exactly what is needed. For laboratory or engineering work, verify the wave speed, medium properties, and measurement setup.
For light calculations, this calculator uses the speed of light in vacuum and standard physical constants. For sound calculations, preset speeds are approximations. The speed of sound in air changes with temperature, humidity, altitude, and gas composition. The speed of sound in water changes with temperature, salinity, and pressure. Use custom speed when precision matters.
Wavelength Calculator FAQs
What does a wavelength calculator do?
It calculates wavelength, frequency, wave speed, period, photon energy, and medium-related wave values using standard wave formulas.
What is the wavelength formula?
The main wavelength formula is \(\lambda=v/f\), where \(\lambda\) is wavelength, \(v\) is wave speed, and \(f\) is frequency.
What is the speed of light used by the calculator?
The calculator uses \(c=299{,}792{,}458\,m/s\) for light in vacuum.
How are frequency and wavelength related?
For a fixed wave speed, frequency and wavelength are inversely related. Higher frequency means shorter wavelength, and lower frequency means longer wavelength.
Can this calculator be used for sound waves?
Yes. Choose a sound speed preset or enter a custom wave speed. Then calculate wavelength, frequency, speed, or period.
Does wavelength change in a medium?
For light, wavelength changes in a medium because speed changes while frequency remains the same. The formula is \(\lambda_{medium}=\lambda_0/n\).
Important Note
This Wavelength Calculator is for educational physics and general science use. It does not replace laboratory measurement, engineering validation, optical design software, professional acoustic analysis, or safety guidance for radiation, lasers, ultrasound, or high-energy electromagnetic sources.
