Snells Law Interactive Calculator

← Back to Engineering Library

When you design optical systems, you need to know exactly how light bends at each surface where materials meet. If you miss here, things like your beam alignment, focus, or sensor position will be off. This calculator lets you figure out refracted and incident angles, refractive indices, critical angles, and Brewster’s angle, all based on the actual numbers you’d use—refractive index values and beam angles. You’ll use this in fiber optics, laser setups, underwater cameras, and basic lens work. The page below gives you the main equations, a multi-layer step-by-step example, plain theory, and a FAQ.

What is Snell's Law?

Snell's Law is the rule for how light bends when crossing from one material to another with a different refractive index. How much the light bends depends on both the indices and the angle the light hits the boundary.

Simple Explanation

Picture a car turning from a paved road onto sand at an angle—when one wheel hits the sand and slows, the car turns. This is how light “refracts.” When light moves from air into glass or water, its speed changes and it turns. The direction change is all about that speed difference.

📐 Browse all 1000+ Interactive Calculators

Refraction Diagram

n₁ n₂ θ₁ θ₂ Incident Ray Refracted Ray Normal Medium 1 (less dense) Medium 2 (more dense) Reflected Ray

Snell's Law Calculator

How to Use This Calculator

Engineering calculation notice

This calculator is intended for education, concept evaluation, and preliminary design. Results are based on the equations and assumptions described on this page, but cannot account for every real-world load case, tolerance, material property, environmental condition, installation detail, safety factor, code, or regulatory requirement. Verify all inputs, assumptions, units, and results independently before selecting components or using the result in a real application. Safety-critical, structural, medical, lifting, transportation, or regulated applications must be reviewed by a qualified engineer.

