Home Calculators Categories Category: Science & Engineering

Energy wavelength calculator

A photon's energy and its vacuum wavelength are two descriptions of the same quantity, linked by E=hc/λE = hc/\lambda, where hh is the Planck constant and cc is the speed of light. Give the calculator below one of them, whether a wavelength, a per-photon energy in eV or J, a frequency, or a molar photon energy in kJ/mol, and it returns the others using exact SI defining constants. This guide explains the relationships, shows how to read each result, and states clearly what the model covers and what it does not.

Input

Photons in vacuum. Energy is per photon unless marked kJ/mol. Unit changes reinterpret the number.

Load a photon example. Chemistry opens Advanced.
Choose the quantity given in your problem. Frequency is available in Advanced.
Type precise decimal or scientific notation. The slider is logarithmic: each whole step multiplies by ten. Changing units reinterprets the number.
nm

Positive values; scientific notation such as 3.97e-19 is accepted. Logarithmic slider.

nm = 10⁻⁹ m; µm = 10⁻⁶ m. Use vacuum wavelengths.
J and eV describe a single photon. Advanced kJ/mol describes a mole of identical photons.
THz = 10¹² Hz. Frequency is available in Advanced.
Visual
Vacuum wavelength spectrumA logarithmic wavelength scale and an expanded visible band. Marker position responds to the known photon quantity.
Output
Energy per photon
—

Vacuum photon model · six significant digits

How to Use the Energy Wavelength Calculator

The tool has two modes. Simple mode handles the most common conversion in either direction. Advanced mode adds frequency and molar energy as inputs and shows every derived quantity at once.

Simple Advanced
Known quantity Wavelength or photon energy Wavelength, photon energy or frequency
Wavelength units nm, µm, m nm, µm, m
Energy units eV per photon, J per photon eV per photon, J per photon, kJ/mol of photons
Frequency units not available Hz, THz
Main result Energy in eV (if wavelength is known) or wavelength in nm (if energy is known) The main converted answer, plus wavelength in nm, frequency in Hz, energy in J, energy in kJ/mol
Calculation steps not shown numerical steps shown

The calculator opens in Simple mode with a wavelength of 500 nm and eV as the default energy unit (THz is the default frequency unit). That setup returns 2.47968 eV. When frequency is the known quantity, the main answer is the vacuum wavelength in nm.

Entering a value

There is a single "Known value" field, and only the selected known quantity and its active unit affect the result. Settings for other quantities are ignored.

  • Accepted: positive decimal or scientific notation (for example 0.00055 or 5.5e-4), from 10−3010^{-30} to 103010^{30} inclusive, in the selected input unit.
  • Rejected: blank, malformed, zero, negative, non-finite and out-of-range entries. An invalid input shows an error, replaces the result with an em dash, disables Copy and clears the visualization.
  • A logarithmic slider spans exponents from −30 to 30 in steps of 0.01. Moving it sets the value to 10 raised to that exponent, rounded to six significant digits.

Changing units reinterprets the number

Switching the input unit does not convert your number. If you have entered 500 with nm selected and change the unit to µm, the calculator now treats the input as 500 µm, which is a different photon. To describe the same photon in a new unit, convert the number yourself, or read the equivalent from the Advanced results.

Switching modes

Returning from an Advanced-only input (frequency, or kJ/mol) to Simple, the interface tries to keep the same photon by finding an equivalent supported input. It tries nm, µm, m, eV and J in that order and uses the first representation that fits the allowed numeric range. If none fits, the valid result stays in Advanced and a notice explains why. Reset restores the initial 500 nm calculation in Simple mode.

Other controls

  • Copy produces a text summary of the selected input and units, the main result, the mode and any applicable advisories. In Advanced mode it also includes the secondary results.
  • Print / PDF opens the browser's print dialog.
  • Help and Split / Stack workspace controls adjust the layout.
  • There is no CSV download and no shareable link that stores a calculation.

