Spectral Calculator

Convert between wavelength, frequency, and photon energy with high precision (CODATA 2018 constants). Visualize the electromagnetic spectrum and identify spectral bands — essential for optics, astronomy, remote sensing, and quantum physics.

Privacy first: All conversions happen locally in your browser. No data is sent to any server.
? Violet (380 nm) ? Blue (450 nm) ? Green (550 nm) ? Red (650 nm) ⭐ H‑alpha (656.28 nm) ☀️ UV-B (250 nm) ? NIR (1000 nm) ⚡ X‑ray (0.05 nm)
Spectral region: Visible (Green)
* Marker position is approximate within the visible range (380–750 nm). For wavelengths outside this range, marker is hidden & region shown above.
Physical constants (CODATA 2018) :
Speed of light (c) = 299792458 m/s
Planck constant (h) = 6.62607015 × 10⁻³⁴ J·s
1 eV = 1.602176634 × 10⁻¹⁹ J
hc = 1239.84198 eV·nm (approx)
Derived Physical Quantities
Wavelength in vacuum: 550.0000 nm
Frequency: 5.454545e+14 Hz
Photon energy: 2.254 eV
Wavenumber (σ): 18181.8 cm⁻¹
Angular frequency (ω): 3.426e+15 rad/s
Spectral band classification: Visible (Green)

The Physics of Light: Wavelength, Frequency & Photon Energy

Electromagnetic radiation exhibits wave-particle duality. The conversion between wavelength (λ), frequency (ν), and photon energy (E) is governed by two fundamental equations:

c = λ ν   and   E = h ν = h c / λ

where c is the speed of light in vacuum and h is Planck's constant. This calculator uses the 2018 CODATA internationally recommended values, ensuring traceable accuracy for scientific, academic, and engineering applications.

Why Use This Spectral Calculator?

  • Accurate unit conversions: Supports nm, µm, Å, mm, m / Hz, kHz, MHz, GHz, THz / eV, keV, MeV, J. Perfect for spectroscopy data analysis.
  • Interactive EM spectrum: Instantly visualizes where your wavelength lies (gamma to radio).
  • Educational value: Derivation steps, band classification, and real-world examples for astronomy, optical communications, and quantum mechanics.
  • Rapid validation: Pre‑loaded spectral lines (H-alpha, UV, X-ray, etc.) help students and researchers verify conversions.

Step‑by‑Step Calculation Logic

Given any input (wavelength, frequency, or energy), the calculator converts the quantity to SI base units (meters for λ, Hz for ν, J for E), then recomputes the other two via λ = c/ν, ν = c/λ, and E = hν. The wavenumber (in cm⁻¹) is derived as σ = 1/λ (with λ in cm). Angular frequency ω = 2πν. All round-trip conversions maintain numerical consistency within floating‑point precision.

Case Study: Astronomical Spectroscopy

Astronomers analyse redshifted Balmer lines (e.g., Hα at rest 656.28 nm) to determine galaxy recession velocities. Using the Doppler shift formula: Δλ/λ = v/c. Our calculator helps convert wavelength shifts into energy or frequency changes, supporting research on cosmic expansion. The built‑in H‑alpha example (656.28 nm) provides a benchmark: energy ≈ 1.889 eV. Understanding these fundamentals enables precise photometry and spectrographic calibration.

Electromagnetic Spectrum Bands & Applications

Band Wavelength Range Frequency Range Applications
Gamma rays < 0.01 nm > 30 EHz Nuclear medicine, astrophysics
X-rays 0.01 – 10 nm 30 PHz – 30 EHz Medical imaging, crystallography
Ultraviolet (UV) 10 – 380 nm 790 THz – 30 PHz Sterilization, fluorescence
Visible 380 – 750 nm 400 – 790 THz Human vision, colorimetry
Infrared (IR) 0.75 – 300 µm 1 – 400 THz Thermal imaging, spectroscopy
Microwave 1 mm – 1 m 300 MHz – 300 GHz Radar, communications
Radio waves > 1 m < 300 MHz Broadcasting, astronomy

The Quantum nature: Photon Energy & Practical Units

For chemists and physicists, working in electronvolts (eV) and nanometers (nm) is ubiquitous. The product hc = 1239.841984 eV·nm (rounded) provides a simple conversion: E(eV) = 1239.841984 / λ(nm). Our calculator uses the exact constants to avoid rounding errors, delivering reliability for high‑precision spectroscopy tasks. All results are traceable to SI definitions.

Frequently Asked Questions

The approximation 1240/λ(nm) is a coarse rule of thumb. Our calculator uses full precision h·c / (λ·e) with the CODATA values, giving more accurate results, especially when high accuracy is required.

No. This calculator is designed for electromagnetic radiation (photons) in vacuum. For acoustic waves, the speed of sound differs, and de Broglie matter waves require a different approach.

Wavenumber (cm⁻¹) is the number of wave cycles per centimeter. It is directly proportional to energy and is widely employed in IR and Raman spectroscopy.

The interactive canvas marker is displayed only for the visible range (380–750 nm) because the gradient bar represents the visible spectrum. For other bands, the spectral region text gives accurate classification.

Based on fundamental electromagnetic theory and the International System of Units (SI). Constants referenced from NIST CODATA 2018. Reviewed by GetZenQuery Tech team to ensure high accuracy and alignment with modern spectroscopy standards. Last revised: April 2026.

Trusted references: NIST CODATA Constants, IAU Spectral standards, Hecht, E. "Optics" (Global Edition), and EM Spectrum (Wiki).