Snell's Law Calculator

Solve Snell's law n1 sin(theta1) = n2 sin(theta2) for the angle of refraction, the angle of incidence, or either refractive index. Shows the critical angle, total internal reflection, wave speed, wavelength, and Brewster's angle.

https://hexacalculator.com/calculators/physics/optics/snells-law-calculator

Physics

Optics

Snell's Law Calculator

Solve Snell's law n1 sin(theta1) = n2 sin(theta2) for the angle of refraction, the angle of incidence, or either refractive index. Shows the critical angle, total internal reflection, wave speed, wavelength, and Brewster's angle.

Snell's Law Calculator

Unit
Unit

Enter the two refractive indices and the angle of incidence to get the angle of refraction, or fill any three of the four fields and leave the unknown blank. Angles are measured from the normal, not from the surface.

Show wave speed and wavelength

Refractive index is the speed of light in a vacuum divided by the speed in the medium, so this layer shows how fast light travels in each medium. Add a vacuum wavelength to see how the wavelength shrinks in each medium too.

Add Brewster's polarizing angle

Brewster's angle is the angle of incidence at which reflected light becomes completely polarized. It follows straight from the two refractive indices.

Please input values into the fields

Was this calculator helpful?

It takes one click and shapes what we fix next.

Add as preferred on Google

Show the refraction-angle curve

Plot the refraction angle against the angle of incidence for your two media, so you can see the curve flatten and, past the critical angle, cut off at total internal reflection.

Show the common-materials table

Compare the refractive index, the speed of light, and the critical angle of common media, from vacuum and air to water, glass, and diamond, with your own two media added alongside.

Refractive index, speed of light, and critical angle into air for common media, with your own media added

Medium

Refractive index

Speed of light (km/s)

Critical angle to air

Vacuum1299,792-
Air1299,70388.60 deg
Water (20 C)1.333224,90148.61 deg
Ethanol1.361220,27447.29 deg
Crown glass1.52197,23241.14 deg
Sapphire1.77169,37434.40 deg
Diamond2.417124,03524.44 deg

When light passes from one medium to another it is refracted. Snell's Law describes the degree of refraction precisely. This calculator computes the angle of refraction given the index of refraction for two media and the incident angle. It can also use the inverse relationship to solve for any one of four values when the other three are inputted. Enter three values and leave the fourth blank.

The importance of Snell's law:

Light travels at different speeds in different media. The refractive index of a medium is denoted by n and indicates how much the medium slows down light. It is the value obtained by dividing the speed of light in vacuum by the speed of light in that medium. The refractive index of vacuum is exactly 1, air is just above it at about 1.0003, water is 1.333, ordinary glass is about 1.52 and diamond is 2.417.

When a ray of light hits the interface between two media at an angle, its direction changes because of the change in speed. If the light slows down and enters a more optically dense medium, it bends toward the normal. The normal is a line perpendicular to the surface. If the light speeds up, it bends away from the normal. Snell's law relates the two angles and the two indices of refraction as follows:

n1sin⁡(θ1)=n2sin⁡(θ2)n_1 \sin(\theta_1) = n_2 \sin(\theta_2)

where n1 and n2 are the refractive indices of the first and second medium respectively, theta1 is the angle of incidence, and theta2 is the angle of refraction. Both these angles are measured with respect to the normal, not the surface. The index of refraction itself is determined by the speed of light.

n=cvn = \frac{c}{v}

Here, c is the speed of light in a vacuum and v is the speed of light in this medium. The refractive index being a ratio of speeds has no unit.

Example calculation:

For example, let's say a light ray is traveling from air to glass and hits the surface at an angle of 30 degrees with respect to the normal. The refractive index of air is about 1.0003 while the refractive index of glass is 1.50. If we rearrange Snell's law to solve for the unknown angle of refraction, we get:

sin⁡(θ2)=n1sin⁡(θ1)n2=1.0003×sin⁡(30∘)1.50≈0.333\sin(\theta_2) = \frac{n_1 \sin(\theta_1)}{n_2} = \frac{1.0003 \times \sin(30^\circ)}{1.50} \approx 0.333

The calculation of the arcsine of 0.333 results in an angle of refraction of approximately 19.5 degrees. As the light ray enters the denser glass and its speed is reduced, it is deflected by about 10.5 degrees from the normal. The entire calculation proceeds in this manner. By releasing any fields you can carry out the calculations in the desired direction.

Backward calculation:

Since Snell's law is a single equation that relates four quantities, you can solve for any one of the quantities by rearranging the equation appropriately. There is no need to select a particular mode. The blank field indicates which quantity the calculation tool will determine.

