Snells Law Calculator — Convert speed, pace, and travel-time estimates
This Snell's Law Calculator solves the law of refraction for either angle or refractive index. It also reports the critical angle, total-internal-reflection status, and optical wave speed in each medium. Despite the legacy page title, Snell's law concerns wave propagation at an interface—not athletic pace, vehicle speed, or ordinary travel-time estimates.
How to use
Start by choosing the missing quantity from the “Solve for” menu. The corresponding field becomes disabled so there is no ambiguity about which value the calculator will determine.
Enter the “Medium 1 refractive index, n₁” for the material containing the incident ray and the “Medium 2 refractive index, n₂” for the material the ray would enter. Refractive index is dimensionless and must be positive. For classroom estimates, air is often approximated as 1.000, but precision work should use a value appropriate to the wavelength and environmental conditions.
Enter the known “Angle of incidence, θ₁” and, when required, “Angle of refraction, θ₂.” Both angles must be from 0° to 90° and must be measured from the normal—not from the interface itself. The result updates immediately whenever an input changes.
Read the prominent solved value first. The interpretation line then identifies bending toward the normal, bending away from it, no angular bending, the critical-angle condition, or total internal reflection. The critical-angle panel gives a value only when medium 1 has the higher index. The two speed panels use $v=c/n$ with the exact vacuum light speed, while the ratio panel provides a reciprocal-ratio check.
If the tool reports no real angle, recheck the direction of travel and the angle convention. For high-to-low index propagation, the inputs may legitimately describe total internal reflection. If an index cannot be determined at 0° incidence, choose a nonzero experimental angle; exact normal-incidence data contain no information about the index ratio. Use “Reset calculator” to restore the air-to-glass demonstration.
Formula
Step by step
Worked audit: find the refracted angle for a ray traveling from air into glass with $n_1=1.000$, $n_2=1.500$, and $\theta_1=45.0^\circ$.
- Start with $n_1\sin\theta_1=n_2\sin\theta_2$.
- Isolate the unknown: $\sin\theta_2=(n_1/n_2)\sin\theta_1$.
- Evaluate the known sine: $\sin45.0^\circ=0.70710678$.
- Apply the index ratio: $(1.000/1.500)(0.70710678)=0.47140452$.
- The argument is between 0 and 1, so a real transmitted ray exists.
- Take the inverse sine: $\theta_2=\sin^{-1}(0.47140452)=28.1255^\circ$.
- Check direction: $n_2>n_1$ and $28.1255^\circ
- Check speeds: $v_1=299{,}792{,}458/1.000=299{,}792{,}458\ \text{m/s}$ and $v_2=299{,}792{,}458/1.500=199{,}861{,}639\ \text{m/s}$.
- Substitute back: $1.000\sin45.0^\circ\approx1.500\sin28.1255^\circ\approx0.7071068$. The two sides agree within rounding.
Detailed calculation guide
The Snell's Law Calculator applies $n_1\sin\theta_1=n_2\sin\theta_2$ at a boundary between two media. Select the unknown angle or refractive index, enter the other three quantities, and the tool solves the equation. It also identifies whether the ray bends toward or away from the normal, calculates $v=c/n$, and detects the critical-angle and total-internal-reflection conditions.
Snell's law, also called the law of refraction, relates a wave's direction on opposite sides of an interface: $n_1\sin\theta_1=n_2\sin\theta_2$. The angles are measured from the normal, not from the surface. A real transmitted ray exists only when the required sine value is between zero and one.
What the calculation represents
A ray arriving at a boundary is the incident ray. Medium 1 is the material containing that incident ray, and $\theta_1$ is its angle to the normal—a line perpendicular to the boundary. Medium 2 is the material the ray attempts to enter, and $\theta_2$ is the refracted angle, again measured from the normal. This labeling is directional: reversing the ray swaps the media and angles.
The refractive index $n$ describes phase speed relative to the exact vacuum speed of light, $c=299{,}792{,}458\ \text{m/s}$. For ordinary transparent optical materials, $n=c/v$, so a larger positive index corresponds to a lower phase speed. Snell's law can therefore be expressed through either indices or phase speeds. The calculator shows both descriptions but takes refractive indices as its primary medium inputs.
Solving an angle
When the refracted angle is unknown, rearrangement gives $\theta_2=\sin^{-1}[(n_1/n_2)\sin\theta_1]$. The inverse sine returns the physically relevant ray angle between 0° and 90° for this interface geometry. When the incident angle is unknown, the corresponding expression is $\theta_1=\sin^{-1}[(n_2/n_1)\sin\theta_2]$.
An inverse-sine calculation has a domain restriction. If its argument exceeds one after accounting for ordinary floating-point tolerance, no real transmitted angle exists. For a ray traveling from higher index to lower index, that result is not merely a calculator error: it is the signature of total internal reflection. The tool reports that state instead of displaying NaN or forcing the argument into a misleading 90° result.
Solving a refractive index
If both ray angles and one index are known, the other index follows from a ratio of sines. The equations are $n_2=n_1\sin\theta_1/\sin\theta_2$ and $n_1=n_2\sin\theta_2/\sin\theta_1$. These forms are useful in laboratory refractometry when angles are measured and a reference medium is known.
Normal incidence is a special case. When the incident ray lies on the normal, both angles are zero, regardless of the two positive indices. Because both sine terms are zero, angle data at exact normal incidence cannot determine an unknown index. The calculator explicitly reports this indeterminate case rather than dividing by zero.
Critical angle and total internal reflection
A critical angle exists only for propagation from a higher-index medium into a lower-index medium, so $n_1>n_2$ is required. At the critical angle, the transmitted angle is 90° and the refracted ray runs along the interface. Substitution into Snell's law gives $\theta_c=\sin^{-1}(n_2/n_1)$.
For $\theta_1\theta_c$, the propagating transmitted ray disappears and total internal reflection occurs in the ideal lossless model. If $n_1\le n_2$, the calculator correctly states that a critical angle is not applicable for this direction of travel.
Interpretation
- If $n_2>n_1$, then normally $\theta_2
- If $n_2\theta_1$: the ray speeds up and bends away from the normal.
- If $n_1=n_2$, the angles are equal and the boundary causes no directional bending.
- At normal incidence, both angles are zero even when the speeds differ.
- A total-internal-reflection result means that no real propagating refracted ray exists under the stated ideal assumptions; it does not mean the mathematics failed.
The displayed speed ratio provides an independent check. Since $v=c/n$, $v_1/v_2=n_2/n_1$. This is the reciprocal of the index ratio. Mixing up that reciprocal is a common source of otherwise plausible-looking results.
Common Mistakes
- Measuring angles from the interface rather than from its perpendicular normal. An angle of 20° to the surface is 70° to the normal.
- Reversing medium 1 and medium 2. Medium 1 must contain the incident ray, even if a diagram visually places it below the interface.
- Feeding degree values directly into software sine functions that expect radians. This calculator performs the degree-to-radian conversion internally.
- Using $n=v/c$. The optical definition used here is $n=c/v$.
- Treating an inverse-sine argument above one as a rounding problem in every case. When the ray travels from high to low index, it can indicate total internal reflection.
- Calculating a critical angle when $n_1\le n_2$. Total internal reflection is unavailable in that propagation direction.
- Assuming Snell's law determines reflected power. It determines directions; Fresnel equations are needed for reflected and transmitted amplitudes or intensities.
- Copying a tabulated refractive index without matching wavelength, temperature, pressure, polarization, or material composition.
Assumptions
The calculation assumes a flat local interface, homogeneous media, isotropic scalar refractive indices, and a ray-optics regime in which wavelengths are small compared with relevant geometric features. It treats the supplied indices as real, positive phase indices and assumes a single monochromatic or sufficiently narrowband component. The media are taken to be stationary relative to the observer.
The speed values use the exact defined vacuum light speed and $v=c/n$. For a dispersive material this is phase velocity at the wavelength associated with the entered index. It is not automatically group velocity, signal velocity, or energy-transport velocity. In ordinary classroom optics those distinctions are often negligible for the task, but they matter in precision and pulsed-light work.
Limitations
Snell's law alone does not determine how much energy is reflected, transmitted, absorbed, scattered, or converted into another mode. It also does not model surface roughness, finite beam width, diffraction, interference, evanescent-field penetration, tunneling across a thin gap, or multiple reflections in layered structures.
A single scalar index is insufficient for anisotropic crystals, where direction and polarization can produce ordinary and extraordinary rays. Complex refractive indices are needed for absorbing media. Negative-index metamaterials, spatially varying media, nonlinear optics, plasmas, and strongly dispersive systems require additional care and may use sign conventions outside this calculator's positive-index model.
Near a critical angle, small uncertainty in angle or refractive index can produce a large change in the inferred refracted angle or switch the classification between transmission and total internal reflection. Treat excessive displayed digits as computational detail, not measurement accuracy. Report significant figures based on the least precise experimental input.
Practical Applications
Snell's law is used to trace rays through lenses, prisms, windows, camera systems, microscopes, telescopes, and liquid boundaries. It supports introductory laboratory measurements of unknown refractive index and helps explain apparent depth, displaced underwater objects, and the change in direction seen through transparent slabs.
Critical-angle calculations are central to optical-fiber intuition because a core must have a higher index than its cladding for total internal reflection in the elementary ray model. Prism reflectors, binocular optics, light pipes, immersion systems, gemstone paths, and some refractive-index sensors also rely on the same threshold geometry.
For acoustics, seismology, water waves, and other wave systems, a Snell-type relation can apply when wave speed changes across a boundary. The meaning of the index and the relevant mode must be defined for that system. Do not automatically insert optical refractive indices into a non-optical problem.
Tips
- Sketch the interface and draw its normal before assigning any values.
- State the propagation direction explicitly: medium 1 → medium 2.
- Use refractive indices measured at the relevant wavelength and conditions.
- Keep extra digits during intermediate calculations, then round the final result to justified significant figures.
- Check whether the bending direction agrees qualitatively with the index change.
- If solving an index, avoid measurements too close to normal incidence because the sine values become small and the inference becomes sensitive to angular error.
- If the result is near the critical angle, test the plausible upper and lower bounds of each input.
Related Formulas
The index-speed relation is $n=c/v$, giving $v=c/n$. Combining it with Snell's law produces $\sin\theta_1/\sin\theta_2=v_1/v_2$. The critical-angle equation is $\theta_c=\sin^{-1}(n_2/n_1)$ for $n_1>n_2$.
For a plane-parallel slab, Snell's law is applied at both faces; the emerging ray can be parallel to the incident ray but laterally displaced. For reflected and transmitted power at a boundary, use the Fresnel equations with polarization, angle, and possibly complex indices. For graded-index media, differential ray equations or numerical optical design methods replace a single abrupt-boundary calculation.
Best Practices
Document wavelength, temperature, material identity, source of index data, angle convention, and propagation direction with every precision calculation. Preserve unrounded values through the audit trail. Verify a solved angle by substituting it back into both sides of $n_1\sin\theta_1=n_2\sin\theta_2$ and comparing the results.
In experimental work, repeat angular measurements, estimate uncertainty, and avoid presenting the calculator's six-decimal display as physical precision. Where the interface or sample may be nonuniform, collect measurements at multiple locations. For design decisions, confirm results with material datasheets and an optical model appropriate to bandwidth, polarization, absorption, and geometry.
When NOT to use this calculator
Do not use this tool as a speed, pace, distance, or travel-time converter despite the preserved legacy page title. Those quantities obey different relationships. Do not use it to predict brightness, reflectance, transmittance, polarization changes, lens focal length, diffraction patterns, or image quality.
Do not rely on the simple model for absorbing or anisotropic media, nanoscale interfaces, multilayer coatings, waveguides requiring modal analysis, broadband pulses where group delay matters, or safety-critical optical equipment without expert verification. A ray result also cannot establish laser eye safety, medical-device performance, or compliance with an engineering standard.
Real-world examples
An air-to-glass ray with $n_1=1.000$ and $n_2=1.500$ at 45° refracts to about 28.13°, toward the normal. Reversing the direction changes the problem: glass-to-air incidence at 30° yields about 48.59°, away from the normal, while incidence at 50° exceeds the approximately 41.81° critical angle and produces total internal reflection in the ideal model.
A laboratory can infer an unknown liquid's index by sending a ray from air at 40° and measuring a 28° refracted angle. The ratio-of-sines calculation gives an index near 1.369. The reliability of that result depends on angle calibration, interface alignment, wavelength, temperature, and how closely air's actual index is approximated as one.
Comparison and educational intent
A basic calculator may return only an inverse-sine value. This tool additionally audits whether the solution is real, handles the normal-incidence indeterminacy, distinguishes a missing critical angle from a zero angle, gives the bending direction, and connects index with phase speed. Those checks make the result more useful for teaching and for catching setup errors before they enter a laboratory report.
The calculator remains an educational single-interface model, not a substitute for optical-design software or measured material specifications. Used with a correctly labeled diagram and condition-matched indices, it provides a transparent, reproducible way to solve Snell's law and interpret what the answer physically means.
Beginner: air to glass
θ₂ ≈ 28.1255°; the ray bends toward the normal.
The second medium has the higher index, so the transmitted ray has a smaller angle to the normal. No critical angle applies in this direction.
Intermediate: infer an unknown liquid index
n₂ ≈ 1.36913.
Using $n_2=n_1\sin40^\circ/\sin28^\circ$ produces an index consistent with a transparent liquid, subject to measurement conditions and uncertainty.
Advanced: solve the incident angle
θ₁ ≈ 40.289°.
Because medium 2 has the larger index, its known refracted angle is smaller than the calculated incident angle.
Edge case: total internal reflection
No transmitted ray; total internal reflection. Critical angle ≈ 41.8103°.
The incident angle exceeds the glass-to-air critical angle, making the required sine of the refracted angle greater than one.
Real-world laboratory index measurement
n₁ ≈ 1.02606.
The unknown incident-medium index is obtained from the known reference index and measured angles. Experimental uncertainty should determine the reported precision.
Frequently asked questions
What is Snell's law?
Snell's law is the single-interface refraction relation $n_1\sin\theta_1=n_2\sin\theta_2$. It connects the refractive indices of two media with the incident and refracted ray angles, both measured from the normal.
Are incidence and refraction angles measured from the surface?
No. Both angles are measured from the normal, which is perpendicular to the interface at the point where the ray arrives. An angle of 20° from the surface is therefore 70° from the normal.
How do I calculate the refracted angle?
Use $\theta_2=\sin^{-1}[(n_1/n_2)\sin\theta_1]$. Confirm that the inverse-sine argument is no greater than one; otherwise, a real propagating refracted ray does not exist for those inputs.
When does total internal reflection occur?
Total internal reflection requires travel from a higher refractive index to a lower one, $n_1>n_2$, with the incident angle greater than $\theta_c=\sin^{-1}(n_2/n_1)$.
Why does the calculator say the critical angle is not applicable?
A critical angle exists in this direction only when $n_1>n_2$. If the ray enters a medium with an equal or greater index, increasing the incident angle cannot produce total internal reflection at that boundary.
What happens exactly at the critical angle?
In the ideal ray model, the refracted angle is 90°, so the transmitted ray runs along the interface. Incident angles above that threshold produce total internal reflection when the first medium has the higher index.
Why can an index not be solved at normal incidence?
At normal incidence, $\theta_1=\theta_2=0^\circ$ and both sine terms equal zero. The equation becomes $0=0$ for every positive index pair, so the angles contain no information from which to infer an index.
Does Snell's law calculate reflected or transmitted intensity?
No. Snell's law determines ray directions. Reflected and transmitted amplitudes or powers require Fresnel equations and additional information such as polarization, absorption, and the relevant refractive indices.
How is refractive index related to light speed?
For the positive optical-index model used here, $n=c/v$, where $c$ is the exact vacuum light speed and $v$ is phase velocity in the medium. Thus, a larger index corresponds to a lower phase velocity.
Does refractive index change with wavelength or temperature?
Yes. Refractive index can depend on wavelength, temperature, pressure, composition, and polarization. Precision calculations should use measured or certified index data corresponding to the actual operating conditions.
Can I use this calculator for sound or seismic waves?
A Snell-type law can apply to other waves, but the relevant wave speeds, modes, and boundary conditions must be defined correctly. The displayed $v=c/n$ values are specifically optical and should not be used for sound or seismic waves.
Can this page convert running pace, vehicle speed, or travel time?
No. The preserved legacy title mentions speed, pace, and travel time, but the calculator correctly implements Snell's law of refraction. Ordinary travel calculations use distance divided by time and are a different problem.
Related calculators
Browse all calculators in this category
Editorial review
Author: JD
Sources
Enable JavaScript to use interactive calculators.