All arithmetic runs locally in your browser, with no network request needed for the calculation itself. This does not mean the whole website works offline.

The Physics Behind the Conversion

A photon in vacuum carries energy proportional to its frequency, and its wavelength and frequency are tied together by the speed of light:

E=hf,f=cλE = hf, \qquad f = \frac{c}{\lambda}

Combining the two gives the working relationship in both directions:

E=hcλ,λ=hcEE = \frac{hc}{\lambda}, \qquad \lambda = \frac{hc}{E}

Energy and wavelength are therefore inversely proportional: halving the wavelength doubles the photon energy. Frequency and energy are directly proportional.

Exact constants

Since the 2019 redefinition of the SI, the constants below are exact by definition.

Quantity Symbol Value
Planck constant hh 6.62607015×10−34 J s6.62607015\times10^{-34}\ \mathrm{J\,s}
Speed of light in vacuum cc 299 792 458 m/s299\,792\,458\ \mathrm{m/s}
Elementary charge ee 1.602176634×10−19 C1.602176634\times10^{-19}\ \mathrm{C}
Avogadro constant NAN_A 6.02214076×1023 mol−16.02214076\times10^{23}\ \mathrm{mol^{-1}}

Because the electronvolt is defined through the elementary charge, 1 eV=1.602176634×10−19 J1\ \mathrm{eV} = 1.602176634\times10^{-19}\ \mathrm{J} exactly. The product hchc is about 1.98645×10−25 J m1.98645\times10^{-25}\ \mathrm{J\,m}, which is equivalent to about 1239.84 eV nm1239.84\ \mathrm{eV\,nm}. That second form is the convenient one for quick estimates:

λ [nm]≈1239.84E [eV]\lambda\,[\mathrm{nm}] \approx \frac{1239.84}{E\,[\mathrm{eV}]}

Converting to molar energy

Chemists often quote energy per mole of photons. With EmolE_{\mathrm{mol}} in kJ/mol:

Emol=E NA1000,E=1000 EmolNAE_{\mathrm{mol}} = \frac{E\,N_A}{1000}, \qquad E = \frac{1000\,E_{\mathrm{mol}}}{N_A}

Substituting into λ=hc/E\lambda = hc/E gives a direct link between molar energy and wavelength:

λ=hcNA1000 Emol\lambda = \frac{hcN_A}{1000\,E_{\mathrm{mol}}}

Numerically, hcNA/1000≈1.19627×105hcN_A/1000 \approx 1.19627\times10^{5} when λ\lambda is in nm and EmolE_{\mathrm{mol}} is in kJ/mol. One eV per photon corresponds to about 96.4853 kJ/mol96.4853\ \mathrm{kJ/mol}.

What the calculator does internally

  1. It converts your input to SI units (metres, hertz or joules).
  2. It obtains the vacuum wavelength: directly from a wavelength input, from λ=hc/E\lambda = hc/E for an energy input, or from λ=c/f\lambda = c/f for a frequency input.
  3. It computes E=hc/λE = hc/\lambda and f=c/λf = c/\lambda.
  4. It derives eV and kJ/mol from the per-photon energy in joules.

Results are shown to six significant digits. Magnitudes of at least 10710^{7}, or positive magnitudes below 0.001, appear in scientific notation, and other values use ordinary decimals.

Worked Examples You Can Check by Hand

These examples are calculated from the formulas above and follow the calculator's display conventions. Entering them in the tool is a good way to confirm you are using the units you intend.

Example 1: Wavelength to energy (400 nm)

Take a vacuum wavelength of 400 nm, which is 4×10−7 m4\times10^{-7}\ \mathrm{m}. Then:

E=hcλ=1.98645×10−25 J m4×10−7 m≈4.96611×10−19 JE = \frac{hc}{\lambda} = \frac{1.98645\times10^{-25}\ \mathrm{J\,m}}{4\times10^{-7}\ \mathrm{m}} \approx 4.96611\times10^{-19}\ \mathrm{J}