Found a calculation error? Message us

  1. Pick what you want to solve for: angle, index, or special angles (critical/Brewster's angle).
  2. Input the refractive indices for each medium—air is 1.000, glass usually about 1.520.
  3. Plug in whichever angle is required—incident or refracted—depending on your selection.
  4. Click Calculate for your result.
First medium (typically air = 1.000)
Second medium (glass ≈ 1.52)
Angle from normal (0-90°)
Angle from normal (0-90°)

📹 Video Walkthrough — How to Use This Calculator

Snells Law Interactive Calculator

Snell's Law Interactive Visualizer

Adjust refractive indices and angle to see how light actually bends at each interface. The tool also shows what happens with critical and Brewster's angles. This is useful for visualizing setups like fiber optics or laser alignment, where a small error in angle changes everything down the line.

Refractive Index n₁ 1.000
Refractive Index n₂ 1.520
Incident Angle θ₁ 30°

Refracted Angle

19.2°

Critical Angle

41.1°

Brewster Angle

56.7°

FIRGELLI Automations — Interactive Engineering Calculators

Governing Equations

Simple Example

A laser hits a glass surface (n₂ = 1.520) from air (n₁ = 1.000) at 30° from the normal. Plug into Snell’s formula below to get the refracted angle.

sin(θ₂) = (1.000 / 1.520) × sin(30°) = 0.6579 × 0.5 = 0.3289 → θ₂ = 19.20°

This means the beam bends toward the normal when it enters the glass.

Snell's Law (Law of Refraction)

Use the formula below to calculate the refracted angle using refractive indices and the incident angle.
n₁ sin(θ₁) = n₂ sin(θ₂)

Where:

  • n₁ = refractive index of first medium (dimensionless)
  • n₂ = refractive index of second medium (dimensionless)
  • θ₁ = angle of incidence measured from the normal (degrees or radians)
  • θ₂ = angle of refraction measured from the normal (degrees or radians)

Critical Angle for Total Internal Reflection

Use the formula below to calculate the critical angle beyond which total internal reflection occurs.
θc = arcsin(n₂ / n₁)

Where:

  • θc = critical angle (degrees or radians)
  • Condition: n₁ must be greater than n₂ (light traveling from denser to less dense medium)
  • Result: For θ₁ ≥ θc, total internal reflection occurs with no transmitted ray

Brewster's Angle (Polarization Angle)

Use the formula below to calculate Brewster's angle for zero p-polarized reflection.
θB = arctan(n₂ / n₁)

Where:

  • θB = Brewster's angle (degrees or radians)
  • Property: At this angle, reflected light is completely p-polarized (parallel to the plane of incidence)
  • Application: Used in laser optics and polarizing filters

Theory & Practical Applications

Physical Foundation of Refraction

Snell’s Law is a direct result of the electromagnetic boundary conditions for waves at a dielectric surface. When light passes from one material to another, its speed changes (v = c/n), while frequency stays constant. Wavelength changes to keep this consistent, and this is why the beam’s path bends. The underlying math uses conservation for the tangential components of electric and magnetic fields. As a result, the same law applies to all optical frequencies and even works for matter waves, not just visible light.

This comes out of the requirement that the phase velocity’s component along the interface doesn’t suddenly jump—so v₁sin(θ₁) = v₂sin(θ₂), and since v = c/n, you get Snell’s Law. What you see with the light path reflects this underlying physics every time, whether you’re working with visible, infrared, or even radio wavelengths.

Critical Angle and Total Internal Reflection

When light tries to go from high index (denser) to low index (less dense), Snell’s Law can call for sin(θ₂) bigger than one at some incident angles—that can’t happen physically. The incident angle where this occurs (θc) is the critical angle. Above θc, no light leaves the first medium: it all reflects. This is total internal reflection (TIR)—not just a textbook effect but what keeps fiber optics working for kilometers at a time.

Single-mode optical fiber, for example, uses a tiny refractive index difference (n₁ ~1.4685, n₂ ~1.4628) for TIR. The critical angle here is just under 85°, which means you have to keep launch and bend angles high for loss-free signal. But real installations lose some signal if you bend a fiber too much, because the local angle can drop below critical. Assembly and routing always have to take this into account.

Brewster's Angle and Polarization

At Brewster's angle, reflected and refracted beams are perpendicular. At this exact geometry, p-polarized light doesn’t reflect at all—it all passes through. S-polarized light still reflects, so the reflected ray left is purely s-polarized. You run into this all the time in lasers and polarizers. Brewster windows (angled glass) are used in laser cavities to let only polarized light bounce around efficiently.

For glass-air, Brewster’s angle is about 56.67° coming from air into glass. Some labs use glass plates at this angle to split a beam by polarization, which is effective but doesn’t give the sharp cutoff of specialty polarizers.

Industrial Applications in Automated Optical Systems

In the field—say, laser alignment for chip-making or display systems—you use Snell’s Law to get the real beam path through each surface. For a laser entering silicon (n = 3.48 at 1550 nm) from air at 15°, the inside angle drops to just over 4°, which makes the beam much “tighter” in the material. This is how immersion lithography gets fine features: put a liquid of decent index between lens and wafer to drop the wavelength and increase focus precision.

Even protective windows over encoders take refraction into account. If you put a plastic cover in front of your photodiode, the light bends on the way in and out. In practice, for a 3mm polycarbonate window at 20°, the beam exits about 0.65mm out of line compared to a vacuum—enough to ruin accuracy if you’re aiming for micron-level positioning.

Underwater Imaging and Submerged Optics

If you ever design or use underwater cameras, you get weird apparent positions because of refraction at each surface—water to glass, and glass to air. For an object 45° off normal, the actual angle inside glass is much lower, and inside air, it jumps sharply—this is why fish always look closer and larger than they are. In robotics, like ROVs, you need to compensate for this—otherwise, you’ll reach for a target and miss, especially at big angles. Some systems run correction tables in their software, since the math is straightforward but tedious to do by hand.

Worked Example: Multi-Layer Optical Stack Analysis

Problem: A laser beam (λ = 632.8 nm) enters a three-layer display stack: air (n₁ = 1.000), an anti-reflective coating (n₂ = 1.380, 115 nm), glass (n₃ = 1.520, 3 mm), liquid crystal (n₄ = 1.650, 5 μm). The incident angle is 25°. Find:

  • (a) The refraction angle in each subsequent layer
  • (b) The lateral beam displacement after passing through all layers
  • (c) Whether total internal reflection would occur if the beam traveled in reverse from layer 4 to layer 1

Solution:

(a) Refraction angles:

At the first surface, plug into the formula for each interface using the previous angle as input. Explicit values shown above.

(b) Lateral displacement:

A parallel slab at an angle laterally offsets the beam. For thick slabs (like the 3 mm glass), the shift is d = t·sin(θin - θslab)/cos(θslab). Any thin coatings add very little to the shift, so you can ignore them for most practical assembly.

(c) Total internal reflection check (reverse path):

Look at each interface going back up the stack. Check if the reverse-going angle would be above that layer's critical angle. Here, all values are well below, so no TIR in this geometry. In real assemblies, this matters if you reverse the beam for alignment or want to trace ghost paths.

Engineering Insight: A misalignment of even under 100 μm can matter for display pixels or high-precision pick-and-place. It's best to measure and compensate for this offset during calibration—sometimes even shimming or tweaking the angle of a surface to bring everything into line in the final assembly. If you skip it, you'll see parallax or error in the finished system, especially on tight tolerances.

Measurement Techniques and Instrumentation

To measure refractive index, you often look for the critical angle. An Abbe refractometer sets up your sample on a prism, and the angle where the transmitted light suddenly vanishes marks the index. The math is just Snell’s Law solved for n. Typical digital units are accurate to 0.0001—good enough for most lab and factory checks.

If you need other optical or mechanical tools, check out the engineering calculators page. There are dedicated tools for lens, waveguide, and beam calculations there.

Frequently Asked Questions

▼ Why does light bend when entering a different medium?
▼ What happens at angles beyond the critical angle?
▼ Does Snell's Law apply to curved surfaces?
▼ How does wavelength affect the refractive index?
▼ Can Snell's Law be used for sound waves or other wave phenomena?
▼ What is the significance of Brewster's angle in practical applications?

Explore More Engineering Calculators

Access our complete library of free engineering and physics calculators

Browse All Calculators →

About the Author

Robbie Dickson, Chief Engineer & Founder at FIRGELLI Automations, brings decades of precision engineering expertise from elite automotive programs at Rolls-Royce, BMW, and Ford Motor Company. His career spans advanced mechanism design, optical measurement systems, and automated assembly technology. Robbie's work in precision optics and sensor integration directly informs the technical depth of FIRGELLI's engineering calculator library.

📖 Wikipedia Profile 👤 Full Biography

Need to implement these calculations?

Explore the precision-engineered motion control solutions used by top engineers.

Share This Article
Tags: