You can always find it in gsmarena.
For other unknown phones, here is the formula for calculating dpi:
dpi = ( square_root ( horizontal_pixels ^ 2 + vertical_pixels ^ 2 )) / ( screen_size )
In the case of galaxy s4:
- horizontal pixels = 1080
- vertical pixels = 1920
- screen size = 5.0
Then
dpi = ( square_root ( 1080 ^ 2 + 1920 ^ 2 )) / 5.0
dpi = ( square_root ( 1166400 + 3686400 )) / 5.0
dpi = ( square_root ( 4852800 )) / 5.0
dpi = ( 2202.91 ) / 5.0
dpi = 440.5
dpi = 441 dpi
source
share