Snell's Law Calculator

Last updated: 2026-09-01

Snell's Law Calculator — Calculate refraction angle using Snell's law.
Inputs
Result
Enter values and press Calculate
Common Examples — Click to Fill
Index 1Incident angleIndex 2
Escala laboratorio 0.4120.6
Uso domestico 0.7211.05
Aplicacion industrial 1301.5
Ingenieria civil 1.5452.25
Escala cientifica 2.5753.75

TL;DR: To calculate the refraction angle using Snell’s Law, multiply the refractive index of the first medium (n₁) by the sine of the incidence angle (θ₁), divide that product by the refractive index of the second medium (n₂), and then take the arcsine of the result: θ₂ = arcsin((n₁ × sin(θ₁)) / n₂).

What Is the Snell's Law Calculator?

The Snell's Law Calculator is a physics tool that determines the angle of refraction when a light ray passes from one transparent medium into another. For example, when light travels from air into water, glass, or diamond, its path bends — this tool tells you exactly by how much. The core calculation is based on the principle that the ratio of the sines of the angles is equal to the inverse ratio of the refractive indices: n₁ × sin(θ₁) = n₂ × sin(θ₂).

This calculator is essential for optics students, lens designers, engineers working with fiber optics, and professionals in photography or ophthalmology. It saves time by eliminating manual trigonometric calculations and reduces the risk of sign or unit errors. Anyone who needs to predict how light will bend at an interface — from a physics lab experiment to a camera lens design — will find this tool immediately useful.

The tool takes two refractive indices and one incidence angle as inputs, then computes the missing refraction angle. It automatically handles the trigonometric functions, so you do not need to remember whether your calculator is in degree or radian mode — the backend conversion is built in.

How to Use the Calculator

Using the Snell's Law Calculator is straightforward. Follow these steps to get your refraction angle:

  1. Enter the refractive index of the first medium (n₁): This is the medium the light is traveling from. For air, use 1.0. For water, use 1.33. For glass, use 1.5.
  2. Enter the angle of incidence (θ₁): This is the angle between the incoming light ray and the normal (an imaginary line perpendicular to the surface). Enter the value in degrees.
  3. Enter the refractive index of the second medium (n₂): This is the medium the light is entering. Ensure this value is correct — swapping n₁ and n₂ is a common error.
  4. Click "Calculate": The tool applies Snell's Law and displays the refraction angle (θ₂) in degrees.
  5. Check for Total Internal Reflection: If n₁ > n₂ and the calculator returns an error or a value greater than 90°, this indicates total internal reflection — no light passes through.

The output, θ₂, is the angle of the refracted ray measured from the normal inside the second medium. This is the value you need for further optical analysis.

Formula and Calculation Method

Snell's Law is mathematically expressed as:

n₁ × sin(θ₁) = n₂ × sin(θ₂)

To solve for the refraction angle, isolate θ₂:

sin(θ₂) = (n₁ × sin(θ₁)) / n₂

θ₂ = arcsin((n₁ × sin(θ₁)) / n₂)

Here, θ₁ and θ₂ are measured in degrees, and the sine function operates on degree-based values internally. The refractive indices are unitless constants that describe how much light slows down in a material relative to a vacuum.

Worked Example: Let us calculate the refraction angle from air (n₁ = 1.0) into glass (n₂ = 1.5) with an incidence angle of 45°.

Step 1: Compute sin(45°). Using the known value, sin(45°) ≈ 0.7071.

Step 2: Apply Snell's Law: sin(θ₂) = (1.0 × 0.7071) ÷ 1.5 = 0.4714.

Step 3: Find θ₂ by taking the inverse sine: θ₂ = arcsin(0.4714) ≈ 28.1255°.

Thus, the light ray bends from 45° in air to approximately 28.13° in glass. The light moves toward the normal because n₂ > n₁ — the medium is denser optically.

Practical Examples

Here are three realistic scenarios where you would use this calculator. The table below summarizes inputs and outputs.

Scenarion₁θ₁ (degrees)n₂θ₂ (degrees)Interpretation
Air to Water1.0301.3322.08Light bends toward the normal as it enters water.
Air to Diamond1.0452.4217.10High index causes strong bending; high dispersion in gems.
Water to Air (total internal reflection check)1.33601.0Error (TIR)Critical angle exceeded; no refraction occurs, light reflects internally.

Example 1: Air to Water — If you point a laser from air into a pool at 30° from the normal, the beam bends to 22.08° in water. This is why objects underwater appear shifted from their true position.

