Guides › Hardware tests

Why a website says your 1080p screen is 1536 pixels wide: resolution, viewport and pixel ratio

You bought a "Full HD 1920 × 1080" laptop, but a resolution checker says 1536 × 864. Your phone's box says 2556 pixels tall, and the website says 852. Neither is broken. There are three different "resolutions" in play, and websites can only see one of them directly. We ran our screen resolution tool in Chromium under seven device profiles to show how the numbers relate.

Short answer: websites measure in CSS pixels. Physical pixels are roughly CSS pixels × device pixel ratio. A 1920 × 1080 laptop set to 125% scaling reports 1536 × 864 with a ratio of 1.25; an iPhone 15 Pro reports 393 × 852 with a ratio of 3, which is 1179 × 2556 physical pixels.

Three numbers, three meanings

The point of the system is readability. Text set at 16 CSS pixels should look about the same size on a 5-inch phone and a 15-inch laptop. A phone with very dense pixels therefore uses several physical pixels per CSS pixel, which makes text sharper without making it tiny.

What we measured

We loaded our tool in Chromium 153 using device profiles from Playwright, a browser testing framework whose built-in list mirrors the screen settings of popular devices, plus three desktop configurations we set up to match common Windows and Mac settings. For the desktop profiles we chose the viewport height ourselves, leaving room for typical browser toolbars; the phone and tablet values come from the device profiles.

ProfileScreen (CSS px)Viewport (CSS px)DPRPhysical px (calculated)
Desktop monitor 1920 × 1080, 100% scaling1920 × 10801920 × 93711920 × 1080
Laptop 1920 × 1080, Windows 125% scaling1536 × 8641536 × 7301.251920 × 1080
MacBook-style display, default "looks like 1440 × 900"1440 × 9001440 × 78922880 × 1800
iPhone 15 Pro393 × 852393 × 65931179 × 2556
iPhone SE (1st gen. profile)320 × 568320 × 5682640 × 1136
Pixel 7412 × 915412 × 8392.6251082 × 2402
iPad (7th gen.)810 × 1080810 × 108021620 × 2160

Physical pixels are calculated as CSS pixels × DPR and rounded, which is why the Pixel 7 shows 1082 rather than its true 1080: a ratio like 2.625 does not divide evenly. Emulated profiles reproduce the numbers a page sees; a real device can differ if you change its display zoom or text size.

Reading the table

Windows scaling explains the "wrong" laptop resolution

Windows laptops with 13- to 15-inch Full HD panels often ship with 125% or 150% scaling so text is not uncomfortably small. Websites then see 1920 ÷ 1.25 = 1536 CSS pixels. If you want the panel's real resolution, multiply by the DPR our tool shows, or look in Windows Settings › System › Display, where it is listed as the display resolution.

Macs render larger and scale down

On many MacBooks the default setting "looks like" 1440 × 900 at a ratio of 2, so the system draws a 2880 × 1800 image. On a panel with fewer physical pixels, macOS scales that image down to fit. The web page cannot see that last step; it only knows 1440 and 2. That is why the physical figure a website calculates can differ from the panel specification on a Mac.

The viewport is always smaller than the screen

The viewport excludes browser toolbars, tabs and on phones the address bar and system bars. On the iPhone profile the screen was 852 CSS pixels tall but the page had 659. Responsive designs are built around the viewport, which is why a site can switch to its mobile layout when you simply make a desktop window narrower.

Which number do you need?

TaskNumber to use
Checking if a monitor runs at its native resolutionPhysical pixels (CSS × DPR) should roughly match the panel's specification; browsers round, so a few pixels of difference is normal
Designing or testing a responsive web pageViewport width in CSS pixels
Making an image look sharp on high-density screensDisplay width in CSS pixels × DPR (e.g. a 400 px wide image needs 1200 px on a DPR 3 phone)
Making a wallpaper or full-screen imagePhysical resolution
Reporting a layout bug to a websiteViewport, DPR and browser zoom level

Browser zoom changes the numbers too

Zooming a page in the browser works the same way as display scaling: at 200% zoom on a 1920-pixel monitor, the page sees a 960-pixel-wide viewport and a DPR of 2. If our tool shows a surprising DPR on a desktop, press Ctrl+0 (Cmd+0 on a Mac) to reset the zoom and check again.

Checking a new screen

Resolution tells you how many pixels a screen has, not whether they all work. For a new monitor or laptop, also run the dead pixel test, which fills the screen with solid colours so stuck or dead pixels stand out, ideally within the seller's return period.

Common questions

Can a website find out my exact monitor model?

Not through the standard screen properties; a browser may expose a display label only after you allow a permission prompt. Browsers expose the CSS screen size, the pixel ratio and colour depth, but not the model or the physical size in inches.

Why does my 4K monitor show 2560 × 1440?

Your operating system is probably scaling at 150%: 3840 ÷ 1.5 = 2560. The panel is still displaying 4K detail; the interface is just drawn larger.

What is a Retina display?

Retina is Apple's marketing name (a trademark of Apple Inc.) for screens dense enough that individual pixels are not visible at normal viewing distance. In web terms they are screens with a DPR of 2 or more.

References

  1. MDN: Window.devicePixelRatio
  2. MDN: Screen.width
  3. W3C CSS Values and Units Level 4: the CSS pixel (reference pixel)
  4. Playwright: device emulation and the built-in device list

Written and checked by Ria Kim for GlowHalo; figures without a source link come from the steps shown on this page. Companion tool: What Is My Screen Resolution. Spotted an error? Write to help@glowhalo.org. iPhone, macOS, Windows, Chromium, MacBook, iPad, Retina and Apple are trademarks of their owners; GlowHalo is not affiliated with them.

More guides

Hardware testsHow much of your reaction time score is actually your screen?A bot that reacts instantly still scored 0 to 17 ms on a 60 Hz display in our test. What that means for your result, and how to compare scores fairly.Read guide →Hardware testsSome key combinations don't register? Testing keyboard ghosting and rolloverOur browser test registered 26 keys held at once, so a limit you hit comes from the keyboard. How ghosting and rollover work, and a 5-minute test routine.Read guide →