What Makes Light

Light is produced whenever charged particles, usually electrons, release energy. This can happen in dozens of ways, from nuclear reactions inside stars to chemical reactions inside a firefly’s body, but every source of light shares the same core event: an electron loses energy, and that energy escapes as a tiny packet called a photon. The color of the light depends on how much energy each photon carries. Photons with more energy appear blue or violet, while lower-energy photons appear red or orange.

Visible light itself spans a narrow band of wavelengths, roughly 400 to 780 nanometers, sandwiched between ultraviolet and infrared radiation on the electromagnetic spectrum. Violet sits at the short end (around 380 to 420 nm), red at the long end (650 to 780 nm), and green, yellow, and orange fill the middle. Everything below explores the specific processes that generate those photons.

The Basic Mechanism: Electrons Dropping Energy Levels

Atoms have electrons arranged in energy levels, like rungs on a ladder. When an electron absorbs energy (from heat, electricity, or a collision with another particle), it jumps to a higher rung. It can’t stay there long. When it drops back down, it sheds the extra energy as a photon. The photon’s energy, and therefore its color, matches the exact difference between the two rungs. This is why different elements produce different colors: hydrogen, neon, and sodium each have their own unique spacing between energy levels, so they emit photons at characteristic wavelengths.

This single principle underlies nearly every light source you encounter. The differences between a candle, a neon sign, and an LED come down to how electrons get pushed to higher energy levels in the first place.

Heat and Incandescence

The oldest and most intuitive way to make light is to heat something up. When a material gets hot enough, its atoms vibrate so intensely that their electrons are constantly being kicked into excited states and falling back down, releasing photons across a broad range of wavelengths. This is incandescence, and it’s what happens in candle flames, campfires, and traditional filament light bulbs.

The temperature determines the color. A candle flame or incandescent bulb operates at roughly 2,800 Kelvin (about 2,500°C), which is why their light looks warm and orange. They emit far more infrared radiation (heat) than visible light, making them inefficient as light sources. The Sun’s surface, by contrast, sits around 6,000 Kelvin, producing a much whiter, bluer light that peaks right in the middle of the visible spectrum. That’s not a coincidence: human eyes evolved under sunlight, so our vision is tuned to the wavelengths the Sun emits most strongly.

How the Sun Produces Light

Sunlight starts deep in the Sun’s core, where temperatures reach about 15 million degrees. At that extreme, hydrogen nuclei slam together and fuse into helium through a series of reactions called the proton-proton chain. Each fusion event converts a tiny amount of mass into energy, released as high-energy gamma ray photons.

Those gamma rays don’t shoot straight to the surface. They pass through a thick radiative layer surrounding the core, where they’re absorbed and re-emitted countless times by surrounding atoms, gradually losing energy with each interaction. A photon produced in the core can take tens of thousands of years to reach the Sun’s surface. By the time it escapes, the energy has been distributed across trillions of lower-energy photons, and the surface temperature has cooled to about 6,000 Kelvin, a temperature that corresponds to the visible sunlight we see.

Electricity Passing Through Gas

Neon signs, fluorescent tubes, and sodium streetlamps all work by running electricity through a gas. When voltage is applied across a tube filled with a specific gas, free electrons accelerate through the tube and collide with gas atoms. Those collisions knock the atoms’ own electrons into higher energy levels. As the excited electrons fall back down, they emit photons at wavelengths characteristic of that particular gas. Neon glows red-orange. Mercury vapor emits ultraviolet light, which is why fluorescent tubes coat the inside of the glass with a phosphor powder that absorbs the UV and re-emits it as visible white light.

How LEDs Create Light

Light-emitting diodes work through a completely different process than heating a filament or exciting a gas. Inside an LED, an electric current flows through a semiconductor material with two distinct regions. One region has extra electrons, and the other has “holes,” which are spots where electrons are missing. When electrons cross the boundary between these two regions and fill the holes, they drop to a lower energy state and release photons.

