Index of Refraction Calculator
Use this Index of Refraction Calculator to solve refractive index, speed of light in a medium, wavelength in a medium, Snell’s law refraction angles, critical angle, Brewster angle, optical path length, and apparent depth. It is built for physics students, optics learners, teachers, lab reports, and wave-light calculations.
Calculate Refraction Values
Select a calculation mode, enter the known values, and calculate the missing optical quantity.
What Is an Index of Refraction Calculator?
An Index of Refraction Calculator is an optics tool that helps calculate how light behaves when it enters, travels through, or exits a transparent medium. The index of refraction, usually written as \(n\), compares the speed of light in vacuum with the speed of light inside a material. Since light travels more slowly in glass, water, acrylic, diamond, and many other substances than it does in vacuum, these materials have refractive indices greater than 1.
The simplest definition is \(n=c/v\). In this formula, \(c\) is the speed of light in vacuum and \(v\) is the speed of light in the medium. A material with \(n=1.50\) slows light to \(1/1.50\) of its vacuum speed. A larger refractive index means light travels more slowly in that medium. This slower speed is the foundation of refraction, lens behavior, optical instruments, prisms, fiber optics, apparent depth, and many classroom optics problems.
This calculator handles the most common refraction calculations. You can solve refractive index from speed, solve speed from refractive index, apply Snell’s law to find incident or refracted angles, calculate wavelength inside a medium, estimate critical angle, find Brewster angle, and estimate apparent depth. These functions make the page useful for physics homework, optics lessons, laboratory reports, science demonstrations, and educational websites.
Refraction is important because light changes direction when it crosses a boundary between two materials at an angle. This is why a straw looks bent in water, why lenses focus light, why diamonds sparkle, why prisms separate colors, and why objects underwater appear closer to the surface than they really are. The calculator turns these ideas into clean numerical results with visible formulas.
How to Use the Index of Refraction Calculator
Use the Index & Speed tab when you know either refractive index or light speed in a material. If you know the speed, select the mode that solves for \(n\). If you know \(n\), select the mode that solves for \(v\). The calculator supports speed in meters per second, kilometers per second, or as a fraction of the speed of light.
Use the Snell’s Law tab when light crosses from one medium into another. Enter \(n_1\), \(n_2\), and the known angle. Select whether you want to calculate the incident angle, refracted angle, or one of the refractive indices. Angles are measured from the normal line, not from the surface. This is a common source of error in optics problems.
Use the Wavelength tab when you want to know what happens to wavelength inside a material. Frequency stays constant when light enters a new medium, but speed and wavelength change. The calculator uses \( \lambda=\lambda_0/n \), where \(\lambda_0\) is the wavelength in vacuum or approximately in air.
Use the Critical / Brewster tab for advanced boundary-angle calculations. Critical angle is relevant only when light travels from a higher-index medium into a lower-index medium. Brewster angle is the angle at which reflected light is strongly polarized for ideal dielectric reflection.
Use the Apparent Depth tab when modeling how deep an object appears when viewed from air into a transparent medium such as water or glass. The simple formula is \(d_{apparent}=d_{real}/n\), which works for near-normal viewing.
Index of Refraction Calculator Formulas
The core refractive index definition is:
Solving for speed in a medium gives:
Snell’s law relates the incident and refracted rays:
Wavelength inside a medium is shorter than vacuum wavelength:
Frequency remains constant across a boundary:
Critical angle for total internal reflection is:
Brewster angle is:
Optical path length is:
For near-normal viewing, apparent depth is approximately:
Snell’s Law Explained
Snell’s law describes how a light ray bends when it passes from one transparent medium into another. The equation is \(n_1\sin\theta_1=n_2\sin\theta_2\). The angle \(\theta_1\) is the incident angle, and \(\theta_2\) is the refracted angle. Both angles are measured from the normal, which is an imaginary line perpendicular to the surface.
If light enters a medium with a higher refractive index, it generally bends toward the normal. For example, light traveling from air into water bends toward the normal because water has a higher refractive index than air. If light exits a higher-index material into a lower-index material, it generally bends away from the normal. This bending is what creates many familiar optical effects.
Snell’s law is essential for understanding lenses, prisms, microscopes, telescopes, eyeglasses, cameras, fiber optics, laser paths, and transparent materials. It also explains why objects in water look displaced. The light reaching your eye has bent at the water-air surface, so your brain traces the rays backward in a straight line and places the object at an apparent location.
Speed, Wavelength, and Frequency in a Medium
When light enters a medium, its speed changes. The speed becomes \(v=c/n\). In vacuum, the speed of light is approximately \(3.00\times10^8\text{ m/s}\). In water with \(n\approx1.333\), light travels at about \(2.25\times10^8\text{ m/s}\). In glass with \(n\approx1.50\), light travels at about \(2.00\times10^8\text{ m/s}\).
Frequency does not change when light crosses a boundary. The wave is still oscillating at the same rate because the frequency is determined by the source. Since \(v=f\lambda\), if speed decreases and frequency stays constant, wavelength must decrease. This is why wavelength inside glass or water is shorter than wavelength in vacuum.
This distinction is important. Color is usually associated with frequency more fundamentally than wavelength in a medium. A red laser entering glass still has the same frequency, but its wavelength inside the glass becomes shorter. When it exits back into air, its wavelength returns close to its original air value.
Critical Angle and Brewster Angle
The critical angle occurs when light travels from a higher-index medium to a lower-index medium and the refracted ray bends to \(90^\circ\). Beyond this angle, total internal reflection occurs, meaning the light does not pass into the second medium in the usual refracted-ray form. This is the principle behind fiber optics, where light can remain trapped inside a glass or plastic core by repeated internal reflection.
Critical angle only exists when \(n_1>n_2\). If light travels from air into glass, there is no critical angle at that boundary because light is entering the higher-index medium. If light travels from glass into air, a critical angle can exist.
The Brewster angle is the incident angle at which reflected light is strongly plane-polarized for an ideal dielectric interface. It is calculated with \( \theta_B=\tan^{-1}(n_2/n_1) \). Brewster angle is used in optics, polarization filters, laser cavities, photography, glare reduction, and material studies.
Common Refractive Indices
Refractive index depends on material, wavelength, temperature, pressure, and measurement conditions. The values below are common approximate educational values for visible light.
| Material | Approximate Refractive Index | Notes |
|---|---|---|
| Vacuum | 1.0000 | Reference condition for \(c\). |
| Air | 1.0003 | Often approximated as 1 in school problems. |
| Water | 1.333 | Common example for refraction and apparent depth. |
| Acrylic | 1.49 | Used in lenses, sheets, and lab blocks. |
| Crown glass | 1.52 | Common educational glass value. |
| Diamond | 2.42 | High refractive index, strong sparkle and dispersion. |
Index of Refraction Calculation Examples
Example 1: Find refractive index from speed. Suppose light travels through water at \(2.25\times10^8\text{ m/s}\). Using \(c=2.99792458\times10^8\text{ m/s}\):
Example 2: Find speed in glass. If glass has \(n=1.50\), then:
Example 3: Find refracted angle. Light goes from air into water with \(\theta_1=45^\circ\), \(n_1=1.0003\), and \(n_2=1.333\).
Example 4: Find critical angle. Light travels from glass with \(n_1=1.50\) into air with \(n_2=1.00\):
Accuracy and Limitations
This calculator uses ideal optics formulas. Real optical measurements can differ because refractive index changes with wavelength, temperature, pressure, concentration, and material composition. Glass does not have one universal refractive index; different glass types have different values. Water’s refractive index can change slightly with temperature, salinity, and wavelength. Air’s refractive index changes with pressure, humidity, and temperature.
The calculator also assumes simple interfaces and does not model absorption, scattering, birefringence, nonlinear optics, thin-film interference, diffraction, lens aberrations, surface coatings, or complex instrument geometry. For classroom physics and general optics learning, the ideal formulas are usually enough. For professional optical engineering, calibrated material data and optical design software are required.
Index of Refraction Calculator FAQs
What does an index of refraction calculator do?
It calculates refractive index, speed of light in a medium, Snell’s law angles, wavelength in a medium, critical angle, Brewster angle, optical path length, and apparent depth.
What is the formula for index of refraction?
The main formula is \(n=c/v\), where \(c\) is the speed of light in vacuum and \(v\) is the speed of light in the material.
What is Snell’s law?
Snell’s law is \(n_1\sin\theta_1=n_2\sin\theta_2\). It describes how light bends when it passes between two media.
Does light frequency change in a medium?
No. Frequency stays constant across a boundary. Speed and wavelength change.
When does total internal reflection happen?
Total internal reflection can occur when light travels from a higher-index medium to a lower-index medium and the incident angle is greater than the critical angle.
Why does a straw look bent in water?
Light bends at the water-air boundary because water and air have different refractive indices. This makes the submerged part appear displaced.
Important Note
This Index of Refraction Calculator is for educational physics, optics learning, and general laboratory planning. It provides ideal mathematical results and does not replace calibrated optical measurement, professional optical design, or material-specific refractive-index data.
