# Photon energy converter: nm to eV and back

> Wavelength to photon energy. Convert nm to eV, eV to nm, cm⁻¹, THz, J and kJ/mol with E = 1239.84/λ, and get photons per second from a light power. Free.

URL: https://www.labcanvas.com/tools/photon-energy-wavelength-converter

A photon’s energy is E = hc/λ, so in practical units E (eV) = 1239.84 / λ (nm), and λ (nm) = 1239.84 / E (eV). 532 nm green light is 2.3305 eV per photon, 18,797 cm⁻¹, 563.52 THz or 224.86 kJ per mole of photons. Type a wavelength, energy, frequency or wavenumber in any of nm, µm, Å, eV, meV, J, kJ/mol, Hz to PHz or cm⁻¹ and read all the others; add a light power to get the photons per second.

## Quick answer

- **What it does:** Converts a photon’s wavelength, energy, frequency or wavenumber into all the others: nm, µm, Å, eV, meV, J, kJ/mol, Hz, THz and cm⁻¹, and gives the photon rate of a light power.
- **Formula:** E = hc/λ = hν = hc·ν̃;  E (eV) = 1239.841984 / λ (nm);  E (kJ/mol) = E (J) × N_A / 1000
- **Example:** 532 nm: E = 1239.841984 / 532 = 2.3305 eV = 3.7339 × 10⁻¹⁹ J per photon = 224.86 kJ/mol; ν̃ = 10⁷ / 532 = 18,797 cm⁻¹; ν = 563.52 THz. Back: 2 eV is 619.92 nm.

Free, in the browser, no account needed. Updated 2026-11-28.

## Features

- Wavelength in nm, µm or Å; energy in eV, meV, J per photon or kJ per mole of photons; frequency in Hz, GHz, THz or PHz; wavenumber in cm⁻¹
- One field: type the value with its unit (532 nm, 2.33 eV, 1000 cm-1) and read every other unit
- Exact constants of the SI (CODATA 2018): hc/e = 1239.841984 eV·nm
- Photons per second and einstein per second from a light power, for quantum yields
- A table of common laser and lamp wavelengths in eV, cm⁻¹, THz and kJ/mol
- Copy the value, all units or a table; CSV download

## How to use it

1. **Enter what you know**: A wavelength, an energy, a frequency or a wavenumber, with its unit typed or picked.
2. **Read every other unit**: The result card shows the photon in nm, µm, Å, eV, meV, J, kJ/mol, cm⁻¹, THz and Hz.
3. **Add a light power if needed**: Under “Photon rate from a power”, the power in watts gives photons per second and moles of photons per second.

## At a glance

| | |
| --- | --- |
| Formula | \(E = hc/\lambda = h\nu = hc\tilde\nu\); \(E\,(\mathrm{eV}) = 1239.841984/\lambda\,(\mathrm{nm})\) |
| Units | nm, µm, Å; eV, meV, J, kJ/mol; Hz, GHz, THz, PHz; cm⁻¹ |
| Constants | h, c, e and N_A exact in the SI (CODATA 2018) |
| Also | Photons per second and einstein per second from a light power |
| Wavelengths | In vacuum |

## How it works

$$E = h\nu = \frac{hc}{\lambda} = hc\,\tilde{\nu} \qquad E\,(\mathrm{eV}) = \frac{1239.841984}{\lambda\,(\mathrm{nm})}$$

**The relations.** A photon of frequency \(\nu\) carries the energy \(E = h\nu\). In vacuum \(\nu = c/\lambda\), and the wavenumber is \(\tilde\nu = 1/\lambda\), so \(E = hc/\lambda = hc\tilde\nu\). Energy and wavenumber are proportional to each other and inversely proportional to the wavelength: doubling the wavelength halves the energy.

**The constants.** Since the 2019 revision of the SI, the Planck constant \(h = 6.626\,070\,15 \times 10^{-34}\ \mathrm{J\,s}\), the speed of light \(c = 299\,792\,458\ \mathrm{m/s}\), the elementary charge \(e = 1.602\,176\,634 \times 10^{-19}\ \mathrm{C}\) and the Avogadro constant \(N_A = 6.022\,140\,76 \times 10^{23}\ \mathrm{mol^{-1}}\) are exact (CODATA 2018, Tiesinga et al. 2021). So \(hc/e = 1239.841\,984\ldots\ \mathrm{eV\,nm}\) is exact too: \(E\,(\mathrm{eV}) = 1239.841984/\lambda\,(\mathrm{nm})\). One electronvolt is \(1.602\,176\,634 \times 10^{-19}\) J, and 8065.54 cm⁻¹, 241.799 THz or 96.4853 kJ/mol.

