Physics

Snell’s Law & Refractive Index Calculator

Solve n₁ sin θ₁ = n₂ sin θ₂ for the refracted medium or refracted angle.

Your measurements

Start with the example, or enter your own values. Use a dot for decimals and e for scientific notation.

Snell’s Law & Refractive Index Calculator inputs

Calculated locally. No account or uploads.

Result & working

Example

The calculator is loading. You can read the worked example below.

The formula

n₁ sin θ₁ = n₂ sin θ₂

n₂ = n₁ sin θ₁ / sin θ₂

θ₂ = sin⁻¹[(n₁/n₂) sin θ₁]

What the variables mean
SymbolMeaning
n₁, n₂Refractive indices of the incident and second medium.
θ₁, θ₂Angles measured from the normal, in degrees here.

When to use this calculator

Use this for refraction at a flat boundary between isotropic media. Angles are measured from the normal, not the surface.

If solving for θ₂, a sine argument greater than 1 indicates no transmitted ray under this simple model; total internal reflection is possible.

Worked example

The calculator opens with these example values. All steps below are available even with JavaScript disabled.

  1. n₂ = n₁ sinθ₁ / sinθ₂
  2. = 1 × sin(45°) / sin(28.1°) = 1.50125

n₂ = 1.50125

Common mistakes

  • Measure angles from the normal.
  • Keep calculator trigonometry mode consistent; this tool accepts degrees.
  • Do not treat refractive index as having units.