The index of refraction calculator above answers the question a refractive index actually encodes: how much slower does light travel in this material than in a vacuum. The definition is a ratio, n = c / v, where c is the speed of light in vacuum and v is the phase velocity in the medium. Because it is a ratio of two speeds it carries no units, and because nothing ordinary transmits light faster than vacuum it is normally greater than one.
Arb Digital publishes free physics tools that go in whichever direction the measurement forces. Most refractive index pages assume you already have n and want to know what a ray does with it. This one assumes the opposite: that you measured a speed, a wavelength or a pair of angles, and you want the index that explains it. It then hands back the derived quantities that follow — speed in the medium, critical angle and surface reflectance — so a single measurement tells you everything the number implies.
What This Index of Refraction Calculator Does
Four input routes converge on the same result. The first takes the phase velocity you measured or looked up and divides it into c. The second reverses that and returns the speed for an index you already trust. The third uses the fact that the frequency of light does not change when it enters a new medium, so if the speed drops the wavelength must shrink in exact proportion: n = λvac / λmedium. The fourth inverts Snell's law from a measured pair of angles, which is how a refractometer works and how a first-year optics lab measures a glass block.
Whichever route you take, the panel on the right recalculates the same four consequences. The speed of light inside the medium appears in metres per second and as a fraction of c, because the fraction is the more intuitive figure — light in water travels at roughly three-quarters of its vacuum speed. The critical angle is the incidence angle beyond which light striking the boundary from inside is totally internally reflected, and it exists only when the medium on the other side has the lower index. The reflectance is the Fresnel value at normal incidence, which is the fraction of intensity that bounces straight back off an uncoated surface.
Degenerate inputs get a written explanation rather than a blank or a NaN. A speed greater than c produces an index below one, which is physically real for phase velocity in some regimes but almost always signals a data-entry error, so the page says so. A zero speed, a zero wavelength or a zero refraction angle each get their own message. When the second medium is the denser one there is no critical angle at all, and the field says that in words instead of reporting a meaningless number.
How to Use It
- Choose the route that matches your measurement. Do not convert your data into a speed just to use the speed mode — the wavelength and angle modes exist precisely so you do not have to.
- Measure angles from the normal. The normal is the line perpendicular to the surface. Angles measured from the surface itself are the complement of what this page wants, and entering one gives a badly wrong index.
- Keep both wavelengths in nanometres. The ratio is what matters, so any consistent unit works, but mixing nanometres with micrometres inflates the index by a thousand.
- Set the second medium honestly. Air is 1.0003 rather than exactly 1. The difference is invisible in the index itself and visible in the fourth decimal place of a critical angle.
- Note the wavelength your value applies to. An index quoted without a wavelength is an incomplete number. Use the presets as a sanity check, not as a substitute for a datasheet.
The Formula: How the Refractive Index Is Calculated
The base definition is n = c / v. The vacuum speed of light is an exact defined constant, 299,792,458 metres per second, as published in the NIST CODATA value for the speed of light in vacuum; it has no uncertainty because the metre is defined from it. That means every drop of uncertainty in a refractive index comes from the measurement of v, never from c.
The wavelength route follows from the frequency being unchanged at a boundary. Since v = fλ and f is the same on both sides, n = λvac / λmedium. The angle route is Snell's law rearranged: n2 = n1 sin θ1 / sin θ2. HyperPhysics on the refraction of light sets out the same relations and explains why the frequency is the quantity that survives the boundary crossing while the wavelength is not.
Work the default through. A phase velocity of 224,900,000 m/s gives n = 299,792,458 ÷ 224,900,000 = 1.3330, which is water at the sodium D line. Feed that index back the other way and the speed returns unchanged. The wavelength defaults show the same material: 589.3 divided by 442.1 is 1.3330 again. The angle defaults are a ray entering water from air at 45°, refracting to 32°: 1.000293 × sin 45° ÷ sin 32° = 1.000293 × 0.70711 ÷ 0.52992 = 1.3348, close enough to confirm the material given the one-degree resolution of the angle readings.
The two derived figures follow from that index. The critical angle from water into vacuum is arcsin(1 ÷ 1.3330) = 48.6°, which is why the surface of a swimming pool looks like a mirror from below at a shallow viewing angle. The normal-incidence reflectance is ((1.3330 − 1) ÷ (1.3330 + 1))² = 0.0204, so about 2 per cent of the light bounces off a clean water surface when you look straight down at it.
Why an Index Without a Wavelength Is Incomplete
Refractive index is not one number per material. It varies with wavelength, and that variation — dispersion — is what splits white light into a spectrum in a prism. For ordinary transparent materials the index falls as the wavelength lengthens, so blue light is slowed more than red light and bends further at the same boundary. The spread is small in absolute terms and enormous in its consequences: a crown glass with an index of 1.5230 at the blue F line may be 1.5150 at the red C line, a difference of under one per cent that is nevertheless the entire reason a cheap lens produces coloured fringes.
Because of this, published values are tied to a reference line. The sodium D line at 589.3 nm is the traditional one, and an index written as nD means exactly that. If you are designing for a laser at 405 nm, the D-line value is the wrong number, and using it will put your focus in the wrong place. The wavelength calculator converts between frequency and wavelength when your source is specified one way and your datasheet the other, and the photon energy calculator does the same for photon energy in electronvolts.
The practical rule is simple: record the wavelength alongside every index you measure or quote. This page deliberately publishes no table of material indices of its own, because a table without a wavelength column would be worse than none.
Group Index, Phase Index and Why Fibre Engineers Care
The n = c / v definition uses the phase velocity: the speed at which a single frequency's wave crests advance. That is not the same as the speed at which a pulse of light travels. A pulse is a bundle of frequencies, and because each one travels at a slightly different phase velocity in a dispersive medium, the envelope moves at the group velocity instead. The corresponding group index is what determines the travel time of a signal down an optical fibre.
For most bench work the distinction is invisible, because in low-dispersion regions the two indices differ by well under one per cent. It stops being invisible when timing matters. A fibre link's latency is set by the group index, typically around 1.47 for silica at telecom wavelengths, not by the phase index. A time-of-flight measurement that uses the phase index gets a distance that is systematically wrong.
This calculator reports the phase index throughout, which is the standard meaning of the term and the quantity every datasheet publishes. If you are computing propagation delay in a cable rather than a bend angle at a surface, the group index is the one you need and it is not what this page returns. That is the single most important limit on the tool's range of validity, and it is worth stating plainly rather than leaving as an implicit assumption.
Where This Sits Next to Our Snell's Law Calculator
The boundary between the two pages is clean and worth stating in one sentence: our Snell's law calculator takes two indices as inputs and tells you where the ray goes, while this page takes what the ray did — or how fast it travelled — and tells you what the index must be. One is the forward problem, the other the inverse.
In practice you use them together. Measure a bend, invert it here to get the index, then take that index over to the Snell's law page to predict what a different angle of incidence will do. If the material is going into a lens, the index is the input the lens maker equation calculator needs to turn surface curvatures into a focal length, and the thin lens equation calculator then relates object and image distances once that focal length is known. For a spectacle prescription in dioptres rather than millimetres, the dioptre calculator converts between the two conventions.
Reflectance, Coatings and the Two Per Cent That Matters
Every index step at a surface reflects some light, and the Fresnel formula for normal incidence gives the fraction as ((n1 − n2) / (n1 + n2))². For air to crown glass that is about 4 per cent per surface. A simple lens has two surfaces, so 8 per cent of the light is lost before any absorption. A camera lens with a dozen elements would lose most of its light to reflection alone if the surfaces were left bare, which is why anti-reflection coatings were one of the transformative inventions in optics.
The reflected light does not merely disappear; it bounces around inside the instrument and lands back on the sensor as veiling glare and ghost images. A high-index material buys you a thinner, more strongly bending element and charges you a higher surface reflection for it.
The formula in the grid assumes an uncoated, clean, optically smooth boundary and light arriving perpendicular to it. At grazing angles reflectance climbs steeply towards unity, and on a coated surface it can be pushed below a tenth of a per cent across a narrow band. Treat the number as the untreated baseline it is.
Arb Digital builds free tools like this one because useful pages earn attention. If you want tools, calculators or content built for your own audience, we can help.
Browse All Free Tools Talk to Arb DigitalCommon Mistakes to Avoid
- Measuring angles from the surface — every angle here is from the normal. A ray described as being at 20° to the glass is at 70° to the normal, and entering 20 gives an index that is wrong by a factor of three.
- Quoting an index without its wavelength — dispersion means the number is only meaningful with a reference line attached, and the sodium D line at 589.3 nm is the usual but not universal default.
- Using the phase index for a propagation delay — pulse travel time is governed by the group index, which differs enough in a fibre to matter for timing.
- Assuming there is always a critical angle — total internal reflection only occurs going from the denser medium into the less dense one. Air into glass has no critical angle at all.
- Mixing wavelength units between the two fields — the ratio is unitless only if both entries share a unit. Nanometres against micrometres inflates the index a thousandfold.
Related Free Tools From Arb Digital
Once you have an index, the Snell's law calculator takes it forward into refraction angles, critical angles and reflected fractions. For imaging, the thin lens equation calculator and the lens maker equation calculator turn focal lengths and curvatures into object and image positions, and the mirror equation calculator does the same for curved mirrors. The wavelength calculator and the photon energy calculator handle the frequency and energy side of the same light. For interference-based measurements, the diffraction grating calculator resolves the orders a grating produces. Every free tool Arb Digital publishes is listed on the free online tools hub.
Frequently Asked Questions
It means light travels 1.5 times slower in that material than in a vacuum, so at about 200,000 kilometres per second rather than 300,000. Everything else the index predicts — how much a ray bends, the critical angle, the surface reflectance — follows from that single speed ratio.
For phase velocity, yes, and it happens routinely for X-rays in matter and near strong absorption lines. It does not mean information travels faster than light, because signals move at the group velocity. For visible light in ordinary transparent materials an index below one almost always means a data-entry error.
The index itself needs only the one material, but the critical angle and the reflectance are properties of a boundary between two media. Setting the second one to vacuum or to air tells the tool which interface to describe.
Measure a bend. Shine a narrow beam onto a flat sample at a known angle, mark where the refracted ray goes, measure both angles from the normal and use the angle mode on this page. Angles read to a degree give an index good to roughly two decimal places.
Yes, though weakly for solids and more noticeably for liquids and gases, because it tracks density. Air's index changes enough with temperature and pressure to matter in precision surveying, which is the mechanism behind mirages and shimmering hot road surfaces.
Frequency is fixed by the source and does not change at a boundary. Since speed equals frequency times wavelength, a slower speed forces a shorter wavelength. Colour perception follows frequency, so the light looks the same even though its wavelength inside the glass is shorter.
The Snell's law page takes two refractive indices as inputs and predicts where a ray goes. This page works backwards: it takes a measured speed, wavelength pair or angle pair and returns the index that explains it.
This tool is provided for educational and study use. It reports phase refractive index for a single wavelength and assumes a clean, smooth, non-absorbing boundary; it is not a substitute for a manufacturer's dispersion data when designing real optics.