Converter

PPI / DPI Calculator

Calculate pixels per inch from screen resolution and diagonal size. Compare your display density to iPhones, MacBooks, 4K monitors, and TVs.

Quick Answer

PPI = sqrt(width^2 + height^2) / diagonal inches. A 27" 4K monitor (3840x2160) has approximately 163 PPI.

163.2
Pixels Per Inch (PPI)
PPI163.18
Dot Pitch0.156 mm
Diagonal Px4406 px
Total Pixels8.29 MP (8,294,400)
Screen Size23.5 x 13.2 inches

Comparison to Common Devices

DevicePPISizevs Yours
iPhone 15 Pro4606.1"-64.5%
iPhone 15 Pro Max4606.7"-64.5%
iPad Pro 12.9"26412.9"-38.2%
MacBook Air 13 M322413.6"-27.2%
MacBook Pro 14 M325414.2"-35.8%
iMac 24"21823.5"-25.1%
Dell U2723QE 27" 4K16327"+0.1%
Samsung 32" 4K13831.5"+18.2%
LG C3 55" 4K TV8055"+104.0%
LG C3 65" 4K TV6865"+140.0%
Samsung Galaxy S24 Ultra5056.8"-67.7%
Steam Deck OLED2047.4"-20.0%

About This Tool

The PPI / DPI Calculator computes the pixel density of any display from its resolution and physical screen diagonal. Pixel density — measured in pixels per inch (PPI) — determines how sharp text, images, and UI elements appear on screen. A higher PPI means individual pixels are smaller and closer together, making them harder to distinguish with the naked eye. This tool gives you an instant PPI reading along with dot pitch, total megapixels, and physical screen dimensions, plus a side-by-side comparison to popular devices so you can see where your display falls on the sharpness spectrum.

How PPI Is Calculated

The formula is straightforward: PPI equals the diagonal pixel count divided by the diagonal physical size in inches. The diagonal pixel count is the hypotenuse of the rectangle formed by the horizontal and vertical pixel counts, calculated using the Pythagorean theorem: diagonal pixels = sqrt(width^2 + height^2). For a 3840x2160 display at 27 inches, that is sqrt(3840^2 + 2160^2) / 27 = sqrt(14,745,600 + 4,665,600) / 27 = 4415.9 / 27 = 163.6 PPI.

PPI vs DPI: Clearing Up the Confusion

PPI and DPI are frequently used interchangeably, but they refer to different things. PPI describes screen displays — how many pixels are packed into each inch of screen. DPI describes print output — how many ink dots a printer places per inch on paper. When someone says a monitor has "high DPI," they technically mean high PPI. The confusion is so widespread that even operating systems use the wrong term (Windows calls its scaling feature "DPI scaling"). For clarity, use PPI for screens and DPI for printers.

What Makes a Display "Retina" Quality?

Apple coined the term "Retina display" to describe screens where individual pixels cannot be distinguished at a normal viewing distance. The threshold depends on how far away you hold the device. For phones (10-12 inches), Retina quality starts around 300 PPI. For tablets (15-18 inches), approximately 264 PPI. For laptops (18-24 inches), around 218 PPI. For desktop monitors (24-30 inches), approximately 200 PPI. A 4K TV at 80 PPI looks perfectly sharp from a couch because it is viewed from 6-10 feet away. Context is everything when evaluating pixel density.

Practical Applications for Designers and Developers

Understanding PPI is crucial for creating assets that look sharp on every device. On a 2x display (220 PPI MacBook), a 100px CSS image renders across 200 physical pixels. If you serve only a 100px raster image, it looks blurry. The solution is to provide 2x images (200px for 100px display size) or use vector formats like SVG. The srcset attribute in HTML and the image-set() function in CSS let you serve different resolutions to different devices automatically. Always design at the highest density you plan to support, then scale down.

Choosing a Monitor Based on PPI

