iPhone 5s Dimensions

4.0 INCH 4.87 x 2.31 x 0.30 INCH

iPhone 5s Resolution

640 x 1136 PX ~ 326 Pixels Per Inch

iPhone 5s Viewport

320 x 568 PX ~ 163 Pixels Per Inch

iPhone 5s Density

2 xhdpi 2x Retina Display

OS Details

Apple iPhone 5s has been launched in September 2013.
Apple iPhone 5s have iOS 7 , upgradable to iOS 10.3.3

Screen Dimensions

Apple iPhone 5s screen size is 4.0 inch with ~ 60.8% body ratio of actual device size. Physical dimensions for Apple iPhone 5s device is 4.87 x 2.31 x 0.30 INCH or ( 123.8 x 58.6 x 7.6 MM).

Displaying of Units are in this order "Height x Width x Thickness"

Screen Pixel Density and CSS Pixel Ratio

"Pixel" is smallest unit/element of any display.

The total number of pixels that fit into an inch is referred to as "Screen Density" or "Pixel Density" and it measured as "Pixels Per Inch".
Pixel Desnsity have limits to display Pixels Per Inch depends on different screen sizes. When number of pixels per inch increases than it's screen-size limit, the Display resolution will increase but actual device width/height in pixels remain same. Actual device pixels are known as Device Independent Pixels or CSS Pixel Ratio.


Apple iPhone 5s resolution is 640 x 1136 PX with ~ 326 pixel desnsity.
Apple iPhone 5s viewport size is 320 x 568 PX with ~ 163 actual pixel density, which means it have 2 xhdpi display pixel density.

Screen Resolution and Viewport

The sum of pixels which are displaying on a device is called as "Screen Resolution". and sum of actual pixels of any device is reffered to as "Viewport".

Apple iPhone 5s have 4.0" physical screen size and its resolution is about 640 x 1136 Pixels with approximately 326 PPI pixel density. Apple iPhone 5s has viewport size 320 x 568 Pixels and its pixel ratio is about 2.

For better understanding screen actual sizes, viewport sizes, display resolution and about their density click here.

CSS Media Queries

Apple iPhone 5s Media Queries (In terms of Mobile only)

@media only screen and (min-width: 320px) and (max-width: 767px) { /* Your Styles... */ }

Apple iPhone 5s Min-Width Media Queries

@media only screen and (min-width: 320px) { /* Your Styles... */ }

Apple iPhone 5s Min-Height Media Queries

@media only screen and (min-height: 568px) { /* Your Styles... */ }

Apple iPhone 5s Landscape Media Queries

@media only screen and (min-width: 568px) and (orientation: landscape) { /* Your Styles... */ }

Apple iPhone 5s Portrait Media Queries

@media only screen and (min-width: 320px) and (orientation: portrait) { /* Your Styles... */ }

Apple iPhone 5s Retina Media Queries

@media
  only screen and (-webkit-min-device-pixel-ratio: 2),
  only screen and (   min--moz-device-pixel-ratio: 2),
  only screen and (     -o-min-device-pixel-ratio: 2/1),
  only screen and (        min-device-pixel-ratio: 2),
  only screen and (                min-resolution: 326dpi),
  only screen and (                min-resolution: 2dppx) { 
    /* Retina styles here */
}
                                

Retina is actually based upon device pixel ratio. Devices mostly have 2x or 3x display so you can use general retina media queries to display high resolution content on all kind of devices. Retina 2x and Retina 3x media queries given below:

Retina 2x Media Query

@media
  only screen and (-webkit-min-device-pixel-ratio: 2),
  only screen and (   min--moz-device-pixel-ratio: 2),
  only screen and (     -o-min-device-pixel-ratio: 2/1),
  only screen and (        min-device-pixel-ratio: 2),
  only screen and (                min-resolution: 192dpi),
  only screen and (                min-resolution: 2dppx) { 
    /* Retina styles here */
}
                                

Retina 3x Media Query

@media
  only screen and (-webkit-min-device-pixel-ratio: 3),
  only screen and (   min--moz-device-pixel-ratio: 3),
  only screen and (     -o-min-device-pixel-ratio: 3/1),
  only screen and (        min-device-pixel-ratio: 3),
  only screen and (                min-resolution: 384dpi),
  only screen and (                min-resolution: 3dppx) { 
    /* Retina styles here */
}
                                

Apple iPhone 5s Specifications

  • Launch Date September 2013
  • iOS 7
  • Physical Screen Size 4.0 INCH
  • Resolution 640 x 1136 PX
  • Viewport Size 320 x 568 PX
  • Pixel Density 326 PPI
  • Device-Independent Pixels 163 PPI
  • Pixel Ratio 2 xhdpi
  • Width 640 PX
  • Height 1136 PX
  • Device Width 320 PX
  • Device Height 568 PX
  • Dimensions 123.8 x 58.6 x 7.6 mm (4.87 x 2.31 x 0.30 in)
  • Weight 112 g - 3.95 oz

Disclaimer: Information collected from different top relevent websites. It is tried to keep the information correct.
If you find anything wrong email us [email protected]