Snell's Law / Refraction Calculator
Calculate the angle of refraction from the angle of incidence and two refractive indices using Snell's law, or solve in reverse. Our Snell's law calculator finds the critical angle, detects total internal reflection, shows the speed of light in each medium, and draws a live ray diagram — with 10 optical medium presets from air and water to diamond. All calculations run locally in your browser with no signup required.
Calculate the angle of refraction from the angle of incidence and two refractive indices using Snell's law, or solve in reverse. The calculator also finds the critical angle and detects total internal reflection. All calculations run locally in your browser — no signup required.
Angle of Refraction (θ₂)
22.0371°
1.0003 × sin(30°) = 1.333 × sin(θ₂) → θ₂ = 22.0371°
Critical angle (θc)
N/A (n₁ ≤ n₂)
Total internal reflection
No
Ray behaviour
Toward the normal (entering denser medium)
Deviation (θ₁ − θ₂)
7.96294°
Speed in medium 1 (v₁)
2.997 × 10⁸ m/s
Speed in medium 2 (v₂)
2.249 × 10⁸ m/s
Formula Reference
All calculations run locally in your browser. No data is ever sent to a server.
Why Use Our Snell's Law / Refraction Calculator?
Instant Snell's Law Calculation
Enter the angle of incidence and two refractive indices, and the Snell's law calculator returns the angle of refraction, critical angle, and ray behaviour instantly. Results update in real time as you change media or angles.
Total Internal Reflection Detection
Our refraction calculator automatically detects total internal reflection and computes the critical angle whenever light travels from a denser to a rarer medium. A live ray diagram shows exactly how the light bends or reflects.
Secure Refraction Calculator Online
Your values and calculations never leave your device. The Snell's law calculator runs 100% client-side in your browser — no server, no account, and no data collection of any kind.
100% Free — No Installation Required
Use the refraction calculator directly in any modern browser with no downloads, no plugins, and no signup. Completely free forever with no usage limits and no ads — just accurate optics calculations whenever you need them.
Common Use Cases for Snell's Law / Refraction Calculator
Physics Homework and Exams
Students use the Snell's law calculator to solve refraction problems involving angle of incidence, refractive indices, and total internal reflection. The live ray diagram and formula reference make it ideal for understanding optics alongside textbook problems.
Optical Lens and Prism Design
Optical engineers use the refraction calculator to predict how light bends at the boundary between materials such as glass, water, and air. Accurate angle-of-refraction values are essential when designing lenses, prisms, and beam splitters.
Fiber Optics and Telecommunications
Engineers rely on the critical angle and total internal reflection outputs of our Snell's law calculator to design optical fibers that trap light inside the core. The tool quickly confirms whether a given core/cladding index pair supports total internal reflection.
Gemology and Jewellery
Gemologists use the refraction calculator with the diamond (n = 2.417) preset to study the brilliance and sparkle caused by total internal reflection. Comparing critical angles across gem materials helps explain why diamonds shine so brightly.
Photography and Underwater Imaging
Photographers use the Snell's law calculator to understand apparent depth, distortion, and the underwater "Snell's window" effect. Knowing how light refracts between water and air helps correct framing and exposure in aquatic photography.
Teaching and Science Demonstrations
Teachers use the refraction calculator to demonstrate how light bends toward or away from the normal and when total internal reflection occurs. The interactive ray diagram and medium presets make it a compelling classroom and tutoring tool.
Understanding Snell's Law and Refraction
What is Snell's Law?
Snell's law (also called the law of refraction) describes how light bends when it passes from one transparent medium into another. It relates the angle of incidence (θ₁) and angle of refraction (θ₂), both measured from the normal (the line perpendicular to the surface), to the refractive indices of the two media: n₁ sin(θ₁) = n₂ sin(θ₂). The refractive index n of a medium is the ratio of the speed of light in vacuum (c) to its speed in that medium (v), so n = c / v. When light enters a denser medium (higher n) it bends toward the normal; when it enters a rarer medium (lower n) it bends away from the normal. Our Snell's law calculator applies this relationship and also computes the critical angle and total internal reflection.
How Our Snell's Law Calculator Works
- Select What to Solve For:Choose "Angle of Refraction" to find θ₂ from the angle of incidence, or "Angle of Incidence" to work backward from a known refraction angle. The refraction calculator handles both solve modes with the same interface.
- Choose the Two Media: Pick from 10 optical medium presets — vacuum, air, water, glass, diamond, and more — or enter a custom refractive index for either side. The Snell's law calculator uses standard refractive indices measured at the sodium-D wavelength (≈589 nm).
- Read the Full Result: The refraction calculator displays the angle of refraction (or incidence), the critical angle, whether total internal reflection occurs, the deviation angle, and the speed of light in each medium — all alongside a live ray diagram. Every calculation runs locally in your browser.
What the Refraction Calculator Computes
- Angle of Refraction (θ₂): The angle the transmitted ray makes with the normal, found from θ₂ = arcsin( n₁ sin θ₁ / n₂ ). This is the primary output of the Snell's law calculator when solving from the incidence angle.
- Critical Angle (θc):The angle of incidence beyond which total internal reflection occurs. It exists only when n₁ > n₂ and is calculated as θc = arcsin( n₂ / n₁ ). For a water-to-air boundary, θc ≈ 48.6°.
- Total Internal Reflection (TIR): When light travels from a denser to a rarer medium and the incidence angle exceeds the critical angle, no light is transmitted — it is entirely reflected. The refraction calculator flags this case and shows the reflected ray on the diagram.
- Speed of Light in Each Medium: Using v = c / n, the calculator shows how fast light travels in both media. In diamond (n = 2.417), light slows to about 1.24 × 10⁸ m/s — less than half its vacuum speed.
Important Notes About This Calculator
The Snell's law calculator assumes flat, smooth interfaces and monochromatic light at the sodium-D wavelength (≈589 nm). Because refractive index varies slightly with wavelength — an effect called dispersion — the angle of refraction differs for different colours, which is why prisms split white light into a spectrum. The preset indices are typical room-temperature values; real-world materials can vary with temperature, pressure, and purity. Angles are measured from the normal, not the surface, and must be between 0° and 90°. Total internal reflection only occurs when light moves from a higher-index medium to a lower-index one.
Related Tools
Salary Breakup Calculator
Convert CTC to take-home salary with PF, ESI, professional tax, and income tax deductions. Compare old vs new tax regime. FY 2024-25. Free online salary breakup calculator India — no signup required.
FIRE Number Calculator
Calculate your financial independence number from annual expenses and safe withdrawal rate. See years to FIRE, Lean/Regular/Fat FIRE variants, and year-by-year portfolio projection. Free online FIRE calculator — no signup required.
NPV Calculator
Calculate net present value from discount rate and cash flow series. See present value of each period, cumulative NPV, payback period, and accept/reject recommendation. Free online NPV calculator — no signup required.
FD Calculator
Calculate fixed deposit maturity amount, total interest earned, and effective annual rate with quarterly, monthly, or annual compounding. Year-by-year growth table included. Free online FD calculator — no signup required.
Frequently Asked Questions About Snell's Law / Refraction Calculator
A Snell's law calculator computes how light bends when it passes between two media using the formula n₁ sin(θ₁) = n₂ sin(θ₂). Our refraction calculator finds the angle of refraction from the angle of incidence (or vice versa), the critical angle, and whether total internal reflection occurs — with a live ray diagram.
Snell's law is n₁ sin(θ₁) = n₂ sin(θ₂), where n₁ and n₂ are the refractive indices of the two media, θ₁ is the angle of incidence, and θ₂ is the angle of refraction — both measured from the normal. To find the refraction angle: θ₂ = arcsin( n₁ sin θ₁ / n₂ ).
The refractive index (n) of a medium is the ratio of the speed of light in vacuum to its speed in that medium: n = c / v. A higher index means light travels slower and bends more. Common values are 1.0 for vacuum, 1.333 for water, 1.52 for crown glass, and 2.417 for diamond.
Total internal reflection (TIR) occurs when light travels from a denser medium to a rarer one (n₁ > n₂) and the angle of incidence exceeds the critical angle. In that case, no light is transmitted — it is entirely reflected back into the first medium. Our Snell's law calculator automatically detects TIR and shows the reflected ray.
The critical angle is θc = arcsin( n₂ / n₁ ), and it only exists when n₁ > n₂ (light going from denser to rarer medium). For a water-to-air boundary, θc ≈ 48.6°; for a diamond-to-air boundary, θc ≈ 24.4°. The refraction calculator displays the critical angle whenever it applies.
When light enters a denser medium (higher n), it slows down and bends toward the normal. When it enters a rarer medium (lower n), it speeds up and bends away from the normal. If the two indices are equal, the light passes straight through with no bending. Our Snell's law calculator labels the ray behaviour for every calculation.
Yes. Refractive index varies slightly with wavelength — an effect called dispersion — so different colours refract at slightly different angles. This is why a prism splits white light into a rainbow. Our calculator uses standard indices measured at the sodium-D wavelength (≈589 nm, yellow light).
Absolutely. All calculations in our Snell's law calculator happen locally in your browser using JavaScript. Your values are never sent to any server, ensuring complete privacy every time you use our refraction calculator online.
Yes! Our Snell's law / refraction calculator is 100% free with no signup, no usage limits, and no premium features. Calculate refraction angles, critical angles, and total internal reflection as many times as you need — completely free, forever.