---
title: "N-BK7 Prism Spectrometer Observatory Interactive Lab | Sandbox Physics"
description: "How do you set up a glass prism so that where each color lands tells you its wavelength?"
canonical_url: "https://sandboxphysics.com/labs/build-a-prism-spectrometer/"
language: "en"
page_type: "lab"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/labs/build-a-prism-spectrometer/"
last_modified: "2026-10-27"
---

Optics 010 · Ray worlds, boundaries, and natural optics

# N-BK7 Prism Spectrometer Observatory

**How do you set up a glass prism so that where each color lands tells you its wavelength?** Turn the prism to minimum deviation for a known reference line, then leave it fixed. At minimum deviation, light of that wavelength passes through the prism symmetrically. Every other wavelength now lands at its own spot on the detector, set by how the glass's refractive index changes with wavelength, so position reads as wavelength.

On a goniometer, an N-BK7 prism whose shape changes with its apex angle becomes a calibrated spectrometer. White light crosses both fixed faces at once, a deviation scan finds the symmetric stationary point, and known atomic lines calibrate the detector before an unknown wavelength is measured.

> Interactive simulation: open this page in a web browser to change the parameters and run the model.

The model uses published N-BK7 Sellmeier dispersion and ideal geometric rays in air. Slit diffraction, finite line width, detector blur, Fresnel loss, temperature drift and glass manufacturing tolerances are not included.

Physics tutorial

## Audit the physics of N-BK7 Prism Spectrometer Observatory

**Background** A prism spectrometer starts from material dispersion: the refractive index changes with wavelength. For SCHOTT N-BK7 glass, the index comes from the published Sellmeier relation $n^2(\lambda)=1+\sum_{j=1}^{3}\frac{B_j\lambda^2}{\lambda^2-C_j}$. The Lab then applies Snell's law at the entrance and exit faces of one fixed triangular prism and finds where each emerging ray hits one fixed detector plane.

**Why it matters** How do you set up a glass prism so that where each color lands tells you its wavelength?

Start with the essentials

- **Focus question**: How do you set up a glass prism so that where each color lands tells you its wavelength?
- **One-sentence intuition**: Minimum deviation is a symmetric, stationary arrangement that holds for one wavelength at a time: $r_1=r_2=\frac{A}{2},\qquad i=e$. Setting a reference line there fixes the prism orientation. Every other wavelength then passes through the prism at that same orientation; the prism is not quietly rotated for each color.

### Core mathematical model

#### Three-term Sellmeier dispersion for N-BK7

$$
n^2(\lambda)=1+\sum_{j=1}^{3}\frac{B_j\lambda^2}{\lambda^2-C_j}
$$

Wavelength enters in micrometres, with the coefficients published for this glass. The angular spread of colors comes from the derivative of this same relation; no separate curve is fitted to space the colors in the picture.

#### Symmetric path at minimum deviation

$$
n(\lambda)=\frac{\sin\!\left[(A+\delta_{\min})/2\right]}{\sin(A/2)},\qquad \delta_{\min}=2\arcsin\!\left[n(\lambda)\sin\!\left(\frac{A}{2}\right)\right]-A
$$

At the stationary point, the ray inside the prism divides the apex angle equally. The drawn surface normals, the entrance, internal and exit segments, and the deviation scan all come from this one solution.

#### Where a ray meets the detector plane

$$
t=\frac{(\mathbf c-\mathbf x_2)\cdot\hat{\mathbf n}_d}{\hat{\mathbf k}_{\mathrm{out}}\cdot\hat{\mathbf n}_d},\qquad x_d=\bigl(\mathbf x_2+t\hat{\mathbf k}_{\mathrm{out}}-\mathbf c\bigr)\cdot\hat{\mathbf s}_d
$$

Once the reference line is set, the detector center, normal and tangent stay fixed. The measured position then follows from the exit point and the direction of the emerging ray. The map from wavelength to position is monotonic, so it can be inverted to recover the wavelength.

### Common difficulties

#### Putting every color at its own minimum deviation

**Typical misconception** To draw a white-light spectrum, compute the minimum deviation separately for each wavelength and send every colored ray out from the center of the prism.

**Better mental model** That amounts to rotating the prism once for every color, and it throws away both refractions. Here one reference line sets the orientation. All colors enter at the same point, travel to their own computed exit points, refract again and land on the same detector.

### Run the experiment

1. 01

   #### Scene 1: White-light dispersion

   In the white-light scene, sweep the apex angle from its smallest to its largest value. Check that the prism itself changes shape, then follow the violet and red rays through both fixed faces to the detector plane.

   **What to observe:** A larger apex angle widens the prism base and increases both the deviation and the spacing of colors on the detector. The selected marker moves across the same sensor; the sensor does not move to meet it.

2. 02

   #### Scene 2: Minimum-deviation lock

   In the minimum-deviation scene, change the wavelength. Compare the dashed face normals, the equal internal angles, the readout of equal incidence and emergence angles, and the marked bottom of the full deviation scan.

   **What to observe:** At minimum deviation the two internal refraction angles agree to numerical precision, and the curve of deviation against incidence angle has a stationary bottom. Away from that orientation the angles are no longer equal, though Snell's law still holds at both faces.

3. 03

   #### Scene 3: Line-spectrum calibration

   In the calibration scene, move the unknown line between the reference anchors and then past them. Read its detector coordinate and recovered wavelength together, and judge accuracy from the inversion residual, not from color alone.

   **What to observe:** Shorter wavelengths see a larger index in N-BK7 and bend more. The two close yellow mercury lines stay close on the detector, while the red and blue hydrogen lines give a wider span for calibration.

Physical conclusion

A prism becomes a measuring instrument when the glass dispersion, the actual prism shape, refraction at both faces, one fixed orientation and one fixed detector are solved together as one system.

Waves & optics · Starter path

## From one ray to interference measurement

Start with refraction, find where the ray picture stops working, then use interference to measure tiny distances.

[Start here → **Optical Boundary Explorer** Turn the incident angle and watch reflected and transmitted power trade off. Then switch to the critical-angle scene. Observe · 11 min](https://sandboxphysics.com/labs/optical-boundary-explorer/)

1. [1 Optical Boundary Explorer](https://sandboxphysics.com/labs/optical-boundary-explorer/)
2. [2 Rainbow Caustic Observatory](https://sandboxphysics.com/labs/rainbow-laboratory/)
3. [3 Camera Obscura](https://sandboxphysics.com/labs/camera-obscura/)
4. [4 Coherent Wave Composer](https://sandboxphysics.com/labs/coherent-wave-composer/)
5. [5 Young Double-Slit Bench](https://sandboxphysics.com/labs/young-double-slit-bench/)
6. [6 Michelson Precision Lab](https://sandboxphysics.com/labs/michelson-precision-lab/)

[View the full path →](https://sandboxphysics.com/topics/waves-and-optics/#starter-path)
