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.00055or5.5e-4), from to 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:
Combining the two gives the working relationship in both directions:
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 | ||
| Speed of light in vacuum | ||
| Elementary charge | ||
| Avogadro constant |
Because the electronvolt is defined through the elementary charge, exactly. The product is about , which is equivalent to about . That second form is the convenient one for quick estimates:
Converting to molar energy
Chemists often quote energy per mole of photons. With in kJ/mol:
Substituting into gives a direct link between molar energy and wavelength:
Numerically, when is in nm and is in kJ/mol. One eV per photon corresponds to about .
What the calculator does internally
- It converts your input to SI units (metres, hertz or joules).
- It obtains the vacuum wavelength: directly from a wavelength input, from for an energy input, or from for a frequency input.
- It computes and .
- It derives eV and kJ/mol from the per-photon energy in joules.
Results are shown to six significant digits. Magnitudes of at least , 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 . Then:
Dividing by gives the energy in electronvolts. In Advanced mode the results are:
| Quantity | Displayed result |
|---|---|
| Vacuum wavelength | 400 nm |
| Frequency | Hz (749.481 THz) |
| Energy per photon | 3.09960 eV |
| Energy per photon | 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 , 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:
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 Hz gives . The calculator reports its main answer in nanometres, so it displays nm. The per-photon energy is J, or about 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 and 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 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 . For nm and eV, . For example, 400 nm gives about 3.0996 eV.
How do I convert photon energy to wavelength?
Use . With energy in eV and wavelength in nm, . 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 , then apply . Equivalently, , with in kJ/mol. This requires Advanced mode.
Can I enter frequency?
Yes, in Advanced mode, in Hz or THz. The calculator derives 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.
Read the formula definitions, supported input ranges, and limitations before using this estimate.