Dividing by 1.602176634×10−19 J/eV1.602176634\times10^{-19}\ \mathrm{J/eV} gives the energy in electronvolts. In Advanced mode the results are:

Quantity Displayed result
Vacuum wavelength 400 nm
Frequency 7.49481×10147.49481\times10^{14} Hz (749.481 THz)
Energy per photon 3.09960 eV
Energy per photon 4.96611×10−194.96611\times10^{-19} J
Energy per mole of photons 299.066 kJ/mol

Because 400 nm lies between 380 and 750 nm, the marker also appears on the illustrative visible strip.

Example 2: Energy to wavelength (1 eV)

With 1 eV per photon, the shortcut gives λ≈1239.84 nm\lambda \approx 1239.84\ \mathrm{nm}, shown by the calculator as 1239.84 nm. This is longer than 750 nm, so the marker appears on the upper logarithmic scale only.

Example 3: Molar energy to wavelength (350 kJ/mol)

For one mole of identical photons carrying 350 kJ in total:

λ=1.19627×105350 nm≈341.790 nm\lambda = \frac{1.19627\times10^{5}}{350}\ \mathrm{nm} \approx 341.790\ \mathrm{nm}

This is a wavelength in the near ultraviolet. Whether any molecule absorbs at that wavelength is a separate question, discussed below.

Example 4: Frequency to wavelength (100 MHz)

A frequency of 10810^{8} Hz gives λ=c/f=2.99792458 m\lambda = c/f = 2.99792458\ \mathrm{m}. The calculator reports its main answer in nanometres, so it displays 2.99792×1092.99792\times10^{9} nm. The per-photon energy is hf≈6.62607×10−26hf \approx 6.62607\times10^{-26} J, or about 4.13567×10−74.13567\times10^{-7} eV. This shows how tiny radio-frequency photon energies are compared with visible photons, even though the wavelength is metres long.

A note on exact versus rounded values

Relationships such as 1 eV=1.602176634×10−19 J1\ \mathrm{eV} = 1.602176634\times10^{-19}\ \mathrm{J} and f=c/λf = c/\lambda are exact. Numbers such as 3.09960 eV, or 299.066 kJ/mol, are rounded displays of results that are themselves computed with floating-point arithmetic.

Chemistry Units: eV, J and kJ/mol

Chemistry usually works with energies per mole, while spectroscopy and physics often use energy per photon. The calculator keeps this distinction explicit:

Unit Meaning in this tool
J Energy of one photon
eV Energy of one photon
kJ/mol Energy of one mole of identical photons

When you choose kJ/mol in Advanced mode, the calculator shows a note saying that the value describes a mole of identical photons. This is easy to overlook. A total beam energy cannot be turned into a photon energy unless you also know how many photons were delivered. For example, "a laser pulse carries 5 mJ" says nothing about wavelength unless you know the photon count, and this calculator does not infer a wavelength from total energy, power, intensity or photon count.

Matching a photon energy to a molecular energy difference

It is tempting to compute the wavelength for a bond energy or an energy gap and conclude that light of that wavelength will cause a transition or break the bond. The calculator does not support that conclusion. Whether a molecule absorbs depends on its electronic and vibrational structure, selection rules, transition probabilities, the medium and the experimental conditions. The tool only tells you which vacuum photon wavelength carries a given amount of energy.

Reading the Wavelength Scale

The visualization places your result on a logarithmic vacuum-wavelength scale running from 1 pm to 1 km. On a logarithmic axis, equal distances represent equal ratios of wavelength, so the gap between 1 nm and 10 nm is the same as between 1 µm and 10 µm. The marker moves as the result changes, and the graphic supports zoom and pan.

A second, expanded strip shows an illustrative visible band from 380 to 750 nm, inclusive. Its marker appears only when the result falls in that interval. The colours and band edges are illustrative: they are not exact universal boundaries and not a calibrated prediction of the colour anyone would perceive.

