The application has been updated since your last visit. Go to the changelog to learn more.
Get it on Google Play
Hover over any element with orange
border to see the help.

Loading in progress...
 Configuration {{format}} {{cameraMake.make}} {{cameraModel.model}} / {{f | number:0}}mm / f/{{a | number:1}} / {{conv.key}}
Interface:  
Distance units:  
Activate the advanced interface to use all features of the application.
Appearance
Model: Background: Orientation:
Camera
crop: {{sensor.multiplier | number:2}}x
Make: Model: crop: {{cameraModel.m | mbNumber:2}}x
Dane tech.
The sensor size can be also set by choosing a camera from the database.
Lens
f=mm
(eqv. {{f*sensor.multiplier | number:0}}mm)
f/ 
(eqv. f/{{a*sensor.multiplier | number:1}})
Converter:
Effective focal length: {{f * conv.multiplier | mbNumber:0}}mm (eqv. {{f * conv.multiplier * sensor.multiplier | number:0}}mm)
Effective aperture: f/{{a * conv.multiplier | mbNumber:1}} (eqv. f/{{a * conv.multiplier * sensor.multiplier | number:1}})
Image ratio: {{sensor.size.max/sensor.size.min | mbNumber:2}}:1
When the slider is active you can use arrow keys or mouse scroll wheel to change its value. The model cannot be placed further than the background.
Distance
Model (focus): cm = {{y0/1000|infiniteNumber:2:units}} ft = {{y0/914.4|infiniteNumber:2}}yd
Background: cm = {{y/1000|infiniteNumber:2:units}} ft = {{y/914.4|infiniteNumber:2}}yd
Framing
Activate the field of view lock to check how parameter changes affect the image with constant size of the model on the photo.
 Saved settings
/ Bokeh Remove
{{params.format}} {{params.cameraMake.make}} {{params.cameraModel.model}} {{params.f}}mm f/{{params.a|number:1}} {{params.conv.key}} {{params.y0/1000|infiniteNumber:2:units}} {{params.y/1000|infiniteNumber:2:units}} {{fourierBlurTypes[params.fourierBlurType].name}} -
No saved settings
Save your settings on the list to easily compare them with each other.
 Simulation Background blur: {{totalBlur | mbNumber:3:0}}mm / {{totalBlur/sensor.size.max*100 | mbNumber:2:0.01:100}}% {{totalBlur | mbNumber:3:0}}mm / {{totalBlur/sensor.size.max*100 | mbNumber:2:0.01:100}}% {{totalBlur/conv.anamorph | mbNumber:3:0}}mm / {{totalBlur/conv.anamorph/sensor.size.max*100 | mbNumber:2:0.01:100}}% Optimal f-number: f/{{optiA | number:1}} ({{optiBlur | number:3}}mm / {{optiLines | maxNumber:0:maxLines}} / {{optiMpix | maxNumber:1:maxMpix}}Mpix)
{{airy | number:3}}mm / {{diffractionLines | maxNumber:0:maxLines}} lines / {{diffractionMpix | maxNumber:1:maxMpix}}Mpix Background blur: {{blur | mbNumber:3:0}}mm / {{lines | maxNumber:0:maxLines}} lines / {{mpix | maxNumber:1:maxMpix}}Mpix
The diffraction causes image blur for big f-number values.
You can notice it on the simulation.
Bokeh: 
Ready:
 
Use the bokeh simulation to generate more realistic background blur. Use the Generate button to process the bokeh simulation after parameters change or enable the Auto feature. If the processing takes too long you can disable the Auto feature and run the generation manually with the Generate button.
Maximum background scale exceeded.
Model distance cannot be smaller than lens focal length.
Loading...
{{loadedBkg.count/4*100|number:0}}%
An error occured during background images load.
Processing in progress...
{{fourierBlurProgress|number:0}}%
Error occured during processing.
Try again.
© dofsimulator.net
 Depth of field Total: {{(farDOF-nearDOF) | smartNumber:units}} ({{nearDOF | smartNumber:units}} ~ {{farDOF | smartNumber:units}})
Circle of confusion: {{sensor.c | number:4}}mm 
The chosen circle of confusion affects only the calculated DOF range and has no impact on the simulation.
Max. f-number:
f/{{maxA | number:1}}
In front of subject:
{{frontDOF | smartNumber:units}} ({{frontDOF/(frontDOF+backDOF)*100 | infiniteNumber:1}}%)
Behind subject:
{{backDOF | smartNumber:units}} ({{backDOF/(frontDOF+backDOF)*100 | infiniteNumber:1}}%)
Hyperfocal distance:
{{hyperfocal/1000 | infiniteNumber:2:units}} (>{{hyperfocal/2000 | infiniteNumber:2:units}})


    {{ctrl.previewZoomScaleStart()}} {{ctrl.previewZoomScaleStart()+0.5}} {{ctrl.previewZoomScaleStart()+1}} {{ctrl.previewZoomScaleStart()+1.5}} {{ctrl.previewZoomScaleStart()+2}}

        {{ctrl.previewZoomScaleStart()-1}} {{ctrl.previewZoomScaleStart()}} {{ctrl.previewZoomScaleStart()+1}} {{ctrl.previewZoomScaleStart()+2}} {{ctrl.previewZoomScaleStart()+3}} {{ctrl.previewZoomScaleStart()+4}} {{ctrl.previewZoomScaleStart()+5}} {{ctrl.previewZoomScaleStart()+6}}

  {{scale}}

