Electromagnetism

Electromagnetic Spectrum

Radio to gamma — all EM waves at different frequencies, all traveling at c

The electromagnetic spectrum is the range of all EM wave frequencies — from radio (low f, long λ) to gamma rays (high f, short λ). Visible light is a tiny slice (380-750 nm). Each part has unique uses — radio for communication, microwaves for cooking, IR for heat, visible for sight, UV for tanning, X-rays for imaging, gamma for cancer treatment.

  • Range10⁰ Hz to 10²⁵ Hz (25+ orders of magnitude)
  • Wavelengthskm to 10⁻¹⁵ m
  • All travel at c3 × 10⁸ m/s in vacuum
  • Photon energyE = h·f (proportional to frequency)
  • Visible380-750 nm (a tiny window)
  • Higher frequencyMore energetic photons

Interactive visualization

Press play, or step through manually. The visualization is yours to drive — try it before reading on.

Open visualization fullscreen ↗

Watch the 60-second explainer

A condensed visual walkthrough — narrated, captioned, under a minute.

The full spectrum

RegionFrequencyWavelengthPhoton Energy
ELF (extremely-low frequency)3-300 Hz1000 km - 10 km10⁻¹³ - 10⁻¹¹ eV
VLF (very low)3-30 kHz100-10 km10⁻¹¹ - 10⁻¹⁰ eV
LF (long wave)30-300 kHz10-1 km
AM radio530-1700 kHz~200-600 m10⁻⁹ eV
SW radio3-30 MHz10-100 m
FM radio, VHF TV54-216 MHz1.4-5.6 m10⁻⁷ eV
UHF TV, cellular300 MHz - 3 GHz10 cm - 1 m10⁻⁶ eV
Microwave (cell, WiFi, oven)1-300 GHz1 mm - 30 cm10⁻⁶ - 10⁻³ eV
Far IR0.3-30 THz10 µm - 1 mm10⁻³ - 10⁻¹ eV
Mid IR30-100 THz3-10 µm0.1-0.4 eV
Near IR100-400 THz700 nm - 3 µm0.4-1.7 eV
Visible (red)~430 THz~700 nm1.77 eV
Visible (green)~545 THz~550 nm2.25 eV
Visible (violet)~750 THz~400 nm3.10 eV
UV-A, UV-B, UV-C800 THz - 30 PHz10-400 nm3-100 eV
X-ray (soft)30 PHz - 30 EHz0.01-10 nm100 eV - 100 keV
X-ray (hard)30 EHz - 300 EHz1-100 pm100 keV - 1 MeV
Gamma rays> 300 EHz< 1 pm> 1 MeV

Visible spectrum

ColorWavelengthFrequency
Red620-750 nm400-484 THz
Orange590-620 nm484-508 THz
Yellow570-590 nm508-526 THz
Green495-570 nm526-606 THz
Blue450-495 nm606-668 THz
Violet380-450 nm668-789 THz

JavaScript — spectrum calculations

const c = 3e8;
const h = 6.626e-34;
const eV = 1.602e-19;

// Convert between f, λ, energy
function freqToWavelength(f) { return c / f; }
function wavelengthToFreq(lam) { return c / lam; }
function freqToEnergy(f) { return h * f; }  // J
function freqToEnergy_eV(f) { return h * f / eV; }
function wavelengthToEnergy_eV(lam) { return h * c / lam / eV; }

// Common parts of spectrum
console.log(`Red light (700 nm): ${wavelengthToEnergy_eV(700e-9).toFixed(2)} eV`);
console.log(`UV (200 nm): ${wavelengthToEnergy_eV(200e-9).toFixed(2)} eV`);
console.log(`X-ray (0.1 nm = 1Å): ${wavelengthToEnergy_eV(0.1e-9).toFixed(0)} eV`);
console.log(`Gamma (10 pm): ${wavelengthToEnergy_eV(10e-12).toFixed(0)} eV`);

// Check ionization energy
const ionization_H = 13.6;  // eV
function canIonize(photon_eV, target_eV = ionization_H) {
  return photon_eV >= target_eV;
}

console.log(`UV (10 eV) ionizes H? ${canIonize(10)}`);  // false
console.log(`UV (15 eV) ionizes H? ${canIonize(15)}`);  // true (UV-C)
console.log(`X-ray (1000 eV) ionizes H? ${canIonize(1000)}`); // yes

// Atmosphere transmission windows
function inVisibleWindow(wavelength) {
  return wavelength >= 380e-9 && wavelength <= 750e-9;
}

