WikiNano.
Electromagnetic Spectrum Lab
Spectrum Lab
The electromagnetic spectrumc = λ · f = 299,792,458 m/s

All of it is light.

Radio broadcasts, microwave ovens, the warmth of a fire, the colours you see, sunburn, X‑ray images and gamma rays from exploding stars are all electromagnetic waves. They are electric and magnetic fields rippling through space at the same speed, and they differ only in wavelength. Drag along the ruler to travel across twenty powers of ten.

Axis
Zoom

Drag · ← → keys

Wavelength532 nm
Frequency563 THz
Photon energy2.33 eV
BandVisible
One wave is about as long as
Nearby example
Seven bandsedges are conventions, not physics

Seven bands, one phenomenon

Scientists split the spectrum into seven named bands. The boundaries are agreed conventions and neighbouring bands overlap. An X-ray and a gamma ray with the same energy are identical photons with different origins. Pick a band here or drag the ruler above.

Visible light

Did you know

Wave sandboxE ⟂ B ⟂ direction of travel · |B| = n|E| / c

Inside a light wave

An electric field (E) and a magnetic field (B) oscillate at right angles to each other and to the direction of travel. A changing electric field creates a magnetic field and a changing magnetic field creates an electric field, so the wave carries itself through empty space. Time here is slowed enormously; the readout shows by how much.

Electric field EMagnetic field B

Drag to turn the view

Polarization
Travels into
Show
View
Time
ConverterE = h·f = h·c / λ · h = 6.626 × 10⁻³⁴ J·s

Convert wavelength, frequency and energy

Type into any box and the others follow. Wavelength, frequency and photon energy are three ways to describe the same wave, linked by the speed of light and Planck’s constant. Numbers like 2.45, 5.3e-7 or 6.6 × 10^-34 all work.

Try
Graphslog E = log(hc) − log λ

Four graphs that explain the spectrum

Hover or tap a graph to read values. Every graph has a data table underneath.

Data table
The lab bench11 experiments

Eleven experiments you can run

Each bench recreates a real experiment, from Newton’s prism to Hubble’s galaxies. Change the settings, take measurements and tick off the challenges. Progress is saved in this browser.

Newton 1666 · Herschel 1800 · Ritter 1801n₁ sin θ₁ = n₂ sin θ₂ · n(λ) = A + B/λ²

Prism and the invisible rainbow

Split white light into colours, then hunt for the invisible light beyond both ends of the rainbow, just as Herschel and Ritter did.

Drag the prism to turn it

Light source
Detector on the screen

What is happening

Light slows down in glass and bends when it crosses a surface at an angle (Snell’s law). The slowing depends slightly on wavelength: violet slows more than red, so it bends more. That spreading is called dispersion.

In 1800 William Herschel put thermometers in each colour and one just past the red end, where nothing seemed to fall. That one warmed the most. He had found infrared. A year later Johann Ritter saw silver chloride darken fastest past the violet end, and found ultraviolet.

The glass follows Cauchy’s formula n = A + B/λ² with typical values. Sunlight and bulb spectra come from Planck’s law. The screen strip is magnified so the colours spread out.

Challenges

  • Spread the colours by more than 5°, violet to red.
  • Recreate Herschel: warm the thermometer where no visible light falls.
  • Recreate Ritter: make the UV card glow past the violet end.
  • Turn the prism until every colour is trapped by total internal reflection.
Try it at homecheap · safe · real

Kitchen-table experiments

Six real experiments with things you probably already have. Read the safety note on each one before you start.

Infrared · 940 nm

See infrared with your phone

You needA TV remote and a phone camera.

  1. Open the camera app. Try the front camera if the back one shows nothing, because some back cameras filter infrared.
  2. Point the remote at the lens from a few centimetres away.
  3. Press and hold any button while watching the screen.

The remote’s LED flashes on screen but not to your eye. The camera sensor detects the 940 nm infrared that your eyes cannot.

Completely safe.

Microwave · 2.45 GHz

Measure the speed of light with chocolate

