Optics
How To Calculate The Photon Energy
A photon's energy tells you how much energy one quantum of light carries, and it depends on just one property: the wavelength. The relation E = hc/λ says that shorter wavelengths carry more energy, so an ultraviolet photon outranks an infrared one. This page explains where the constant comes from, why the wavelength must be in nanometres when the answer is wanted in electronvolts, and works through three examples.
Last updated
Quick Answer
E = hc/λ → E(eV) = 1239.8419843320026 / λ(nm)
- E
- Energy of a single photon
- h
- Planck constant
- c
- Speed of light in vacuum
- λ
- Wavelength of the light, in nanometres when E is in electronvolts
Divide the combined constant hc, written in electronvolt nanometres, by the wavelength in nanometres. At 500 nm the photon energy is about 2.48 eV, and halving the wavelength to 250 nm doubles it to about 4.96 eV. The same constant run backwards turns an energy in electronvolts back into a wavelength in nanometres.
What Is The Photon Energy?
A photon is a single quantum of electromagnetic radiation, and its energy is set by how rapidly the wave oscillates. Planck's relation says E = h f, where f is frequency, and every wave obeys f = c/λ, with c the speed of light. Substituting one into the other gives E = hc/λ, the working formula for this page. Because wavelength sits in the denominator, a shorter wavelength means a higher frequency and therefore a more energetic photon. Visible light spans roughly 1.65 to 3.1 electronvolts across its range of colours, which is a remarkably narrow slice of the full electromagnetic spectrum.
The constant in the numerator is not a fitted number but a combination of two defined physical constants. The Planck constant h is exactly 6.62607015 times ten to the power minus 34 joule seconds under the modern SI definition, and the speed of light in vacuum c is exactly 299792458 metres per second. Their product is about 1.98644586 times ten to the power minus 25 joule metres. Converting joules to electronvolts with 1 eV = 1.602176634 times ten to the power minus 19 joules, and metres to nanometres with one metre equal to a billion nanometres, turns that product into 1239.8419843320026 electronvolt nanometres. These values come from the CODATA set of fundamental constants, and the calculator treats the combined figure as a fixed helper rather than recomputing it each time.
Unit discipline is the most important practical point on this page. If you use the 1239.84 electronvolt nanometre constant, the wavelength must be entered in nanometres and the answer comes out in electronvolts. A wavelength of 500 nanometres is the same physical length as five times ten to the power minus seven metres, but you must enter 500, not 0.0000005, into that particular form of the formula. If you prefer SI units, use hc in joule metres with the wavelength in metres to obtain an answer in joules, then divide by 1.602176634 times ten to the power minus 19 to get electronvolts. Mixing the two systems is the classic way to be wrong by a factor of a billion, so write the unit next to every number before substituting.
The direction of the relationship deserves to be stated plainly because it is easy to reverse. Energy is inversely proportional to wavelength: double the wavelength and the energy halves, halve the wavelength and the energy doubles. A 500 nanometre photon has about 2.48 electronvolts, a 250 nanometre photon has about 4.96 electronvolts, and a 1000 nanometre photon has about 1.24 electronvolts. Across the visible band, violet light near 400 nanometres carries roughly 3.1 electronvolts while red light near 700 nanometres carries roughly 1.77. Infrared photons are less energetic still, while ultraviolet, X-ray and gamma photons climb rapidly as their wavelengths shrink.
The same constant also runs backwards. Dividing 1239.8419843320026 by an energy in electronvolts returns the corresponding wavelength in nanometres, so an energy of 2.4797 electronvolts maps back to 500 nanometres to the precision shown. This inverse form is how the colour of an emitted photon is inferred from an energy gap and how a spectrometer is calibrated. It also lets you count photons: the total energy divided by the energy of one photon gives the number required. To make 10 electronvolts from 500 nanometre photons you need about 4.03 of them on average, a figure the calculator reports directly. A fractional count is an average rather than a literal number of photons, since real detections always come in whole quanta.
Why does this one formula matter so much? In the photoelectric effect an electron escapes a material only if the incoming photon energy exceeds the material's work function, which is why a bright beam of low-frequency light can fail where a dim beam of high-frequency light succeeds. Semiconductors have a band gap, and a photon is absorbed only when its energy reaches that gap. Silicon has a gap near 1.1 electronvolts, corresponding to a threshold wavelength near 1130 nanometres, which is why ordinary silicon solar cells ignore much of the infrared. Light-emitting diodes work in the opposite direction: an electron falling across the gap emits a photon whose energy, and therefore colour, is set by the same relationship.
The formula spans an enormous range without changing form. A radio photon with a wavelength of one metre carries only about 1.24 microelectronvolts, far too little to break a chemical bond. A green photon at 500 nanometres carries roughly 2.48 electronvolts, enough to drive many molecular changes and to sit at the peak of human visual sensitivity. An X-ray at 0.1 nanometre carries about 12.4 kiloelectronvolts, which is why it penetrates tissue. The inverse proportionality compresses many orders of magnitude of wavelength into a manageable spread of energies, and the same electronvolt nanometre constant works from radio waves to gamma rays without adjustment.
Precision has a clear ceiling here. The Planck constant and the speed of light are exact by definition, so the combined constant is not the weak link; the uncertainty normally comes from the wavelength measurement and from treating a real source as if it were perfectly monochromatic. Light inside glass or water has a shorter wavelength than in vacuum, but its frequency and photon energy do not change at the boundary, so the vacuum wavelength is the correct input for energy. Photon energy is also not the same thing as brightness: a brighter beam of the same colour simply delivers more photons per second, each carrying exactly the same energy. Confusing the two is a common conceptual slip when moving between optics and photometry.
There are limits to what this calculation does. It gives the energy of one photon in vacuum and says nothing about the probability that the photon will be absorbed, how it is emitted, or how a spectrum of many wavelengths is distributed; those questions need a work function, a cross-section or Planck's radiation law. The photon's momentum is a separate quantity, related by p = E/c, and is not computed here. The calculator deliberately reports four views of the same relationship: the energy at the chosen wavelength, the energy at half that wavelength, the wavelength recovered from the energy, and the number of such photons needed to total 10 electronvolts. Use it as a clean model of the arithmetic, and remember that no trigonometry or value of pi is involved anywhere in the calculation.
Formula
E = h c / λ
Formula page →Multiply the Planck constant by the speed of light and divide by the wavelength. Because wavelength is in the denominator, halving it doubles the energy. This is the general form before any choice of units is made.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| h | Planck constant | J s | Exactly 6.62607015 times ten to the power minus 34 joule seconds. |
| c | Speed of light in vacuum | m/s | Exactly 299792458 metres per second. |
| λ | Wavelength of the photon | m or nm | In metres when working in SI units, or in nanometres for the electronvolt form. |
E(eV) = 1239.8419843320026 / λ(nm)
Formula page →The same physics with the constants combined into hc = 1239.8419843320026 electronvolt nanometres, a value derived from the CODATA constants. It is valid only when the wavelength is entered in nanometres: 500 nm gives 2.4797 eV.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| E(eV) | Photon energy in electronvolts | eV | About 2.48 electronvolts for green light at 500 nanometres. |
| hc | Combined constant in electronvolt nanometres | eV nm | 1239.8419843320026 eV nm, treated as a fixed helper. |
| λ(nm) | Wavelength in nanometres | nm | Enter 500 for a 500 nanometre photon, not 5 times ten to the power minus seven. |
λ = hc / E and N = E_total / E_photon
Formula page →The forward constant divides an energy to recover a wavelength, while the photon count divides a total energy by the energy per photon. At 500 nm the energy is 2.4797 eV, so 10 eV corresponds to about 4.03 photons on average.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| λ | Wavelength recovered from a known energy | nm | Running 2.4797 electronvolts backwards gives 500 nanometres. |
| E | Known photon energy | eV | The input to the inverse form, in electronvolts. |
| N | Number of photons needed for a given total energy | count | Averaged over quanta; individual detections are whole numbers. |
How To Calculate The Photon Energy
- 1
Express the wavelength in nanometres
Take the vacuum wavelength and write it in nanometres before doing anything else. A wavelength of 500 nanometres is five times ten to the power minus seven metres, but the electronvolt form of the formula requires the number 500. Converting first prevents a factor of a billion error that no later arithmetic can repair.
- 2
Recall the combined constant and its origin
The product hc is 1239.8419843320026 electronvolt nanometres, built from the exactly defined Planck constant and speed of light together with the electronvolt conversion. CODATA publishes the underlying constants, and the calculator stores the product as a fixed helper. There is no need to rederive it for each calculation.
- 3
Divide the constant by the wavelength
Compute 1239.8419843320026 divided by 500 to get 2.479683968664005 electronvolts. Write the unit beside the answer, because the same number in joules would be about 3.97 times ten to the power minus 19. This ratio is the whole calculation; everything else on the page is a rearrangement or a sanity check of it.
- 4
Check the inverse relationship
Halve the wavelength to 250 nanometres and the energy doubles to about 4.96 electronvolts; double it to 1000 nanometres and the energy halves to about 1.24. Dividing the constant by the energy you just found should return the original 500 nanometres. If any of these relationships fails, a unit or a decimal place is wrong.
- 5
Run the calculation backwards or count photons
To recover a wavelength from an energy, divide the same constant by that energy. To find how many photons make a chosen total energy, divide the total by the energy per photon; the calculator uses 10 electronvolts and 500 nanometres, giving about 4.03 photons. Treat that last figure as an average, since real photons arrive as whole quanta.
Examples
Example 1: Green light at 500 nanometres
- wavelengthNm
- 500 nm
| Step | Calculation | Result |
|---|---|---|
| Combined constant | hc | 1239.8419843320026 eV nm |
| Energy at half wavelength | 1239.8419843320026 / 250 | 4.9594 eV |
| Photons for 10 eV | 10 x 500 / 1239.8419843320026 | 4.0328 photons |
| Photon energy | 1239.8419843320026 / 500 | 2.4797 eV |
Result: 2.4797 eV for a 500 nm photon, or about 3.97e-19 joules. Halving the wavelength gives 4.9594 eV, and about 4.03 such photons would total 10 eV.
Example 2: Ultraviolet light at 250 nanometres
- wavelengthNm
- 250 nm
| Step | Calculation | Result |
|---|---|---|
| Divide the constant | 1239.8419843320026 / 250 | 4.9594 eV |
| Wavelength back from energy | 1239.8419843320026 / 4.9594 | 250 nm |
| Photon energy | 1239.8419843320026 / 250 | 4.9594 eV |
Result: 4.9594 eV for a 250 nm photon, exactly double the 500 nm value because the wavelength was halved. Running the constant backwards recovers 250 nm.
Example 3: Infrared light at 1000 nanometres
- wavelengthNm
- 1000 nm
| Step | Calculation | Result |
|---|---|---|
| Divide the constant | 1239.8419843320026 / 1000 | 1.2398 eV |
| Energy at half wavelength | 1239.8419843320026 / 500 | 2.4797 eV |
| Photon energy | 1239.8419843320026 / 1000 | 1.2398 eV |
Result: 1.2398 eV for a 1000 nm photon, half the energy of a 500 nm photon because the wavelength doubled. Halving the wavelength would restore 2.4797 eV.
Calculator
Photon energy
2.4797
- Energy at half the wavelength
- 4.9594
- Wavelength from the energy
- 500
- Photons needed for 10 eV
- 4.0328
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
Prefer a full-width tool? Open the The Photon Energy calculator page.
Common Mistakes
Entering the wavelength in metres with the electronvolt constant
The 1239.84 electronvolt nanometre constant requires 500 for a 500 nanometre photon. Entering five times ten to the power minus seven instead produces an answer larger by a factor of a billion. Convert to nanometres first, or switch to joule metres and SI units throughout.
Reversing the direction of the relationship
Energy falls as wavelength rises, so a 1000 nanometre photon carries 1.24 electronvolts, not 4.96. If your working suggests that longer wavelengths are more energetic, check the denominator. The 250 nanometre case is twice the 500 nanometre case, not half of it.
Confusing photon energy with brightness
A brighter beam of the same colour delivers more photons each second, but each photon still carries the same energy. Turning up the intensity does not raise the energy of an individual quantum, which is why intensity cannot overcome a photoelectric threshold on its own.
Using the wavelength inside a material
Light travelling through glass has a shorter wavelength than in vacuum, but its frequency and photon energy are unchanged at the boundary. The wavelength in the formula should be the vacuum wavelength. Substituting the in-medium value makes the energy appear larger by the refractive index.
Mixing joules and electronvolts
One electronvolt is 1.602176634 times ten to the power minus 19 joules, so 2.4797 electronvolts is about 3.97 times ten to the power minus 19 joules. Adding a joule-valued energy to an electronvolt-valued one, or forgetting to convert before comparing with a band gap, gives a meaningless answer.
Reading a fractional photon count literally
The 4.03 photons needed to total 10 electronvolts at 500 nanometres is an average, not a physical half photon. Real absorptions and detections come in whole quanta, and the figure is best read as a statement about expected totals over many trials.
Rounding the constant too early
Using 1240 instead of 1239.8419843320026 gives 2.48 electronvolts at 500 nanometres, which is fine for a quick estimate but not for precision work. Keep the full helper value through the division and round only the final displayed result.
FAQ
What is the energy of a photon?
It is the quantum of energy carried by one photon, given by E = hc/λ. It depends only on the wavelength, not on how bright the beam is. At 500 nanometres it is about 2.48 electronvolts.
Why does a shorter wavelength mean more energy?
A shorter wavelength corresponds to a higher frequency, and Planck's relation E = hf makes energy proportional to frequency. Since wavelength is in the denominator of E = hc/λ, halving the wavelength doubles the energy: 500 nm gives 2.48 eV and 250 nm gives 4.96 eV.
Where does 1239.8419843320026 come from?
It is the product of the Planck constant and the speed of light, expressed in electronvolt nanometres using the CODATA constants. Both h and c are exact under the modern SI definition, so the figure is fixed and can be stored as a helper.
What units must I use for the wavelength?
With the 1239.84 electronvolt nanometre constant, enter the wavelength in nanometres and the answer is in electronvolts. If you work in metres, use hc in joule metres and convert the resulting joules to electronvolts afterwards.
Is photon energy the same as intensity?
No. Photon energy is set by wavelength, while intensity depends on how many photons arrive per second. A dim ultraviolet beam can deliver more energy per photon than a bright infrared one.
How many 500 nm photons are needed to make 10 eV?
About 4.03 on average, because each 500 nanometre photon carries 2.4797 electronvolts and 10 divided by 2.4797 is roughly 4.03. It is an average figure; actual photon counts are whole numbers.
References
- [1], Photon energy — https://en.wikipedia.org/wiki/Photon_energy
- [2], Planck constant — https://en.wikipedia.org/wiki/Planck_constant
- [3], Electronvolt — https://en.wikipedia.org/wiki/Electronvolt
