Refractive Index Calculator
Calculate refractive index, light speed in medium, or wavelength using n = c/v = λ₀/λ.
What Is Refractive Index?
The refractive index n of a medium is the ratio of the speed of light in vacuum to the speed in the medium: n = c/v, where c = 2.998×10⁸ m/s and v is the phase velocity of light in the medium. Higher n means slower light and more bending at interfaces (Snell's Law: n₁sinθ₁ = n₂sinθ₂).
The refractive index also equals the ratio of wavelengths: n = λ₀/λ_medium. When light enters a denser medium, its wavelength decreases and speed decreases, but frequency stays constant (f = c/λ₀ = v/λ_medium). The color of light depends on frequency, which is unchanged by the medium.
n varies with wavelength — a phenomenon called dispersion. Crown glass: n_blue = 1.524, n_red = 1.514. This difference (0.01) causes prisms to separate white light into spectra and causes chromatic aberration in lenses. Abbe number V = (n_yellow − 1)/(n_blue − n_red) characterizes dispersion — higher V = less dispersion.
Absolute refractive index n relates to permittivity ε and permeability μ: n = √(εᵣμᵣ). For most optical materials: μᵣ ≈ 1, so n ≈ √εᵣ. Metamaterials with negative εᵣ and μᵣ can have negative n — enabling 'superlenses' and cloaking devices.
Formula Reference Table
| Solve For | Formula | Notes |
|---|---|---|
| Refractive index | n = c/v | c = 2.998×10⁸ m/s |
| Speed in medium | v = c/n | m/s |
| Wavelength in medium | λ = λ₀/n | λ₀ = vacuum wavelength |
| Snell's law connection | n₁sin θ₁ = n₂sin θ₂ | Light bends at interfaces |
| Critical angle | θ_c = arcsin(n₂/n₁) | n₁ > n₂; total internal reflection |
| Dispersion | n = n(λ) | Cauchy: n = A + B/λ² |
3 Worked Examples
n = 1.5 (crown glass). Find v.
- v = c/n = 2.998×10⁸ / 1.5 = 1.999×10⁸ m/s
- = 199,900 km/s (about 2/3 speed of light in vacuum)
Yellow light λ₀ = 589 nm in vacuum. n_diamond = 2.42.
- λ = λ₀/n = 589/2.42 = 243 nm in diamond
- The wavelength halves, but frequency stays constant at c/λ₀
Light travels at v = 2.25×10⁸ m/s in an unknown medium.
- n = c/v = 2.998×10⁸ / 2.25×10⁸ = 1.332
- Close to n_water = 1.333 — this is water!
Real-World Applications
Common Mistakes to Avoid
n is dimensionless (always ≥ 1 for ordinary media). v is the light speed in the medium (m/s). n = c/v → high n = low v.
λ_medium = λ_vacuum/n (shorter in medium). f_medium = f_vacuum (unchanged). Light's color (perceived) depends on frequency, not wavelength — so color doesn't change when light enters glass.
Air n = 1.0003, not exactly 1. For most applications negligible, but in precision interferometry or GPS signal propagation, the difference matters.
n = √(εᵣμᵣ). For optical frequencies, μᵣ ≈ 1 for natural materials, so n ≈ √εᵣ. But for microwave metamaterials, μᵣ ≠ 1 and can be negative, giving negative n.
n depends on wavelength. Using n_sodium (589 nm) for blue light (450 nm) introduces error. For precision optics, use wavelength-specific n from Sellmeier equation.
Frequently Asked Questions
Related Physics Calculators
Formula Explorer connections
Interpretation: This relationship connects light propagation, geometry, wavelength, refraction, interference or image formation. Assumption: Use a consistent sign convention and units. Paraxial rays, thin elements, coherent light, vacuum wavelength or ideal optical components may be assumed.