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
- Physical resolution is the number of actual light-emitting dots on the panel, the number on the box.
- Device pixel ratio (DPR) is how many physical pixels make up one CSS pixel along each side. It comes from the operating system's display scaling (on Windows) or is fixed by the manufacturer (on phones and Macs).
- CSS pixels are the unit web pages are laid out in. The screen size reported to websites (
screen.width) and the size of the browser's content area (the viewport,innerWidth) are both in CSS pixels.
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.
| Profile | Screen (CSS px) | Viewport (CSS px) | DPR | Physical px (calculated) |
|---|---|---|---|---|
| Desktop monitor 1920 × 1080, 100% scaling | 1920 × 1080 | 1920 × 937 | 1 | 1920 × 1080 |
| Laptop 1920 × 1080, Windows 125% scaling | 1536 × 864 | 1536 × 730 | 1.25 | 1920 × 1080 |
| MacBook-style display, default "looks like 1440 × 900" | 1440 × 900 | 1440 × 789 | 2 | 2880 × 1800 |
| iPhone 15 Pro | 393 × 852 | 393 × 659 | 3 | 1179 × 2556 |
| iPhone SE (1st gen. profile) | 320 × 568 | 320 × 568 | 2 | 640 × 1136 |
| Pixel 7 | 412 × 915 | 412 × 839 | 2.625 | 1082 × 2402 |
| iPad (7th gen.) | 810 × 1080 | 810 × 1080 | 2 | 1620 × 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?
| Task | Number to use |
|---|---|
| Checking if a monitor runs at its native resolution | Physical 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 page | Viewport width in CSS pixels |
| Making an image look sharp on high-density screens | Display 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 image | Physical resolution |
| Reporting a layout bug to a website | Viewport, 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
- MDN: Window.devicePixelRatio
- MDN: Screen.width
- W3C CSS Values and Units Level 4: the CSS pixel (reference pixel)
- 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.