Home / Optics & Photonics / Geometric Optics / Index of Refraction

Formula & Calculator

Index of Refraction

The index of refraction tells you how much a material slows down light. It equals the speed of light in vacuum divided by the speed in the material. For example, water has an index of 1.33, meaning light travels at about 75% of its vacuum speed. Glass is around 1.5, and diamond is 2.4. Higher index means more bending, which is why diamond sparkles so much. It is essential in lens design and Snell's law.

Physics Optics Daily Life
VORZEP · OPTICS TOOLS

Index of Refraction Calculator

Solve the refractive index relation n = c / v for any of its three unknowns — refractive index, speed of light in the medium, or the speed of light in vacuum — with step-by-step math, a live ray schematic, and companion optics metrics.

n = c / v
Solve for
Refractive Index (n) Ratio of the speed of light in vacuum to the speed of light in the medium. Always ≥ 1. Typical: 1.0003 for air, 1.33 for water, 1.46 for fused silica, 1.52 for window glass, 2.42 for diamond.
—
Refractive index must be ≥ 1 for a physical medium.
= n = 1.5200 · v = 1.973×10⁸ m/s · v/c = 0.6579
Speed in Medium (v) Speed of light inside the medium. Always ≤ c. Typical: 2.998×10⁸ m/s in air, 2.255×10⁸ m/s in water, 1.973×10⁸ m/s in glass, 1.239×10⁸ m/s in diamond.
m/s
Speed must be greater than zero and less than or equal to c.
= v = 1.973e+8 m/s = 1.973×10⁸ m/s = 0.6579 c
Vacuum Speed of Light (c) Speed of light in vacuum, a fundamental constant of nature. Exact value: c = 299,792,458 m/s by definition of the metre. This field is normally fixed, but can be adjusted to explore hypothetical universes.
m/s
Speed of light in vacuum must be greater than zero.
= c = 2.99792458×10⁸ m/s · 299,792,458 m/s (defined exact)
REFRACTIVE INDEX (n)
1.5200 —
n = 1.5200 · v = 1.973×10⁸ m/s · v/c = 0.6579
TYPICAL — COMMON GLASS
n = c / v
Step-by-step solution
Refractive index vs. speed in medium
Current c c × 0.5 c × 1.5
Speed in medium vs. refractive index
Current c c × 0.5 c × 1.5
Sensitivity
Companion optics metrics
Light refraction at a medium boundary — live schematic
LIGHT REFRACTION · n = c / v MEDIUM 1 — n₁ (incident) v₁ = c = 2.998×10⁸ m/s MEDIUM 2 — n₂ (refracted) v₂ = 1.973×10⁸ m/s normal incident ray refracted ray reflected ray θ₁ θ₂ REFRACTIVE STATE n = 1.5200 v = 1.973e+8 m/s v/c = 0.6579 n = c / v = 2.99792458×10⁸ / 1.973×10⁸ = 1.5200
Incident ray (medium 1) Refracted ray (medium 2) Reflected ray
What the refractive index relation really measures
nrefractive index
=
cvacuum light speed
/
vspeed in medium

Refractive index measures optical density

The refractive index tells you how much a medium slows light down. In vacuum, light travels at the universal speed limit c = 299,792,458 m/s. In any material medium it travels slower, and the ratio c/v is the refractive index n. A higher n means the medium is "optically denser" — light propagates more slowly, and the ray bends more when entering at an angle. This is why a straw in water looks bent, and why lenses focus light.

Snell's law links n to bending angle

When light crosses from medium 1 (index n₁) into medium 2 (index n₂) at an angle θ₁ to the normal, it bends according to Snell's law: n₁ sin θ₁ = n₂ sin θ₂. If n₂ > n₁, the ray bends toward the normal; if n₂ < n₁, it bends away. The refractive index ratio n₂/n₁ also equals the ratio v₁/v₂, so Snell's law can be written in terms of the speeds. This relation is the foundation of lens design, prism spectroscopy, and fibre-optic waveguiding.