The color of an LED is determined by the semiconductor material itself, specifically a property called its band gap, which is the energy difference electrons must cross. A wider band gap produces higher-energy (bluer) light, while a narrower band gap produces lower-energy (redder) light. Engineers choose different semiconductor materials to create LEDs of virtually any color. White LEDs typically use a blue LED coated with a yellow phosphor that, together, blend into white light. Because LEDs convert electricity into light without generating much heat, they’re far more efficient than incandescent bulbs.

Chemical Reactions: Glow Sticks and Fireflies

Light doesn’t always require electricity or extreme heat. Certain chemical reactions produce photons directly. Snap a glow stick and you’re mixing two chemicals that react to create an excited-state molecule. As that molecule relaxes, it emits light. No heat involved, which is why chemists call it “cold light.”

Bioluminescence is the living world’s version of the same idea. Fireflies produce light through a reaction between a small molecule called luciferin and an enzyme called luciferase. The process works in two stages: first, the luciferin molecule is chemically activated using cellular energy (ATP). Then it reacts with oxygen, forming a temporary high-energy ring structure that quickly breaks apart. When it does, it releases carbon dioxide and generates an excited-state product called oxyluciferin. As that molecule drops back to its resting state, it emits a photon, producing the familiar yellow-green flash. Oxygen is essential to the reaction, which is why the chemistry of light emission is tied so closely to the luciferin substrate and its interaction with oxygen.

Bioluminescence has evolved independently in dozens of lineages, from deep-sea fish to fungi. Different organisms use different versions of luciferin and luciferase, but the core principle is always the same: a chemical reaction pushes a molecule into an excited state, and the return to normal releases a photon.

Fluorescence and Phosphorescence

Some materials absorb light at one wavelength and re-emit it at another. This is fluorescence, and it’s why certain dyes, minerals, and laundry detergents glow vivid colors under a blacklight. The material absorbs ultraviolet photons (invisible to your eyes), and its electrons briefly jump to a higher energy state before falling back down and releasing lower-energy visible photons. The process is nearly instant, happening in billionths of a second.

Phosphorescence is a slower cousin. The electron gets trapped in an intermediate energy state where the normal path back down is restricted by quantum rules involving the electron’s spin. Because the transition is “spin-forbidden,” the electron lingers in its excited state much longer before finally releasing a photon. This is why glow-in-the-dark stars on a child’s ceiling keep emitting light for minutes or even hours after you turn off the lights. Phosphorescence occurs in principle in all compounds but is normally so faint that fluorescence outshines it.

Accelerating Charges

Any time a charged particle changes speed or direction, it emits electromagnetic radiation. This is the principle behind synchrotron light sources, which are large research facilities where electrons travel at nearly the speed of light around circular paths. As powerful magnets bend the electrons’ trajectory, the particles emit intense beams of radiation spanning from infrared to X-rays. Synchrotron radiation was first observed in 1947 and was initially considered an unwanted energy loss in particle accelerators. Today, dedicated synchrotron facilities around the world produce high-intensity X-rays used in everything from protein structure analysis to materials science.

This same principle operates on a cosmic scale. Pulsars, jets streaming from black holes, and the charged particles in Earth’s magnetic field all produce light through the acceleration of charges. The northern lights happen when charged particles from the Sun spiral along Earth’s magnetic field lines and collide with atmospheric gases, exciting those gas atoms and causing them to emit photons, the same electron-dropping-energy-levels process that started this article.

Why Light Travels at That Speed

Once a photon is emitted, it travels at exactly 299,792,458 meters per second in a vacuum. This number is not an approximation. Since 1983, the meter itself has been defined as the distance light covers in 1/299,792,458 of a second, making the speed of light a fixed constant by definition. In practical terms, that’s about 300,000 kilometers per second, fast enough to circle the Earth roughly 7.5 times in one second. Light slows down when passing through materials like water or glass, which is what causes refraction, the bending you see when a straw looks broken in a glass of water.