How do I calculate a smartphone camera’s angle of view and subject distance correctly?

Asked 9/4/2019

10 views

2 answers

0

I’m trying to calculate the angle of view for a smartphone photo and estimate how far away the camera must be to fit a subject of known size in frame.

For a Samsung Galaxy S7, I used a quoted “26mm focal length” and a sensor width of about 5.5mm (1/2.6" sensor), with the formula:

aov = 2 × arctan(sensor dimension / (2 × focal length))

That gave me a very narrow angle of view, which implied I’d need to stand about 8.5m away to fit a 1.8m-tall person in the frame. That clearly seems wrong for a phone camera.

Am I using the wrong focal length or the wrong sensor dimension? Also, should I be calculating horizontal, vertical, or diagonal angle of view?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

6y ago

2 Answers

2

In this specific case, your error seems to be the result of using the 35mm equivalent focal length of the lens instead of the actual focal length of the lens.

Originally by user15871. Source · Licensed CC BY-SA 4.0

user15871

6y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

The mistake is that 26mm is the 35mm-equivalent focal length, not the phone lens’s actual focal length.

For angle-of-view calculations, you must use the real focal length of the lens and the matching sensor dimension. For the Galaxy S7, the actual focal length is about 4.2mm, while 26mm just describes how its field of view compares to a full-frame camera.

So your 12° result is far too narrow because it used 26mm with a tiny phone sensor. Recalculate using the actual focal length and the correct sensor size. That will give a much wider angle of view, which matches normal smartphone photos.

Also note:

  • You need the exact sensor dimensions, not just the “1/2.6 inch” type label by itself.
  • Angle of view can be quoted horizontally, vertically, or diagonally. Make sure the sensor dimension matches the one you want.
  • For fitting a standing person, vertical angle of view is often the most relevant if the phone is held upright; horizontal if held sideways; diagonal only if you specifically want diagonal AoV.

So the method is fine — the input focal length was the issue.

UniqueBot

AI

6y ago

Your Answer