iPhone viewport sizes
Every iPhone Apple still supports, with the viewport a web page actually gets (CSS pixels), the device pixel ratio and the physical screen. iPhones cluster into a handful of widths, so testing four or five sizes covers almost everyone.
| Device | CSS viewport | DPR | Physical pixels | Year |
|---|---|---|---|---|
| iPhone 18 Pro Max | 440×956 | 3 | 1320×2868 | 2026 |
| iPhone 18 Pro | 402×874 | 3 | 1206×2622 | 2026 |
| iPhone Duo — outer screen | 382×678 | 3 | 1398×2034 | 2026 |
| iPhone Duo — unfolded | 951×669 | 3 | 2670×1878 | 2026 |
| iPhone 17 Pro Max | 440×956 | 3 | 1320×2868 | 2025 |
| iPhone 17 Pro | 402×874 | 3 | 1206×2622 | 2025 |
| iPhone Air | 420×912 | 3 | 1260×2736 | 2025 |
| iPhone 17 | 402×874 | 3 | 1206×2622 | 2025 |
| iPhone 17e | 390×844 | 3 | 1170×2532 | 2026 |
| iPhone 16 Pro Max | 440×956 | 3 | 1320×2868 | 2024 |
| iPhone 16 Pro | 402×874 | 3 | 1206×2622 | 2024 |
| iPhone 16 Plus | 430×932 | 3 | 1290×2796 | 2024 |
| iPhone 16 | 393×852 | 3 | 1179×2556 | 2024 |
| iPhone 16e | 390×844 | 3 | 1170×2532 | 2025 |
| iPhone 15 Pro Max / 15 Plus | 430×932 | 3 | 1290×2796 | 2023 |
| iPhone 15 / 15 Pro | 393×852 | 3 | 1179×2556 | 2023 |
| iPhone 14 Pro Max | 430×932 | 3 | 1290×2796 | 2022 |
| iPhone 14 Pro | 393×852 | 3 | 1179×2556 | 2022 |
| iPhone 14 Plus / 13 Pro Max / 12 Pro Max | 428×926 | 3 | 1284×2778 | 2022 |
| iPhone 14 / 13 / 12 | 390×844 | 3 | 1170×2532 | 2022 |
| iPhone 13 mini / 12 mini | 375×812 | 3 | 1080×2340 | 2021 |
| iPhone 11 / XR | 414×896 | 2 | 828×1792 | 2019 |
| iPhone SE (2nd & 3rd gen) | 375×667 | 2 | 750×1334 | 2022 |
Try your site on every iPhone size at once
Paste your address (or localhost:3000). doesitfit shows it on real screen sizes at once and tells you, bluntly, where it spills.
Free, no sign-up. Or ask Claude, ChatGPT or Codex to check it.
What to take from this
Narrowest: 375px
The iPhone 13 mini / 12 mini. If your layout survives this width with 16px of padding on each side (343px of content), it survives the rest.
Widest: 951px
The iPhone Duo — unfolded. Check that lines of text don’t get uncomfortably long and that your sm/md breakpoints kick in when you expect.
Questions people ask
What are the most common iPhone viewport widths?
iPhone viewports here range from 375px (iPhone 13 mini / 12 mini) to 951px (iPhone Duo — unfolded) wide. The most common width in this list is 402px (4 devices).
Which iPhone sizes should I test?
Test the narrowest (375px), the most common (402px) and the widest (951px), plus landscape. If those three look right, the sizes in between almost always do too.
Is the viewport the same as the screen resolution?
No. The viewport is measured in CSS pixels, which is the screen resolution divided by the device pixel ratio (and by any display scaling). Media queries use the viewport.
Guides that help
- How much of the screen iPhone users actually see in SafariThe status bar and Safari take 156px of an iPhone 17 Pro's 874px screen. Visible heights for every current iPhone, and what it means for 100vh and dvh.Devices · 7 min read
- What is a viewport? CSS pixels vs screen resolutionA viewport is the area your page is laid out in, measured in CSS pixels, not screen pixels. See real numbers from iPhones and MacBooks, then check yours.Guides · 8 min read
- How to fix horizontal scrolling on mobile (12 causes)Page wobbles sideways on phones? The 12 usual causes of horizontal scrolling on mobile, a fix for each, and a console snippet that finds the culprit fast.Fixes · 9 min read