A valid result beyond the ends of the scale is still valid. The marker simply stays at the nearest edge.

What This Calculator Does Not Do

Some searches that sound close to this topic describe different physics. Being clear about this prevents wrong answers.

  • Electron wavelengths. An electron has a de Broglie wavelength that depends on its momentum, so the relationship differs from λ=hc/E\lambda = hc/E for photons. Selecting eV does not turn this into an electron wavelength calculator: eV is only an energy unit, and here it always means energy per photon.
  • Wavelength inside a material. The model is for vacuum. It has no refractive index input and does not compute wavelength in glass, water or any other medium.
  • Total energy, power or intensity. Without a photon count these quantities cannot be converted to a single photon's energy.
  • Transition prediction. As explained above, a matching energy is not evidence that a transition occurs.
  • Measurement uncertainty. The calculator does not propagate uncertainties from your input.

Precision, Rounding and Accuracy

The defining constants are exact, but the calculation uses JavaScript floating-point numbers rather than arbitrary-precision decimal arithmetic. For typical use this is more than adequate, yet tiny representation effects can exist in the last digits of long values. The six displayed significant digits are a presentation choice. They do not claim your measurement is known that precisely. If your wavelength is only accurate to three figures, quote the result to three figures.

Frequently Asked Questions

How do I calculate photon energy from wavelength?

Convert the vacuum wavelength to metres and use E=hc/λE = hc/\lambda. For nm and eV, E [eV]≈1239.84/λ [nm]E\,[\mathrm{eV}] \approx 1239.84/\lambda\,[\mathrm{nm}]. For example, 400 nm gives about 3.0996 eV.

How do I convert photon energy to wavelength?

Use λ=hc/E\lambda = hc/E. With energy in eV and wavelength in nm, λ [nm]≈1239.84/E [eV]\lambda\,[\mathrm{nm}] \approx 1239.84/E\,[\mathrm{eV}]. An energy of 1 eV corresponds to about 1239.84 nm.

How do I get wavelength from kJ/mol?

Convert the molar energy to energy per photon with E=1000 Emol/NAE = 1000\,E_{\mathrm{mol}}/N_A, then apply λ=hc/E\lambda = hc/E. Equivalently, λ=hcNA/(1000 Emol)\lambda = hcN_A/(1000\,E_{\mathrm{mol}}), with EmolE_{\mathrm{mol}} in kJ/mol. This requires Advanced mode.

Can I enter frequency?

Yes, in Advanced mode, in Hz or THz. The calculator derives λ=c/f\lambda = c/f and reports the vacuum wavelength in nm as the main answer, with the other quantities alongside.

Does the calculator work for electrons?

No. It handles photons in vacuum. Electron matter waves follow a different relationship and are not supported.

Why did my result change when I only switched the unit?

Changing the input unit reinterprets the existing number instead of converting it. Entering 500 nm and then selecting µm gives a calculation for 500 µm.

Are the results stored or shared?

Calculation runs in your browser. The tool offers Copy and Print / PDF but has no CSV export and no link that stores a calculation.

Is the visible-light strip exact?

No. The 380 to 750 nm band and its colours are illustrative. Real colour perception and conventional visible limits vary.

Calculation Methodology Documented

Read the formula definitions, supported input ranges, and limitations before using this estimate.

Review Methodology
Debjeet Bhowmick
Author Debjeet Bhowmick AWS Certified Solutions Architect • Cloud & DevOps Consultant

AWS Certified Solutions Architect Professional and Senior Cloud & DevOps Consultant with over 14 years of hands-on expertise architecting resilient cloud infrastructure across AWS, GCP, and Azure. Specializes in infrastructure as code, continuous delivery automation, and telemetry across Terraform, Ansible, Docker, Kubernetes, ELK, Python, and SQL. Creator of OrangeCalc, delivering client-side high-precision computational tools.