# Refraction calculator > How much does light bend when it enters water or glass? The refraction angle, critical angle and total internal reflection between two materials. Find how much light bends between air, water, glass, diamond and more with Snell's law, and see the critical angle for total internal reflection. - Page: https://how.box/refraction/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/refraction/?m1={m1}&n1={n1}&m2={m2}&n2={n2}&a={a} - `m1` (vacuum, air, ice, water, acetone, ethanol, fused-silica, glycerol, acrylic, crown-glass, sapphire, diamond or custom): Medium the light comes from: vacuum, air, ice, water, acetone, ethanol, fused-silica, glycerol, acrylic, crown-glass, sapphire, diamond, custom. Example: `water`. - `n1` (number 1 to 5): Refractive index of medium 1 when m1 is custom. Example: `1.5`. - `m2` (vacuum, air, ice, water, acetone, ethanol, fused-silica, glycerol, acrylic, crown-glass, sapphire, diamond or custom): Medium the light goes into: vacuum, air, ice, water, acetone, ethanol, fused-silica, glycerol, acrylic, crown-glass, sapphire, diamond, custom. Example: `air`. - `n2` (number 1 to 5): Refractive index of medium 2 when m2 is custom. Example: `1.5`. - `a` (number 0 to 90): Angle of incidence from the normal, degrees. Example: `40`. Example answer: https://how.box/refraction/?m1=water&n1=1.5&m2=air&n2=1.5&a=40 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `refraction_calculate`: Snell's law for light crossing a boundary: n1 sin θ1 = n2 sin θ2. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"refraction_calculate","arguments":{"medium_1":"water","index_1":1.5,"medium_2":"air","index_2":1.5,"incidence_deg":40}}}` - GET: https://how.box/mcp/run/refraction_calculate?medium_1=water&index_1=1.5&medium_2=air&index_2=1.5&incidence_deg=40 ## How it works Light travels more slowly in water or glass than in air. When a ray crosses the boundary at a slant, one side of the wavefront slows down first, so the ray turns. Going into a slower (optically denser) material it bends toward the normal, the line at right angles to the surface; coming out it bends away. Snell's law says n₁ sin θ₁ = n₂ sin θ₂, where n is the refractive index of each material (the speed of light in vacuum divided by its speed there) and θ the angle from the normal. From air (n = 1.000) into water (n = 1.333) at 45°: sin θ₂ = 1.000 × 0.707 ÷ 1.333 = 0.531, so θ₂ = 32.0°. Going from a denser into a thinner material, the refracted ray swings toward the surface. At the critical angle θc = asin(n₂ ÷ n₁) it runs along the boundary, and beyond it no light passes at all: total internal reflection, the effect that keeps light inside optical fibres and makes diamonds sparkle. From water into air θc is 48.6°. The indices are typical values for yellow light (about 589 nm) from OpenStax University Physics, volume 3, chapter 1, and the list of refractive indices on Wikipedia. The index changes slightly with colour, which is why a prism splits white light; this calculator uses one value per material. ## FAQ **Why does a straw look bent in a glass of water?** Light from the part under water bends away from the normal as it leaves the water, so it seems to come from a shallower place. Your eye places that part of the straw higher than it really is. **My angle is measured from the surface. What should I enter?** Subtract it from 90° to get the angle from the normal. For example, a ray 30° above the surface has an incidence angle of 60°. **Why do diamonds sparkle so much?** Diamond has a very high index, 2.42, so its critical angle into air is only 24.4°. Most light that enters is reflected inside many times before it escapes through the top. **What is Brewster's angle?** At Brewster's angle, tan θ = n₂ ÷ n₁, the reflected light is completely polarized. Polarized sunglasses block this glare; for water it is about 53°. **Why does the reflected percentage stay the same when I change the angle?** That figure is the reflected share at normal incidence, where the ray meets the surface straight on. It is a reference value, not the reflected share at the angle you selected. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)