Snell’s Law Calculator
Find the angle of refraction.
Result
How it is calculated
Snell's law describes how a light ray bends when it crosses from one transparent medium into another: n1 sin θ1 = n2 sin θ2. The tool solves for the refracted angle: θ2 = arcsin(n1 sin θ1 / n2). Here n1 and n2 are the refractive indices of the first and second medium (for example about 1.00 for air and 1.33 for water), and the angle θ1 is the incidence angle in degrees, measured from the normal, the line perpendicular to the surface. The result is also in degrees from the normal. If the sine would exceed 1, no refracted ray exists and the tool reports total internal reflection (TIR). The second index must not be zero.
Worked example
A ray passes from air (n1 = 1) into glass (n2 = 1.5) with an incidence angle of 30 degrees. First, sin 30° = 0.5. Then sin θ2 = 1 × 0.5 / 1.5 = 0.3333. Taking the arcsine gives a refraction angle of 19.47 °. The ray bends toward the normal because it enters the denser medium, and the angle is smaller than 30 degrees. Going the other way, from glass to air, a 45 degree ray would give a sine above 1 and be totally reflected.
Common mistakes
- Measuring the angle from the surface instead of from the normal; a ray at 30 degrees to the surface has an incidence angle of 60 degrees.
- Swapping n1 and n2, which sends the ray the wrong way (toward the normal instead of away).
- Entering the angle in radians when the tool expects degrees.
- Expecting a number when the answer is TIR; this happens only when going from a denser to a less dense medium above the critical angle.
- Using one refractive index for all colours; real materials bend blue light slightly more than red.
About this calculator
This calculator solves Snell's law, n₁ sin θ₁ = n₂ sin θ₂, to find the angle a light ray bends when it crosses the boundary between two materials with different refractive indices. Enter the incident angle and the two indices of refraction to get the refraction angle.
Optics students use it to work through textbook problems on lenses and prisms, while engineers use the same relationship to design camera lenses, eyeglasses, optical fibers, and anti-reflective coatings. It also flags total internal reflection when no real refraction angle exists.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
A quick sanity check: when light enters a denser medium (n2 larger than n1), the refracted angle must come out smaller than the incident angle. To find a critical angle, set n1 to 1.5 for glass and n2 to 1 for air, then raise the angle until the result turns into TIR. For these values that happens between 41 and 42 degrees. Which material pair are you working with?