WhatsMyRes
Display Basics5 min read · Updated 2026-11-27

CSS Pixels vs. Physical Pixels: Why Your Browser Reports a Lower Resolution

One of the most common surprises when opening a screen resolution checker is seeing a number much smaller than the resolution printed on your laptop or phone box. A MacBook Pro 14″ with a 3024×1964 panel reports 1512×982; an iPhone 16 with a 1179×2556 OLED reports 393×852. Nothing is broken — that gap is how high-density screens keep text readable.

What is a CSS pixel?

Early monitors hovered near 96 pixels per inch (PPI), so 1 pixel in CSS roughly equaled 1 physical LED dot on the screen. When smartphones and Retina laptops jumped past 220–460 PPI, drawing a 16-pixel font at 1:1 hardware pixels would make it microscopic.

To keep web pages physically comfortable across every screen density, operating systems and browsers introduced logical pixels (called CSS pixels on the web, points on Apple platforms, and density-independent pixels or dp on Android). A CSS pixel represents a consistent visual size rather than a single hardware pixel.

How Device Pixel Ratio (DPR) connects the two

Device Pixel Ratio (window.devicePixelRatio) is the multiplier linking CSS pixels to physical pixels along each axis. At 2× DPR, every single CSS pixel is backed by a 2×2 block of 4 physical pixels. At 3× DPR on flagship phones, every CSS pixel uses a 3×3 block of 9 physical pixels — producing razor-sharp typography while keeping layouts cleanly proportioned.

Device / SetupNative panelOS scaling / DPRBrowser CSS screen
24″ Full HD monitor1920 × 1080100% (1×)1920 × 1080
27″ 4K monitor (Windows)3840 × 2160150% (1.5×)2560 × 1440
MacBook Pro 14″ (default)3024 × 1964Retina 2×1512 × 982
iPhone 16 Pro1206 × 26223× Retina402 × 874
Pixel 91080 × 24242.625×412 × 924

See your own CSS resolution, DPR & native pixels →

How browser zoom shifts both numbers

Zooming a web page in (Cmd++ or Ctrl++) increases the effective device pixel ratio and shrinks the reported CSS viewport and screen width — because each CSS pixel now spans more hardware pixels. If you need an unzoomed reading for a bug report or display check, reset browser zoom to 100% with Cmd+0 (macOS) or Ctrl+0 (Windows).

Screen resolution vs. viewport size

Even at 100% zoom, your browser viewport (window.innerWidth × window.innerHeight) is smaller than your screen size (window.screen.width × window.screen.height). The OS taskbar or dock, window title bar, tabs, address bar, bookmarks bar, and developer tools all subtract from the viewport.

Responsive CSS media queries (@media (min-width: 768px)) and frameworks like Tailwind (sm, md, lg, xl, 2xl) evaluate viewport width in CSS pixels — never hardware pixels. That is why a 1320×2868 iPhone Pro Max still triggers mobile CSS styles: its CSS viewport width is 440px, well below the 640px sm breakpoint.

Measure your live browser viewport & Tailwind breakpoint →

When does macOS 'scaled' mode break the simple multiply formula?

On macOS, picking a non-integer scaled mode (like 'More Space' on a MacBook Air 13″, which defaults to 1470×956 on a 2560×1664 panel) causes macOS to render an oversized 2× virtual framebuffer (2940×1912) and downsample it smoothly to the hardware panel. In that case, CSS × DPR reports the virtual framebuffer rather than the raw glass — a helpful nuance to keep in mind when reading browser diagnostics.

Frequently asked questions

Does a higher DPR mean my screen is lower resolution?
The opposite — a higher DPR (2×, 3×) means your screen packs far more physical pixels into the same physical space, so text, vector icons, and high-res photos look dramatically sharper.
Which resolution should I use when downloading wallpapers?
Always match or exceed your Native resolution (physical pixels), not the CSS resolution. A wallpaper sized only to CSS pixels will be upscaled 2× or 3× and look soft on a Retina or 4K screen.
Which resolution matters for CSS media queries and web design?
CSS viewport width (in CSS pixels) is what media queries match. Check your exact device page under Resolutions & Devices to see both native pixels and CSS viewport sizes side by side.

Tools mentioned in this guide

More display guides