You needA microwave oven, a large flat chocolate bar (or a slice of cheese), a plate and a ruler.

  1. Remove the turntable so the food cannot rotate. Rest the plate on the oven floor.
  2. Heat the chocolate on high for 15–30 seconds, until a few spots just start to melt.
  3. Measure the distance between neighbouring melted spots, in metres.
  4. Read the oven’s frequency from its label, usually 2,450 MHz.
  5. Work out 2 × spacing × frequency.

The spots are about 6 cm apart, which gives roughly 3 × 10⁸ m/s. Run the simulator first.

Ask an adult. Never run the oven empty or with metal inside. Melted chocolate can burn.

Visible · 380–750 nm

Build a CD spectroscope

You needAn old CD or DVD, a cereal box or cardboard tube, black paper, tape and scissors.

  1. Cut a thin slit, about 1 mm wide, in black paper and tape it over one end of the box.
  2. Tape a piece of the CD, shiny side in, at the other end, tilted at about 45°. Cut a viewing hole above it.
  3. Point the slit at a light and look at the CD through the hole.
  4. Compare a filament bulb, an LED, a fluorescent tube and a sodium streetlight.

The CD’s tracks, 1.6 µm apart, act as a diffraction grating. A filament gives a smooth rainbow. A fluorescent tube shows bright mercury lines, including blue at 436 nm and green at 546 nm.

Never point it at the Sun.

Microwave · 0.7–3.5 GHz

Block a phone call with a Faraday cage

You needA metal biscuit tin with a lid, aluminium foil and two phones.

  1. Put one phone in the tin and close the lid firmly.
  2. Call it from the other phone.
  3. Try again with the phone wrapped in foil, first loosely with gaps, then fully sealed.

A closed metal box reflects and absorbs the mobile signal, so the call fails. Gaps of a few centimetres, a real fraction of the 10–40 cm wavelength, let the signal leak in.

Completely safe.

Ultraviolet · 365–395 nm

Make tonic water glow

You needTonic water (it contains quinine), a UV torch and a dark room.

  1. Fill one clear glass with tonic water and another with plain water.
  2. Turn off the lights and shine the UV torch through both glasses.
  3. Also try white paper, highlighter ink and banknotes.

The tonic water glows blue. Quinine absorbs invisible ultraviolet and re-emits some of the energy as visible blue light. This is fluorescence.

Never shine a UV torch into anyone’s eyes.

Visible · polarization

Polarized sunglasses and screens

You needPolarized sunglasses and an LCD screen, such as a laptop or calculator.

  1. Look at the screen through one lens.
  2. Slowly rotate the sunglasses through 90°.
  3. Rotate them again while looking at glare on water, a shiny floor or a car windscreen.

The screen goes dark at one angle because LCDs emit polarized light. Glare is partly polarized too, which is why these lenses cut it. Try the polarizer bench.

Completely safe.

History1666 → 2022

How we found the invisible

For most of history, light meant only what eyes could see. Uncovering the rest of the spectrum took about 250 years, and exploring it with telescopes took another hundred.

    Test yourselfsort · answer · repeat

    Sort it, then quiz it

    Line them up

    Put these in order from the longest wavelength to the shortest. Drag the rows or use the arrows.

    Longest wavelength↓
      Shortest wavelength

      About Electromagnetic Spectrum Lab

      One interactive ruler from radio waves to gamma rays. Turn a light on and off, tune the wavelength and see where each wave is used.

      Topic: Physics · Format: interactive simulation · Free, no sign-up · Updated 2026-10-15 · By Prince Vincent, WikiNano · Last reviewed 2026-10-15.

      Inside this page

      Common questions

      What is the electromagnetic spectrum?
      The full range of light, from long radio waves through microwaves, infrared, visible light, ultraviolet and X-rays to short gamma rays.
      What is the link between wavelength and frequency?
      They are inversely related: the shorter the wavelength, the higher the frequency and the energy of the wave.
      What part of the spectrum can we see?
      Visible light, from about 400 nm (violet) to 700 nm (red), is a thin slice of the whole spectrum.

      Sources and further reading

      Keep exploring