Skip to content
1440px

Google Pixel 5 Screen Size

CSS viewport, native resolution, pixel ratio and pixel density for the Google Pixel 5 — the numbers you need to design and build for it.

CSS viewport · portrait
393 × 851 px

Native resolution 1080 × 2340 px at 2.75× · 432 PPI · 6″ · 9:19.5. Design at 393 × 851 and export assets at 2.75×.

Google Pixel 5 display specifications
PropertyValue
CSS viewport (portrait)393 × 851 px
CSS viewport (landscape)851 × 393 px
Native resolution1080 × 2340 px
Device pixel ratio2.75×
Pixel density432 PPI
Screen diagonal6 in
Panel size2.5 × 5.42 in
Aspect ratio9:19.5
Total pixels2.53 MP
Released2020
Operating systemAndroid

Among the 130 phones on this site, the Google Pixel 5 has the 64th largest CSS viewport area. Its 393 px width is 6 px below the 399 px average for this category.

Targeting the Google Pixel 5 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 Google Pixel 5 specifically */
@media only screen
  and (device-width: 393px)
  and (device-height: 851px)
  and (-webkit-device-pixel-ratio: 2.75) {
  /* … */
}

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

Compare with other Android Phones models

Google Pixel 5 compared with nearby Android Phones models
DeviceCSS viewportNativeDPRPPIDiagonal
Google Pixel 5393 × 8511080 × 23402.75×4326″
Google Pixel 4a393 × 8511080 × 23402.75×4435.81″
Samsung Galaxy S20360 × 8001440 × 32005636.2″
Samsung Galaxy S20 Ultra412 × 9141440 × 32003.5×5116.9″
Samsung Galaxy Note 20 Ultra412 × 8831440 × 30883.5×4966.9″
Samsung Galaxy S10360 × 7601440 × 30405506.1″
Samsung Galaxy S21360 × 8001080 × 24004216.2″
Google Pixel 4393 × 8291080 × 22802.75×4445.7″
Samsung Galaxy S10+360 × 7601440 × 30405226.4″

Questions about the Google Pixel 5 screen

What is the screen size of the Google Pixel 5?

The Google Pixel 5 has a 6-inch display. In CSS the viewport measures 393 × 851 px in portrait, and the panel itself has 1080 × 2340 physical pixels at 432 PPI.

What resolution should I design for on the Google Pixel 5?

Design at 393 × 851 and export assets at 2.75×. That gives you 1080 × 2340 px images, which is exactly what the panel renders. Designing directly at 1080 × 2340 means every measurement is 2.75 times larger than the CSS values you will write.

What is the device pixel ratio of the Google Pixel 5?

The Google Pixel 5 reports a device pixel ratio of 2.75. One CSS pixel therefore covers 7.56 device pixels. You can read it in JavaScript with window.devicePixelRatio.

Which other devices have the same viewport as the Google Pixel 5?

2 other devices share the 393 × 851 CSS viewport: Google Pixel 4a, Sony Xperia 1 VI. 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.