ThisCalculator

Everyday

How to Calculate Joules from Wavelength

Updated · Standard formula, shown below

Energy 0.000 J
Wavelength
500 nm
You entered

This guide shows you how to convert a light wave’s wavelength into its energy in joules using the Planck-Einstein relation. You’ll need the wavelength value (in meters, nanometers, or any length unit) and the speed of light and Planck’s constant, which are provided below.

Formula

The energy of a single photon is given by:

E = h × c / λ

  • E = energy in joules (J)
  • h = Planck’s constant = 6.62607015 × 10⁻³⁴ J·s
  • c = speed of light in vacuum = 2.99792458 × 10⁸ m/s
  • λ = wavelength in meters (m)

If your wavelength is in nanometers (nm), first convert it to meters by dividing by 10⁹ (since 1 nm = 10⁻⁹ m).

Worked Example

Using the default values from the calculator: wavelength = 500 nm.

  1. Convert wavelength to meters: 500 nm = 500 × 10⁻⁹ m = 5.00 × 10⁻⁷ m.
  2. Plug into the formula: E = (6.62607015 × 10⁻³⁴ J·s) × (2.99792458 × 10⁸ m/s) / (5.00 × 10⁻⁷ m).
  3. Multiply h × c: (6.62607015 × 10⁻³⁴) × (2.99792458 × 10⁸) = 1.986445857 × 10⁻²⁵ J·m.
  4. Divide by wavelength: 1.986445857 × 10⁻²⁵ / 5.00 × 10⁻⁷ = 3.972891714 × 10⁻¹⁹ J.
  5. Rounded to 3 decimal places: 3.973 × 10⁻¹⁹ J.

This matches the calculator’s output.

When to Use This Calculation

Use this when you need the energy of a single photon, for example in photoelectric effect problems, spectroscopy, or understanding how light interacts with matter. It’s also the basis for converting between wavelength and energy in chemistry and physics.

How to Read the Result

The result is the energy carried by one photon of that wavelength. Shorter wavelengths (like blue light) have higher energy; longer wavelengths (like red light) have lower energy. The energy is extremely small in joules, which is why we often use electronvolts (eV) for atomic-scale energies, but this calculation gives the SI unit directly.

Common Mistakes

  • Forgetting to convert nm to meters – Always divide the wavelength in nm by 10⁹ before using it in the formula.
  • Using the wrong speed of light – Use 2.99792458 × 10⁸ m/s (vacuum), not 3.00 × 10⁸ m/s unless you’re rounding.
  • Mixing up h and ħ – Planck’s constant h is 6.626 × 10⁻³⁴ J·s; the reduced constant ħ = h/(2π) is different.
  • Sign errors – Energy is always positive; if you get a negative number, check your parentheses.
  • Using frequency instead of wavelength – If you have frequency ν, use E = hν directly, not the wavelength formula.

Tips

  • Use scientific notation consistently – write all numbers in powers of ten to avoid decimal errors.
  • If your wavelength is in micrometers (µm), multiply by 10⁻⁶ to get meters; for nanometers, multiply by 10⁻⁹.
  • For quick estimates, use c = 3.00 × 10⁸ m/s and h = 6.63 × 10⁻³⁴ J·s; the result will be within about 1%.
  • If you need energy per mole of photons, multiply the single-photon energy by Avogadro’s number (6.022 × 10²³).

Troubleshooting

Result is zero or extremely small – Check that you converted the wavelength to meters. If you used nm directly, the denominator is 10⁹ times too large, giving a tiny result.

Result is negative – You likely have a sign error or misplaced parentheses. Re-enter the formula carefully.

Getting an error in the calculator – Ensure the wavelength is a positive number. Zero or negative wavelengths are physically impossible.

Result seems too large – For very short wavelengths (like gamma rays), the energy is indeed large (on the order of 10⁻¹⁴ J). That’s correct.

Frequently Asked Questions

Can I use this formula for any type of electromagnetic wave?

Yes, it works for all electromagnetic radiation, from radio waves to gamma rays, as long as you use the wavelength in a vacuum (or adjust for the medium’s refractive index).

What if I have frequency instead of wavelength?

Use E = h × ν, where ν is the frequency in hertz (s⁻¹). No need to involve the speed of light.

How do I convert joules to electronvolts?

Divide the energy in joules by 1.602176634 × 10⁻¹⁹ J/eV. For example, 3.973 × 10⁻¹⁹ J ≈ 2.48 eV.

Why is the energy so small?

Because a single photon carries a tiny amount of energy. Macroscopic objects contain enormous numbers of photons, so the total energy adds up.

Does the medium matter?

Yes. In a medium like glass or water, the speed of light is slower, so the wavelength changes. Use the speed in that medium (c/n) and the wavelength in that medium for accurate results.

Can I use this for sound waves?

No. Sound waves are mechanical, not electromagnetic, and their energy depends on amplitude and medium properties, not just wavelength.

Related

Formula used
in wl | Wavelength | nm | 500 | 0
out energy | Energy | J | (6.62607015e-34 * 2.99792458e8) / (wl * 1e-9) | 3

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.