Skip to content
1440px

Google Pixel 8a Screen Size

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

CSS viewport · portrait
412 × 915 px

Native resolution 1080 × 2400 px at 2.625× · 430 PPI · 6.1″ · 9:20. Design at 412 × 915 and export assets at 2.625×.

Google Pixel 8a display specifications
PropertyValue
CSS viewport (portrait)412 × 915 px
CSS viewport (landscape)915 × 412 px
Native resolution1080 × 2400 px
Device pixel ratio2.625×
Pixel density430 PPI
Screen diagonal6.1 in
Panel size2.51 × 5.58 in
Aspect ratio9:20
Total pixels2.59 MP
Released2024
Operating systemAndroid

Among the 130 phones on this site, the Google Pixel 8a has the 37th largest CSS viewport area. Its 412 px width is 13 px above the 399 px average for this category.

Targeting the Google Pixel 8a 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 8a specifically */
@media only screen
  and (device-width: 412px)
  and (device-height: 915px)
  and (-webkit-device-pixel-ratio: 2.625) {
  /* … */
}

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

Compare with other Android Phones models

Google Pixel 8a compared with nearby Android Phones models
DeviceCSS viewportNativeDPRPPIDiagonal
Google Pixel 8a412 × 9151080 × 24002.625×4306.1″
Samsung Galaxy S24360 × 7801080 × 23404166.2″
Google Pixel 9 Pro427 × 9521280 × 28564956.3″
Google Pixel 9412 × 9161080 × 24242.625×4226.3″
Xiaomi 14424 × 9441200 × 26702.83×4606.36″
Samsung Galaxy A25360 × 7801080 × 23403966.5″
Sony Xperia 1 VI393 × 8511080 × 23402.75×3966.5″
Samsung Galaxy A55360 × 7801080 × 23403906.6″
Samsung Galaxy A35360 × 7801080 × 23403906.6″

Questions about the Google Pixel 8a screen

What is the screen size of the Google Pixel 8a?

The Google Pixel 8a has a 6.1-inch display. In CSS the viewport measures 412 × 915 px in portrait, and the panel itself has 1080 × 2400 physical pixels at 430 PPI.

What resolution should I design for on the Google Pixel 8a?

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

What is the device pixel ratio of the Google Pixel 8a?

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

Which other devices have the same viewport as the Google Pixel 8a?

5 other devices share the 412 × 915 CSS viewport: Google Pixel 8, Google Pixel 7, Google Pixel 7a, Google Pixel 6, Google Pixel 6a. 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.