n depends on wavelength (dispersion)

The refractive index is not a single number: it varies with wavelength, a phenomenon called dispersion. In glass, n is higher for blue light than for red, which is why a prism splits white light into a rainbow. The difference n_F − n_C (at the Fraunhofer F and C lines) divided by n_D − 1 gives the Abbe number, a measure of dispersion used to classify optical glasses. Achromatic lenses combine two glasses with different dispersion to cancel chromatic aberration. The dependence on wavelength also means that the "speed of light in a medium" is strictly a phase velocity, and a pulse of light travels at the group velocity, which is usually slower.

n cannot be less than 1 (for normal media)

For any passive, causal medium, the phase refractive index at any frequency is greater than or equal to 1. Values below 1 occur only in exotic situations: in the vicinity of an absorption resonance (anomalous dispersion), the phase index can dip below 1 over a narrow band; and in metamaterials designed to have a negative index, the effective index is negative. But for transparent optical materials used in lenses and prisms — water, glass, plastics, crystals — n is always comfortably above 1, and the speed of light in the medium is always less than c. The relation n = c/v is exact for the phase velocity in these materials.

How to Use This Calculator

The refractive index relation links three quantities: n, c, and v. Pick which one you want the tool to solve, then fill in the other two.

1. Choose what to solve for

Pick n, v, or c from the toggle. The calculator rearranges n = c / v automatically for whichever you choose.

2. Use realistic presets

Presets cover typical values: index from 1.0003 (air) to 3.5 (silicon), speed from 8.57×10⁷ m/s (silicon) to 2.998×10⁸ m/s (air), and c from the exact definition to hypothetical values.

3. Match units carefully

Use SI units: c and v in m/s, n is dimensionless. The exact value of c is 299,792,458 m/s by definition. For most calculations, 3.00×10⁸ m/s is accurate to 0.07%, and 2.998×10⁸ m/s to 0.001%.

4. Read the result and verdict

The result card shows the solved value plus the fraction v/c. A colour-coded verdict classifies the medium from air-like through water, glass, and diamond to exotic high-index materials.

5. Check the schematic and charts

The schematic shows the incident, reflected, and refracted rays at a medium boundary, with the two refractive indices and the two angles labelled. The chart plots n against v for three values of c.

6. Switch to Advanced for depth

Advanced mode adds a chart of v vs. n, a sensitivity check on a +1% input change, and companion metrics including the critical angle, Brewster angle, Fresnel reflectance, and the optical path length through the medium.

What This Tool Offers

Built around the refractive index relation n = c / v, the fundamental link between the speed of light in vacuum, the speed of light in a medium, and the optical density of the medium.

Three-way solving

Solve for refractive index, speed in the medium, or vacuum speed of light. The calculator rearranges the formula for whichever variable you choose.

Clean ray schematic

A medium boundary with the incident, reflected, and refracted rays, the normal line, the two angles θ₁ and θ₂, and the two refractive indices.

Medium-class verdict

Each result is classified from air-like through water, common glass, dense flint, and exotic high-index materials, with a coloured badge.

Multi-unit hints

Each field shows the value in related forms — scientific notation and fraction of c for speeds; index difference from unity for refractive index.

Dual comparison charts

n vs. v for three values of c, plus an advanced v vs. n chart for three values of c.

Reference tables

Typical refractive indices for common materials, Snell's law examples, and a full variable reference table.

Reference Tables & Conversions

A speed unit converter, an n lookup grid, and typical refractive index values.

Speed unit converter

m/s
km/s
cm/s
ft/s
= 1.973×10⁸ m/s = 1.973×10⁵ km/s = 1.973×10¹⁰ cm/s = 6.474×10⁸ ft/s = 0.6579 c

Refractive Index Lookup at c = 2.99792458×10⁸ m/s

Computed from n = c / v. Values are dimensionless.

v (m/s)n (exact)n (3 sig figs)Medium analogy

Typical Refractive Indices for Common Materials

