Enter the resolution, distance to the object, sensor height, and focal length into the calculator to determine the height of an object in a digital image.

Digital Height Formula

The following formula is used to calculate the height of an object in a digital image.

OH = (SH / R) * D / FL


  • OH is the object height (meters)
  • SH is the sensor height (millimeters)
  • R is the resolution (pixels)
  • D is the distance to the object (meters)
  • FL is the focal length (millimeters)

To calculate the height of an object in a digital image, divide the sensor height by the resolution to find the height per pixel, then multiply by the distance to the object and divide by the focal length.

What is Digital Height?

Digital height is the height of an object as it appears in a digital image. It is calculated using the physical properties of the camera sensor, the resolution of the image, the distance to the object, and the camera’s focal length. This measurement is useful in various applications such as photogrammetry, surveillance, and image analysis.

How to Calculate Digital Height?

The following steps outline how to calculate the Digital Height.

  1. First, determine the sensor height (SH) in millimeters.
  2. Next, determine the resolution (R) in pixels.
  3. Next, determine the distance to the object (D) in meters.
  4. Next, determine the focal length (FL) in millimeters.
  5. Next, gather the formula from above = OH = (SH / R) * D / FL.
  6. Finally, calculate the Object Height (OH) in meters.
  7. After inserting the variables and calculating the result, check your answer with the calculator above.

Example Problem : 

Use the following variables as an example problem to test your knowledge.

sensor height (SH) = 24 millimeters

resolution (R) = 4000 pixels

distance to the object (D) = 100 meters

focal length (FL) = 50 millimeters