---
title: "Optical design & analysis — AperiOptic"
description: "Design lens systems in the browser: non-sequential ray tracing, spot diagrams, wavefront error, PSF, MTF, through-focus z-stacks and an optimizer. Imports Zemax .zmx files."
url: "https://aperioptic.com/design"
---

# Optical design & analysis

Design lens systems in the browser: non-sequential ray tracing, spot diagrams, wavefront error, PSF, MTF, through-focus z-stacks and an optimizer. Imports Zemax .zmx files.

The design tool runs entirely in your browser (the physics is compiled to WebAssembly): nothing to install, no account, and designs stay on your computer. [The manual](https://aperioptic.com/manual) explains every part of it.

## Getting started

The design page has four areas: the **top bar** (trace, settings, save, load, samples, this manual), the **3D view** of the system and its rays, the **panel** on the right (Sources, Detectors, Optimizer, Sweep) and the **surface table** underneath, one row per surface.

![The design page with the Cooke triplet sample loaded and traced.](https://aperioptic.com/manual/overview.png)

The design page with the Cooke triplet sample loaded and traced.

The quickest start is a sample: SAMPLES ▾ → pick a system → ▶ (Trace). Every change you make afterwards is live: trace again to see it.

## Sample systems

Classic systems to open from the SAMPLES menu, or by their link, each checked against its textbook behaviour ([more in the manual](https://aperioptic.com/manual#samples)):

- [Plano-convex singlet](https://aperioptic.com/design?sample=singlet): N-BK7, f = 100 mm at f/5: the detector sits at best focus, short of the paraxial focus, where spherical aberration still blurs the spot.
- [Achromatic doublet](https://aperioptic.com/design?sample=achromat): Cemented N-BK7 / F2, f = 100 mm: red and blue focus together (compare the singlet's colour).
- [Cooke triplet](https://aperioptic.com/design?sample=cooke-triplet): The classic three-element anastigmat (Zemax's "Cooke 40 degree field"): f/5, three fields, three wavelengths.
- [Double Gauss](https://aperioptic.com/design?sample=double-gauss): The six-element camera-lens workhorse (Zemax's "Double Gauss 28 degree field").
- [Petzval lens](https://aperioptic.com/design?sample=petzval): Two achromats with a wide air gap (f ≈ 67 mm, f/4): sharp on axis, curved field off axis (the Petzval sum).
- [Newtonian telescope](https://aperioptic.com/design?sample=newtonian): 200 mm f/5 paraboloid with a 45° diagonal: perfect on axis, coma off axis.
- [Ritchey–Chrétien telescope](https://aperioptic.com/design?sample=ritchey-chretien): 200 mm f/12 two-hyperboloid Cassegrain (the Hubble design): free of spherical aberration and coma.
- [Galilean beam expander](https://aperioptic.com/design?sample=galilean-expander): f = −50 / +100 mm at 632.8 nm: a 2× expander with no internal focus.
- [Michelson interferometer](https://aperioptic.com/design?sample=michelson): 50:50 beamsplitter and two flat mirrors (arms 100 / 103 mm), Mirror_1 tilted 0.05° about Y: the detector's INTERFERENCE tab shows straight fringes of period λ / sin 2α. Zero the tilt for one uniform tone; move a mirror to make the fringes run.
- [Mach–Zehnder interferometer](https://aperioptic.com/design?sample=mach-zehnder): Two 50:50 splitters and two fold mirrors, with a weak lens (f = 2 m) in the test arm: the detector's INTERFERENCE tab shows circular fringes — the lens's spherical wavefront against the flat reference.
- [Right-angle prism (TIR)](https://aperioptic.com/design?sample=prism): A solid N-BK7 prism folds the beam 90° by total internal reflection at its hypotenuse. A solid is traced non-sequentially; force Sequential (TRACE setting) and the reflected light is lost.

---

The interactive page: https://aperioptic.com/design (AperiOptic runs in the browser; free, no account). Every page of the site as Markdown: https://aperioptic.com/llms.txt