**Per mole of photons.** Chemists compare photon energies with bond and reaction energies per mole: \(E_\mathrm{m} = N_A E\). A mole of photons is called an einstein; a light power \(P\) delivers \(P/E\) photons per second, or \(P/(N_A E)\) einstein per second, the photon flux used for quantum yields.

**Vacuum or air.** The wavelengths are vacuum wavelengths. In air light travels slightly slower and its wavelength is shorter by the refractive index of air, about 1.0003 in the visible (Ciddor 1996). That matters when you match spectral line positions, not for photon energies.

## Worked examples: lasers, band gaps and infrared

- **A green laser.** \(\lambda = 532\) nm: \(E = 1239.841984/532\) \({}= \mathbf{2.3305\ eV}\), \(= 2.3305 \times 1.602176634 \times 10^{-19}\) \({}= 3.7339 \times 10^{-19}\) J per photon, or \(\times N_A\): \(\mathbf{224.86\ kJ/mol}\). The wavenumber is \(10^7/532 = 18{,}797\ \mathrm{cm^{-1}}\) and the frequency \(c/\lambda = 563.52\) THz.
- **A band gap to an absorption edge.** A semiconductor with a 3.2 eV band gap absorbs below \(\lambda = 1239.841984/3.2 = \mathbf{387.45\ nm}\), in the near ultraviolet; a 2 eV gap absorbs below 619.92 nm.
- **An infrared band.** A vibration at 1000 cm⁻¹ has \(\lambda = 10^7/1000 = 10{,}000\) nm (10 µm) and \(E = 0.12398\) eV, or 11.963 kJ/mol, about a twentieth of a 532 nm photon.
- **Photons from a laser.** 1 mW at 532 nm delivers \(10^{-3}\ \mathrm{W} / 3.7339 \times 10^{-19}\ \mathrm{J}\) \({}= \mathbf{2.678 \times 10^{15}}\) photons per second, or \(4.447 \times 10^{-9}\) einstein/s. 100 mW of 450 nm light is \(2.265 \times 10^{17}\) photons/s (\(3.762 \times 10^{-7}\) einstein/s).
- **Visible light.** The visible range, roughly 400 to 700 nm, runs from 3.0996 eV (violet) to 1.7712 eV (red).


## Photon energy of common wavelengths

| λ (nm) | E (eV) | ν̃ (cm⁻¹) | ν (THz) | E (kJ/mol) |
| --- | --- | --- | --- | --- |
| 254 | 4.8813 | 39,370 | 1,180.3 | 471.0 |
| 365 | 3.3968 | 27,397 | 821.3 | 327.7 |
| 405 | 3.0613 | 24,691 | 740.2 | 295.4 |
| 450 | 2.7552 | 22,222 | 666.2 | 265.8 |
| 532 | 2.3305 | 18,797 | 563.5 | 224.9 |
| 633 | 1.9587 | 15,798 | 473.6 | 189.0 |
| 785 | 1.5794 | 12,739 | 381.9 | 152.4 |
| 1064 | 1.1653 | 9,398 | 281.8 | 112.4 |
| 1550 | 0.7999 | 6,452 | 193.4 | 77.2 |

Useful equivalents: 1 eV = 1239.84 nm = 8065.54 cm⁻¹ = 241.799 THz = 96.4853 kJ/mol; 1 kJ/mol = 0.010364 eV = 83.593 cm⁻¹.

## References

