What Is My Screen Resolution › Guides
Why a website says your 1080p screen is 1536 pixels wide: resolution, viewport and pixel ratio
Open the tool: What Is My Screen Resolution
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 157 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.
Every built-in profile, run through the tool
Seven profiles show the idea. To see how much devices vary, we ran our tool under every device profile in Playwright's built-in list, 207 in all counting the landscape versions, and copied the four figures at the top of the page each time. Leaving out the landscape versions and the seven desktop browser profiles left 100 phone and tablet profiles: 86 narrower than 600 CSS pixels, which we count as phones, and 14 at 600 or wider, which are twelve tablets plus the unfolded Galaxy Z Fold 6 and 7.
| Pixel ratio shown | Profiles |
|---|---|
| 1 to 1.5 | 4 |
| 2 | 24 |
| 2.25 to 2.75 | 15 |
| 3 | 50 |
| 3.5 to 4.5 | 7 |
- High density is the norm: 96 of the 100 profiles had a ratio of 2 or more, and 57 had 3 or more. The four below 2 were older models such as the Nokia N9 and the BlackBerry PlayBook.
- Phones are narrow in CSS pixels: phone screens ranged from 320 to 484 CSS pixels wide, with 393 in the middle; 360 was the most common width (17 profiles), then 412 (12). The physical widths our tool calculated for them ranged from 480 to 1442 pixels. A layout that works between 320 and 490 CSS pixels therefore covers every phone in the list, whatever its panel resolution.
- Uneven ratios leave fractions: for 14 profiles the screen size times the ratio was not a whole number, so the physical figure our tool shows is rounded. The Pixel 6, 6a, 7, 7a, 8 and 8a profiles all showed 1082 × 2402 (412 × 915 at 2.625), while their panels are 1080 × 2400.
- The page area is often shorter: on 53 profiles the browser window was the full width of the screen but shorter, because the profile reserves room for the browser and system bars. The largest gap was 193 CSS pixels, on every iPhone 15, 16 and 17 profile, including the 16e and 17e, and on the iPhone Air; the iPhone 17 profile, for example, has an 874-pixel-tall screen with 681 for the page.
- Ratios are stored as binary fractions: the Pixel 4a (5G) profile sets a ratio of 2.63, and the browser passed it on as 2.630000114440918, which our tool shows unrounded. That profile was also the only one whose window (512 × 951) came out larger than its screen (412 × 892). We saw this only in the emulated profile and did not establish its cause.
You can download every reading. The file is plain CSV with a header row: 210 device profiles as our tool showed them, with columns profile, mobile, screen_shown, browser_window_shown, pixel_ratio_shown and physical_pixels_shown. The first three rows are the desktop setups from the first table; the other 207 are the built-in profiles, including landscape versions. In 30 of the landscape rows, mostly iPhone profiles, the screen size keeps its portrait orientation because that is how the profile defines it.
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
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, Apple, Galaxy and Pixel are trademarks of their owners; GlowHalo is not affiliated with them.