Snells Law Calculator - Solve Refraction & Critical Angle

Use this free snells law calculator to calculate the angle of incidence, angle of refraction, refractive indices, or critical angle with step-by-step optical formulas.

Updated: June 28, 2026 • Free Tool

Snells Law Calculator

Select the variable you want to solve for.

Refractive index of the first medium (e.g., air = 1.0, water = 1.333).

Refractive index of the second medium (e.g., water = 1.333, glass = 1.52).

Angle of the incoming light ray in degrees relative to the normal line.

Angle of the refracted light ray in degrees relative to the normal line.

Results

Solved Value
0
Critical Angle 0°
Total Internal Reflection 0

What Is the Snell's Law Solver?

A snells law calculator serves as an essential optical tool to compute the angles of refraction, angles of incidence, or refractive indices when light crosses a boundary between two distinct media. By inputting three of the four core values, students and optical engineers can instantly determine the path light takes, helping to analyze fiber optics, optical prisms, lenses, or aquatic sight lines.

  • Optics Homework and Lab Validation: Students studying physics can check their manual calculations for refraction angles and indices during university laboratory experiments.
  • Fiber Optic Cable Waveguide Design: Engineers check the boundary interfaces inside optical fibers to verify whether the light ray will remain confined via total internal reflection.
  • Lens Prototyping and Camera Optics: Designers model optical windows and compound camera lenses by tracking bending angles across air, crown glass, and flint glass.
  • Aquatic Sight Line and Underwater Studies: Divers and marine scientists estimate how much an object under water appears shifted compared to its actual position due to surface bending.

Understanding the behavior of light at boundary surfaces is critical for everything from designing eyeglasses to establishing high-speed internet connections through glass fibers. The bending occurs because light changes its propagation speed when crossing from an optically rarer medium like air to an optically denser medium like glass, or vice versa.

This optical tool resolves the trigonometric functions automatically, preventing calculation errors that arise from mixing degrees and radians or measuring angles relative to the boundary surface instead of the perpendicular line. This makes it a valuable asset for quick checks and conceptual reinforcement in physics classrooms.

To calculate the incoming angle of light before refraction occurs, the Angle of Incidence Calculator provides the reverse geometric optical solving steps.

How the Snell's Law Solver Works

The mathematical foundation of this physics tool relies on the classic refraction equation derived by Willebrord Snellius, which links angles and speed ratios.

n1 * sin(theta1) = n2 * sin(theta2)
  • n1: The refractive index of the first medium, which represents how much light slows down in the medium the ray is leaving.
  • theta1: The angle of incidence, measured in degrees between the incoming light ray and the normal perpendicular line.
  • n2: The refractive index of the second medium, representing the optical density of the medium the light is entering.
  • theta2: The angle of refraction, measured in degrees between the refracted light ray and the normal perpendicular line.

The snells law calculator rearranges the formula based on your selected calculation mode. If solving for the second refractive index, the formula becomes n2 = (n1 * sin(theta1)) / sin(theta2). All trigonometric computations are executed in radians behind the scenes and then converted back to degrees to align with standard educational problem formats.

When light moves from an optically denser medium to a rarer medium, such as from glass to air, the angle of refraction is greater than the angle of incidence. As the angle of incidence increases, a point is reached where the calculated sine of the refraction angle would exceed one. At this point, the equation has no real solution, representing the physical transition to reflection.

Light Entering Water from Air

n1 = 1.00 (Air), n2 = 1.333 (Water), theta1 = 30.00°

sin(theta2) = (1.00 * sin(30°)) / 1.333 = 0.5000 / 1.333 ≈ 0.3751. Taking the arcsine gives theta2 = arcsin(0.3751).

theta2 ≈ 22.03°

The light bends toward the normal line, decreasing from 30° to 22.03° because water is optically denser than air.

According to HyperPhysics Georgia State University, Snell's law states that the ratio of the sines of the angles of incidence and refraction is equal to the reciprocal of the ratio of the indices of refraction.

For dedicated single-value computations focusing solely on the bending angle output, you can reference the Angle of Refraction Calculator.

Key Concepts Explained

To master optical refraction, four core physical concepts must be understood in relation to the boundary interface.

Surface Normal Line

An imaginary reference line drawn perpendicular to the boundary surface at the exact point where the light ray enters. All angles in optics are measured relative to this perpendicular normal rather than the flat surface boundary itself.

Refractive Index (n)

A dimensionless ratio comparing the speed of light in a vacuum to the speed of light within a given medium. A vacuum has an index of exactly 1.0, while air is roughly 1.0003, water is 1.333, and typical crown glass is around 1.52.

Critical Angle

The specific angle of incidence where the angle of refraction reaches exactly 90 degrees. This boundary angle exists only when light travels from a higher refractive index medium to a lower refractive index medium.

Total Internal Reflection

A physical phenomenon that occurs when the angle of incidence is greater than the critical angle. No light is transmitted into the second medium; instead, the entire light ray is reflected back into the denser first medium.

These four principles form the foundation of geometric optics and explain why pools appear shallower than they are, why diamonds sparkle, and how fiber optic communications function. By measuring angles from the normal, Snell's law maintains a consistent mathematical form regardless of whether the boundary is flat, spherical, or irregular.

When light hits a boundary, some portion is always reflected. Below the critical angle, refraction and reflection happen simultaneously. Above the critical angle, transmittance drops to zero, and reflection is complete. This makes the critical angle a vital threshold for optical fiber waveguides.

To understand how the speed of light changes inside different materials, use the Index of Refraction Calculator to convert material constants.

How to Use This Optical Calculator