{{(maxY-x)/1000|number:0}}m
{{((maxY*2)-x)/1000|number:0}}m
{{(maxY-x)/304.8|number:0}}ft
{{((maxY*2)-x)/304.8|number:0}}ft
Bokeh simulator and depth of field calculator

This application interactively calculates the camera depth of field and background blur and visually simulates it on a photo together with different types of lens blur (bokeh) for any lens, camera and distance combination.

Activating the help mode shows descriptions of the interface elements. By clicking on one of the question mark icons () you can read detailed information about any panel of the interface.

The simulator makes use of modern web technologies, so it requires at least following browsers versions to work correctly: Chrome 20.0, Firefox 4.0, Opera 12.0, Safari 6.0, Internet Explorer 10.

The most fluid operation is provided by Google Chrome.

You can mail me at: admin@dofsimulator.net or contact me on Facebook: www.facebook.com/dofsimulator or Twitter: www.twitter.com/dofsimulator Any feedback, bug reports and opinions are welcome.


Michael Bemowski is the author and owner of all copyrights except for models drawings and background photos, which are published under Creative Commons licence or in public domain. Copying and distributing this application in different way than linking to this page is FORBIDDEN!

20.03.2020
  • Updated cameras and lens database.
  • Fixed Mpix calculation for Video 16:9.
08.09.2018
  • Updated cameras and lens database. Added Nikon Z and Canon RF systems.
  • Minor fixes and improvements.
24.05.2018
  • Updated cameras and lens database. Added multiaspect sensors support.
  • More readable blur values.
  • Improved keyboard support - it is now possible to use arrow keys to change the parameters.
  • Visual improvements: more readable menu.
  • Introduced GDPR-compliant cookie constent.
09.04.2017
  • Improved user interface: basic and advanced modes, additional icons that makes navigation easier.
  • Added lens database with focal length and aperture range and minimum focusing distance data.
  • Lens converters support: teleconverters, reductors and anamorphic lens.
  • Updated camera database, included medium-format cameras. Added links to technical specifications from digicamdb.com.
  • Ability to define a custom circle of confusion calculated by resolution or by print size.
  • The camera location can me moved on the DOF preview together with the distance scale.
  • Automatic help tooltips appearing when using some of the application features.
  • Simplified guide, separated into main and more detailed screens.
  • The simulation sticks to the browser window when scrolling.
  • Larger simulation size on high-resolution screens.
  • Many visual improvements, unification among browsers.
  • Error messages shown when invalid values are entered into fields.
  • Further fixes and improvements of the model positioning on the background.
30.04.2015
  • The depth of field simulation works now also on the model: ears, nose and face are blurred depending on the calculated depth of field.
  • Introduced perspective distortions on the model: the appearance of model's face changes at small distances.
  • Modified set of models - they now differ also in height.
  • Video 16:9 mode that changes the image ratio to typical for HD video.
  • New depth of field preview zoom feature allows to precisely see its range on the person even for small values of DOF.
  • The links generated for current settings are much shorter now. The old links will still work.
  • Thanks to the kindness of digicamdb.com administrator a list of digital photo and video cameras has been added. Based on this data the sensor size and focal length range is set.
  • Improved support for different screen sizes, especially small, mobile devices screens.
  • A mobile app for Android smartphones and tablets has been released on Google Play.
  • Enhanced offline version: easier installation: it now works independently from the browser installed in your system.
  • Stoping the bokeh simulation is now possible during processing.
  • Sensors sizes list cleanup: added large format film and very small sensors, division of the list into groups.
  • Expansion of the circle of confusion sizes list with values corresponding to typical video sizes. Division of the list into groups.
  • When the distance from the model to the camera is small, its head is placed on more interesting background instead of on the sky.
  • Faster background images loading thanks to better compression.
18.09.2014
  • Completly new advanced bokeh simulation feature. It allows to simulate different types of real-world background lens blur: from soft disks, through polygonal diaphragms to rings from a catadioptric lens.
  • Added option that allows to lock the distance between the model and the background - it simulates the photographer movement with constant position of the model.
  • Facebook page for the application is now available: http://www.facebook.com/dofsimulator Like it and subscribe to get notified instantly about new features in the future!
24.08.2014
  • Changed model positiong algorithm when background scaling is enabled - it no longer moves when focal length is changed.
  • Displaying opitmal and maximum f-number when diffraction effects are enabled.
  • Cookies warning fixes: it is not shown and the page does not hang if the cookies are blocked.