Example 2: Air to Diamond — At a 45° incidence angle, diamond bends light to just 17.1°. The extreme bending separates colors (dispersion), giving diamonds their fire and brilliance.

Example 3: Water to Air — When light travels from water to air at a steep angle (60°), total internal reflection occurs. This phenomenon is what makes fiber optics work — light stays trapped inside the core.

Tips for Accurate Results

Getting the right output from a Snell's Law calculator depends on careful input. Here are the key points to watch:

  • Use degrees for angles: The calculator expects θ₁ in degrees, not radians. If you type 0.5 thinking of radians, you will get a wildly wrong result. Always double-check the angle unit.
  • Verify the order of refractive indices: n₁ is the first medium (where the light starts), and n₂ is the second medium. If you swap them, the sin(θ₂) ratio flips, producing an incorrect angle — often larger than 90°.
  • Check critical angle conditions: If n₁ is greater than n₂ (e.g., water n=1.33 to air n=1.0), compute the critical angle: θ_critical = arcsin(n₂/n₁). If θ₁ exceeds this critical angle, total internal reflection occurs, and no refraction angle exists — the calculator cannot output a valid positive angle in that case.
  • Do not round intermediate values: If you are doing this by hand alongside the calculator, carry at least four decimal places for the sine values. Premature rounding can shift the final angle by 0.5° or more.
  • Use known refractive indices: Air is 1.0, water is 1.33, crown glass is 1.52, flint glass is 1.62, diamond is 2.42. Do not guess these values — slight index variations change refraction angles significantly.

Frequently Asked Questions

Q1: What is the critical angle in Snell's Law, and when does total internal reflection occur?

The critical angle is the incidence angle at which the refracted angle becomes exactly 90°, meaning the light travels along the boundary surface. It is calculated as θ_critical = arcsin(n₂/n₁) and only exists when n₁ > n₂ (light moving from a denser to a less dense medium). For example, from water (n=1.33) to air (n=1.0), the critical angle is approximately 48.75°. If your incidence angle is larger than this value, the calculator cannot return a refracted angle — instead, all light reflects back into the first medium. This is called total internal reflection, and it is the principle behind fiber-optic cables and prism-based binoculars.

Q2: Why does light bend toward the normal when entering a denser medium?

Light bends toward the normal (the line perpendicular to the surface) when it enters a medium with a higher refractive index, like from air (n=1.0) to glass (n=1.5). This happens because light travels slower in the denser medium. According to Fermat's principle of least time, the light path minimizes total travel time by reducing the distance traveled in the slower medium — which geometrically results in a smaller angle relative to the normal. In the formula, this is visible because n₂ > n₁ makes sin(θ₂) smaller than sin(θ₁), so θ₂ < θ₁.

Q3: What happens if I enter the refractive indices in the wrong order in the calculator?

If you swap n₁ and n₂, the calculation becomes incorrect. For instance, taking the air-to-glass example with n₁=1.5 and n₂=1.0 at θ₁=45° gives sin(θ₂) = (1.5 × 0.7071) / 1.0 = 1.0607. Since the sine of an angle cannot exceed 1, the arcsine function returns an error or "undefined" result. This error signals total internal reflection where none actually exists physically — you are essentially computing the reverse path. To fix this, always confirm which medium the light is leaving (n₁) and which it is entering (n₂). The correct input ordering is critical for both numerical accuracy and meaningful physical interpretation.

FAQ

What does Snell's Law Calculator do?

Snell's Law Calculator computes the angle of refraction or the angle of incidence when light passes between two media with different refractive indices, using the formula n1 * sin(θ1) = n2 * sin(θ2). It also handles cases where total internal reflection occurs, alerting the user when the critical angle is exceeded.

What inputs do I need to provide to use the calculator?

You must enter the refractive indices of both media (n1 and n2) and either the angle of incidence (θ1) or the angle of refraction (θ2), depending on which value you want to calculate. The calculator also accepts angles in degrees or radians, and it will automatically convert units for you if needed.

Can the calculator handle total internal reflection scenarios?

Yes, the calculator checks whether the sine of the desired angle exceeds 1, which indicates total internal reflection. In that case, instead of giving an impossible angle, it will display a clear message explaining that no refraction occurs and that the light is completely reflected back into the first medium.

Does the calculator provide the critical angle for a given pair of media?

Absolutely, in addition to solving for angles, the calculator can compute the critical angle when light travels from a denser to a rarer medium (n1 > n2). This feature helps users quickly determine the threshold beyond which total internal reflection will occur, which is essential for fiber optics and prism design.