Follow these step-by-step instructions to compute angles and refractive indices using the snells law calculator.

  1. 1 Select the Variable to Solve For: Use the dropdown menu at the top of the form to choose whether to calculate the angle of refraction, angle of incidence, or one of the refractive indices.
  2. 2 Enter the First Medium Properties: Input the refractive index n1 of the medium the light ray is currently traveling through. For air, this value is 1.0.
  3. 3 Input the Second Medium Properties: Input the refractive index n2 of the medium the light ray is entering. For common crown glass, this value is 1.52.
  4. 4 Provide the Known Angle: Type the known angle (incidence or refraction) in degrees into the corresponding input field, ensuring the value is between 0 and 90 degrees.
  5. 5 Use Media Presets for Quick Setup: Optionally, select a common transition from the presets to instantly fill n1 and n2, such as Water to Air or Air to Glass.
  6. 6 Read the Results Panel: Examine the output panel on the right to view the solved value, critical angle, total internal reflection status, and bending direction.

For example, to find how light bends entering crown glass from air at 45 degrees, select 'Angle of Refraction' as your target. Enter n1 = 1.0 for air, n2 = 1.52 for glass, and set the angle of incidence to 45. The results panel will instantly display an angle of refraction of 27.72 degrees, showing that the light ray bends toward the normal.

When applying boundary refraction to curved glass block surfaces, the Lensmaker's Equation Calculator solves for focal length based on curvature radii.

Benefits of Using This Optics Solver

Our snells law calculator provides several advantages over manual calculation methods and spreadsheet setups.

  • Eliminates Trigonometric Unit Errors: Manually calculating Snell's law requires converting angles to radians before applying sine functions. The calculator handles these conversions automatically to prevent radian-degree errors.
  • Instant Total Internal Reflection Detection: The tool immediately calculates the critical angle and flags whether the ray will undergo total internal reflection, saving you from separate math steps.
  • Flexible Multi-Variable Solving: Unlike simple calculators that only solve for the refraction angle, this tool can isolate n1, n2, theta1, or theta2 with equal ease.
  • Interactive Material Comparisons: By adjusting the refractive index inputs, you can quickly see how changing the glass type or fluid medium shifts the refraction path.
  • Clear Step-by-Step Contextual Links: The page integrates links to peer calculators so you can explore related topics like index of refraction calculations and lens equations.

These benefits make the tool highly suitable for homework checks, laboratory setups, and classroom demonstrations. The clean black-and-white interface focuses on the mathematical outputs without distracting advertisements or filler.

By displaying the critical angle alongside the solved values, the tool reinforces the physical relationship between refraction indices and reflection limits. This dual readout is helpful for students learning the limitations of the refraction law.

Once you have determined the refraction index thresholds, you can use the Thin Lens Equation Calculator to locate real or virtual focus points.

Factors That Affect snells law calculator Results

While the geometric equations are exact, real-world optical measurements are influenced by several physical factors.

Dispersion and Wavelength

The refractive index of a material varies depending on the wavelength of light. Blue light travels slower and bends more than red light in glass, causing white light to split into a spectrum.

Temperature and Density

As temperature increases, most materials expand and their density decreases. This density change alters the refractive index, slightly shifting the bending angle of the light ray.

Surface Curvature and Flatness

Snell's law applies to the local normal at the point of contact. Curved surfaces like lenses change the direction of the normal across the boundary, which changes how rays bend relative to the main optical axis.

  • The calculator assumes isotropic media where light travels at the same speed in all directions. Anisotropic crystals, like calcite, cause double refraction where light splits into ordinary and extraordinary rays.
  • It only calculates geometric angles and does not determine the percentage of light reflected versus transmitted at the interface. For intensity calculations, Fresnel equations must be used.

For typical physics experiments and textbook problems, these factors have a minor impact. However, in high-precision optical engineering and fiber-optic system designs, dispersion and temperature coefficients are carefully budgeted.

Understanding these boundaries allows students and hobbyists to transition from basic geometric optics to advanced wave physics. The calculator provides the starting point for these analyses.

According to Encyclopaedia Britannica, refraction is the change in direction of a wave as it passes from one medium to another, and Snell's law relates the angles to the refractive indices of the two media.

Snells law calculator diagram showing refraction angle and critical angle at a glass-air boundary
Snells law calculator diagram showing refraction angle and critical angle at a glass-air boundary

Frequently Asked Questions

Q: What is Snell's Law?

A: Snell's Law describes the relationship between the angles of incidence and refraction when light passes through the boundary between two different media, written as n₁ sin(θ₁) = n₂ sin(θ₂).

Q: How do you find the angle of refraction using Snell's Law?

A: To calculate the angle of refraction θ₂, isolate the variable by taking the arcsine: θ₂ = arcsin((n₁ sin(θ₁)) / n₂). This computes the refracted path relative to the normal.

Q: What is the critical angle in Snell's Law?

A: The critical angle is the angle of incidence that results in an angle of refraction of exactly 90 degrees, calculated as θ_c = arcsin(n₂ / n₁) when light travels to a rarer medium.

Q: When does total internal reflection occur?

A: Total internal reflection occurs when light travels from a medium of higher refractive index to one of lower refractive index, and the angle of incidence exceeds the critical angle.

Q: Why does light bend when transitioning between media?

A: Light bends because its speed changes when crossing the boundary between materials of different optical densities, causing the wavefront to change direction at the interface.

Q: What are typical refractive index values for common media?

A: Standard refractive indices are 1.0 for a vacuum, 1.0003 for air, 1.333 for water, 1.52 for crown glass, and 2.42 for diamond, representing light-slowing ratios.