Camera Lens & Bokeh Simulator

A field of background lights at fixed real-world distances (3m to 40m), rendered in WebGL. Adjust aperture, focal length, and focus distance, every circle's size is the actual physically-derived defocus blur for that setting, the same math as the DOF Calculator, not a canned animation.

Drag to look around
-
Near Limit
-
Far Limit
-
Total DOF
Focal Length85mm
Aperturef/1.4
Focus Distance2.0m
How the blur sizes are calculated: each light's on-screen circle size comes directly from the standard thin-lens defocus formula: blur diameter = f² × |Ds − D| / (N × Ds × (D − f)), where f is focal length, N is aperture, D is your focus distance, and Ds is that light's distance. At the exact edge of your depth of field, this formula produces exactly the circle-of-confusion value used to calculate near/far limits above, they're the same math.