Native resolution 1536 × 2048 px at 2× · 264 PPI · 9.7″ · 3:4. Design at 768 × 1024 and export assets at 2×.
| Property | Value |
|---|---|
| CSS viewport (portrait) | 768 × 1024 px |
| CSS viewport (landscape) | 1024 × 768 px |
| Native resolution | 1536 × 2048 px |
| Device pixel ratio | 2× |
| Pixel density | 264 PPI |
| Screen diagonal | 9.7 in |
| Panel size | 5.82 × 7.76 in |
| Aspect ratio | 3:4 |
| Total pixels | 3.15 MP |
| Released | 2017 |
| Operating system | iPadOS |
Among the 43 tablets on this site, the iPad (5th gen) has the 41th largest CSS viewport area. Its 768 px width is 92 px below the 860 px average for this category.
Targeting the iPad (5th gen) 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.
/* Target iPad (5th gen) specifically */
@media only screen
and (device-width: 768px)
and (device-height: 1024px)
and (-webkit-device-pixel-ratio: 2) {
/* … */
}
/* More useful in practice — the width bucket it falls into */
@media (min-width: 768px) { /* … */ }
Compare with other iPad models
| Device | CSS viewport | Native | DPR | PPI | Diagonal |
|---|---|---|---|---|---|
| iPad (5th gen) | 768 × 1024 | 1536 × 2048 | 2× | 264 | 9.7″ |
| iPad Pro 10.5″ | 834 × 1112 | 1668 × 2224 | 2× | 264 | 10.5″ |
| iPad (6th gen) | 768 × 1024 | 1536 × 2048 | 2× | 264 | 9.7″ |
| iPad Pro 9.7″ | 768 × 1024 | 1536 × 2048 | 2× | 264 | 9.7″ |
| iPad Pro 11″ (1st gen) | 834 × 1194 | 1668 × 2388 | 2× | 264 | 11″ |
| iPad Pro 12.9″ (3rd) | 1024 × 1366 | 2048 × 2732 | 2× | 264 | 12.9″ |
| iPad (7th gen) | 810 × 1080 | 1620 × 2160 | 2× | 264 | 10.2″ |
| iPad Air (3rd gen) | 834 × 1112 | 1668 × 2224 | 2× | 264 | 10.5″ |
| iPad mini (5th gen) | 768 × 1024 | 1536 × 2048 | 2× | 326 | 7.9″ |
Questions about the iPad (5th gen) screen
What is the screen size of the iPad (5th gen)?
The iPad (5th gen) has a 9.7-inch display. In CSS the viewport measures 768 × 1024 px in portrait, and the panel itself has 1536 × 2048 physical pixels at 264 PPI.
What resolution should I design for on the iPad (5th gen)?
Design at 768 × 1024 and export assets at 2×. That gives you 1536 × 2048 px images, which is exactly what the panel renders. Designing directly at 1536 × 2048 means every measurement is 2 times larger than the CSS values you will write.
What is the device pixel ratio of the iPad (5th gen)?
The iPad (5th gen) reports a device pixel ratio of 2. One CSS pixel therefore covers 4 device pixels. You can read it in JavaScript with window.devicePixelRatio.
Which other devices have the same viewport as the iPad (5th gen)?
5 other devices share the 768 × 1024 CSS viewport: iPad mini (5th gen), iPad mini (4th gen), iPad (6th gen), iPad Pro 9.7″, iPad Air 2. A layout that works on one works on all of them.
Related
window.innerWidth/innerHeight reported by the stock browser with no browser chrome. See methodology and sources.