Native resolution 2560 × 1664 px at 2× · 224 PPI · 13.6″ · 20:13. Design at 1470 × 956 and export assets at 2×.
| Property | Value |
|---|---|
| CSS viewport (portrait) | 1470 × 956 px |
| CSS viewport (landscape) | 956 × 1470 px |
| Native resolution | 2560 × 1664 px |
| Device pixel ratio | 2× |
| Pixel density | 224 PPI |
| Screen diagonal | 13.6 in |
| Panel size | 11.43 × 7.43 in |
| Aspect ratio | 20:13 (exact 20:13) |
| Total pixels | 4.26 MP |
| Released | 2025 |
| Operating system | macOS |
Among the 37 desktop and laptop displays on this site, the MacBook Air 13″ (M4) has the 22th largest CSS viewport area. Its 1470 px width is 201 px below the 1671 px average for this category.
Targeting the MacBook Air 13″ (M4) 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 MacBook Air 13″ (M4) specifically */
@media only screen
and (device-width: 1470px)
and (device-height: 956px)
and (-webkit-device-pixel-ratio: 2) {
/* … */
}
/* More useful in practice — the width bucket it falls into */
@media (min-width: 1470px) { /* … */ }
Compare with other Mac & Displays models
| Device | CSS viewport | Native | DPR | PPI | Diagonal |
|---|---|---|---|---|---|
| MacBook Air 13″ (M4) | 1470 × 956 | 2560 × 1664 | 2× | 224 | 13.6″ |
| MacBook Air 15″ (M4) | 1710 × 1112 | 2880 × 1864 | 2× | 224 | 15.3″ |
| MacBook Air 13″ (M3) | 1470 × 956 | 2560 × 1664 | 2× | 224 | 13.6″ |
| MacBook Pro 14″ (M4) | 1512 × 982 | 3024 × 1964 | 2× | 254 | 14.2″ |
| MacBook Air 15″ (M3) | 1710 × 1112 | 2880 × 1864 | 2× | 224 | 15.3″ |
| MacBook Pro 16″ (M4) | 1728 × 1117 | 3456 × 2234 | 2× | 254 | 16.2″ |
| iMac 24″ (M4) | 2240 × 1260 | 4480 × 2520 | 2× | 218 | 23.5″ |
| MacBook Pro 14″ (M3) | 1512 × 982 | 3024 × 1964 | 2× | 254 | 14.2″ |
| MacBook Air 15″ (M2) | 1710 × 1112 | 2880 × 1864 | 2× | 224 | 15.3″ |
Questions about the MacBook Air 13″ (M4) screen
What is the screen size of the MacBook Air 13″ (M4)?
The MacBook Air 13″ (M4) has a 13.6-inch display. In CSS the viewport measures 1470 × 956 px in portrait, and the panel itself has 2560 × 1664 physical pixels at 224 PPI.
What resolution should I design for on the MacBook Air 13″ (M4)?
Design at 1470 × 956 and export assets at 2×. That gives you 2560 × 1664 px images, which is exactly what the panel renders. Designing directly at 2560 × 1664 means every measurement is 2 times larger than the CSS values you will write.
What is the device pixel ratio of the MacBook Air 13″ (M4)?
The MacBook Air 13″ (M4) reports a device pixel ratio of 2. One CSS pixel therefore covers 4 device pixels. You can read it in JavaScript with window.devicePixelRatio.
Why does 1470 × 2 not equal 2560?
Because MacBook Air 13″ (M4) ships in a scaled display mode. macOS composites the desktop at 2940 × 1912 — twice the 1470 × 956 logical size — and resamples that frame down to the 2560 × 1664 panel. It is not the panel's native mode; it is the one Apple selects by default because 1470 px of workspace is the more useful number. Design against 1470 × 956 and export at 2×.
Which other devices have the same viewport as the MacBook Air 13″ (M4)?
2 other devices share the 1470 × 956 CSS viewport: MacBook Air 13″ (M3), MacBook Air 13″ (M2). 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.