- Tiesinga E, Mohr PJ, Newell DB, Taylor BN. CODATA recommended values of the fundamental physical constants: 2018. *Rev Mod Phys* 2021;93:025010. [doi:10.1103/RevModPhys.93.025010](https://doi.org/10.1103/RevModPhys.93.025010)
- Ciddor PE. Refractive index of air: new equations for the visible and near infrared. *Appl Opt* 1996;35:1566–1573. [doi:10.1364/AO.35.001566](https://doi.org/10.1364/AO.35.001566)


## Related calculators

- [Tauc plot band gap calculator](https://www.labcanvas.com/tools/tauc-plot-band-gap-calculator): Optical band gap from a UV–vis or diffuse-reflectance spectrum by a Tauc plot, with its 95% CI.
- [Bragg’s law calculator](https://www.labcanvas.com/tools/bragg-law-calculator): d-spacing from XRD 2θ and back (nλ = 2d sin θ) with Cu, Mo or Co Kα, and lattice parameters from (hkl).
- [Beer–Lambert law calculator](https://www.labcanvas.com/tools/beer-lambert-law-calculator): A = εlc for concentration, absorbance, ε or path length, %T to absorbance, and ε values with sources.
- [All 43 lab calculators](https://www.labcanvas.com/tools/lab-calculators)

## Use this calculator from code or an AI agent

This calculator also answers as JSON, computed by the same code as this page: no key, no account, CORS open. Send the parameters as a query string (numbers may carry units; lists comma-separated) or POST them as JSON to https://www.labcanvas.com/api/tools/photon-energy-wavelength-converter. An example, with the answer shortened to its first values:

```
GET https://www.labcanvas.com/api/tools/photon-energy-wavelength-converter?value=532&unit=nm
```

```json
{
 "ok": true,
 "tool": "photon-energy-wavelength-converter",
 "inputs": {"value":{"value":532},"unit":{"value":"nm"}},
 "result": {"wavelength_nm":{"label":"Wavelength (vacuum)","value":532,"unit":"nm"},"energy_ev":{"label":"Energy","value":2.330530046,"unit":"eV"}},
 "answer": "532 nm = 532 nm = 2.331 eV = 18800 cm⁻¹ = 563.5 THz = 224.9 kJ/mol of photons.",
 "formula": "E = hc/λ = hν = hc·ν̃; hc/e = 1239.841984 eV·nm (exact SI constants, CODATA 2018); E_m = N_A·E",
 "page": "https://www.labcanvas.com/tools/photon-energy-wavelength-converter",
 "citation": "LabCanvas Photon energy and wavelength converter, https://www.labcanvas.com/tools/photon-energy-wavelength-converter"
}
```

Parameters:

- `value` (number, required): The value to convert, in unit.
- `unit` (string, default nm: nm | um | µm | A | Å | eV | meV | J | kJ/mol | Hz | GHz | THz | PHz | cm-1 | cm⁻¹): nm, um, A (Å), eV, meV, J (per photon), kJ/mol (per mole of photons), Hz, GHz, THz, PHz or cm-1.
- `power` (number, W): Optional light power (W, mW, µW) for photons per second.

All calculators: https://www.labcanvas.com/api/tools · OpenAPI 3.1: https://www.labcanvas.com/api/tools/openapi.json · MCP tool: `calc_photon_energy_wavelength_converter` (LabCanvas MCP server).

## Questions

### How do I convert nm to eV?

Divide 1239.84 by the wavelength in nanometres: E (eV) = 1239.84 / λ (nm). For example 532 nm is 1239.84 / 532 = 2.3305 eV, and 400 nm is 3.0996 eV. The constant is hc/e = 1239.841984 eV·nm.

### How do I convert eV to nm?

Divide 1239.84 by the energy in electronvolts: λ (nm) = 1239.84 / E (eV). 2 eV is 619.92 nm; a 3.2 eV band gap corresponds to 387.45 nm.

### How do I calculate the energy of a photon from its wavelength?

E = hc/λ, with h = 6.62607015 × 10⁻³⁴ J s and c = 299,792,458 m/s and λ in metres. For 532 nm, E = 6.62607015 × 10⁻³⁴ × 299,792,458 / 532 × 10⁻⁹ = 3.7339 × 10⁻¹⁹ J, which is 2.3305 eV.

### How do I convert wavenumber (cm⁻¹) to nm or eV?

λ (nm) = 10⁷ / ν̃ (cm⁻¹), and E (eV) = ν̃ (cm⁻¹) / 8065.54. So 1000 cm⁻¹ is 10,000 nm and 0.12398 eV; 18,797 cm⁻¹ is 532 nm.

### What is the energy of a mole of photons?

The photon energy times the Avogadro constant: E (kJ/mol) = 96.4853 × E (eV), or 119,627 / λ (nm). A mole (an einstein) of 532 nm photons carries 224.86 kJ.

### How many photons per second are in a laser beam?

Divide the power by the energy of one photon: N = P / (hc/λ). A 1 mW beam at 532 nm carries 2.678 × 10¹⁵ photons per second. Enter the power under “Photon rate from a power”.

### Why is the constant sometimes 1240 and sometimes 1239.84?

Both are hc/e: 1239.841984 eV·nm is exact in the SI, and 1240 is the same value rounded to three figures, close enough (0.013 %) for quick estimates.

### Does it matter whether the wavelength is in air or in vacuum?

For photon energies, hardly: the refractive index of air is about 1.0003, so air wavelengths are about 0.03 % shorter than vacuum ones. The calculator uses vacuum wavelengths; spectroscopic line tables say which they list.
