Compute refracted angles, refractive indices, and critical angles using Snell's Law. Visualize light bending at the interface between two media with an interactive ray diagram. Ideal for physics students, optical engineers, and anyone exploring the behavior of light.
The index of refraction (or refractive index) of a material is a dimensionless number that describes how light propagates through that medium. It is defined as the ratio of the speed of light in vacuum to the speed of light in the material: n = c / v. When light passes from one medium to another, its speed changes, causing the light ray to bend — a phenomenon known as refraction. The relationship between the angles of incidence and refraction is governed by Snell's Law:
n₁ · sin(θ₁) = n₂ · sin(θ₂)
where n₁ and n₂ are the refractive indices of the two media, and θ₁ and θ₂ are the angles measured from the normal to the interface.
This fundamental law of optics, discovered independently by Ibn Sahl in the 10th century and later by Willebrord Snellius in 1621, underpins everything from the design of eyeglass lenses and camera optics to fiber-optic communications and astronomical observations. Our interactive calculator lets you explore these principles in real time.
The tool implements Snell's Law with three distinct modes to accommodate different user needs:
All calculations are performed with double-precision floating-point arithmetic to ensure high accuracy. The ray diagram is rendered on an HTML5 canvas, with incident, refracted, and (where applicable) critical rays clearly distinguished.
The table below lists refractive indices (at ~589 nm, sodium D-line) for a selection of optical materials. Values may vary slightly with wavelength (dispersion) and temperature.
| Material | Refractive Index (n) | Optical Density | Typical Application |
|---|---|---|---|
| Vacuum | 1.000000 | Lowest | Reference standard |
| Air (STP) | 1.000293 | Very low | Atmospheric optics |
| Water (20°C) | 1.333 | Low | Aquatic optics, lenses |
| Ice | 1.309 | Low | Polar optics |
| Fused silica (SiO₂) | 1.458 | Moderate | UV optics, windows |
| Crown glass (BK7) | 1.517 | Moderate | Lenses, prisms |
| Flint glass (SF10) | 1.728 | High | Chromatic correction |
| Dense flint glass | 1.800 | High | High-index lenses |
| Sapphire (Al₂O₃) | 1.768 | High | Scratch-resistant optics |
| Diamond | 2.417 | Very high | Brilliant cut, spectroscopy |
| Silicon (Si) | 3.48 | Extremely high | IR optics, photonics |
| Germanium (Ge) | 4.00 | Extremely high | Thermal imaging, IR |
Values are approximate and wavelength-dependent. For precision work, consult manufacturer datasheets.
Modern fiber-optic networks rely on the principle of total internal reflection (TIR) to confine light within the core of an optical fiber. A typical fiber consists of a high-index core (n₁ ≈ 1.47, silica) surrounded by a lower-index cladding (n₂ ≈ 1.45). The critical angle for this pair is θc = arcsin(1.45 / 1.47) ≈ 80.6°. Any light entering the fiber at an angle greater than this relative to the normal will be completely internally reflected, allowing signals to travel over long distances with minimal loss. Our calculator lets you explore these critical conditions interactively — try the Critical Angle mode with n₁ = 1.47 and n₂ = 1.45 to see for yourself.
The phenomenon of refraction was known to ancient scholars, but the mathematical relationship was first accurately described by the Persian mathematician Ibn Sahl in 984 CE, who discovered the law of refraction in his work On the Burning Instruments. However, his findings were largely unknown in the West. The law was rediscovered independently by the Dutch astronomer Willebrord Snellius in 1621, and later formalized by the French philosopher René Descartes in his Dioptrique (1637). Descartes published the law in the form we use today, though he did not credit Snell. The modern formulation, n₁·sinθ₁ = n₂·sinθ₂, was established by Christiaan Huygens in his Treatise on Light (1690), who also provided the wave-theory explanation of refraction. This historical progression illustrates how scientific knowledge builds incrementally across cultures and centuries.