Screen Size and Pixel Density
A stated screen size is usually the diagonal of the active rectangle, not the outer plastic. For a diagonal D and a ratio A:B, width is D × A / sqrt(A² + B²) and height is D × B / sqrt(A² + B²). The screen calculator uses that geometry and then counts pixels.
A 27-inch 16:9 panel
The denominator is sqrt(256 + 81), which is sqrt(337). Width is 432 / sqrt(337), about 23.53 inches. Height is 243 / sqrt(337), about 13.24 inches. The area is the product of those sides. Bezels, stands, and curved-cover glass are outside the model.
Density of 3840×2160
Diagonal pixels are sqrt(3840² + 2160²), about 4405.81. Divide by 27 inches and the density is about 163.18 PPI. Pixel pitch is 25.4 / PPI, about 0.156 millimeters. That figure assumes the physical ratio and the pixel ratio agree, so the pixels are square. If you type a 21:9 ratio under a 16:9 pixel grid, the page warns you and reports horizontal and vertical densities separately.
Resolution pairs that are easy to misname
The reference table includes 640×480, 800×600, 1024×768, 1280×720, 1280×800, 1366×768, 1600×900, 1920×1080, 1920×1200, 2560×1080, 2560×1440, 3440×1440, 3840×2160, 4096×2160, 5120×2880, and 7680×4320. Each row shows the exact simplified ratio. 1366×768 is 683:384. 4096×2160 is 256:135. They are not interchangeable with 1920×1080 or with each other. The table does not recommend a product.
CSS pixels and device pixel ratio
A layout box of 400 by 300 CSS pixels at a device pixel ratio of 2 suggests an 800×600 raster if you want one device pixel per photograph pixel. Ratios of 1, 1.25, 1.5, 2, 2.5, 3, and 4 are only presets. Browser zoom and operating-system scaling can change the reported value. The button that reads the current browser value fills the field locally. It is not a fingerprint and it is not the measured width of the glass.
Questions
- Does a higher PPI mean a better display?
- No. Brightness, color, refresh, and viewing distance are separate facts.
- Should I include the bezel?
- Not in this calculation. Add it only if you measured the enclosure yourself.
Using a row from the table
Choose Use resolution on any row and the pixel pair is copied into the ratio calculator and, on the same page, into the density fields. Copy dimensions if you only need the text. Compare two resolutions by loading one, noting its exact ratio, then loading the other. 1920×1080 and 3840×2160 are both 16:9, so the ratio matches even though the pixel count quadruples: 2,073,600 versus 8,294,400. 1920×1200 is 8:5, the same family as 1280×800, and it is not 16:9. 2560×1440 is 16:9 again. 5120×2880 and 7680×4320 are also 16:9. The megapixel column is the pixel count divided by one million, which is a size, not a quality grade.
If you only know the diagonal and the ratio, leave the pixel fields at a real grid before you trust the PPI line. Density without a pixel count is undefined. If you only know the pixels, the ratio and the megapixel count are still valid, and the inch width stays blank until a diagonal is entered. That separation keeps a resolution nickname from being treated as a measured screen.
Pixel pitch is a convenience, not a viewing test. At 163 PPI the pitch is about 0.156 mm, which tells you how far apart the pixel centers are on that assumed rectangle. It does not tell you the subpixel layout, the coating, or whether the panel was measured with the bezel included. If a manufacturer publishes a different active area, use that diagonal rather than forcing the formula to match a box size. The calculator will follow the numbers you type.
See also responsive files and the screen tool.