TSE.
MathematicsFinanceHealthPhysicsEngineeringBrowse all

Physics · Optics · Optics & Light

Refractive Index Calculator

Calculate the refractive index of a medium using the ratio of the speed of light in vacuum to the speed of light in the medium.

Calculator

Advertisement

Formula

n is the refractive index (dimensionless). c is the speed of light in vacuum (≈ 2.998 × 10⁸ m/s). v is the phase speed of light in the medium (m/s). In Snell's law, n₁ and n₂ are the refractive indices of medium 1 and medium 2, while θ₁ and θ₂ are the angles of incidence and refraction measured from the normal to the interface.

Source: Born, M. & Wolf, E. — Principles of Optics, 7th Ed. Cambridge University Press (1999); Hecht, E. — Optics, 5th Ed. Pearson (2017).

How it works

When light travels from vacuum into a transparent medium, it interacts with the electrons of the material and its effective propagation speed decreases. The refractive index quantifies this slowdown as the ratio of the speed of light in vacuum (c ≈ 2.998 × 10⁸ m/s) to the phase speed of light in the medium (v). A higher refractive index means light slows more and bends more sharply at interfaces — this is why a diamond (n ≈ 2.42) sparkles more dramatically than glass (n ≈ 1.5).

This calculator supports two methods. The first is the Speed of Light Method: given the measured or known propagation speed in a medium, the refractive index is n = c/v. The second is the Snell's Law Method: by measuring the angle of incidence (θ₁) in medium 1 and the angle of refraction (θ₂) in medium 2, and knowing n₁, you can solve for n₂ using n₁ sin θ₁ = n₂ sin θ₂. Both angles are measured from the surface normal. The calculator also outputs the critical angle — the minimum angle of incidence (in the denser medium) beyond which total internal reflection occurs, given by θ_c = arcsin(1/n).

Practical applications include designing anti-reflective coatings, predicting light bending in lenses and prisms, optimizing fiber-optic cable performance, and identifying unknown transparent materials in analytical chemistry. The refractive index is also frequency-dependent (dispersion), which is why prisms split white light into its component colors — each wavelength travels at a slightly different speed in glass.

Worked example

Example 1 — Speed of Light Method: A beam of light travels through a glass sample at a measured speed of 1.97 × 10⁸ m/s. What is the refractive index of this glass?

n = c / v = 2.998 × 10⁸ / 1.97 × 10⁸ = 1.522

This matches the refractive index of standard borosilicate glass (n ≈ 1.52), confirming the measurement. The critical angle from this medium to air is arcsin(1/1.522) ≈ 41.1°. Light striking a glass-air interface at an angle greater than 41.1° from the normal will undergo total internal reflection.

Example 2 — Snell's Law Method: A ray of light passes from air (n₁ = 1.000) into an unknown liquid. The angle of incidence is 45° and the measured angle of refraction is 29°. Find the refractive index of the liquid.

n₂ = n₁ × sin(45°) / sin(29°) = 1.000 × 0.7071 / 0.4848 = 1.459

This value is consistent with ethanol (n ≈ 1.361) or certain optical oils, narrowing the identification of the unknown substance. The critical angle for this liquid relative to air is arcsin(1/1.459) ≈ 43.3°.

Limitations & notes

The standard refractive index formula n = c/v assumes a non-magnetic, isotropic, homogeneous medium. In practice, several important limitations apply. First, the refractive index is wavelength-dependent (dispersion) — values in tables are typically given for the sodium D line at 589.3 nm, and can differ by several percent across the visible spectrum. Second, anisotropic crystals (such as calcite or quartz) exhibit birefringence, meaning the refractive index depends on the polarization direction of light; the simple formula does not apply without specifying the optical axis. Third, at very high light intensities, the nonlinear refractive index becomes significant (Kerr effect), especially in laser optics. Fourth, the Snell's law method requires precise angle measurement; small errors in angle — especially near grazing incidence — propagate significantly into the computed index. Finally, the refractive index can be complex (with an imaginary part representing absorption) in metals and semiconductors, which this calculator does not handle; it is designed for transparent, dielectric media where the imaginary part is negligible.

Frequently asked questions

What is the refractive index of common materials?

Vacuum is exactly 1.000, air at standard conditions is approximately 1.0003, water is about 1.333, ordinary glass ranges from 1.45 to 1.7, and diamond is approximately 2.417. High-index optical glasses used in camera lenses can exceed 1.9.

Can the refractive index be less than 1?

The phase refractive index can theoretically fall below 1 in certain frequency ranges near absorption resonances, meaning the phase velocity exceeds c. This does not violate special relativity because information (group velocity) still travels at or below c. Metamaterials engineered with negative refractive indices also exist in microwave and optical frequency ranges.

What is the critical angle and how does it relate to the refractive index?

The critical angle is the minimum angle of incidence (measured from the normal) at a boundary from a denser medium to a less dense medium at which total internal reflection occurs. It is calculated as θ_c = arcsin(n₂/n₁), and for a medium-to-air interface it simplifies to arcsin(1/n). Fiber optic cables exploit total internal reflection to guide light with minimal loss.

Why does the refractive index change with wavelength?

Dispersion occurs because different wavelengths of light interact differently with the electron resonances in a material. Shorter wavelengths (blue light) generally slow down more than longer wavelengths (red light) in glass, resulting in a higher refractive index for blue than for red. This phenomenon is described by the Cauchy and Sellmeier dispersion equations.

How is the refractive index measured experimentally?

Common methods include the minimum deviation angle through a prism, Abbe refractometry (which measures the critical angle directly), ellipsometry for thin films, and interferometry for high-precision measurements. Snell's law measurements using a laser and a half-cylinder lens block are a standard undergraduate laboratory technique.

Last updated: 2025-01-15 · Formula verified against primary sources.