Native resolution 3024 × 1964 px at 2× · 254 PPI · 14.2″ · 1.54:1. Design at 1512 × 982 and export assets at 2×.
| Property | Value |
|---|---|
| CSS viewport (portrait) | 1512 × 982 px |
| CSS viewport (landscape) | 982 × 1512 px |
| Native resolution | 3024 × 1964 px |
| Device pixel ratio | 2× |
| Pixel density | 254 PPI |
| Screen diagonal | 14.2 in |
| Panel size | 11.91 × 7.73 in |
| Aspect ratio | 1.54:1 (exact 756:491) |
| Total pixels | 5.94 MP |
| Released | 2024 |
| Operating system | macOS |
Among the 37 desktop and laptop displays on this site, the MacBook Pro 14″ (M4) has the 19th largest CSS viewport area. Its 1512 px width is 159 px below the 1671 px average for this category.
Targeting the MacBook Pro 14″ (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 Pro 14″ (M4) specifically */
@media only screen
and (device-width: 1512px)
and (device-height: 982px)
and (-webkit-device-pixel-ratio: 2) {
/* … */
}
/* More useful in practice — the width bucket it falls into */
@media (min-width: 1512px) { /* … */ }
Compare with other Mac & Displays models
| Device | CSS viewport | Native | DPR | PPI | Diagonal |
|---|---|---|---|---|---|
| MacBook Pro 14″ (M4) | 1512 × 982 | 3024 × 1964 | 2× | 254 | 14.2″ |
| MacBook Air 13″ (M3) | 1470 × 956 | 2560 × 1664 | 2× | 224 | 13.6″ |
| 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 13″ (M4) | 1470 × 956 | 2560 × 1664 | 2× | 224 | 13.6″ |
| MacBook Air 15″ (M4) | 1710 × 1112 | 2880 × 1864 | 2× | 224 | 15.3″ |
| MacBook Air 15″ (M2) | 1710 × 1112 | 2880 × 1864 | 2× | 224 | 15.3″ |
Questions about the MacBook Pro 14″ (M4) screen
What is the screen size of the MacBook Pro 14″ (M4)?
The MacBook Pro 14″ (M4) has a 14.2-inch display. In CSS the viewport measures 1512 × 982 px in portrait, and the panel itself has 3024 × 1964 physical pixels at 254 PPI.
What resolution should I design for on the MacBook Pro 14″ (M4)?
Design at 1512 × 982 and export assets at 2×. That gives you 3024 × 1964 px images, which is exactly what the panel renders. Designing directly at 3024 × 1964 means every measurement is 2 times larger than the CSS values you will write.
What is the device pixel ratio of the MacBook Pro 14″ (M4)?
The MacBook Pro 14″ (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.
Which other devices have the same viewport as the MacBook Pro 14″ (M4)?
2 other devices share the 1512 × 982 CSS viewport: MacBook Pro 14″ (M3), MacBook Pro 14″ (M1). 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.