Values at the sodium D line (589 nm) unless noted.

MaterialRefractive index nSpeed v (m/s)Notes
Vacuum1 (exact)2.998×10⁸By definition
Air (STP)1.0002932.997×10⁸Slightly temperature- and pressure-dependent
Water (20°C)1.33302.249×10⁸Varies slightly with temperature
Ethanol1.36102.203×10⁸Common organic solvent
Fused silica (SiO₂)1.45852.055×10⁸Optical windows, fibres
Crown glass (BK7)1.51681.976×10⁸Standard optical glass
Polycarbonate1.58501.892×10⁸Lightweight lenses
Flint glass (F2)1.62001.851×10⁸Higher dispersion
Dense flint (SF11)1.78471.680×10⁸Strong dispersion
Zirconia (ZrO₂)2.15001.394×10⁸Hard optical ceramic
Diamond2.41701.240×10⁸Highest natural material
Silicon (IR)3.50008.57×10⁷Near-infrared optics
Germanium (IR)4.00007.49×10⁷Thermal imaging

Variable Reference

SymbolMeaningTypical rangeUnits
nRefractive index1 – 4.5—
cSpeed of light in vacuum2.998×10⁸m/s
vSpeed of light in medium0.5c – cm/s
θ₁Angle of incidence0° – 90°degrees or radians
θ₂Angle of refraction0° – 90°degrees or radians
θ_cCritical angle (n₁ > n₂)—arcsin(n₂/n₁)
θ_BBrewster angle—arctan(n₂/n₁)

What Does n = c / v Measure?

The refractive index measures how much a medium slows light down relative to the speed of light in vacuum. It is a dimensionless number always greater than (or equal to) 1, and it determines how much a ray of light bends when it enters the medium at an angle. The relation n = c/v is the definition of refractive index for a non-magnetic, transparent material and the foundation of geometrical optics.

Refractive Index Formula

The defining relationship is:

n = c / v

Rearranged to solve for the other two unknowns:

v = c / n
c = n · v

Snell's law relates the refractive indices to the angles of incidence and refraction:

n₁ · sin( θ₁ ) = n₂ · sin( θ₂ )

The critical angle for total internal reflection (when n₁ > n₂) is:

θ_c = arcsin( n₂ / n₁ )

The Brewster angle for zero reflection of p-polarized light is:

θ_B = arctan( n₂ / n₁ )

The phase velocity of light in a medium with permittivity ε and permeability μ is:

v = 1 / √( ε · μ )
n = c · √( ε · μ ) = √( ε_r · μ_r )

Refractive Index Variables

SymbolMeaningNotes
nRefractive indexDimensionless; ≥ 1 for passive media
cSpeed of light in vacuum299,792,458 m/s (defined exact)
vSpeed of light in the mediumPhase velocity; ≤ c
θ₁Angle of incidenceMeasured from the normal
θ₂Angle of refractionMeasured from the normal
ε_rRelative permittivityFor non-magnetic media, n ≈ √ε_r
μ_rRelative permeability≈ 1 for optical materials

How Each Variable Affects the Refractive Index

The refractive index is directly proportional to the vacuum speed of light and inversely proportional to the speed of light in the medium. For a fixed medium (fixed v), a larger c gives a larger n; for a fixed c, a slower medium (smaller v) gives a larger n. Since c is a universal constant, in practice the refractive index is determined entirely by v, the speed of light in the medium, which in turn depends on the medium's electronic structure and density.

For non-magnetic materials, the refractive index is related to the relative permittivity (dielectric constant) by n = √ε_r. This is the Maxwell relation, and it explains why materials with high dielectric constants — such as water (ε_r ≈ 80 at low frequency) — have relatively high refractive indices in the optical range. However, the relation is not exact at optical frequencies because ε_r is frequency-dependent (dispersion), and the static value of ε_r is not the appropriate one to use. In practice, the refractive index is measured directly (by prism, interferometric, or ellipsometric methods) at the wavelength of interest, and the results are tabulated in optical glass catalogues and material data sheets.

