Pixels Per Inch (PPI)
461.44
Formula
PPI = sqrt(width^2 + height^2) / diagonal
Device PPI Comparison
| Device | Category | Resolution | Size | PPI |
|---|---|---|---|---|
| iPhone 15 Pro | Phone | 2556 x 1179 | 6.1" | 461.4 |
| Samsung Galaxy S24 | Phone | 2340 x 1080 | 6.2" | 415.7 |
| iPad Pro 12.9" | Tablet | 2732 x 2048 | 12.9" | 264.7 |
| MacBook Pro 14" | Laptop | 3024 x 1964 | 14.2" | 253.9 |
| Dell UltraSharp 27" 4K | Monitor | 3840 x 2160 | 27" | 163.2 |
Calculators
PPI Calculator: Calculate Pixels Per Inch for Any Screen
PPI equals the square root of (width pixels squared + height pixels squared) divided by diagonal screen size in inches. A 27-inch 4K monitor has approximately 163 PPI.
Calculate PPI (Pixels Per Inch) for any screen. Enter resolution and screen size to find pixel density. Compare screens, monitors, phones, and tablets.
Overview
PPI equals the square root of (width pixels squared + height pixels squared) divided by diagonal screen size in inches. A 27-inch 4K monitor has approximately 163 PPI.
Calculate PPI (Pixels Per Inch) for any screen. Enter resolution and screen size to find pixel density. Compare screens, monitors, phones, and tablets.
How the PPI Calculator Works
PPI (pixels per inch) measures how tightly physical pixels are packed into a display. The calculator uses the Pythagorean theorem: PPI = sqrt(width-in-pixels squared + height-in-pixels squared) divided by the physical diagonal in inches. The square-root term gives the pixel-space diagonal of the panel, and dividing by the real diagonal converts that into pixels per inch. Because consumer displays use square pixels, the horizontal, vertical, and diagonal PPI values match, so a single number captures density across the screen.
A worked example: an iPhone 15 Pro has a 2556 x 1179 screen at 6.1 inches diagonal. Plugging into the formula, sqrt(2556^2 + 1179^2) = sqrt(6,533,136 + 1,390,041) = sqrt(7,923,177), or roughly 2815 pixels along the diagonal. Divide by 6.1 inches and you get about 461 PPI - comfortably within Apple's Retina threshold for phones. Compare this to a 27-inch 4K monitor at 3840 x 2160, which works out to 163 PPI, or a 24-inch 1080p monitor at 92 PPI. See the dpi-calculator for the same math applied to print terminology, and what-is-dpi plus pixels-per-inch for more context on the distinction between PPI and DPI.
When to Use the PPI Calculator
PPI drives the perceived sharpness of any display. Calculate it whenever pixel density will affect your buying, designing, or troubleshooting decisions.
- Comparing two laptops where one is 1080p and the other is 2.5K at the same panel size.
- Choosing between a 27-inch 1440p monitor (109 PPI) and a 27-inch 4K monitor (163 PPI).
- Picking a phone where screen crispness matters - 400+ PPI is the modern sweet spot.
- Evaluating VR headsets, where per-eye PPI drives the 'screen door' effect.
- Validating whether a display meets Retina thresholds (about 220 PPI for laptops at 20 inches, 300+ PPI for phones at 10-12 inches).
- Setting OS scaling factors on high-PPI monitors so text and UI remain readable.
Practical Examples
The table below lists PPI for popular devices, calculated directly from the formula above. Higher PPI values feel sharper at close viewing distances.
| Device | Resolution | Diagonal | PPI |
|---|---|---|---|
| iPhone SE (3rd gen) | 1334 x 750 | 4.7 in | 326 |
| iPhone 15 Pro | 2556 x 1179 | 6.1 in | 461 |
| Samsung Galaxy S24 Ultra | 3120 x 1440 | 6.8 in | 505 |
| iPad Pro 11-inch | 2388 x 1668 | 11 in | 264 |
| MacBook Air 13-inch (M2) | 2560 x 1664 | 13.6 in | 224 |
| MacBook Pro 16-inch | 3456 x 2234 | 16.2 in | 254 |
| Dell UltraSharp 27 4K (U2723QE) | 3840 x 2160 | 27 in | 163 |
| LG 34-inch UltraWide 1440p | 3440 x 1440 | 34 in | 110 |
| Samsung Odyssey G9 49-inch | 5120 x 1440 | 49 in | 108 |
Common Mistakes to Avoid
PPI is intuitive once you have calculated it a few times, but several subtle errors come up frequently.
- Using the device's rounded marketing size (e.g. 'a 14-inch laptop') instead of the true diagonal like 14.2 inches.
- Calculating with scaled resolution instead of native - macOS, for example, reports a lower logical resolution by default.
- Ignoring aspect ratio effects - an ultrawide and a standard 16:9 panel can have different PPI even at the same diagonal and horizontal pixel count.
- Assuming higher PPI always looks better - beyond 220 PPI at typical laptop distance, most users can no longer resolve individual pixels.
- Forgetting to account for subpixel arrangements like PenTile, which reduces perceived sharpness even if raw PPI is high.
- Comparing PPI between a 6-inch phone and a 27-inch monitor as if they are used at the same viewing distance - they are not.
Practical Quality Notes for PPI Calculator
This calculator is most helpful when the result is tied to a real workflow, not treated as a loose number. For PPI Calculator, verify physical screen size, pixel resolution, and whether you are comparing CSS pixels or device pixels. That context prevents the common mistake of copying a pixel value into a print, web, or CSS workflow where the reference size is different.
PPI Calculator should be checked with the formula, a realistic example, and the actual output requirement before you export or publish. If the number looks unexpectedly large or small, check the unit direction first, then check the DPI, base font size, viewport width, or physical measurement that controls the calculation.
A good review pass for PPI Calculator is simple: calculate once, compare against a known example, and preview the final output at the size people will actually see. PPI equals the square root of (width pixels squared + height pixels squared) divided by diagonal screen size in inches. A 27-inch 4K monitor has approximately 163 PPI.
Checks Before You Use the Result
- Confirm that PPI Calculator is using the same input unit your source file or design brief uses.
- Save the DPI, viewport, or font-size setting next to the final PPI Calculator value so another person can reproduce it.
- Preview the PPI Calculator output on the target medium before sending it to print, publishing it, or adding it to CSS.
- Recalculate PPI Calculator after resizing, cropping, changing aspect ratio, or changing the root font-size or viewport assumption.
When the Number Needs a Second Look
Recheck the result if the project moves from screen to print, from desktop to mobile, from one social platform placement to another, or from a draft export to a production file. Small context changes can make a correct PPI Calculator answer wrong for the final job.
Sources
Reference Sources
These external references support the page's conversion formulas, resolution guidance, and unit explanations.
w3.org
W3C: CSS Values and Units Module Level 4
Specification covering absolute lengths and resolution units such as px, in, cm, mm, pt, and dpi.
Visit source
developer.mozilla.org
MDN: CSS values and units
Reference guide for CSS measurement units and how browsers interpret physical and relative sizes.
Visit source
developer.mozilla.org
MDN: <resolution>
Reference for resolution units including dpi, dppx, and dpcm used in screen and print discussions.
Visit source
developer.mozilla.org
MDN: Window.devicePixelRatio
Explains the relationship between CSS pixels and physical device pixels on high-density displays.
Visit source
developer.mozilla.org
MDN: image-resolution
Explains how raster image resolution metadata interacts with CSS and print-oriented image workflows.
Visit source
Frequently Asked Questions
PPI (pixels per inch) measures the pixel density of a display screen. DPI (dots per inch) traditionally refers to print resolution. For screens, PPI and DPI are often used interchangeably, though PPI is the technically correct term for displays.
Apple's Retina standard means pixels are indistinguishable at typical viewing distance. For phones (held at 10-12 inches), this is about 300+ PPI. For laptops (18-24 inches), around 220+ PPI. For desktop monitors (24-30 inches), roughly 110+ PPI.
Phones are viewed much closer to the eye than monitors. A higher PPI is needed at close range to prevent visible pixels. A 460 PPI phone at 10 inches gives the same visual sharpness as a 110 PPI monitor at 24 inches.
Not necessarily. Beyond the point where individual pixels become invisible at your typical viewing distance, higher PPI provides diminishing returns. Other factors like color accuracy, contrast ratio, and brightness also determine display quality.
Enter your screen's resolution (found in display settings) and diagonal size (from device specifications) into the calculator. Alternatively, select a preset for common devices like iPhones, Samsung Galaxy phones, MacBooks, and Dell monitors.