Compton Scattering Calculator

Find the scattered wavelength, the shift and the energy lost by a photon when it bounces off an electron.

Physics and EnergyUpdated 2026-10-214 min read
Compton Scattering Calculator
X-ray work is usually done in picometres, and visible light in nanometres.
Scattered wavelength
...
Wavelength shift...
Scattered photon energy...
Energy taken by the electron...
Compton wavelength of the electron...

What it does

Compton scattering is what happens when an X-ray or gamma ray hits an electron and bounces off with a slightly longer wavelength. It was the first experiment that showed light behaves like particles, and it is the reason a photon is treated as a packet of energy with momentum rather than as a smooth wave.

OpenStax University Physics explains the measurement: when X-rays scatter off graphite, the scattered radiation shows a peak at the incident wavelength and a second peak at a longer wavelength, and the separation between the two depends on the angle of the outgoing beam. Compton's explanation was that the valence electrons in graphite behave as free electrons, that the incident radiation is a stream of photons, and that each photon hands its energy to one electron.

The formula that falls out of conservation of energy and momentum is short. The wavelength shift is the Compton wavelength of the electron times one minus the cosine of the scattering angle, and the Compton wavelength is just the Planck constant over the electron mass times the speed of light. Because that constant is a property of the electron and not of the light, the shift in any given direction is the same for every photon, which is exactly what the experimental data showed.

This page runs that formula. Give it the incident wavelength and the scattering angle, and it returns the scattered wavelength, the size of the shift, the energy of the outgoing photon and the kinetic energy the electron picks up. It also shows the Compton wavelength itself, so you can see how much of the shift comes from that constant.

The model assumes the electron is free and initially at rest, which is a good description for the outer electrons of a light atom such as carbon but not for tightly bound electrons in heavy atoms. Those give a different, much smaller shift, and the experimental spectra show a second, sharper peak for them. The page also assumes a single scattering event, since a photon that scatters twice has two shifts added together.

How to use

  1. Choose the unit for the wavelength. Picometres suit X-ray work, nanometres suit visible light and gamma rays are often quoted in angstroms.
  2. Enter the wavelength of the photon that hits the electron.
  3. Enter the scattering angle, which is the angle between the incoming beam and the direction you detect the scattered beam.
  4. Read the scattered wavelength and the shift, then the energy the photon keeps.
  5. Read the energy the electron takes, which is the difference between the incoming and outgoing photon energy.
  6. Compare the shift with the Compton wavelength: at 90 degrees they are equal, and at 180 degrees the shift is twice that value.

Formula

Wavelength shift: d lambda = (h / (m c)) x (1 - cos(theta)). Compton wavelength: lambda C = h / (m c) = 2.42631023867e-12 m. Scattered wavelength: lambda' = lambda + d lambda. Photon energies: E = h c / lambda and E' = h c / lambda'. Electron kinetic energy: K = E - E'.
lambda
Incident photon wavelength.
lambda'
Wavelength of the scattered photon.
theta
Scattering angle between the incident and the outgoing photon.
h
Planck's constant, 6.62607015e-34 J s.
m
Electron rest mass, 9.1093837015e-31 kg.

The constant in the shift is fixed by the electron, which is why a 0.1 nm photon and a 0.001 nm photon shift by the same amount at the same angle, even though the first carries far more energy. The shift can never exceed two Compton wavelengths, which happens for a backscattered photon at 180 degrees. The constants used here are the CODATA values from NIST.

Worked example

Example: a 0.1 nm photon scattered at 90 degrees

Defaults: nanometres, an incident wavelength of 0.1 nm and a scattering angle of 90 degrees.

  1. The Compton wavelength of the electron is h / (m c) = 2.42631023867e-12 m, which is 2.4263 pm.
  2. The shift at 90 degrees is 2.4263 pm x (1 - cos 90 degrees) = 2.4263 pm x 1 = 2.4263 pm.
  3. The scattered wavelength is 0.1 nm + 0.0024263 nm = 0.1024 nm.
  4. The incoming photon carries h c / lambda = 12.3984 keV.
  5. The outgoing photon carries h c / lambda' = 12.1047 keV.
  6. The electron takes the difference: 12.3984 - 12.1047 = 0.2937 keV of kinetic energy.
  7. The tool shows 0.1024 nm, 2.4263 pm, 12.1047 keV, 0.2937 keV and a Compton wavelength of 2.4263 pm.

Reference table

Compton shift and energy loss for a 0.1 nm photon at different scattering angles
Scattering angleShiftScattered photon energyEnergy taken by the electron
0 degrees0.0000 pm12.3984 keV0.0000 keV
30 degrees0.3251 pm12.3582 keV0.0402 keV
45 degrees0.7106 pm12.3109 keV0.0875 keV
60 degrees1.2132 pm12.2498 keV0.1486 keV
90 degrees2.4263 pm12.1047 keV0.2937 keV
120 degrees3.6395 pm11.9630 keV0.4354 keV
180 degrees4.8526 pm11.8246 keV0.5738 keV

Limits

  • The model treats the electron as free and at rest, so it does not describe the sharper peak from tightly bound electrons in heavy atoms.
  • Only one scattering event is included. A photon that scatters twice has the shift applied twice.
  • The electron is treated as non-relativistic in the recoil, which is fine for the energy transfers involved but not for very high energy photons.
  • Pair production and other photon processes are outside the scope of this calculation.

Common mistakes

  • Expecting the shift to scale with the incident wavelength. It does not, and that is the point of the experiment.
  • Using the Compton shift at 0 degrees. A photon that goes straight through is not scattered, so the shift is zero there.
  • Forgetting that the photon loses energy rather than gaining it. The shift in wavelength goes up and the energy goes down.
  • Mixing up the angle of the electron with the angle of the photon. The photon angle sets the shift, and the electron carries the rest.
  • Applying the formula to a photon scattering off a nucleus, where the mass is far larger and the shift is negligible.

Try it yourself

Quick checks. Answers sit tucked under each question.

What is the Compton shift for a photon scattered at 60 degrees?

1.2132 pm. The shift is 2.4263 pm x (1 - cos 60 degrees) = 2.4263 pm x 0.5 = 1.2132 pm.

How much longer is the wavelength after a 180 degree scatter?

4.8526 pm, which is twice the Compton wavelength of 2.4263 pm, because 1 - cos 180 degrees equals 2.

A 0.1 nm photon scatters at 45 degrees. How much energy goes to the electron?

0.0875 keV. The shift is 0.7106 pm, so the scattered photon carries 12.3109 keV out of the original 12.3984 keV.

Questions

What is the Compton effect?

The scattering of a photon by a free electron, in which the photon leaves with a longer wavelength and the electron picks up the missing energy. It is direct evidence that light comes in quantised packets.

What is the Compton wavelength?

The Planck constant divided by the electron mass and the speed of light, which gives 2.42631023867e-12 m. It is the natural unit of the effect and sets the largest possible shift.

Why does the shift not depend on the incident wavelength?

Because the shift is set by the electron and the angle alone. That independence was the striking prediction that Compton made and that the measurements confirmed.

What is the maximum possible shift?

Two Compton wavelengths, 4.8526 pm, for a photon scattered straight back at 180 degrees. A larger shift is impossible in this model.

Where does the energy of the scattered photon go?

Into the kinetic energy of the recoiling electron. Energy is conserved, so the photon loses exactly what the electron gains.

Does this apply to visible light?

The formula does, but the shift of 2.4263 pm is negligible next to a visible wavelength of about 500 nm, which is why ordinary light is not noticeably shifted by scattering.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.