Skip to content
1440px

iMac 27″ 5K Screen Size

CSS viewport, native resolution, pixel ratio and pixel density for the iMac 27″ 5K — the numbers you need to design and build for it.

CSS viewport · portrait
2560 × 1440 px

Native resolution 5120 × 2880 px at 2× · 218 PPI · 27″ · 16:9. Design at 2560 × 1440 and export assets at 2×.

iMac 27″ 5K display specifications
PropertyValue
CSS viewport (portrait)2560 × 1440 px
CSS viewport (landscape)1440 × 2560 px
Native resolution5120 × 2880 px
Device pixel ratio
Pixel density218 PPI
Screen diagonal27 in
Panel size23.49 × 13.21 in
Aspect ratio16:9
Total pixels14.75 MP
Released2020
Operating systemmacOS

Among the 37 desktop and laptop displays on this site, the iMac 27″ 5K has the 2nd largest CSS viewport area. Its 2560 px width is 889 px above the 1671 px average for this category.

Targeting the iMac 27″ 5K 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.

CSS media query
/* Target iMac 27″ 5K specifically */
@media only screen
  and (device-width: 2560px)
  and (device-height: 1440px)
  and (-webkit-device-pixel-ratio: 2) {
  /* … */
}

/* More useful in practice — the width bucket it falls into */
@media (min-width: 2560px) { /* … */ }

Compare with other Mac & Displays models

iMac 27″ 5K compared with nearby Mac & Displays models
DeviceCSS viewportNativeDPRPPIDiagonal
iMac 27″ 5K2560 × 14405120 × 288021827″
MacBook Pro 13″ (M1)1440 × 9002560 × 160022713.3″
MacBook Air 13″ (M1)1440 × 9002560 × 160022713.3″
iMac 24″ (M1)2240 × 12604480 × 252021823.5″
Pro Display XDR3008 × 16926016 × 338421832″
MacBook Pro 16″ (M1)1728 × 11173456 × 223425416.2″
MacBook Pro 16″ (2019)1792 × 11203072 × 192022616″
MacBook Pro 14″ (M1)1512 × 9823024 × 196425414.2″
Studio Display2560 × 14405120 × 288021827″

Questions about the iMac 27″ 5K screen

What is the screen size of the iMac 27″ 5K?

The iMac 27″ 5K has a 27-inch display. In CSS the viewport measures 2560 × 1440 px in portrait, and the panel itself has 5120 × 2880 physical pixels at 218 PPI.

What resolution should I design for on the iMac 27″ 5K?

Design at 2560 × 1440 and export assets at . That gives you 5120 × 2880 px images, which is exactly what the panel renders. Designing directly at 5120 × 2880 means every measurement is 2 times larger than the CSS values you will write.

What is the device pixel ratio of the iMac 27″ 5K?

The iMac 27″ 5K 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 iMac 27″ 5K?

1 other device shares the 2560 × 1440 CSS viewport: Studio Display. A layout that works on one works on all of them.

Related

Specifications from the manufacturer's published device data. Last verified 7 August 2026. CSS viewport values are the portrait window.innerWidth/innerHeight reported by the stock browser with no browser chrome. See methodology and sources.