To find

Rearranged formula

In words

Angle of refraction

theta2 = arcsin(n1 sin(theta1) / n2)

From both indices and the angle of incidence

Angle of incidence

theta1 = arcsin(n2 sin(theta2) / n1)

From both indices and the angle of refraction

Index of medium 1

n1 = n2 sin(theta2) / sin(theta1)

From the other index and both angles

Index of medium 2

n2 = n1 sin(theta1) / sin(theta2)

From the other index and both angles

Measuring two angles and an index of refraction to determine another index of refraction is exactly the method by which a refractometer measures the index of refraction of a liquid. So this back-calculation mode is not just a theoretical exercise from a textbook, but also something that's routinely used in laboratories.

Critical Angle and Total Internal Reflection

When light passes from a denser and slower medium to a less dense and faster one, such as from glass into air, the ray of light is deflected in a direction away from the normal. As the angle of incidence gradually increases, the refracted light bends more and more until at a particular angle it reaches the limit where it has an angle of 90 degrees. This angle is called the critical angle. If we set the angle of refraction to be 90 degrees in Snell's law, then we get the following equation:

θc=arcsin⁡ ⁣(n2n1)\theta_c = \arcsin\!\left(\frac{n_2}{n_1}\right)

When the critical angle is exceeded there is no way for the light ray to escape outwards. The light ray is totally reflected back into the first medium and this phenomenon is known as total internal reflection. As total internal reflection only occurs when light enters a medium with a lower refractive index from one with a higher refractive index, this calculator will only show the critical angle if the first medium is denser than the second. If the input incident angle exceeds the critical angle then rather than giving an impossible value for the angle of refraction, the calculator will instead indicate total internal reflection.

Total internal reflection is not a rare phenomenon. It allows light to be transmitted over long distances in fiber optic cables, makes the facets of cut diamonds sparkle, and creates the optical illusion that water glistens on hot roads.

Direction and extent of refraction

The direction of the refraction is determined only by which medium is denser. If light slows down it bends toward the normal line and if it speeds up it bends away from the normal line. The amount of refraction, or difference between the two angles, is the angle of deviation that this calculator shows. In the case of normal incidence, where the ray hits at exactly 0 degrees, there's no refraction at all. Both angles are zero and the light passes straight through. This is the only limitation to Snell's law you need to remember. There's nothing else to calculate for rays hitting a surface perpendicularly.

Speed, wavelength, color

The effects that occur when light slows down in a medium are not limited to the refraction of the beam. Since the frequency of light remains constant as it crosses an interface, its wavelength shortens by the same factor as its speed increases or decreases. An orange light ray with a vacuum wavelength of 600 nanometers becomes a wave with a wavelength of 400 nanometers when entering glass. Although the index of refraction for this glass is 1.5, the perceived color remains orange since the eye detects frequency and not wavelength. The "speed layer" shows the speed and wavelength of light for each of the two media.

The index of refraction changes slightly with wavelength so that different colors of light are bent by differing amounts. This phenomenon is called dispersion. It's the reason a glass prism splits white light into a rainbow spectrum and why real rainbows form from raindrops.

Brewster's Angle and Polarization

Between the two indices of refraction is another angle, called Brewster's Angle. At this angle light reflected from a surface will be completely polarized, meaning it vibrates in only one direction. It corresponds to the arctangent of the ratio of the second index of refraction over the first index of refraction, and at this angle the difference between the reflected and refracted rays is exactly 90 degrees. Polarizing sunglasses are designed to reduce this glare that is reflected from water or road surfaces, and photographers use polarizing filters for the same reason. The "Brewster's Angle" section of this calculator will calculate this angle for any given media.

Application of Snell's Law.

All lenses in glasses, cameras, microscopes and telescopes are shaped to bend light rays towards a focal point according to Snell's Law. Fiber optic cables use total internal reflection to transmit internet signals. Prisms, rainbows, the mirage phenomenon, optical illusion of a pool looking shallower than it is, and straw appearing bent in a glass of water are all caused by refraction.

This law is not just for light. It is based on the principle that waves change speed at a boundary and so it also applies to sound waves or seismic waves as long as the material is isotropic, which means that its properties are uniform in all directions. In anisotropic crystals, a ray of light can split into two rays, which cannot be described by the simple form of Snell's law.

Frequently asked questions

What is Snell's law?

