PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Optics & Light

Other simulators in this category — or see all 44.

View category →
NewSchool

Soap Film (Minimal Surface)

Non-planar wire: discrete Laplace relaxation on z; iridescent mesh — Plateau sketch.

Launch Simulator
NewSchool

CD / Grating Rainbow

Lines/mm and incidence: scalar grating orders painted as λ-colored fans.

Launch Simulator
NewSchool

Moiré (Line Gratings)

Two translucent rulings: spacing, tilt, shift — spatial beats and envelopes.

Launch Simulator
NewSchool

Fiber: Numerical Aperture

NA from n_core, n_clad; acceptance angle and bend loss cue.

Launch Simulator
NewSchool

Fiber Bend & TIR Loss

Curved core: outer-wall incidence vs θ_c; tight R leaks (meridional sketch).

Launch Simulator
NewUniversity / research

Evanescent Wave (TIR)

Beyond θ_c: penetration depth scale in the rarer medium vs λ.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Optics & Light/Coffee-Cup Caustics

Coffee-Cup Caustics

Coffee-Cup Caustics visualizes the formation of a bright, focused curve of light—a caustic—created when parallel rays, like sunlight, reflect off the inside of a circular cup. The core physics is governed by the law of reflection, where the angle of incidence equals the angle of reflection relative to the surface normal. For a circular arc, the reflected rays do not converge to a single point but envelope a curve known as the nephroid, a specific type of caustic. The simulator maps this by calculating the reflection of many incoming rays. For a ray hitting the cup at a point defined by angle θ from the vertical, the direction of the reflected ray depends on the local normal. The resulting pattern on a horizontal 'table' line below the cup is a concentration of rays, with the highest density defining the caustic curve. This model simplifies reality by assuming perfectly specular reflection, a perfectly circular cross-section, and perfectly parallel incoming light. It ignores diffraction, scattering, and the effects of coffee liquid. By interacting with it, students learn how simple reflection from a curved surface generates complex, singular intensity patterns, explore the geometric construction of caustics, and see a direct application of envelope theory and ray optics. It connects the abstract mathematics of derivatives (the caustic is the envelope of the family of reflected rays) to a tangible, everyday phenomenon.

Who it's for: Undergraduate physics or engineering students studying geometric optics, calculus-based physics, or mathematical methods, as well as advanced high school students in AP Physics or calculus courses.

Key terms

  • Caustic
  • Law of Reflection
  • Geometric Optics
  • Envelope (Mathematics)
  • Specular Reflection
  • Nephroid
  • Ray Density
  • Singularity (Optics)

Geometry

220
0.32
0.42
0.85 ×R

Specular circle segment + horizontal “table”: density of ray hits shows the characteristic cusp-shaped bright zone.

Measured values

Bins480

How it works

A classroom-famous optics artifact: the same envelope idea as an astroid, here built from many reflected rays instead of full wave theory.

Frequently asked questions

Why does the bright curve have such a sharp, cusped shape instead of being a blurry spot?
The cusped shape is a geometric singularity where many reflected rays accumulate along a single curve, called an envelope. This high density of rays creates a region of intense brightness. It's not blurry because the model uses perfect reflection and infinitely thin rays; in reality, light's wave nature would slightly blur the sharpest cusps due to diffraction.
Is this only about coffee cups, or does it apply elsewhere?
The phenomenon is universal for curved reflective or refractive surfaces. You see similar caustic patterns at the bottom of a swimming pool, from a wine glass, or when light passes through irregular glass. In astronomy, gravitational lensing can create giant caustics of distorted starlight. The coffee cup is a simple, accessible example of this broader principle.
What does moving the 'table line' up and down demonstrate?
Changing the table height shows how the caustic pattern evolves in space. The classic bright curve (the nephroid) only forms at a specific distance. Moving the line reveals that the reflected rays cross and re-distribute, demonstrating that a caustic is a specific surface in 3D space, not just a 2D pattern.
The simulator uses 'parallel rays.' How does sunlight, which comes from a finite-sized sun, affect the pattern?
Sunlight is not perfectly parallel due to the sun's angular size (about 0.5 degrees). This angular spread acts to blur or 'smear' the theoretically perfect caustic, making it less sharp. The simulator's parallel-ray assumption is an idealization that clearly reveals the underlying geometric structure.