Snell's Law Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

Enter indexes and incident angle to find the refracted angle.

The Phenomenon of Refraction

Light bends whenever it travels from one medium to another with a different optical density. This bending is known as refraction, and it occurs because light travels at different speeds in different materials. You can observe refraction when a straw appears bent in a glass of water or when sunlight passes through a prism to form a rainbow. Quantifying how much the light bends is crucial in optics, from designing eyeglasses to engineering advanced lenses for telescopes and cameras.

Introducing Snell's Law

Snell's Law provides a simple mathematical relationship that predicts the angle of refraction. It states that n₁ sinθ₁ = n₂ sinθ₂, where n₁ and n₂ are the refractive indices of the incident and refracted media, and θ₁ and θ₂ are the respective angles measured from the normal (a line perpendicular to the interface). This law applies to any wave phenomenon that experiences a speed change between media, but it is most often used for light.

How to Use This Calculator

Enter the refractive index of the initial medium in the n₁ field, then specify the angle of incidence θ₁ in degrees. Next, provide the refractive index of the second medium in the n₂ field. Upon clicking Compute, the calculator rearranges Snell's Law to solve for θ₂, the angle at which the light emerges into the second medium. If the calculation yields a value greater than one for sinθ₂, total internal reflection occurs, meaning the light does not pass into the second medium.

Everyday Examples

Refraction explains why objects underwater appear closer to the surface than they really are. It also describes how lenses focus light to create sharp images in microscopes and cameras. Optometrists rely on Snell's Law when prescribing corrective lenses, while engineers use it to design fiber optic cables that guide light with minimal loss. Knowing how much light bends at each interface is fundamental in these applications.

Refractive Index Basics

The refractive index of a material indicates how much it slows down light compared to a vacuum. Air at standard conditions has an index close to 1.00, water is about 1.33, and typical glass ranges from 1.5 to 1.6. Materials like diamond, with an index around 2.4, bend light dramatically. In general, the greater the difference between n₁ and n₂, the more the light bends. This calculator assumes you know the indices in advance; if not, consult optical tables or manufacturer specifications.

Designing Optical Systems

Precision lenses in cameras and telescopes rely on careful calculations of refraction at multiple surfaces. Engineers adjust curvature and material choice so that light rays converge correctly at the focal plane. Even small errors in angle predictions can lead to blurry images or chromatic aberrations. Snell's Law is a foundation for ray tracing, allowing designers to model how each lens element affects incoming light.

Internal Reflection and Critical Angle

If light attempts to pass from a medium with a higher refractive index to one with a lower index at a steep angle, it may not cross the boundary. Instead, it reflects entirely back into the original medium. The threshold at which this occurs is the critical angle. When the angle of incidence exceeds this value, you observe total internal reflection. Fiber optic cables exploit this phenomenon to keep light confined within the core, allowing efficient transmission over long distances.

Lab and Classroom Applications

Students studying physics often conduct refraction experiments to determine the refractive index of a new material. By measuring incident and refracted angles and applying Snell's Law, they can calculate the unknown index. This calculator streamlines the process, serving as a quick check for manual calculations. It also helps instructors create problem sets that illustrate how light behaves when transitioning between air, water, glass, or other substances.

Accounting for Wavelength

The refractive index of most materials varies slightly with wavelength, a phenomenon known as dispersion. Blue light (shorter wavelengths) often bends more than red light (longer wavelengths). While this calculator assumes a single index for simplicity, engineers designing prisms or chromatic lenses must consider dispersion to avoid color fringing. Advanced optical software incorporates wavelength-dependent indices to model these effects more precisely.

Final Thoughts

The Snell's Law Calculator gives you a fast and reliable way to determine how light or other waves change direction when crossing an interface. By entering the indices of refraction and the incident angle, you gain immediate insight into the resulting path of the ray. Whether you're a student exploring basic optics or a professional engineer refining a lens design, understanding refraction is key to manipulating light effectively.

Related Calculators

Refractive Index from Light Speed Calculator

Find refractive index, light speed in a medium, or vacuum speed using n = c/v with detailed explanations of optical refraction.

refractive index calculator speed of light in medium optics

Angle of Elevation Calculator - Find Sight Line Angles

Determine the angle of elevation or depression given a horizontal distance and height difference.

angle of elevation calculator trigonometry angle of depression

Angle Between Two Lines Calculator

Determine the acute angle formed by two lines in standard form using pure browser-based calculations.

angle between lines calculator line angle finder geometry