Index Of Refraction Calculator - Snell's Law Refractive Index Solver

Enter the angle of incidence, angle of refraction, and n1 to use this index of refraction calculator and find n2, the speed of light, and the critical angle.

Index Of Refraction

Angle between the incoming ray and the surface normal, in degrees.

Angle between the refracted ray and the surface normal, in degrees.

Refractive index of the medium the light is leaving. Air at STP is 1.000273.

Pick a preset to overwrite n₁ with the refractive index of a common medium.

Results

Refractive index n₂
N/A
Speed of light in medium 2 N/Am/s
Speed reduction factor N/A
Wavelength factor N/A
Critical angle N/A°
Bending direction N/A

What Is the Index of Refraction?

An index of refraction calculator is a Snell's law solver that turns a pair of measured angles and one known refractive index into the refractive index of the second medium. The result, n₂, is a dimensionless number that compares the speed of light in a medium to the speed of light in vacuum.

  • Physics homework and lab checks: Confirm the refractive index of an unknown liquid or solid from a simple prism or semi-circle experiment without redoing the Snell's law algebra by hand.
  • Optics and lens prototyping: Compare refractive indices of candidate glass and polymer materials when sketching a prism, lens, or window.
  • Refractometry in chemistry and food science: Use the measured refraction angle to read the refractive index of a sugar solution, oil, or antifreeze sample.
  • Fiber optic and waveguide work: Estimate the refractive index of a fiber core or cladding needed to keep light trapped by total internal reflection.

The refractive index is a dimensionless number that compares the speed of light in a medium to the speed of light in vacuum. It is defined as n = c / v, where c is the speed of light in vacuum and v is the speed of light inside the medium. Vacuum has n = 1, air at standard conditions is about 1.000273, water at 20 °C is about 1.333, crown glass is about 1.52, and diamond is about 2.417.

A higher refractive index means light travels more slowly and bends more sharply when it crosses a boundary. That is why a diamond sparkles so brightly: light inside it is slowed so much that the critical angle is small and total internal reflection happens easily.

When the second refractive index is already known and the unknown is the angle the ray makes inside it, the same Snell's law pair appears in Angle of Refraction Calculator, which solves for the refracted angle from two refractive indices and the incidence angle.

How the Index of Refraction Calculator Works

The calculator takes two measured angles and one known refractive index, applies Snell's law, and reports the second refractive index plus the speed of light, wavelength factor, critical angle, and bending direction.

n₁ · sin(θ₁) = n₂ · sin(θ₂) | n₂ = n₁ · sin(θ₁) / sin(θ₂) | v = c / n₂ | θ_c = arcsin(n₂ / n₁) when n₁ > n₂
  • θ₁ (angle of incidence): Angle between the incoming ray and the surface normal, in degrees.
  • θ₂ (angle of refraction): Angle between the refracted ray and the surface normal, in degrees.
  • n₁ (refractive index of medium 1): Refractive index of the medium the light is leaving. Air is 1.000273 at STP, vacuum is exactly 1.
  • n₂ (refractive index of medium 2): Refractive index of the medium the light is entering, computed by the formula. The main output of this calculator.
  • v (speed of light in medium 2): Speed of light inside the second medium, equal to c / n₂. C is the 2014 SI value of 299,792,458 m/s.
  • θ_c (critical angle): Smallest angle of incidence that produces total internal reflection, in degrees. Defined only when n₁ > n₂.

The arithmetic happens in radians inside the formula, then the outputs are converted back to the units the user reads: dimensionless refractive indices, meters per second for the speed of light, and degrees for the critical angle.

Light entering water from air at 45° incidence refracting to 32.0465°

Angle of incidence = 45°, angle of refraction = 32.0465°, n₁ = 1.000273 (air at STP).

n₂ = 1.000273 × sin(45°) / sin(32.0465°) = 1.000273 × 0.707107 / 0.530557 ≈ 1.3330.

Refractive index n₂ ≈ 1.3330 (water at 20 °C). Speed of light in water ≈ 224,899,144.79 m/s. Wavelength factor ≈ 0.7502.