Refractive Index Calculation Examples

Given: c = 2.998×10⁸ m/s, v = 1.973×10⁸ m/s — solve for n
n = 2.998×10⁸ / 1.973×10⁸ = 1.520
Given: n = 1.520, c = 2.998×10⁸ m/s — solve for v
v = 2.998×10⁸ / 1.520 = 1.973×10⁸ m/s
Given: n = 1.520, v = 1.973×10⁸ m/s — solve for c
c = 1.520 × 1.973×10⁸ = 2.998×10⁸ m/s
Given: n = 1.333 (water), c = 2.998×10⁸ m/s — solve for v
v = 2.998×10⁸ / 1.333 = 2.249×10⁸ m/s
Given: n₁ = 1.00 (air), n₂ = 1.52 (glass), θ₁ = 45° — solve for θ₂ (Snell)
sin θ₂ = (1.00/1.52) · sin(45°) = 0.4652
θ₂ = arcsin(0.4652) = 27.7°
Given: n₁ = 1.52 (glass), n₂ = 1.00 (air) — solve for critical angle
θ_c = arcsin(1.00/1.52) = 41.1°

Frequently Asked Questions

Light is an electromagnetic wave, and when it enters a material it interacts with the electrons in the atoms. The oscillating electric field of the light drives the electrons into oscillation, and these oscillating electrons re-radiate their own electromagnetic waves. The net effect is a wave that propagates through the material with a different phase relationship — one that corresponds to a slower phase velocity. The slowdown is not because photons are "slowed down" in the classical sense (photons always travel at c between interactions), but because the collective excitation of the medium — a polariton — has a lower phase velocity than the free-space photon. The ratio of c to this phase velocity is the refractive index.

For a passive, causal medium, the phase refractive index is ≥ 1 at all frequencies. Values below 1 occur only in two special cases. First, in the immediate vicinity of an absorption resonance (within what is called the anomalous dispersion region), the phase index can dip below 1 over a very narrow frequency band, but the material is highly absorbing there, so light cannot propagate far. Second, in artificially structured metamaterials designed to have a negative effective permittivity and permeability, the effective refractive index is negative; this gives rise to phenomena like negative refraction and superlensing. For all ordinary transparent materials — air, water, glass, plastics — n is comfortably greater than 1.

The phase velocity is the speed at which a single-frequency wave crest moves: v_phase = ω/k = c/n. The group velocity is the speed at which the envelope of a pulse — the "signal" — moves: v_group = dω/dk. For most transparent materials, v_group is slightly less than v_phase, and both are less than c. The refractive index that appears in the formula n = c/v is the phase index, because it is defined via the phase velocity. But when you send a short pulse through a medium, it is the group velocity that determines how long the pulse takes to arrive. The difference between the two is related to the dispersion of the material: v_group = v_phase − λ (dv_phase/dλ).

The refractive index varies with wavelength — a phenomenon called dispersion. In the visible range, for most transparent materials, n decreases as wavelength increases: blue light (short wavelength) has a higher index than red light (long wavelength). This is why a prism spreads white light into a spectrum, with violet bent more than red. The standard way to characterise dispersion is the Abbe number V_d = (n_d − 1)/(n_F − n_C), where n_d, n_F, and n_C are the indices at the helium d line (587.6 nm), hydrogen F line (486.1 nm), and hydrogen C line (656.3 nm). Low-dispersion glasses have high Abbe numbers (crowns, V_d > 50); high-dispersion glasses have low Abbe numbers (flints, V_d < 50).

When light travels from a higher-index medium to a lower-index one (for example, from glass to air), the refracted ray bends away from the normal. As the angle of incidence increases, the angle of refraction increases, until at a critical angle θ_c = arcsin(n₂/n₁) the refracted ray grazes the boundary at 90°. Beyond this critical angle, no light is transmitted — all of it is reflected back into the first medium. This is total internal reflection, and it is the basis of optical fibres, where light is guided along a high-index core surrounded by a lower-index cladding, and of many prisms and retroreflectors. Total internal reflection only occurs when going from a higher to a lower index (n₁ > n₂).

