---
title: "Hyperfocal Distance calculator — AperiOptic"
description: "Hyperfocal distance, near and far DoF for a given f, f/# and CoC. Free online optics calculator, with the formula and code snippets."
url: "https://aperioptic.com/calculators/hyperfocal-distance"
---

# Hyperfocal Distance calculator

Hyperfocal distance, near and far DoF for a given f, f/# and CoC.

Category: [Imaging](https://aperioptic.com/calculators)

Formula: `H = f²/(N·c) + f`

## Inputs

| Input | Parameter | Unit | Default |
| --- | --- | --- | --- |
| Focal length | `f` | mm | 50 |
| f-number | `N` |  | 8 |
| CoC | `c` | µm | 30 |
| Subject dist | `s` | mm | 5000 |

## Result with the default inputs

- Hyperfocal H: 10.4667 m
- Near limit: 3.3894 m
- Far limit: 9.5274 m

Open it with your own values: put each input in the address as a parameter, for example [`/calculators/hyperfocal-distance?f=50`](https://aperioptic.com/calculators/hyperfocal-distance?f=50). A unit other than the listed one goes in `<parameter>_unit`.

Read more: [Wikipedia: Hyperfocal distance](https://en.wikipedia.org/wiki/Hyperfocal_distance)

[All optics calculators](https://aperioptic.com/calculators)

---

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