Refraction Index Calculator
Apply Snell's law to find the refracted angle or the missing index, and convert a speed in a medium to its refractive index.
Snell's law and the index itself
In angle mode, enter the two indices and the angle of incidence in degrees, and the page evaluates θ₂ = asin(n₁·sin θ₁ / n₂), printing the sine ratio it used. In index mode it applies the definition n = c / v with c = 299 792 458 m/s, the exact SI value. Thirty degrees from air into glass at 1.5 refracts to 19.471221°, and 2×10⁸ m/s in a medium gives an index of 1.498962.
The interface is flat and the media are homogeneous and isotropic. The page does not model a curved surface, a birefringent crystal, absorption or a graded index, and it uses the vacuum wavelength implicitly. When the sine ratio exceeds one, there is no refracted ray: the page reports total internal reflection rather than clamping the angle to 90°, and it refuses an incidence angle of 90° or more, where the ray only grazes the surface.
The trigonometry runs in this tab from the values you type. Nothing is uploaded, no optical setup is stored, and the same numbers print the same angle.
Snell’s law at a flat interface: n₁·sin θ₁ = n₂·sin θ₂, so θ₂ = asin(n₁·sin θ₁ / n₂). The second mode is the definition of the index, n = c/v with c = 299 792 458 m/s; 30° from air into glass at 1.5 refracts to 19.471221°.
The media are homogeneous, isotropic and flat. A curved surface, a birefringent crystal or a graded index is outside the model, and a sine ratio above one is reported as total internal reflection.
How to use it
Choose angle or index. In angle mode enter both indices and the incidence angle in degrees; in index mode enter the speed of light in the medium. Press Run for the answer, the law with the values, and the sine ratio it used.
The arithmetic
The incidence angle is converted from degrees to radians, its sine is multiplied by the first index and divided by the second, and the arc sine of that ratio is converted back to degrees. The index mode divides the exact speed of light in vacuum by the speed you entered.
Where it stops
An incidence angle of 90° or more is refused because the ray only grazes the surface. When the sine ratio exceeds one there is no transmitted ray at all, so the page says total internal reflection instead of clamping the angle to 90°. A speed above c is likewise refused, since no medium exceeds the vacuum value.
What to Expect
Best for
- Checking a refraction angle by hand.
- Turning a measured speed in a medium into an index.
What this tool keeps
- The angles and indices are computed in the browser and never posted, so the page works offline and retains nothing.
Sample input
n₁ = 1, n₂ = 1.5, θ₁ = 30°
Sample output
θ₂ = 19.471221° n₁·sin θ₁ = n₂·sin θ₂ with n₁ = 1, n₂ = 1.5 sin θ₂ = 0.333333 from θ₁ = 30°
Frequently asked questions
How do I use it?
Choose angle or index, fill in the fields that mode asks for, then press Run. The refracted angle or the index is printed with the law and the sine ratio.
Is anything uploaded?
No. The arithmetic runs in this tab with JavaScript: no request is made, no account is needed, nothing is stored, and the page keeps working offline once loaded.
What are its limits?
The interface must be flat and the media isotropic, and the incidence angle must stay below 90°; past the critical angle there is no refracted ray and the page says so.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.