Skip to content
1440px

iPhone XS Max Screen Size

CSS viewport, native resolution, pixel ratio and safe area for the iPhone XS Max — the numbers you need to design and build for it.

CSS viewport · portrait
414 × 896 px

Native resolution 1242 × 2688 px at 3× · 458 PPI · 6.46″ · 9:19.5. Design at 414 × 896 and export assets at 3×.

iPhone XS Max display specifications
PropertyValue
CSS viewport (portrait)414 × 896 px
CSS viewport (landscape)896 × 414 px
Native resolution1242 × 2688 px
Device pixel ratio
Pixel density458 PPI
Screen diagonal6.46 in
Panel size2.71 × 5.87 in
Aspect ratio9:19.5
Total pixels3.34 MP
Released2018
Operating systemiOS
Safe area (top / bottom)48 / 34 px

Among the 130 phones on this site, the iPhone XS Max has the 46th largest CSS viewport area. Its 414 px width is 15 px above the 399 px average for this category.

Targeting the iPhone XS Max in CSS

Device-specific media queries are brittle — a new model with the same width will not match. Use them for genuine per-device fixes only, and prefer width buckets for layout.

CSS media query
/* Target iPhone XS Max specifically */
@media only screen
  and (device-width: 414px)
  and (device-height: 896px)
  and (-webkit-device-pixel-ratio: 3) {
  /* … */
}

/* More useful in practice — the width bucket it falls into */
@media (min-width: 414px) { /* … */ }

Safe area on the iPhone XS Max

Notch. Content placed inside the top 48 px or the bottom 34 px will sit under system UI unless you inset it.

Safe area insets
/* iPhone XS Max safe area — requires viewport-fit=cover */
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">

.app {
  padding-top:    env(safe-area-inset-top);    /* 48px */
  padding-bottom: env(safe-area-inset-bottom); /* 34px */
  padding-left:   env(safe-area-inset-left);
  padding-right:  env(safe-area-inset-right);
}

Compare with other iPhone models

iPhone XS Max compared with nearby iPhone models
DeviceCSS viewportNativeDPRPPIDiagonal
iPhone XS Max414 × 8961242 × 26884586.46″
iPhone XR414 × 896828 × 17923266.06″
iPhone XS375 × 8121125 × 24364585.85″
iPhone 11 Pro Max414 × 8961242 × 26884586.46″
iPhone 11414 × 896828 × 17923266.1″
iPhone 11 Pro375 × 8121125 × 24364585.85″
iPhone X375 × 8121125 × 24364585.85″
iPhone 8 Plus414 × 7361080 × 19204015.5″
iPhone 8375 × 667750 × 13343264.7″

Questions about the iPhone XS Max screen

What is the screen size of the iPhone XS Max?

The iPhone XS Max has a 6.46-inch display. In CSS the viewport measures 414 × 896 px in portrait, and the panel itself has 1242 × 2688 physical pixels at 458 PPI.

What resolution should I design for on the iPhone XS Max?

Design at 414 × 896 and export assets at . That gives you 1242 × 2688 px images, which is exactly what the panel renders. Designing directly at 1242 × 2688 means every measurement is 3 times larger than the CSS values you will write.

What is the device pixel ratio of the iPhone XS Max?

The iPhone XS Max reports a device pixel ratio of 3. One CSS pixel therefore covers 9 device pixels. You can read it in JavaScript with window.devicePixelRatio.

What are the safe area insets on the iPhone XS Max?

In portrait the safe area inset is 48 px at the top and 34 px at the bottom (Notch). Use env(safe-area-inset-*) rather than hard-coding these — the values change per device and per orientation.

Which other devices have the same viewport as the iPhone XS Max?

3 other devices share the 414 × 896 CSS viewport: iPhone 11 Pro Max, iPhone 11, iPhone XR. A layout that works on one works on all of them.

Related

Specifications from the manufacturer's published device data. Last verified 7 August 2026. CSS viewport values are the portrait window.innerWidth/innerHeight reported by the stock browser with no browser chrome. See methodology and sources.