Snell's law, also known as the law of refraction, describes how a ray of light bends when it passes from one medium to another. It states that the product of the refractive index of the first medium and the sine of the angle of incidence is equal to the product of the refractive index of the second medium and the sine of the angle of refraction, i.e., n1*sin(θ1) = n2*sin(θ2). The two angles are measured relative to a line that is perpendicular to the surface.

How do you calculate the angle of refraction?

Convert Snell's Law to the form sin(θ₂) = n₁ sin(θ₁) / n₂, then calculate the inverse sine. For example, if light enters water (refractive index 1.33), coming from air (refractive index 1), at an angle of incidence of 10 degrees, the resulting refraction is arcsin(1 * sin(10 degrees) / 1.33), which is approximately 7.5 degrees. In this calculator, simply enter the two indices of refraction and the angle of incidence, leaving the field for the angle of refraction blank.

What are critical angle and total reflection?

A light ray approaching a medium with a lower index of refraction has a maximum possible angle of incidence, called the critical angle. If this angle is exceeded, then the light ray cannot enter into the medium and instead is totally reflected. This is total internal reflection. The critical angle is calculated by arcsin(n₂ / n₁) and only exists if the index of refraction of the first medium is higher than that of the second. At the interface between glass and air, the critical angle is approximately 42 degrees, which allows light rays to be contained within optical fibers.

Why does light bend when it enters a new medium?

Light travels slower through denser media. When a ray of light hits an interface at an angle, one side of the wavefront slows down faster than the other, causing the direction of the ray to change, similar to how a car's wheels have different speeds when driving on soft ground. If the ray is slowing down, it bends towards the normal; if it is speeding up, it bends away from the normal. When a light ray hits an interface at right angles (incident angle 0 degrees), there is no refraction.

Does Snell's law apply to all types of waves?

The formula is valid as long as the material is isotropic, i.e. behaves identically in all directions. The Snellius law describes how the propagation speed of a wave changes at an interface and does not depend on the specific properties of the wave. It can therefore be applied to sound waves or earthquake waves but also to light. In anisotropic crystals a single ray of light can split into two rays, which is a phenomenon that cannot be described by this simple formula.

What are typical refractive indices?

The index of refraction in a vacuum is exactly 1, air is about 1.0003, water is 1.333, ethanol is 1.361, typical crown glass is about 1.52, sapphire is 1.77 and diamond is 2.417. The higher the index of refraction, the slower light moves through it and the more pronounced the bending will be. This calculator lists the corresponding values for the index of refraction as well as the speed of light and critical angle for typical materials.

Related calculators

Angle of Refraction CalculatorFind the angle of refraction from Snell's law, or solve for either refractive index or the angle of incidence. Includes the critical angle, total internal reflection, ray deviation, and wave speed in each medium.
Angle of Incidence CalculatorFind the angle of incidence from the angle of refraction and two refractive indices, and solve Snell's law for any of the four quantities. Adds the law of reflection and grazing angle, the ray deviation, the critical angle and total internal reflection, the speed of light and wavelength in each medium, and Brewster's angle.
Brewster Angle CalculatorFind Brewster's angle from the refractive index on each side of a surface, or solve backwards for an unknown index from a measured polarizing angle. Includes the reflectance of each polarization, the 90 degree ray geometry, the critical angle, and a pile-of-plates polarizer model.
Charles' Law CalculatorSolve Charles' Law (V1/T1 = V2/T2) for any volume or temperature, with automatic kelvin conversion, the volume and temperature ratios, and the volume-temperature graph.
Bragg's Law CalculatorSolve n lambda = 2 d sin theta for the Bragg angle, the interplanar spacing or the wavelength, with 2 theta conversion, diffraction orders, photon energy and d-spacing from lattice parameters.
Wavelength CalculatorCalculate wavelength from frequency, from wave speed and frequency, or from photon energy, and work backwards from a wavelength to frequency and energy. Handles the refractive index of a medium, in any unit.

Disclaimer: This calculator is provided for general informational and educational purposes only. Our calculators are under active development, and results may be inaccurate, incomplete, or unsuitable for your situation. Always verify the figures independently and seek advice from a qualified professional before relying on them. We make no warranties and accept no liability for any loss or decision arising from use of this tool.

References

  1. Wikipedia: Snell's law

    The law of refraction, its derivation from the change in wave speed, and the critical angle for total internal reflection.

  2. Wikipedia: Total internal reflection

    The critical angle, total internal reflection, and applications from optical fibers to prisms.

  3. HyperPhysics: Refraction and Snell's Law

    Reference for refraction, refractive index, and Brewster's angle with worked relations.