Screen Resolution Test
See your screen resolution, viewport, device pixel ratio and aspect ratio, and how they relate.
Enter your screen's diagonal below to estimate its pixel density in PPI; this is screen DPI, not mouse DPI. A browser cannot measure physical size, so on its own it only has the CSS convention of 96 pixels per inch.
Reading what the browser reports…
Hold a real ruler against these. If they match, 96 CSS pixels on your screen measure one real inch. Most screens do not, which is normal.
A browser cannot measure the physical size of your screen, so it cannot know the true DPI on its own. Everything above is calculated from values the browser reports.
A CSS pixel is the unit web pages are laid out in, and the CSS specification defines 96 of them as one inch. That definition is a convention for layout, not a measurement of your screen.
A physical pixel is one of the light-emitting dots in the panel, fixed by the hardware. Operating system scaling and browser zoom decide how many of them each CSS pixel covers.
The device pixel ratio is how many physical pixels wide one CSS pixel is, so a ratio of 2 draws each CSS pixel as a 2 × 2 block. Scaling of 150 percent gives 1.5, and most desktop browsers multiply it further by the page zoom.
Runs entirely in your browser. Test results, audio and video never leave your device.
Screen DPI, more precisely PPI (pixels per inch), is the number of pixels along one inch of a display. It follows from two numbers: the native resolution and the physical size of the screen. A browser can report the resolution but not the size, so a true figure needs the diagonal from the screen's specifications.
DPI means different things for screens, mice and printers. This page covers screens only.
| Term | What it means | Where to find it |
|---|---|---|
| Screen DPI (PPI) | Pixels per inch of a display, fixed by its resolution and size | Calculated on this page from the diagonal and resolution |
| Mouse DPI (CPI) | How many counts the mouse sensor reports per inch of movement; a higher value moves the pointer further for the same hand movement | The mouse's specifications or its maker's software, or an estimate from the Mouse DPI Test. The Mouse Test checks buttons, scrolling and pointer movement, not DPI |
| Print DPI | Ink dots per inch on paper, or the print size setting stored in an image file | The printer or image settings |
Divide the number of pixels along the diagonal by the diagonal in inches: PPI = √(width² + height²) ÷ diagonal. Use the native resolution, not a scaled one. For a 15.6-inch 1920 × 1080 laptop, √(1920² + 1080²) ≈ 2203 pixels, and 2203 ÷ 15.6 ≈ 141 PPI.
| Screen | Resolution | Pixel density |
|---|---|---|
| 14-inch laptop | 1920 × 1200 | ≈ 162 PPI |
| 15.6-inch laptop | 1920 × 1080 | ≈ 141 PPI |
| 24-inch monitor | 1920 × 1080 | ≈ 92 PPI |
| 27-inch monitor | 1920 × 1080 | ≈ 82 PPI |
| 27-inch monitor | 2560 × 1440 | ≈ 109 PPI |
| 27-inch monitor | 3840 × 2160 | ≈ 163 PPI |
| 32-inch monitor | 3840 × 2160 | ≈ 138 PPI |
| 34-inch ultrawide | 3440 × 1440 | ≈ 110 PPI |
The page reads the device pixel ratio and the screen size in CSS pixels. The physical resolution is the screen size multiplied by the ratio and rounded. The calculator divides the diagonal in pixels, √(width² + height²), by the diagonal you enter, from 3 to 100 inches, using that resolution or the one you type. Pixel pitch is 25.4 mm ÷ PPI, and the visible area is each side in pixels ÷ PPI. The nominal density is 96 × the ratio.
The rulers are 6 inches and 15 centimeters long in CSS units, so the browser draws them at 96 CSS px per inch (576 px) and about 37.8 per centimeter (567 px). Values refresh on resize, when the ratio changes, and every second.
Because CSS defines an inch as 96 CSS pixels, whatever the screen. The ruler matches a real one only when the pixel density equals 96 × the device pixel ratio. On a 15.6-inch 1920 × 1080 laptop at 125 percent scaling, each ruler inch comes out about 0.85 inches long.
Check the model's specifications, or measure the visible screen area diagonally from corner to corner. Screens are sold by that diagonal. A website cannot read the physical size: browsers report pixels only.
A screen dense enough that the system draws each interface pixel with more than one physical pixel, so text keeps its size but looks sharper. A device pixel ratio above 1 at 100 percent zoom means your system treats the screen this way; the Screen Resolution Test explains the ratio. Retina is Apple's name for its own high-density screens.
Yes, at the same viewing distance: smaller pixels make text and edges look smoother. Viewing distance matters too, which is why a TV with far fewer pixels per inch than a phone can look just as sharp from across the room.
Usually because the note shows a resolution that is not the native one, as with browser zoom or a scaled display mode on a Mac. Type the native resolution into the Resolution boxes to rule that out. Specifications also round the diagonal, so a small difference is still normal.