In optics, the refractive index or index of refraction of a material is a dimensionless number that describes how fast light travels through the material. It is defined as
The refractive index determines how much the path of light is bent, or refracted, when entering a material. This is described by Snell's law of refraction, n1 sinθ1 = n2 sinθ2, where θ1 and θ2 are the angles of incidence and refraction, respectively, of a ray crossing the interface between two media with refractive indices n1 and n2. The refractive indices also determine the amount of light that is reflected when reaching the interface, as well as the critical angle for total internal reflection and Brewster's angle.
The refractive index can be seen as the factor by which the speed and the wavelength of the radiation are reduced with respect to their vacuum values: the speed of light in a medium is v = c/n, and similarly the wavelength in that medium is λ = λ0/n, where λ0 is the wavelength of that light in vacuum. This implies that vacuum has a refractive index of 1, and that the frequency (f = v/λ) of the wave is not affected by the refractive index. As a result, the perceived color of the refracted light to a human eye which depends on the frequency is not affected by the refraction or the refractive index of the medium.
While the refractive index affects wavelength, it depends on frequency, color and energy so the resulting difference in the bending angles causes white light to split into its constituent colors. This is called dispersion. It can be observed in prisms and rainbows, and chromatic aberration in lenses. Light propagation in absorbing materials can be described using a complex-valued refractive index. The imaginary part then handles the attenuation, while the real part accounts for refraction.
The refractive index n of an optical medium is defined as the ratio of the speed of light in vacuum, c = 299792458 m/s, and the phase velocity v of light in the medium,
The phase velocity is the speed at which the crests or the phase of the wave moves, which may be different from the group velocity, the speed at which the pulse of light or the envelope of the wave moves.
The definition above is sometimes referred to as the absolute refractive index or the absolute index of refraction to distinguish it from definitions where the speed of light in other reference media than vacuum is used. Historically air at a standardized pressure and temperature has been common as a reference medium.
Thomas Young was presumably the person who first used, and invented, the name "index of refraction", in 1807. At the same time he changed this value of refractive power into a single number, instead of the traditional ratio of two numbers. The ratio had the disadvantage of different appearances. Newton, who called it the "proportion of the sines of incidence and refraction", wrote it as a ratio of two numbers, like "529 to 396" (or "nearly 4 to 3"; for water). Hauksbee, who called it the "ratio of refraction", wrote it as a ratio with a fixed numerator, like "10000 to 7451.9" (for urine). Hutton wrote it as a ratio with a fixed denominator, like 1.3358 to 1 (water).
|Gases at 0 °C and 1 atm|
|Liquids at 20 °C|
|Fused silica (quartz)||1.46|
|PMMA (acrylic, plexiglas, lucite, perspex)||1.49|
|Flint glass (typical)||1.62|
For visible light most transparent media have refractive indices between 1 and 2. A few examples are given in the adjacent table. These values are measured at the yellow doublet D-line of sodium, with a wavelength of 589 nanometers, as is conventionally done. Gases at atmospheric pressure have refractive indices close to 1 because of their low density. Almost all solids and liquids have refractive indices above 1.3, with aerogel as the clear exception. Aerogel is a very low density solid that can be produced with refractive index in the range from 1.002 to 1.265. Moissanite lies at the other end of the range with a refractive index as high as 2.65. Most plastics have refractive indices in the range from 1.3 to 1.7, but some high-refractive-index polymers can have values as high as 1.76.
For infrared light refractive indices can be considerably higher. Germanium is transparent in the wavelength region from 2 to 14 µm and has a refractive index of about 4. A type of new materials, called topological insulator, was recently found holding higher refractive index of up to 6 in near to mid infrared frequency range. Moreover, topological insulator material are transparent when they have nanoscale thickness. These excellent properties make them a type of significant materials for infrared optics.
Refractive index below unity
According to the theory of relativity, no information can travel faster than the speed of light in vacuum, but this does not mean that the refractive index cannot be less than 1. The refractive index measures the phase velocity of light, which does not carry information. The phase velocity is the speed at which the crests of the wave move and can be faster than the speed of light in vacuum, and thereby give a refractive index below 1. This can occur close to resonance frequencies, for absorbing media, in plasmas, and for X-rays. In the X-ray regime the refractive indices are lower than but very close to 1 (exceptions close to some resonance frequencies). As an example, water has a refractive index of 0.99999974 = 1 − 2.6×10−7 for X-ray radiation at a photon energy of 30 keV (0.04 nm wavelength).
An example of a plasma with an index of refraction less than unity is Earth's ionosphere. Since the refractive index of the ionosphere (a plasma), is less than unity, electromagnetic waves propagating through the plasma are bent "away from the normal" (see Geometric optics) allowing the radio wave to be refracted back toward earth, thus enabling long-distance radio communications. See also Radio Propagation and Skywave.
Negative refractive index
Recent research has also demonstrated the existence of materials with a negative refractive index, which can occur if permittivity and permeability have simultaneous negative values. This can be achieved with periodically constructed metamaterials. The resulting negative refraction (i.e., a reversal of Snell's law) offers the possibility of the superlens and other exotic phenomena.
At the atomic scale, an electromagnetic wave's phase velocity is slowed in a material because the electric field creates a disturbance in the charges of each atom (primarily the electrons) proportional to the electric susceptibility of the medium. (Similarly, the magnetic field creates a disturbance proportional to the magnetic susceptibility.) As the electromagnetic fields oscillate in the wave, the charges in the material will be "shaken" back and forth at the same frequency.  The charges thus radiate their own electromagnetic wave that is at the same frequency, but usually with a phase delay, as the charges may move out of phase with the force driving them (see sinusoidally driven harmonic oscillator). The light wave traveling in the medium is the macroscopic superposition (sum) of all such contributions in the material: the original wave plus the waves radiated by all the moving charges. This wave is typically a wave with the same frequency but shorter wavelength than the original, leading to a slowing of the wave's phase velocity. Most of the radiation from oscillating material charges will modify the incoming wave, changing its velocity. However, some net energy will be radiated in other directions or even at other frequencies (see scattering).
Depending on the relative phase of the original driving wave and the waves radiated by the charge motion, there are several possibilities:
If the electrons emit a light wave which is 90° out of phase with the light wave shaking them, it will cause the total light wave to travel slower. This is the normal refraction of transparent materials like glass or water, and corresponds to a refractive index which is real and greater than 1.
If the electrons emit a light wave which is 270° out of phase with the light wave shaking them, it will cause the wave to travel faster. This is called "anomalous refraction", and is observed close to absorption lines (typically in infrared spectra), with X-rays in ordinary materials, and with radio waves in Earth's ionosphere. It corresponds to a permittivity less than 1, which causes the refractive index to be also less than unity and the phase velocity of light greater than the speed of light in vacuum c (note that the signal velocity is still less than c, as discussed above). If the response is sufficiently strong and out-of-phase, the result is a negative value of permittivity and imaginary index of refraction, as observed in metals or plasma.
If the electrons emit a light wave which is 180° out of phase with the light wave shaking them, it will destructively interfere with the original light to reduce the total light intensity. This is light absorption in opaque materials and corresponds to an imaginary refractive index.
If the electrons emit a light wave which is in phase with the light wave shaking them, it will amplify the light wave. This is rare, but occurs in lasers due to stimulated emission. It corresponds to an imaginary index of refraction, with the opposite sign to that of absorption.
For most materials at visible-light frequencies, the phase is somewhere between 90° and 180°, corresponding to a combination of both refraction and absorption.
The refractive index of materials varies with the wavelength (and frequency) of light. This is called dispersion and causes prisms and rainbows to divide white light into its constituent spectral colors. As the refractive index varies with wavelength, so will the refraction angle as light goes from one material to another. Dispersion also causes the focal length of lenses to be wavelength dependent. This is a type of chromatic aberration, which often needs to be corrected for in imaging systems. In regions of the spectrum where the material does not absorb light, the refractive index tends to decrease with increasing wavelength, and thus increase with frequency. This is called "normal dispersion", in contrast to "anomalous dispersion", where the refractive index increases with wavelength. For visible light normal dispersion means that the refractive index is higher for blue light than for red.
For optics in the visual range, the amount of dispersion of a lens material is often quantified by the Abbe number:
For a more accurate description of the wavelength dependence of the refractive index, the Sellmeier equation can be used. It is an empirical formula that works well in describing dispersion. Sellmeier coefficients are often quoted instead of the refractive index in tables.
Because of dispersion, it is usually important to specify the vacuum wavelength of light for which a refractive index is measured. Typically, measurements are done at various well-defined spectral emission lines; for example, nD usually denotes the refractive index at the Fraunhofer "D" line, the centre of the yellow sodium double emission at 589.29 nm wavelength.
Complex refractive index
When light passes through a medium, some part of it will always be attenuated. This can be conveniently taken into account by defining a complex refractive index,
Here, the real part n is the refractive index and indicates the phase velocity, while the imaginary part κ is called the extinction coefficient — although κ can also refer to the mass attenuation coefficient—  and indicates the amount of attenuation when the electromagnetic wave propagates through the material. 
That κ corresponds to attenuation can be seen by inserting this refractive index into the expression for electric field of a plane electromagnetic wave traveling in the z-direction. We can do this by relating the complex wave number k to the complex refractive index n through k = 2πn/λ0, with λ0 being the vacuum wavelength; this can be inserted into the plane wave expression as
Here we see that κ gives an exponential decay, as expected from the Beer–Lambert law. Since intensity is proportional to the square of the electric field, it will depend on the depth into the material as exp(−4πκz/λ0), and the attenuation coefficient becomes α = 4πκ/λ0.  This also relates it to the penetration depth, the distance after which the intensity is reduced by 1/e, δp = 1/α = λ0/(4πκ).
Both n and κ are dependent on the frequency. In most circumstances κ > 0 (light is absorbed) or κ = 0 (light travels forever without loss). In special situations, especially in the gain medium of lasers, it is also possible that κ < 0, corresponding to an amplification of the light.
An alternative convention uses n = n − iκ instead of n = n + iκ, but where κ > 0 still corresponds to loss. Therefore, these two conventions are inconsistent and should not be confused. The difference is related to defining sinusoidal time dependence as Re[exp(−iωt)] versus Re[exp(+iωt)]. See Mathematical descriptions of opacity.
Dielectric loss and non-zero DC conductivity in materials cause absorption. Good dielectric materials such as glass have extremely low DC conductivity, and at low frequencies the dielectric loss is also negligible, resulting in almost no absorption. However, at higher frequencies (such as visible light), dielectric loss may increase absorption significantly, reducing the material's transparency to these frequencies.
The real, n, and imaginary, κ, parts of the complex refractive index are related through the Kramers–Kronig relations. In 1986 A.R. Forouhi and I. Bloomer deduced an equation describing κ as a function of photon energy, E, applicable to amorphous materials. Forouhi and Bloomer then applied the Kramers–Kronig relation to derive the corresponding equation for n as a function of E. The same formalism was applied to crystalline materials by Forouhi and Bloomer in 1988.
The refractive index and extinction coefficient, n and κ, cannot be measured directly. They must be determined indirectly from measurable quantities that depend on them, such as reflectance, R, or transmittance, T, or ellipsometric parameters, ψ and δ. The determination of n and κ from such measured quantities will involve developing a theoretical expression for R or T, or ψ and δ in terms of a valid physical model for n and κ. By fitting the theoretical model to the measured R or T, or ψ and δ using regression analysis, n and κ can be deduced.
For X-ray and extreme ultraviolet radiation the complex refractive index deviates only slightly from unity and usually has a real part smaller than 1. It is therefore normally written as n = 1 − δ + iβ (or n = 1 − δ − iβ with the alternative convention mentioned above). Far above the atomic resonance frequency delta can be given by
Relations to other quantities
Optical path length
Optical path length (OPL) is the product of the geometric length d of the path light follows through a system, and the index of refraction of the medium through which it propagates,
When light moves from one medium to another, it changes direction, i.e. it is refracted. If it moves from a medium with refractive index n1 to one with refractive index n2, with an incidence angle to the surface normal of θ1, the refraction angle θ2 can be calculated from Snell's law:
When light enters a material with higher refractive index, the angle of refraction will be smaller than the angle of incidence and the light will be refracted towards the normal of the surface. The higher the refractive index, the closer to the normal direction the light will travel. When passing into a medium with lower refractive index, the light will instead be refracted away from the normal, towards the surface.
Total internal reflection
If there is no angle θ2 fulfilling Snell's law, i.e.,
Apart from the transmitted light there is also a reflected part. The reflection angle is equal to the incidence angle, and the amount of light that is reflected is determined by the reflectivity of the surface. The reflectivity can be calculated from the refractive index and the incidence angle with the Fresnel equations, which for normal incidence reduces to 
For common glass in air, n1 = 1 and n2 = 1.5, and thus about 4% of the incident power is reflected. At other incidence angles the reflectivity will also depend on the polarization of the incoming light. At a certain angle called Brewster's angle, p-polarized light (light with the electric field in the plane of incidence) will be totally transmitted. Brewster's angle can be calculated from the two refractive indices of the interface as  
The focal length of a lens is determined by its refractive index n and the radii of curvature R1 and R2 of its surfaces. The power of a thin lens in air is given by the Lensmaker's formula:
where f is the focal length of the lens.
The resolution of a good optical microscope is mainly determined by the numerical aperture (NA) of its objective lens. The numerical aperture in turn is determined by the refractive index n of the medium filling the space between the sample and the lens and the half collection angle of light θ according to 
Relative permittivity and permeability
The refractive index of electromagnetic radiation equals
where εr is the material's relative permittivity, and μr is its relative permeability.  The refractive index is used for optics in Fresnel equations and Snell's law; while the relative permittivity and permeability are used in Maxwell's equations and electronics. Most naturally occurring materials are non-magnetic at optical frequencies, that is μr is very close to 1, therefore n is approximately √εr. In this particular case, the complex relative permittivity εr, with real and imaginary parts εr and ɛ̃r, and the complex refractive index n, with real and imaginary parts n and κ (the latter called the "extinction coefficient"), follow the relation
The wave impedance of a plane electromagnetic wave in a non-conductive medium is given by
Thus refractive index in a non-magnetic media is the ratio of the vacuum wave impedance to the wave impedance of the medium.
In general, the refractive index of a glass increases with its density. However, there does not exist an overall linear relation between the refractive index and the density for all silicate and borosilicate glasses. A relatively high refractive index and low density can be obtained with glasses containing light metal oxides such as Li2O and MgO, while the opposite trend is observed with glasses containing PbO and BaO as seen in the diagram at the right.
Many oils (such as olive oil) and ethyl alcohol are examples of liquids which are more refractive, but less dense, than water, contrary to the general correlation between density and refractive index.
For air, n − 1 is proportional to the density of the gas as long as the chemical composition does not change. This means that it is also proportional to the pressure and inversely proportional to the temperature for ideal gases.
Sometimes, a "group velocity refractive index", usually called the group index is defined:
where λ is the wavelength in the medium. In this case the group index can thus be written in terms of the wavelength dependence of the refractive index as
When the refractive index of a medium is known as a function of the vacuum wavelength (instead of the wavelength in the medium), the corresponding expressions for the group velocity and index are (for all values of dispersion) 
where λ0 is the wavelength in vacuum.
Momentum (Abraham–Minkowski controversy)
where E is the energy of the photon, c is the speed of light in vacuum and n is the refractive index of the medium. In 1909, Max Abraham proposed the following formula for this calculation:
A 2010 study suggested that both equations are correct, with the Abraham version being the kinetic momentum and the Minkowski version being the canonical momentum, and claims to explain the contradicting experimental results using this interpretation.
As shown in the Fizeau experiment, when light is transmitted through a moving medium, its speed relative to an observer traveling with speed v in the same direction as the light is:
The refractive index of a substance can be related to its polarizability with the Lorentz–Lorenz equation or to the molar refractivities of its constituents by the Gladstone–Dale relation.
In atmospheric applications, the refractivity is taken as N = n – 1. Atmospheric refractivity is often expressed as either N = 106(n – 1) or N = 108(n – 1) The multiplication factors are used because the refractive index for air, n deviates from unity by at most a few parts per ten thousand.
Molar refractivity, on the other hand, is a measure of the total polarizability of a mole of a substance and can be calculated from the refractive index as
Nonscalar, nonlinear, or nonhomogeneous refraction
So far, we have assumed that refraction is given by linear equations involving a spatially constant, scalar refractive index. These assumptions can break down in different ways, to be described in the following subsections.
In the simplest form, uniaxial birefringence, there is only one special direction in the material. This axis is known as the optical axis of the material.  Light with linear polarization perpendicular to this axis will experience an ordinary refractive index no while light polarized in parallel will experience an extraordinary refractive index ne.  The birefringence of the material is the difference between these indices of refraction, Δn = ne − no.  Light propagating in the direction of the optical axis will not be affected by the birefringence since the refractive index will be no independent of polarization. For other propagation directions the light will split into two linearly polarized beams. For light traveling perpendicularly to the optical axis the beams will have the same direction.  This can be used to change the polarization direction of linearly polarized light or to convert between linear, circular and elliptical polarizations with waveplates. 
Many crystals are naturally birefringent, but isotropic materials such as plastics and glass can also often be made birefringent by introducing a preferred direction through, e.g., an external force or electric field. This effect is called photoelasticity, and can be used to reveal stresses in structures. The birefringent material is placed between crossed polarizers. A change in birefringence alters the polarization and thereby the fraction of light that is transmitted through the second polarizer.
In the more general case of trirefringent materials described by the field of crystal optics, the dielectric constant is a rank-2 tensor (a 3 by 3 matrix). In this case the propagation of light cannot simply be described by refractive indices except for polarizations along principal axes.
The strong electric field of high intensity light (such as output of a laser) may cause a medium's refractive index to vary as the light passes through it, giving rise to nonlinear optics.  If the index varies quadratically with the field (linearly with the intensity), it is called the optical Kerr effect and causes phenomena such as self-focusing and self-phase modulation.  If the index varies linearly with the field (a nontrivial linear coefficient is only possible in materials that do not possess inversion symmetry), it is known as the Pockels effect. 
If the refractive index of a medium is not constant, but varies gradually with position, the material is known as a gradient-index or GRIN medium and is described by gradient index optics.  Light traveling through such a medium can be bent or focused, and this effect can be exploited to produce lenses, some optical fibers and other devices. Introducing GRIN elements in the design of an optical system can greatly simplify the system, reducing the number of elements by as much as a third while maintaining overall performance.  The crystalline lens of the human eye is an example of a GRIN lens with a refractive index varying from about 1.406 in the inner core to approximately 1.386 at the less dense cortex.  Some common mirages are caused by a spatially varying refractive index of air.
Refractive index measurement
The refractive index of liquids or solids can be measured with refractometers. They typically measure some angle of refraction or the critical angle for total internal reflection. The first laboratory refractometers sold commercially were developed by Ernst Abbe in the late 19th century. The same principles are still used today. In this instrument a thin layer of the liquid to be measured is placed between two prisms. Light is shone through the liquid at incidence angles all the way up to 90°, i.e., light rays parallel to the surface. The second prism should have an index of refraction higher than that of the liquid, so that light only enters the prism at angles smaller than the critical angle for total reflection. This angle can then be measured either by looking through a telescope, or with a digital photodetector placed in the focal plane of a lens. The refractive index n of the liquid can then be calculated from the maximum transmission angle θ as n = nG sin θ, where nG is the refractive index of the prism.
This type of devices are commonly used in chemical laboratories for identification of substances and for quality control. Handheld variants are used in agriculture by, e.g., wine makers to determine sugar content in grape juice, and inline process refractometers are used in, e.g., chemical and pharmaceutical industry for process control.
In gemology a different type of refractometer is used to measure index of refraction and birefringence of gemstones. The gem is placed on a high refractive index prism and illuminated from below. A high refractive index contact liquid is used to achieve optical contact between the gem and the prism. At small incidence angles most of the light will be transmitted into the gem, but at high angles total internal reflection will occur in the prism. The critical angle is normally measured by looking through a telescope.
Refractive index variations
Unstained biological structures appear mostly transparent under Bright-field microscopy as most cellular structures do not attenuate appreciable quantities of light. Nevertheless, the variation in the materials that constitutes these structures also corresponds to a variation in the refractive index. The following techniques convert such variation into measurable amplitude differences:
To measure the spatial variation of refractive index in a sample phase-contrast imaging methods are used. These methods measure the variations in phase of the light wave exiting the sample. The phase is proportional to the optical path length the light ray has traversed, and thus gives a measure of the integral of the refractive index along the ray path. The phase cannot be measured directly at optical or higher frequencies, and therefore needs to be converted into intensity by interference with a reference beam. In the visual spectrum this is done using Zernike phase-contrast microscopy, differential interference contrast microscopy (DIC) or interferometry.
Zernike phase-contrast microscopy introduces a phase shift to the low spatial frequency components of the image with a phase-shifting annulus in the Fourier plane of the sample, so that high-spatial-frequency parts of the image can interfere with the low-frequency reference beam. In DIC the illumination is split up into two beams that are given different polarizations, are phase shifted differently, and are shifted transversely with slightly different amounts. After the specimen, the two parts are made to interfere, giving an image of the derivative of the optical path length in the direction of the difference in transverse shift. In interferometry the illumination is split up into two beams by a partially reflective mirror. One of the beams is let through the sample before they are combined to interfere and give a direct image of the phase shifts. If the optical path length variations are more than a wavelength the image will contain fringes.
The refractive index is a very important property of the components of any optical instrument. It determines the focusing power of lenses, the dispersive power of prisms, the reflectivity of lens coatings, and the light-guiding nature of optical fiber. Since refractive index is a fundamental physical property of a substance, it is often used to identify a particular substance, confirm its purity, or measure its concentration. Refractive index is used to measure solids, liquids, and gases. Most commonly it is used to measure the concentration of a solute in an aqueous solution. It can also be used as a useful tool to differentiate between different types of gemstone, due to the unique chatoyance each individual stone displays. A refractometer is the instrument used to measure refractive index. For a solution of sugar, the refractive index can be used to determine the sugar content (see Brix).