The Brewster angle is the angle of incidence at which light of a particular polarization (p-polarized, with its electric field in the plane of incidence) is perfectly transmitted with no reflection. It is given by θ_B = arctan(n₂/n₁). At this angle, the reflected and refracted rays are perpendicular to each other, and the reflected light is entirely s-polarized. This is why polarizing sunglasses reduce glare from horizontal surfaces like water and roads: light reflected at the Brewster angle is strongly polarized, and the sunglasses' polarizers block it. The Brewster angle is also used in laser optics to make low-loss windows and in ellipsometry to measure the refractive index of thin films.

The classical method is the prism refractometer: a prism of the material is placed on a spectrometer, and the angle of minimum deviation is measured. From this angle and the prism's apex angle, the refractive index is computed. For liquids, the Abbe refractometer is standard, using the critical angle at the interface between the liquid and a high-index prism. For thin films, ellipsometry measures the change in polarization on reflection and infers both n and the film thickness. Interferometric methods (like the Rayleigh interferometer) compare the optical path length in the sample to that in a reference. In all cases, the measurement is made at a specified wavelength and temperature, because n depends on both. Modern instruments can achieve accuracy of a few parts in 10⁵.

Calculating...

Variables

Symbol Quantity Unit
n Index of refraction (dimensionless)
c Speed of light in vacuum 3e8 m/s
v Speed of light in the material m/s

What it means

The refractive index (n) of a material is the ratio of the speed of light in vacuum to its speed in that material. It is a dimensionless number greater than or equal to 1. It determines how much light bends when entering a medium (Snell’s law). The index depends on wavelength (dispersion) and temperature. Materials with high n have higher optical density. Refraction is used in lenses, prisms, optical fibres, and many other optical devices. The index also affects reflection and transmission (Fresnel equations). Understanding n is essential for designing optical systems and for interpreting phenomena like mirages and rainbows. It is also used in spectroscopy and material characterisation.

Worked example

Index of Refraction – Two Examples

Real‑World
Scenario: Light travels at 2.0×10⁸ m/s in glass. Find the index of refraction (c = 3×10⁸ m/s).
ParameterValue
v2.0×10⁸ m/s
1n = c/v = 3e8 / 2e8 = 1.5
Result n = 1.5 ✓ Standard glass
Scenario: Light travels at 2.25×10⁸ m/s in water. Find n.
ParameterValue
v2.25×10⁸ m/s
1n = 3e8 / 2.25e8 = 1.33
Result n = 1.33 ✓ Water
Key insight: Index of refraction = c/v – it measures how much light slows down in a medium.

Common mistakes

  • Speed of light in vacuum c: c = 3.00×10⁸ m/s – constant.
  • Speed in medium v: v ≤ c, always.
  • Index of refraction n: Always ≥ 1 for real media.
  • Frequency dependence: n varies with wavelength (dispersion) – use value for a given λ.
  • Snell’s law: n₁ sinθ₁ = n₂ sinθ₂ – not the same as this definition.

Applications

The index of refraction, n = c/v, is the ratio of the speed of light in vacuum to its speed in a medium. It is a key optical property used in the design of lenses, prisms, optical fibres, and coatings. Engineers use it to calculate refraction angles, to minimise reflection, and to achieve total internal reflection in fibre optics. In ophthalmology, it is used in corrective lenses. In materials science, it helps characterise transparent materials. By understanding refractive indices, professionals can design efficient optical systems, reduce signal loss in communications, and create innovative imaging and lighting solutions.

  • Design of lenses, prisms, and optical instruments
  • Optical fibre communication and loss minimisation
  • Anti‑reflection coatings and thin‑film interference
  • Ophthalmic lenses and vision correction
  • Refractive index measurement for material characterisation