Skip to the content

What Is My Screen Resolution?

Your screen size, browser window, pixel density and color depth.

Screen resolution
–
physical pixels
Screen in CSS pixels
–
the size websites measure with
Browser window
–
the viewport, in CSS pixels
Pixel ratio
–
physical pixels per CSS pixel, each way

Measuring your screen…

The physical resolution is worked out as CSS pixels × pixel ratio. That is only right while the page is at 100% zoom. Resize or zoom the window and the numbers follow.

Share this tool:TwitterFacebookLinkedInWhatsAppEmail

Two kinds of pixels

A screen has physical pixels: the dots of light it is built from. Websites do not count in those. They count in CSS pixels, a unit that is meant to look about the same size on every device.

On an old-fashioned monitor the two are equal. On a sharper screen one CSS pixel is drawn with several physical ones, and the device pixel ratio says how many in each direction. A phone that is 390 CSS pixels wide with a ratio of 3 has 390 × 3 = 1170 physical pixels across. That is an iPhone 14: 390 × 844 to a web page, 1170 × 2532 on the box.

Laptops do the same more quietly. Windows often ships with display scaling at 125% or 150%, which is a ratio of 1.25 or 1.5. A 1920 × 1080 laptop at 125% tells websites it is 1536 × 864.

Layouts and media queries work in CSS pixels. Images need physical ones: a picture shown 300 CSS pixels wide on a 2× screen has to be 600 pixels wide to look sharp.

Why the browser window is smaller than the screen

The browser window above is the viewport, the area a page can draw in. Tabs, the address bar and toolbars take room, and so do the taskbar, dock or menu bar of your system. The available screen area in the list is the screen without those system bars. And the window may not be maximized.

The viewport width includes the scrollbar when there is one, because CSS media queries use that width too. On a phone the height changes while you scroll, as the address bar slides away.

Zoom changes the numbers

Zoom the page to 200% and the viewport becomes half as wide in CSS pixels: the window is the same, but every CSS pixel now covers twice as many physical ones. Chrome, Edge and Firefox report that as a doubled pixel ratio.

Browsers have no way to ask for the physical resolution directly, so it is calculated here as CSS pixels × pixel ratio. With the page zoomed that sum can come out wrong. Set the zoom back to 100% (Ctrl + 0, or Cmd + 0 on a Mac) to read the real value.

A Mac set to a "scaled" display mode is the other case where the sum is off. macOS then draws the picture at a different size than the panel has and scales it to fit, and the browser reports the size it was drawn at.

The breakpoints

The last two rows say which breakpoint of Tailwind CSS and Bootstrap applies at the current window width. Both switch at a minimum viewport width in CSS pixels:

Tailwind CSSBootstrap 5
sm640576
md768768
lg1024992
xl12801200
2xl / xxl15361400

Drag the edge of the window and watch the row change to find the width at which a layout switches. These are the defaults; a project can define its own.

Color depth and touch

Color depth is the number of bits per pixel. 24 means 8 bits each for red, green and blue, about 16.7 million colors, and 30 means 10 bits each. Some browsers answer 24 whatever the screen can do, so read it as an indication. The touch screen row shows what the browser reports; "not reported" does not prove there is none.