Depth of Field Calculator
 
Format
Lens focal length
Selected aperture
Subject distance

Hyperfocal distance for this lens/aperture.
Near limit of acceptable sharpness.
Far limit of acceptable sharpness.
Total depth of field.

Depth of field example
Hyperfocal example

Based on modified code originally from The JavaScript Source.