For general office work and web browsing, 96-110 PPI (1080p at 24 inches) is adequate. For design and development work where text clarity matters, 140-165 PPI (4K at 27-32 inches) is the sweet spot. For the sharpest possible desktop experience, 218 PPI (Apple Studio Display at 27 inches or LG 5K at 27 inches) is the current gold standard. Higher PPI requires more GPU power to drive, so balance pixel density against your computer's graphics capability, especially if you use multiple displays.

Mobile Display Density

Modern smartphones have the highest PPI of any consumer displays, ranging from about 400 PPI (budget phones) to over 500 PPI (flagship phones like Samsung Galaxy S24 Ultra at 505 PPI). At these densities, individual pixels are completely invisible regardless of how closely you look. The real differentiators between phone displays are now brightness, color accuracy, refresh rate, and OLED versus LCD technology rather than raw pixel density. Most phones crossed the threshold of "indistinguishable pixels" years ago.

Frequently Asked Questions

What is PPI and how is it calculated?
PPI (pixels per inch) measures the pixel density of a display. It is calculated with the formula: PPI = sqrt(width^2 + height^2) / diagonal. For example, a 3840x2160 display with a 27-inch diagonal: sqrt(3840^2 + 2160^2) = 4415.9 pixels diagonal, divided by 27 inches = 163.5 PPI. Higher PPI means smaller, sharper pixels and more detailed images. Apple considers 218+ PPI as Retina quality for desktop displays.
What is the difference between PPI and DPI?
PPI (pixels per inch) refers to screen pixel density — the number of pixels packed into one inch of display. DPI (dots per inch) technically refers to printer output — the number of ink dots per inch on paper. In everyday usage, people often use DPI when they mean PPI for screens, but they are technically different measurements for different media. For print work, 300 DPI is the standard for high-quality output. For screens, PPI varies from about 70 (large TVs) to 500+ (flagship phones).
What PPI is considered Retina or high-DPI?
Apple defines Retina as a display where individual pixels are indistinguishable at a typical viewing distance. This works out to roughly 218+ PPI for laptops held at arm's length, 264 PPI for tablets, and 326+ PPI for phones. The key insight is that viewing distance matters: a 55-inch 4K TV at 80 PPI looks perfectly sharp from a couch 8 feet away, but a 27-inch monitor at 80 PPI would look pixelated at desk distance. For desktop monitors, 110+ PPI is standard, 163+ PPI (4K 27-inch) is high-DPI, and 218+ PPI is Retina quality.
Does higher PPI always mean better display quality?
Higher PPI means sharper text and images, but it is not the only factor in display quality. Color accuracy (measured by Delta E), contrast ratio, brightness (nits), color gamut coverage (sRGB, DCI-P3, Adobe RGB), and panel technology (IPS, OLED, VA) all contribute to perceived quality. A 163 PPI display with excellent color accuracy and OLED contrast will often look better in practice than a 200 PPI display with poor color reproduction. Beyond about 300 PPI at typical viewing distances, the human eye cannot distinguish individual pixels, so further increases yield diminishing returns.
How does PPI affect web and UI design?
High-PPI displays require higher-resolution assets to look sharp. On a 2x Retina display, a 100x100 CSS pixel image actually renders at 200x200 physical pixels. If you only provide a 100x100 image, it will look blurry. Best practices include using SVG for icons and logos (infinitely scalable), providing 2x and 3x raster images via srcset, using CSS media queries for resolution (min-resolution: 2dppx), and testing designs on both standard and high-DPI displays.
What is dot pitch?
Dot pitch is the physical distance between the centers of two adjacent pixels, measured in millimeters. It is the inverse of PPI: dot pitch = 25.4mm / PPI. A 163 PPI display has a dot pitch of 0.156mm. Smaller dot pitch means finer detail and sharper images. In the CRT era, dot pitch was the primary spec for display sharpness. For modern LCD and OLED displays, PPI has largely replaced dot pitch as the standard metric, though dot pitch remains relevant for LED video walls and large-format displays.

Was this tool helpful?