Reading: 1.3330 is the refractive index of water at 20 °C. Because n₁ is less than n₂, the critical angle is not defined; light is always transmitted from a less dense medium into a denser one.

When the angle of refraction approaches 90°, the refracted ray grazes the boundary and the critical-angle case kicks in: any larger incidence angle sends all of the light back into the first medium by total internal reflection. When the inputs would force a refractive index below 1, the calculator also reports no result, because no real material has a refractive index less than 1 at optical frequencies.

According to Britannica, refraction is the change in direction of a wave as it passes from one medium to another, and Snell's law states that n1 sin θ1 = n2 sin θ2, where n1 and n2 are the refractive indices of the two media and θ1 and θ2 are the angles from the normal to the rays.

According to Britannica, the refractive index of a transparent medium is the ratio of the speed of light in vacuum to the speed of light in the medium, so n = c / v, and water at 20 °C has a refractive index of about 1.333.

The same boundary geometry in reverse is covered by Angle of Incidence Calculator, which solves for the incidence angle when the two refractive indices and the refracted angle are known.

Key Concepts Explained

Four ideas do almost all of the work behind this index of refraction calculator. Get them straight and the result panel makes sense for any pair of media.

The refractive index

A dimensionless number n = c / v that compares the speed of light in a medium to the speed of light in vacuum. Higher index means slower light.

Snell's law

The relationship n₁ sin θ₁ = n₂ sin θ₂ that connects the incidence angle and the refraction angle through the two refractive indices. The single equation this calculator rearranges to solve for n₂.

The surface normal

An imaginary line perpendicular to the boundary at the point where the ray crosses. Every angle in Snell's law is measured from this line, not from the surface itself.

Speed, wavelength, and frequency

Inside a medium, the speed and wavelength both shrink by the factor 1 / n, while the frequency stays fixed. The wavelength factor and speed reduction factor are equal to each other.

Snell's law applied to a curved surface becomes the lens equation, so Thin Lens Equation Calculator uses the same refractive index idea to find object distance, image distance, and focal length for a thin lens.

How to Use the Index of Refraction Calculator

Three numeric inputs plus an optional preset, with six outputs. The default example loads with light entering water from air at 45°, the most common classroom setup.

  1. 1 Enter the angle of incidence: Type the angle between the incoming ray and the surface normal, in degrees.
  2. 2 Enter the angle of refraction: Type the measured angle between the refracted ray and the surface normal, in degrees. This is the angle you would read off a protractor or a refractometer scale.
  3. 3 Set the refractive index of medium 1: Enter n₁ for the medium the light is leaving. Air is 1.000273, water is 1.333, and crown glass is about 1.52.
  4. 4 Use a preset to fill n₁: Pick a preset to overwrite n₁ with the refractive index of vacuum, air, water, glass, or diamond.
  5. 5 Read the refractive index n₂: The first result row shows the refractive index of the second medium, updated as you type.
  6. 6 Read the speed, wavelength factor, and critical angle: The remaining rows give the speed of light, the wavelength factor, the critical angle (only when n₁ > n₂), and a one-line description of the bending direction.

A lab partner shines a laser at a flat-sided tank of unknown oil at 40° incidence and reads 26.5° on the refraction side. With n₁ = 1.000273 for air, the calculator returns n₂ ≈ 1.45. Comparing 1.45 with a chemistry table of refractive indices pins the oil to a familiar formulation.

Curved refracting surfaces need a curvature correction that pure Snell's law cannot supply, so Lensmaker's Equation Calculator uses the same refractive indices together with surface radii to give the focal length of a real lens.

Benefits of Using the Index of Refraction Calculator

