Index of Refraction Calculator

The refractive index is how much a material slows light — and therefore how much it bends it. Enter the light’s speed in your medium for its index, or use the Snell mode to find where a ray crossing a boundary actually goes.











One Number, Two Talents

The index n = c ÷ v is defined by slowing — light in crown glass dawdles at two-thirds of its vacuum speed, n ≈ 1.5 — but its working talent is bending: at a boundary, the wavefront’s near edge slows first, slewing the ray like a wagon whose one wheel enters mud, and the slew obeys Snell’s law, n₁ sin θ₁ = n₂ sin θ₂. The calculator carries both talents because they are the same fact at two removes: measure the slowing and you own the bending, for any angle, any pair of media. It is arguably the most consequential single number in applied physics — every lens prescription, fibre link, prism spectrometer and sunset is this ratio, evaluated.

Worked Example: Into Water at Forty-Five Degrees

The Snell defaults send a ray from air (n₁ = 1.00) into water (n₂ = 1.33) at 45°: sin θ₂ = sin 45° ÷ 1.33 = 0.5317, so θ₂ = 32.12° — the ray bends toward the normal by nearly thirteen degrees, which is why a pool’s floor looks shallower than it is (your eye traces the bent ray straight back to a phantom position). The speed mode ties the knot: water’s index corresponds to light slowed to c ÷ 1.33 ≈ 2.25 × 10⁸ m/s, and the default speed of 2.00 × 10⁸ m/s returns n = 1.499 — the crown-glass neighbourhood, the material of ordinary lenses for four centuries, priced here from a single division.

Total Internal Reflection: The Boundary as Mirror

Going from dense to rare (glass to air, water to air), the bending-away has a breaking point: past the critical angle (48.8° for water, about 41° for crown glass) the equation’s sine would exceed 1 — no real angle exists — and the ray does not cross at all, reflecting perfectly inside the dense medium. The widget announces this case in words rather than printing a NaN, because the phenomenon deserves them: total internal reflection carries the internet through fibres (light trapped in glass threads for kilometres), returns the image in binocular prisms, and cuts the diamond’s fire (its high index, 2.42, gives a critical angle near 24°, so light entering a well-cut stone bounces until it exits through the crown). Snell’s law predicts its own failure boundary — a formula honest about its jurisdiction.

The Refractometer in the Kitchen and the Clinic

This page’s number has a day job far from the optics bench: the handheld refractometer, which reads a liquid’s index from its critical angle (the TIR boundary, measured instead of computed) and converts it to sugar content (Brix, for winemakers and jam-makers), coolant strength, honey moisture or urine concentration in the veterinary clinic. One drop on a prism, one boundary line against a scale — the instrument is Snell’s law miniaturised into a lookup, and its readings are only as mysterious as this page is clear: the liquid’s index rises with its dissolved load, and the angle moves accordingly. Physics’ grandest ratio, moonlighting as quality control for grape juice — the calculator restores its papers.

Rainbows, Priced by the Same Sine

The rainbow is Snell’s law with weather attached: sunlight enters a raindrop (bending by the calculator’s second mode at the water index), reflects once inside (often past comfortable angles, near the TIR story), and exits bending again — and the geometry accumulates into a fixed exit angle of about 42° for the primary bow, 51° for the secondary, with dispersion spreading each into its spectrum. Descartes computed the bow’s angle in 1637 from exactly this law, drop by drop, before Newton added the colours. Enter 1.33 into the Snell fields and choose your entry angle, and you are repeating the founding calculation of atmospheric optics — the calculator is a 400-year-old instrument, web-hosted.

The Diamond’s Arithmetic of Fire

Return to the diamond with the calculator in hand and its legendary sparkle decomposes into index arithmetic: at n = 2.42 the critical angle is only 24.4°, so a stone cut with pavilion facets steeper than that traps nearly every entering ray for two internal reflections and returns it through the crown — the “hearts and arrows” of the jeweller’s loupe are this page’s TIR branch, drawn in carbon. A badly cut stone leaks through the bottom (the dead, glassy look professionals call windowing), which is a critical-angle failure measurable in degrees. Gemmology’s centuries of cut lore reduce, in the end, to keeping rays on the right side of arcsin(1 ÷ n) — a formula with a Baghdad pedigree, pricing the world’s most romantic mineral. The cutter’s wheel obeys the calculator whether or not the cutter has ever seen it written down.