11.08.2014
  • New feature for generating links to the current parameters.
  • Added saved settings list sort feature.
  • Displaying the beginning of the DOF at the hyperfocal distance.
  • Ability to choose in which units the distances are shown: metric (meters, centimeters) or imperial (feet, inches, yards).
  • Ability to change slider value with mouse wheel.
  • I introduced the "Donate" button that allows you to send me some amout of money if you like the application.
27.05.2014
  • Displaying number of megapixels corresponding to the calculated blur.
  • Fixes in calculation and displaying of depth of field values for distances close to the hyperfocal distance.
  • Limited scale on the DOF preview in mobile version in order to be more readable on small screens.
  • Some optimalizations to speed up the application, especially in mobile mode.
17.05.2014
  • Introduced mobile version, which allows to comfortably use the application on smaller screens.
  • Added the ability to move the model and tree silhouettes in order to change their distances in the configuration.
  • New option allowing to choose other, than the traditionally adopted in photography, circle of confusion size.
27.04.2014
  • Added option allowing to inlcude diffraction when calculating image blur.
  • Introduced new guide, which presents all features of the application and replaces existing descriptions of the panels.
09.04.2014
  • Because it turned out, that web browsers cannot poperly save the webpage on disk I have provided downloadable version in a zip file.
  • Added several new sensor sizes an ability to choose them with size preview.
  • It is now possible to enter triple the focal length avaliable on the slider for each sensor size.
07.04.2014
  • Fixed typo in sensor sizes: 35mm DX -> FX.
  • Added 1m scale intervals in the DOF panel.
06.04.2014
  • Moved to new domain, added English translation.
  • More sensor sizes to choose from: medium format, DSLRs and compact cameras.
  • Ability to change slider value by clicking on its track.
  • Support for Internet Explorer 9 and higher.
  • Added top menu and date of last update.
  • Added fullscreen mode button.
  • Moved description from bottom to dialogs avaliable from top menu.
  • 8 new background images with much bigger resolution.
  • Ability to choose models and backgrounds from thumbnails view.
  • Saving all settings and restoring them at the next visit to the page. Added reset button to revert them to default values.
  • Changed method of positioning the model relative to the background in order to be more realistic (in previous version the background moved when focal length changed).
  • Better fitting the content to the window width.
  • Bugfixes, layout adjustments etc.
07.03.2014
  • First version of the application.
{{bkg.name}}

{{ctrl.printModel("girl2")}}

{{ctrl.printModel("girl1")}}

{{ctrl.printModel("woman1")}}

{{ctrl.printModel("man1")}}

{{ctrl.printModel("boy2")}}

{{ctrl.printModel("boy1")}}

{{ctrl.printModel("woman2")}}

{{ctrl.printModel("man2")}}
Large format Medium format DSLRs / mirrorless Compact cameras
The large format scale is 3x smaller relative to other sizes.
{{sensor.key}}
{{sensor.key}}
{{sensor.key}}

Copy the link below to return to the current settings in the future or on another computer.

You can also share it with others.

Please update your browser to use all features of this page.


Chrome

Firefox

Opera

Safari

Internet Explorer

Excellent 5 blades diaphragm
Soft 6 blades diaphragm
Neutral 7 blades diaphragm
Hard 8 blades diaphragm
Catadioptric lens 9 blades diaphragm
Value Diagonal Resolution Print View
Circle of confusion size: mm
Fraction of sensor diagonal: D/
Circle of confusion: {{customCocCtrl.lines.value() | infiniteNumber:4}}mm
Dimensions: x px
Resolution: Mpix
Circle of confusion: {{customCocCtrl.resolution.value() | infiniteNumber:4}}mm
Units:
Print size: x {{customCocCtrl.units[units].small.unit}} x {{customCocCtrl.units[units].big.unit}}
Resolution: dpi
Circle of confusion: {{customCocCtrl.print.value() | infiniteNumber:4}}mm
Units:
Image size: x {{customCocCtrl.units[units].small.unit}} x {{customCocCtrl.units[units].big.unit}}
Viewing distance: {{customCocCtrl.units[units].small.unit}} {{customCocCtrl.units[units].big.unit}}
Circle of confusion: {{customCocCtrl.view.value() | infiniteNumber:4}}mm

The offline version allows you to use the simulator without an internet connection.

Android Windows
Get it on Google Play Portable version (44MB)
Installer (37MB)
OS X Linux
Application bundle (49MB) 32-bit (52MB)
64-bit (50MB)

Choose the version suitable for your operating system.

Android app is now available.

Go to Google Play to download it and use the simulator without internet connection.

Get it on Google Play

A new version of the application is available.

Go to dofsimulator.net to download the update.

Changes:

  • {{change}}

An error occured when loading parameters

Please make shure that the link has been correctly copied and try again.

In accordance with the GDPR we need to obtain your constent for using cookies and local storage on this site. We use them to store your settings, analyse the traffic and to provide personalized ads in cooperation with our partner Google. See details


If you do not allow cookies, your parameters will not be saved for next visit. You can change your settings at any time.

This site uses cookies and local storage to store your settings, analyse the traffic and to provide ads in cooperation with our partner Google. See details