The calculator collapses Snell's law into a single readout of n₂ and adds the wave-side outputs in one panel. These are the practical reasons to reach for it instead of working the algebra by hand.

  • Fast homework and lab checks: Returns the refractive index in four decimal places the moment the inputs change.
  • Connects geometry to wave behavior: Reports the speed of light and wavelength factor alongside n₂.
  • Catches common unit mistakes: Removes the most common error of mixing degrees and radians, or measuring from the surface instead of the normal.
  • Shows total internal reflection at a glance: When the first medium is denser than the second, the panel adds a critical angle row and a bending direction line.
  • Pairs with related optics tools: The same refractive indices feed the thin-lens equation, the lensmaker's equation, and the mirror equation.

Refraction changes the speed of the wave front rather than just the ray angle, so Harmonic Wave Equation Calculator uses the same refractive index idea to find the speed, wavelength, and frequency of a wave in the new medium.

Factors That Affect Index of Refraction Results

Snell's law is exact for isotropic media at a fixed wavelength, but real materials and measurement choices can shift the answer by a hundredth or more.

Wavelength and dispersion

Refractive indices vary with wavelength, so blue light gives a different n₂ than red light in a dispersive medium like glass or diamond. The calculator assumes a single wavelength.

Temperature and density

Liquids expand and contract with temperature, which changes their density and therefore their refractive index. A value measured at 20 °C will be off by a few parts per thousand at 30 °C.

Pressure and composition

Gases respond to pressure, and liquids respond to solute concentration. A refractometer reading reflects whatever the sample was at the moment of measurement, not a universal value.

Surface flatness and angle measurement

Curved or scratched surfaces change the local normal at the point of contact, and a mis-aligned protractor reads the angle from the surface instead of from the normal. Both shift the answer noticeably.

  • Snell's law assumes isotropic media and a flat interface, so anisotropic crystals such as calcite or quartz need a separate treatment of the ordinary and extraordinary rays.
  • The result panel reports geometric angles and a single refractive index, but does not split the incoming light into reflected and transmitted intensities, so for absolute reflectance or transmittance use Fresnel's equations instead.

According to NIST, the speed of light in vacuum is defined as exactly 299,792,458 m/s in the 2014 revision of the SI, and it is the reference speed for the refractive index n = c / v.

Index of refraction calculator diagram showing a light ray crossing an air-water interface and the resulting refractive index of the second medium
Index of refraction calculator diagram showing a light ray crossing an air-water interface and the resulting refractive index of the second medium

Frequently Asked Questions

Q: What is the index of refraction?

A: The index of refraction is a dimensionless number n = c / v that compares the speed of light in vacuum (c) to the speed of light in a medium (v). Vacuum is exactly 1, air at STP is about 1.000273, water at 20 °C is about 1.333, and diamond is about 2.417.

Q: How do you calculate the index of refraction from Snell's law?

A: Rearrange Snell's law to n₂ = n₁ · sin(θ₁) / sin(θ₂). Enter the angle of incidence θ₁ and the measured angle of refraction θ₂ in degrees, then divide n₁ · sin θ₁ by sin θ₂. The calculator does this and reports n₂ to four decimal places.

Q: What is the refractive index of water at 20 °C?

A: The refractive index of water at 20 °C is about 1.333. With air at 1.000273 as n₁ and 45° incidence, Snell's law predicts a refraction angle of 32.0465°, which the calculator confirms from the angle inputs and the air-side refractive index.

Q: How do you find the index of refraction from the speed of light?

A: Use n = c / v. The 2014 SI value of c is 299,792,458 m/s, and a measured v in the medium gives n as the ratio. The calculator does the equivalent rearrangement from the angle inputs and reports the speed of light in the second medium as a separate row.

Q: What is the critical angle and how does the refractive index determine it?

A: The critical angle is the smallest angle of incidence at which total internal reflection begins. It is given by θ_c = arcsin(n₂ / n₁) and exists only when n₁ is greater than n₂. The calculator shows it whenever the first medium is denser than the second.

Q: Does the index of refraction depend on wavelength?

A: Yes, the refractive index of a dispersive material such as glass or water changes with wavelength. Shorter wavelengths refract at a smaller angle, which is why a prism splits white light into a spectrum. The calculator assumes a single wavelength for each calculation.