Related Tools

More from the Physics Calculators hub: the Brewster’s Angle Calculator — the boundary’s other famous angle — and the Velocity Calculator for the speeds, light’s included, that feed the index.

Frequently Asked Questions

Why is the index never below 1, ever?

Because the vacuum speed is the universe’s speed limit for light: v ≤ c in any medium, so n = c/v ≥ 1, with vacuum itself exactly 1 and air a whisker above (1.0003 at sea level — close enough that the calculator’s air default of 1.00 costs nothing). Exotic phase velocities can exceed c in dispersive media, producing phase indices below 1 — but no signal or energy travels at the phase velocity, the group index stays honest, and for every material a reader will meet outside a plasma laboratory, the rule on this page is the rule in the world: the index starts at 1 and climbs with the material’s grip on light.

Does the index depend on colour?

Yes — dispersion: the index is slightly higher for blue light than red in most materials (crown glass runs roughly 1.53 in the violet to 1.51 in the red), which is why a prism fans white light into a spectrum (each colour bends by its own Snell calculation) and why cheap lenses fringe highlights with colour. The calculator uses the single index you supply — conventionally the value at the yellow sodium line, the textbook standard — and the variation across the visible band is small enough that one number designs most optics, with achromats (paired glasses whose dispersions cancel) as the profession’s elegant exception.

Why do objects look bent in water?

The straw in the lemonade is the worked example wearing a disguise: rays from the straw’s submerged part bend away from the normal as they leave the water (rare-ward), and your visual system — which assumes rays travel straight — reconstructs the straw at the bent rays’ backward extension, displaced from its true position. Spearfishers learn to aim below the apparent fish; the calculator quantifies the effect at any angle, and the general rule (apparent depth = real depth ÷ n, for near-vertical viewing) makes a 2 m pool present itself as 1.5 m — the drowning-relevant arithmetic behind every “shallower than it looks” sign.

How do gradient-index optics work?

Let the index vary continuously through a material and the bending becomes continuous too — the ray curves smoothly, as in a mirage (hot air near the road has a lower index, curving skylight upward into a phantom puddle) or in a GRIN lens, whose glass is doped so the index peaks at the axis, focusing without curved surfaces. Snell’s law applies slice by infinitesimal slice — the calculus of this page’s algebra — and endoscopes, photocopier lens arrays and the crystalline lenses of your own eyes (naturally gradient-index) all run on the smooth version of the boundary rule the calculator evaluates in one step.

What is the index of a fibre core, and why two indices?

A step-index fibre pairs a core near 1.48 with a cladding near 1.46 — a deliberately tiny index step, chosen so the critical angle (about 81° from the normal, grazing along the fibre) traps rays that enter within the acceptance cone while keeping the paths’ lengths similar (modal dispersion is the enemy the small step fights). The calculator’s TIR branch prices that trap exactly: feed it the pair and an entry angle and it will tell you whether the ray is guided or lost. The internet’s physical layer is, at bottom, this page’s second mode, drawn out for thousands of kilometres.

Who was Snell, and did he publish?

Willebrord Snellius found the law around 1621 — and never published it; it surfaced through Huygens and Descartes (who printed it in 1637 and got the French naming rights: la loi de Descartes). The relation was also known to Ibn Sahl in Baghdad six centuries earlier, complete with lens designs — a recurring pattern in optics, the science whose basic law every civilisation with glass and geometry eventually trips over. The calculator is ecumenical: whatever the priority, n₁ sin θ₁ = n₂ sin θ₂ has never once been caught failing, which is the only credit line in physics that finally matters. Four centuries of lenses, fibres, rainbows and refractometers are its references, and they are all still current.