Home▸Articles▸Optics & Light

Refraction and Lenses: Understanding Light Behavior at Interfaces

A fundamental principle in optics that explains how light bends as it moves from one medium to another.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What Refraction Is

Refraction is the bending of light as it passes from one medium to another with a different optical density. This phenomenon occurs because light travels at different speeds in various materials, leading to changes in its direction.

The angle of refraction depends on the indices of refraction of both media and can be described by Snell's Law: n1 * sin(θ1) = n2 * sin(θ2), where n1 and n2 are the indices of refraction of the first and second medium, respectively, and θ1 and θ2 are the angles of incidence and refraction.

Total Internal Reflection

When light travels from a denser medium to a less dense one at an angle greater than the critical angle, it undergoes total internal reflection. This phenomenon is crucial in applications like fiber optics and endoscopes.

The critical angle (θc) can be calculated using the formula sin(θc) = 1/n2, where n2 is the index of refraction of the less dense medium.

live demo · related simulation● LIVE

Lens Behavior

Lenses are optical devices that use refraction to focus or disperse light. The thin lens formula (1/f = 1/di + 1/do) relates the focal length (f), object distance (do), and image distance (di). This formula is essential for understanding how lenses form images.

The magnification of an image formed by a lens can be calculated using M = -di/do, where a positive value indicates an upright image while a negative value indicates an inverted one.

Real-World Applications

Refraction and lenses are used in numerous practical applications. For instance, magnifying glasses use the principle of refraction to enlarge small objects, making them easier to see.

In cameras and microscopes, lenses with different focal lengths can be combined or adjusted to focus light onto a sensor or lens, allowing for detailed imaging.

Frequently asked questions

What causes refraction?

Refraction occurs because light travels at different speeds in different media. When light moves from one medium to another, its speed changes, causing it to bend or change direction.

How does the thin lens formula work?

The thin lens formula (1/f = 1/di + 1/do) describes how a lens focuses or disperses light. It helps in determining the position and size of the image formed by the lens based on its focal length and the object's distance.

Why is total internal reflection important?

Total internal reflection is crucial for applications like fiber optics, where it allows light to be transmitted over long distances with minimal loss. It also plays a key role in devices such as endoscopes and optical sensors.

Can lenses be used to correct vision problems?

Yes, corrective lenses are designed to address various vision issues by altering the path of light entering the eye. For example, concave lenses can help correct farsightedness (hyperopia) and convex lenses can correct nearsightedness (myopia).

Try it live

Everything above runs in your browser — open Refraction and Lenses and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Refraction and Lenses simulation

What did you find?

Add reproduction steps (optional)