Viewport Sizes for iPhone
Every Apple iPhone uses a Retina display β a high-density screen where the physical pixel count is 2Γ or 3Γ higher than what CSS and web browsers actually work with. That logical pixel dimension is the iPhone viewport size, and it is what determines how your website lays out on any iPhone model.
Apple's Retina technology packs so many physical pixels per inch that individual dots become invisible to the human eye at a normal viewing distance. To keep web content at readable sizes, iOS applies a device pixel ratio (DPR) of 2.0 or 3.0 β scaling down the native screen resolution to a smaller, logical CSS pixel grid. For example, an iPhone with a 1179 Γ 2556 screen resolution and a DPR of 3.0 has a viewport of 393 Γ 852 CSS pixels. When you write a media query like max-width: 430px, you are targeting that logical viewport β not the hardware resolution. Every iPhone's viewport width, also known as device-width, is the value that drives your responsive breakpoints and CSS layouts. See the full Viewport Size comparison table for all devices for a broader view across phones, tablets, and laptops.
The table below lists every Apple iPhone model from the iPhone 5 through the latest iPhone 17 series, including viewport size, screen resolution, pixel density (PPI), device pixel ratio, CSS PPI, and a direct link to CSS media queries for each model:
| Device Name |
Viewport SizePX |
Device Resolution PX |
Screen Size | Pixel Ratio |
Density PPI |
CSS PPI |
Media Queries |
|---|---|---|---|---|---|---|---|
| Apple iPhone 17 Pro Max | 440 x 956 | 1320 x 2868 | 6.9β³ | 3.0 | 460 | 153 | |
| Apple iPhone 17 Pro | 402 x 874 | 1206 x 2622 | 6.3β³ | 3.0 | 460 | 153 | |
| Apple iPhone 17 Air | 420 x 912 | 1260 x 2736 | 6.5β³ | 3.0 | 460 | 153 | |
| Apple iPhone 17 | 402 x 874 | 1206 x 2622 | 6.3β³ | 3.0 | 460 | 153 | |
| Apple iPhone 17e | 390 x 844 | 1170 x 2532 | 6.1β³ | 3.0 | 460 | 153 | |
| Apple iPhone 16 Pro Max | 440 x 956 | 1320 x 2868 | 6.9β³ | 3.0 | 460 | 153 | |
| Apple iPhone 16 Plus | 430 x 932 | 1290 x 2796 | 6.7β³ | 3.0 | 460 | 153 | |
| Apple iPhone 16 Pro | 402 x 874 | 1206 x 2622 | 6.3β³ | 3.0 | 460 | 153 | |
| Apple iPhone 16 | 393 x 852 | 1179 x 2556 | 6.1β³ | 3.0 | 460 | 153 | |
| Apple iPhone 15 Pro Max | 430 x 932 | 1290 x 2796 | 6.7β³ | 3.0 | 460 | 153 | |
| Apple iPhone 15 Plus | 430 x 932 | 1290 x 2796 | 6.7β³ | 3.0 | 460 | 153 | |
| Apple iPhone 15 Pro | 393 x 852 | 1179 x 2556 | 6.1β³ | 3.0 | 461 | 153 | |
| Apple iPhone 15 | 393 x 852 | 1179 x 2556 | 6.1β³ | 3.0 | 461 | 153 | |
| Apple iPhone SE (2022) | 375 x 667 | 750 x 1334 | 4.7β³ | 2.0 | 326 | 163 | |
| Apple iPhone 14 Pro Max | 430 x 932 | 1290 x 2796 | 6.7β³ | 3.0 | 460 | 153 | |
| Apple iPhone 14 Plus | 428 x 926 | 1284 x 2778 | 6.7β³ | 3.0 | 458 | 153 | |
| Apple iPhone 14 Pro | 393 x 852 | 1179 x 2556 | 6.1β³ | 3.0 | 460 | 153 | |
| Apple iPhone 14 | 390 x 844 | 1170 x 2532 | 6.1β³ | 3.0 | 460 | 153 | |
| Apple iPhone 13 mini | 360 x 780 | 1080 x 2340 | 5.4β³ | 3.0 | 476 | 159 | |
| Apple iPhone 13 Pro Max | 428 x 926 | 1284 x 2778 | 6.7β³ | 3.0 | 458 | 153 | |
| Apple iPhone 13 Pro | 390 x 844 | 1170 x 2532 | 6.1β³ | 3.0 | 460 | 153 | |
| Apple iPhone 13 | 390 x 844 | 1170 x 2532 | 6.1β³ | 3.0 | 460 | 153 | |
| Apple iPhone 12 mini | 360 x 780 | 1080 x 2340 | 5.4β³ | 3.0 | 476 | 159 | |
| Apple iPhone 12 Pro Max | 428 x 926 | 1284 x 2778 | 6.7β³ | 3.0 | 458 | 153 | |
| Apple iPhone 12 Pro | 390 x 844 | 1170 x 2532 | 6.1β³ | 3.0 | 460 | 153 | |
| Apple iPhone 12 | 390 x 844 | 1170 x 2532 | 6.1β³ | 3.0 | 460 | 153 | |
| Apple iPhone SE (2020) | 375 x 667 | 750 x 1334 | 4.7β³ | 2.0 | 326 | 163 | |
| Apple iPhone 11 Pro Max | 414 x 896 | 1242 x 2688 | 6.5β³ | 3.0 | 458 | 153 | |
| Apple iPhone 11 Pro | 375 x 812 | 1125 x 2436 | 5.8β³ | 3.0 | 458 | 153 | |
| Apple iPhone 11 | 414 x 896 | 828 x 1792 | 6.1β³ | 2.0 | 326 | 163 | |
| Apple iPhone XS Max | 414 x 896 | 1242 x 2688 | 6.5β³ | 3.0 | 458 | 153 | |
| Apple iPhone XR | 414 x 896 | 828 x 1792 | 6.1β³ | 2.0 | 326 | 163 | |
| Apple iPhone X | 375 x 812 | 1125 x 2436 | 5.8β³ | 3.0 | 458 | 153 | |
| Apple iPhone 8 | 375 x 667 | 750 x 1334 | 4.7β³ | 2.0 | 326 | 163 | |
| Apple iPhone 8 Plus | 414 x 736 | 1080 x 1920 | 5.5β³ | 3.0 | 401 | 134 | |
| Apple iPhone 7 | 375 x 667 | 750 x 1334 | 4.7β³ | 2.0 | 326 | 163 | |
| Apple iPhone 7 Plus | 414 x 736 | 1080 x 1920 | 5.5β³ | 3.0 | 401 | 134 | |
| Apple iPhone 6s Plus | 414 x 736 | 1080 x 1920 | 5.5β³ | 3.0 | 401 | 134 | |
| Apple iPhone SE | 320 x 568 | 640 x 1136 | 4.0β³ | 2.0 | 326 | 163 | |
| Apple iPhone 6s | 375 x 667 | 750 x 1334 | 4.7β³ | 2.0 | 326 | 163 | |
| Apple iPhone 6 | 375 x 667 | 750 x 1334 | 4.7β³ | 2.0 | 326 | 163 | |
| Apple iPhone 5s | 320 x 568 | 640 x 1136 | 4.0β³ | 2.0 | 326 | 163 | |
| Apple iPhone 5c | 320 x 568 | 640 x 1136 | 4.0β³ | 2.0 | 326 | 163 | |
| Apple iPhone 5 | 320 x 568 | 640 x 1136 | 4.0β³ | 2.0 | 326 | 163 |