function inRadioWindow(frequency) {
  // Atmosphere transparent ~3 MHz to ~30 GHz
  return frequency >= 3e6 && frequency <= 30e9;
}

// Microwave oven: water absorption peak
console.log(`2.45 GHz (microwave) wavelength: ${(c / 2.45e9 * 1000).toFixed(1)} cm`);

// Fiber optic communication uses 1550 nm (low water absorption in glass)
console.log(`Fiber optic 1550 nm: ${(wavelengthToEnergy_eV(1550e-9)).toFixed(2)} eV`);

// 5G radio
function radio5G(freq_GHz) {
  return c / (freq_GHz * 1e9) * 100;  // wavelength in cm
}

console.log(`5G at 28 GHz: ${radio5G(28).toFixed(2)} cm`);  // 1.07 cm

Where each part of spectrum is used

RegionMajor uses
RadioCommunication (AM/FM, TV), military submarine (ELF)
MicrowaveWiFi, cell phones, radar, ovens, satellites
IRHeat sensing, thermal imaging, fiber optics, remote controls
VisibleVision, photography, displays, lasers
UVSterilization, fluorescence, sun damage, ozone formation
X-rayMedical imaging, security, materials science, astronomy
GammaCancer treatment, sterilization, nuclear physics, astrophysics

Common mistakes

  • Treating visible as "the spectrum." Visible is just one tiny piece. Most EM waves invisible to humans.
  • Confusing wavelength and frequency. Inversely related: λ = c/f. Higher frequency = shorter wavelength.
  • Mixing energy units. Photon energy can be expressed in J, eV, keV, MeV. Be consistent.
  • Forgetting all EM travels at c. Different parts of spectrum have same speed in vacuum (c). Different in matter (different n for different wavelengths — dispersion).
  • Treating UV as visible. Just below visible. Bees can see some UV; humans usually can't.
  • Fearing all radiation equally. Low-energy photons (radio, microwave, IR) typically not harmful. Ionizing radiation (UV high-energy, X-ray, gamma) requires shielding.

Frequently asked questions

What's the range of EM frequencies?

Spans 25+ orders of magnitude. Lowest — extremely-low-frequency (ELF) waves at 1-100 Hz (used for submarine communication; wavelengths 3000-300,000 km). Highest — gamma rays at 10¹⁹-10²⁵ Hz (subatomic wavelengths). Visible is just 4-7.5 × 10¹⁴ Hz — a narrow window in the middle.

Why is visible light such a tiny slice?

Evolution. Sun's emission peaks in visible (peak ~500 nm); Earth's atmosphere transparent there; water (in our eyes) absorbs UV and IR but transmits visible; biological pigments (chlorophyll, retinal) evolved for these wavelengths. Vision optimized for the most abundant photons.

How do different parts of the spectrum interact with matter?

Radio — pass through most matter, interact with antennas. Microwaves — heat polar molecules (water). IR — vibrational energy in molecules; heat. Visible — electronic transitions in molecules; vision. UV — high-energy electronic transitions; ionization. X-ray — penetrates soft tissue; ionizes. Gamma — extreme penetration; nuclear physics.

What's the wavelength of WiFi?

2.4 GHz WiFi → λ = c/f = 3e8/2.4e9 = 12.5 cm. 5 GHz WiFi → 6 cm. Bluetooth (2.4 GHz) → same. 5G (28-39 GHz) → 7-11 mm. Antennas typically ~λ/2 (or fractions) — that's why phone antennas are small enough to fit inside.

Are X-rays dangerous?

High-energy photons (10s of keV) can ionize atoms in your body, breaking DNA bonds. Acute exposure: radiation poisoning. Chronic: cancer risk. But medical X-rays use minimal doses; airport scanners use very low energy. Total exposure from a chest X-ray ~ 0.1 mSv (similar to 10 days of background radiation from cosmic rays etc.).

How does a microwave oven heat food?

2.45 GHz microwaves cause water molecules to flip back and forth (water is polar). Friction between water molecules heats the food. Glass and ceramic don't absorb microwaves; food's water content does. Metal reflects (and can spark). Specifically tuned frequency for water absorption.

What's the difference between AM and FM radio?

AM (amplitude modulation) — radio carrier (530-1700 kHz) with amplitude varied to encode signal. Long range, suspect to interference. FM (frequency modulation) — carrier (88-108 MHz) with frequency varied. Better quality, shorter range. Both are EM waves; difference is encoding scheme.