Optics calculators
100+ free optics calculators: thin lens, Gaussian beams, diffraction limit, f-number and NA, fiber coupling, Fresnel reflection, Zernike terms and more, each with code snippets.
Geometric Optics
- Thin Lens Equation: Image distance & magnification from object distance and focal length.
- Lensmaker's Equation: Focal length of a thin lens from radii and refractive index.
- Snell's Law: Refraction angle across an interface.
- Mirror Equation: Spherical mirror image distance & magnification.
- Prism Deviation: Minimum angle of deviation through a prism.
- Thick Lens Equation: Effective focal length & principal planes for a thick lens.
- Two-Lens System (Combined Focal): Combined focal length and BFL of two thin lenses separated by d.
- Critical Angle (TIR): Total internal reflection threshold between two media.
- Lens Power (Diopters): Optical power from focal length; combine two thin lenses in contact.
Imaging
- f-Number / Aperture: Relationship between focal length, aperture diameter and f/#.
- Numerical Aperture: NA from acceptance angle, and relation to f/#.
- Depth of Field: Near, far and total DoF for a given setup.
- Field of View: Angular and linear FoV from sensor and focal length.
- Magnification (Optical): Linear magnification from image and object heights.
- Pixel Resolution: Object-space resolution from sensor pixel pitch.
- Optical Invariant (Lagrange): Conserved Lagrange invariant of a system.
- Hyperfocal Distance: Hyperfocal distance, near and far DoF for a given f, f/# and CoC.
- Sparrow Criterion: Resolution limit where two PSFs merge (no central dip).
- Two-Photon Action Cross-Section: Effective excitation rate from σ2·η at given peak intensity.
- Fluorescence Brightness: Intrinsic brightness B = ε · Φ for fluorophore comparison.
Diffraction
- Airy Disk / Diff. Limit: Diffraction-limited spot size from wavelength and f/#.
- Rayleigh Resolution: Smallest resolvable feature for a microscope objective.
- Diffraction Grating: Diffraction angle for a grating order.
- Gaussian Beam Waist: Waist radius and Rayleigh range of a focused Gaussian beam.
- Thin-Film Interference: Reflection maximum of a film between lower-index media (one π phase flip, e.g. a soap film).
- Spatial Frequency / MTF: Convert lp/mm to cycles and diffraction MTF cutoff.
- Bragg's Law: Constructive diffraction angle from a crystal lattice.
- Young's Double-Slit Fringe Spacing: Fringe period on a screen from two-slit interference.
Photonics
- Photon Energy: Energy of a single photon at a given wavelength.
- Photon Flux: Photons per second from optical power.
- Fresnel Reflection: Reflectance at normal incidence between two media.
- Brewster's Angle: Polarization angle between two media.
- Beer–Lambert Law: Transmittance through an absorbing medium.
- Étendue / AΩ Product: Conserved geometrical extent of a beam.
- Blackbody / Wien's Law: Peak wavelength & total exitance of a blackbody.
- dB ↔ Linear Conversion: Convert between optical dB / dBm and linear ratios or power.
- Wavelength ↔ Wavenumber: Convert between wavelength, frequency and spectroscopic wavenumber.
- Radiation Pressure: Photon pressure on absorbing or perfectly reflecting surfaces.
Laser & Ultrafast
- Peak Power & Fluence: Peak power, pulse energy and fluence from average power.
- Group Delay Dispersion: Temporal pulse broadening from GDD through dispersive media.
- Multiphoton PSF Volume: Lateral & axial PSF for two-photon excitation.
- Laser Cavity Stability: Stability parameter g₁·g₂ for a two-mirror cavity.
- Time–Bandwidth Product: Minimum pulse duration for transform-limited Gaussian / sech² pulses.
- Prism Pair Pulse Compression: GDD of a Brewster prism pair, per pass: angular-dispersion term (−) plus the glass in the beam (+). Fused silica at 800 nm by default.
- Grating Pair Pulse Compression: GDD of a parallel grating pair (Treacy), first order, single pass and double pass.
- Autocorrelation Deconvolution: Convert AC FWHM to true pulse width for assumed pulse shape.
- LIDT Pulse-Scaling: Scale a damage threshold from one pulse width to another via √τ.
Scanning
- Scanner Angular Range: Linear field of view from scan angle and focal length.
- Pixel Dwell & Frame Rate: Dwell time and frame rate from line rate & resolution.
- Electro-Optic Deflection: Deflection angle from EO crystal under applied voltage.
Spectroscopy
- Fabry–Perot Resonator: Free spectral range and finesse of an etalon.
- Interferometric Fringes: Fringe spacing from wavelength and crossing angle.
- Grating Resolving Power: Spectral resolution R = λ/Δλ from groove density.
- Raman Shift Converter: Convert between excitation/emission wavelength and Raman shift in cm⁻¹.
- Coherence Length & Time: Longitudinal coherence from spectral bandwidth (Gaussian).
- OPD ↔ Phase: Convert physical optical path difference into phase shift.
- Fringe Visibility (Contrast): Visibility V = (Imax−Imin)/(Imax+Imin).
- Relativistic Doppler Shift: Wavelength shift for source moving along line of sight.
Fiber Optics
- V-Number: Normalized frequency and mode count of a step-index fiber.
- Fiber Coupling Efficiency: Mode-overlap coupling between Gaussian beam and fiber MFD.
- Mode Field Diameter: Marcuse approximation of MFD for a step-index single-mode fiber.
- Fiber Bragg Grating Wavelength: Bragg reflection wavelength from effective index and grating period.
- Fiber Splice Loss: Insertion loss from transverse, longitudinal and angular SMF misalignment.
- Fiber Chromatic Dispersion: Pulse broadening from fiber chromatic dispersion.
Polarization
- Malus's Law: Transmitted intensity through a linear polarizer at angle θ.
- Retardation ↔ Phase Shift: Convert waveplate retardation in nm to phase and wavelength fraction.
- Jones Matrix (Polarizer + Waveplate): Output intensity after polarizer at α then waveplate (retardance δ, axis β).
Aberrations
- Zernike RMS Wavefront Error: RMS WFE from a list of normalized Zernike coefficients (waves).
- Strehl Ratio (Maréchal): Approximate Strehl ratio from RMS wavefront error.
- Axial Chromatic Aberration: Longitudinal focal shift from Abbe number dispersion.
- Sag of a Spherical Surface: Sagitta of a spherical (or conic) surface from radius and aperture.
- Cover Glass Spherical Aberration: Primary spherical aberration of a cover-glass thickness error, dry objective (NA in air), third order.
Detectors
- Shot Noise SNR: Photon-shot-noise-limited SNR from flux, QE and integration time.
- NEP & Detectivity (D*): Convert between NEP, area, bandwidth and specific detectivity D*.
- Transimpedance Amplifier: Feedback resistor for desired output voltage from photodiode current.
- Johnson–Nyquist Noise: Thermal noise voltage / current of a resistor at temperature T.
Nonlinear Optics
- SHG Phase-Matching Angle (BBO): Type-I ooe phase-matching angle in BBO for fundamental λ.
- B-Integral: Accumulated nonlinear phase shift in transparent media.
- SFG / DFG Wavelengths: Sum- and difference-frequency wavelengths for two input photons.
Radiometry
- Radiometric → Photometric: Convert radiant flux (W) to luminous flux (lm) at wavelength λ.
- Point Source Irradiance: Solid angle and irradiance on a detector from an isotropic point source.
- Luminous Efficacy: Convert radiant power to luminous flux at a given wavelength (photopic).
Optomechanics
- Knife-Edge Beam Profile: 1/e² Gaussian beam radius from 10–90% (or 16–84%) knife-edge sweep.
- Thermal Defocus: Focal shift from thermal expansion and dn/dT of the lens material.
- Mirror Tilt → Beam Steering: Beam angular deviation from a mirror tilt and lateral shift after distance L.
- Kinematic Mount Resolution: Angular tilt per rev/turn from screw pitch and lever arm.
- Optical Table Isolation: Transmissibility of a passive isolator above its natural frequency.
- Clear Aperture Checker: Verify a Gaussian beam fits within an optic's clear aperture.
- Beam Pointing Stability: Lateral beam wander from angular drift over a propagation distance.
Diffraction & Waves
- Gaussian Beam Propagation: Beam radius w(z), ROC R(z) at distance z from waist, and far-field divergence.
Unit Converters
- Spectral / Energy Unit Converter: Enter a wavelength to see frequency, wavenumber, photon energy and equivalent kT temperature.
- Angle Converter: Convert between degrees, radians, milliradians, arc-minutes and arc-seconds.
- Length / Distance: Convert between common optical length units.
- Power ↔ dBm: Convert linear optical power to dBm and dBW.
- Beam Width: FWHM ↔ 1/e² ↔ σ: Convert between Gaussian beam width conventions.
- Transmission ↔ OD ↔ dB: Convert between transmission %, optical density and dB attenuation.
- Temperature Converter: Kelvin, Celsius and Fahrenheit conversions.
- Pulse Energy ↔ Avg Power: Convert between pulse energy, average power and repetition rate.
- M² ↔ Divergence: Beam parameter product, M² and far-field divergence relations.
- Solid Angle ↔ Cone: Convert solid angle (sr) to half-cone angle and vice versa.
- Isotope Mass ↔ Energy: Convert atomic mass (u) to energy via E = mc².
Active Optics
- Pockels Cell Half-Wave Voltage: Vπ for a longitudinal/transverse EO modulator from r-coefficient and geometry.
- AOM Bragg Angle & Deflection: Bragg incidence and full deflection angle for an acousto-optic modulator.
- AOM Rise Time & Bandwidth: Modulation rise time set by the acoustic transit across the beam waist.
- Piezo Actuator Stroke & Force: Free stroke and blocking force from d33, voltage and stiffness.
Materials
- Sellmeier Equation: n(λ) using a 3-term Sellmeier expansion (BK7-style coefficients by default).
- Cauchy Equation: Visible-range index approximation n(λ) = A + B/λ² + C/λ⁴.
- Thermo-Optic Shift (dn/dT): Index change with temperature for the operating environment.
- Angle-Dependent Fresnel (s & p): s- and p-polarized reflectance/transmittance at any incidence angle.
Thin Films
- AR Coating Quarter-Wave: Single-layer AR ideal physical thickness and ideal index.
- DBR Reflector (Finite N): Quarter-wave stack: layer thicknesses, stopband, and peak reflectance for N pairs.