Wavelength and Frequency Calculator

Convert frequency to wavelength, wavelength to frequency, or solve for wave speed using v = fλ. Light, sound, and custom waves are supported; refractive index is available as an advanced electromagnetic option. Everything runs locally in your browser.

Try a common case

Calculator

Solve for
Wave speed or medium
Preset values are approximate unless marked exact. Choose Custom wave speed to edit.
Display options

Equation: λ = v / f

Result

Enter the required values to calculate.

Results update as values or units change.

Advertisement

How to use the calculator

  1. Choose whether to solve for wavelength, frequency, or wave speed.
  2. Select a wave-speed preset or enter a custom speed, then provide the requested positive input values and units.
  3. Read the answer, equivalent conversions, substituted equation, and derived values; use Calculate to focus the updated result.

Wave quantities and formulas

Wavelength (λ) is the distance between matching points on adjacent cycles. Frequency (f) is cycles per second, measured in hertz. Period (T) is the time per cycle, so T = 1/f. Wave speed (v) is the speed at which phase propagates through the medium.

Core relation: v = fλ   |   λ = v/f   |   f = v/λ

For electromagnetic waves in a material, v = c/n. Frequency normally stays fixed across a stationary boundary, while speed and wavelength change. Spatial frequency is 1/λ in m⁻¹; angular wavenumber is k = 2π/λ in rad/m.

How to calculate wavelength from frequency

Convert frequency to hertz and wave speed to metres per second, then divide: λ = v/f. For a 100 MHz radio wave in vacuum, λ = 299,792,458 / 100,000,000 = 2.99792458 m.

How to calculate frequency from wavelength

Convert wavelength to metres, choose the wave speed for the medium, then divide: f = v/λ. For 532 nm light in vacuum, f = 299,792,458 / (532 × 10⁻⁹) ≈ 5.635 × 10¹⁴ Hz.

Wave-speed reference

Wave and mediumSpeed usedConditions and precision
Light in vacuum299,792,458 m/sExact SI defining constant
Light in air299,709,471 m/sApproximation from n = 1.000277; refractive index varies with conditions and wavelength
Sound in dry air343 m/sApproximate, 20°C; temperature and humidity matter
Sound in freshwater1,481 m/sApproximate, 20°C; temperature, pressure, and composition matter
Other wavesCustomUse the applicable phase speed for the material, tension, depth, or other conditions

Electromagnetic spectrum reference

RegionApproximate vacuum wavelengthTypical example
RadioLonger than 1 mBroadcast radio
Microwave1 mm to 1 mWi-Fi and radar
Infrared700 nm to 1 mmThermal radiation
Visible380 to 700 nmHuman-visible light
Ultraviolet10 to 380 nmUV lamps
X-ray0.01 to 10 nmMedical imaging
Gamma rayShorter than 0.01 nmNuclear transitions

Region boundaries are conventional and overlap in some scientific classifications. The calculator classifies electromagnetic results by vacuum wavelength, even when an in-medium wavelength is entered.

Wavelength and Frequency Examples

Frequency to wavelength: 100 MHz FM radio

Convert: 100 MHz = 100 × 10⁶ Hz = 1.00 × 10⁸ Hz.

Equation: λ = v/f.

Substitute: λ = (299,792,458 m/s) / (1.00 × 10⁸ s⁻¹) = 2.99792458 m.

Answer: λ ≈ 3.00 m. Each cycle spans about three metres in vacuum; the wavelength in air is only slightly shorter.

Wavelength to frequency: 532 nm green laser

Convert: 532 nm = 532 × 10⁻⁹ m = 5.32 × 10⁻⁷ m.

Equation: f = v/λ.

Substitute: f = (299,792,458 m/s) / (5.32 × 10⁻⁷ m) = 5.6352 × 10¹⁴ Hz.

Answer: f ≈ 563.5 THz, in the visible green region.

Non-light wave: 440 Hz sound in air

Convert: 440 Hz is already 440 s⁻¹; use v ≈ 343 m/s for dry air at 20°C.

Equation: λ = v/f.

Substitute: λ = (343 m/s) / (440 s⁻¹) = 0.7795 m.

Answer: λ ≈ 0.780 m. The wavelength changes with air temperature because sound speed changes.

Photon energy and wavelength inside a medium

Photon energy depends on frequency: E = hf. The familiar form E = hc/λ uses the vacuum wavelength λ₀. If λmedium is measured inside a material with refractive index n, use E = hc/(nλmedium), because λ₀ = nλmedium. The calculator uses E = hf, which remains unambiguous.

Methodology and references

Last reviewed: 14 July 2026.

Calculations convert inputs to SI units, solve v = fλ without intermediate rounding, and round only the displayed result. The speed of light c = 299,792,458 m/s, Planck constant h = 6.62607015 × 10⁻³⁴ J·s, and elementary charge e = 1.602176634 × 10⁻¹⁹ C are exact SI-defined constants.

Primary references: BIPM, The International System of Units; NIST SP 330, SI base-unit definitions; NIST refractive-index overview; Georgia Tech, speed of sound in air; and National Physical Laboratory, sound speed in water at 20°C.

Air refractive index and both sound-speed presets are reference estimates, not universal constants. Refractive index varies with wavelength, pressure, temperature, and composition; sound speed varies with the medium and conditions. For precision work, use a measured custom value.

Frequently Asked Questions

How do I convert Hz or MHz to wavelength?

Choose Solve for Wavelength, select the wave speed, and enter the frequency. Convert MHz to Hz by multiplying by 1,000,000, then use λ = v/f. The calculator performs the unit conversion automatically.

How do I convert nanometres (nm) to frequency?

Choose Solve for Frequency, enter the wavelength in nm, and select the correct wave speed. The calculator converts nm to metres and applies f = v/λ. For light in vacuum, 532 nm is about 563.5 THz.

What wave speed should I use?

Use the phase speed for the wave and medium under your conditions. Light in vacuum uses exactly 299,792,458 m/s; dry-air sound at 20 °C is approximately 343 m/s; freshwater sound near 20 °C is approximately 1,481 m/s. Use Custom speed when the material, temperature, tension, or wave type differs.

Does this calculator work for sound waves?

Yes. Select Sound in air at 20 °C, Sound in freshwater at 20 °C, or Custom speed. Photon energy and electromagnetic spectrum labels are intentionally omitted for non-electromagnetic waves.

Does frequency change when a wave crosses a boundary?

The frequency is set by the source and normally remains continuous across a stationary boundary. If wave speed changes, wavelength changes so that v = fλ still holds.

Why are vacuum wavelength and wavelength in a medium different?

For light in a material with refractive index n, phase speed is v = c/n. Frequency stays fixed, so the in-medium wavelength is λmedium = λvacuum/n. Material dispersion means n can depend on wavelength and temperature.

What is the wavelength of 100 MHz?

In vacuum, 100 MHz corresponds to 2.99792458 m, usually rounded to 3.00 m. In air the result is slightly shorter because light travels slightly slower.

What is the difference between 1/λ and 2π/λ?

Spatial frequency 1/λ counts cycles per metre and has units m⁻¹. Angular wavenumber k = 2π/λ measures phase change per metre and has units rad/m. They differ by a factor of 2π.

Explore more tools