What Is Screen PPI and Why It Matters for Accurate Measurement

February 24, 20266 min read
PPIscreen technologycalibration

If you've ever tried to display a "real size" ruler on your screen, you've probably noticed something: the measurements are often wrong. A 10 cm line on one laptop appears as 9 cm on another. The reason comes down to a single number — your screen's PPI.

What PPI Means

PPI stands for Pixels Per Inch. It tells you how many tiny dots (pixels) are packed into one inch of your screen's physical surface.

The formula is straightforward:

PPI = Diagonal Resolution (in pixels) / Diagonal Screen Size (in inches)

Where diagonal resolution is calculated as:

Diagonal Resolution = sqrt(width_pixels^2 + height_pixels^2)

For example, an iPhone 15 Pro has a 6.1-inch screen with 2556 x 1179 pixels:

  • Diagonal resolution = sqrt(2556^2 + 1179^2) = 2815 pixels
  • PPI = 2815 / 6.1 = 461 PPI

A 24-inch desktop monitor at 1920 x 1080:

  • Diagonal resolution = sqrt(1920^2 + 1080^2) = 2203 pixels
  • PPI = 2203 / 24 = 92 PPI

The phone packs five times more pixels into each inch than the monitor. That difference is why you can see individual pixels on the monitor but not on the phone.

Why PPI Matters for On-Screen Measurement

When a website wants to show you a line that's "exactly 1 inch long," it needs to know how many pixels equal one physical inch on your specific screen. That number is the PPI.

The problem: Browsers don't reliably report the true PPI. The CSS specification defines 1 inch as 96 pixels — but that's a reference value, not your screen's actual PPI. On a 227 PPI MacBook display, drawing 96 pixels gives you about 0.42 inches, not 1 inch. The measurement would be off by more than half.

This is why on-screen rulers that skip calibration are inaccurate. They assume 96 PPI or use a rough estimate, and the results can be off by 10-50% depending on the device.

How Calibration Fixes This

Calibration bridges the gap between the browser's assumed pixel density and your screen's actual pixel density.

The approach used by Screen Ruler Online:

  1. You place a physical object with known dimensions on the screen — a credit card (85.6 mm wide), a US quarter (24.26 mm diameter), or another reference object
  2. You adjust a slider until the on-screen reference matches the physical object exactly
  3. The tool calculates the ratio between the known physical size and the number of pixels it spans
  4. All subsequent measurements use this calibrated ratio

This method works regardless of your device, operating system, or browser. It also accounts for browser zoom, display scaling, and sub-pixel rendering — things that make PPI-based calculations tricky.

PPI Across Different Devices

Here's how PPI varies across common device categories:

| Device Type | Typical PPI | Example | |-------------|------------|---------| | Desktop monitor (1080p, 24") | 92 | Dell P2419H | | Desktop monitor (4K, 27") | 163 | LG 27UK850 | | MacBook Air 13" | 227 | M2 MacBook Air | | MacBook Pro 16" | 254 | M3 Pro MacBook Pro | | iPad Pro 12.9" | 264 | iPad Pro 6th gen | | iPhone 15 | 460 | Standard model | | Samsung Galaxy S24 | 416 | Standard model |

Notice the range: from 92 PPI on a standard desktop monitor to 460+ PPI on flagship phones. A "1 inch" line displayed at 96 CSS pixels would look correct only on that one type of monitor — and wrong everywhere else.

PPI vs DPI vs Device Pixel Ratio

These terms are related but distinct:

PPI (Pixels Per Inch): The physical pixel density of a screen. Fixed by the hardware — you can't change it.

DPI (Dots Per Inch): Originally a printing term. In digital contexts, people often use DPI and PPI interchangeably, though technically DPI refers to printer output resolution.

Device Pixel Ratio (DPR): The ratio between CSS pixels and physical pixels. A DPR of 2 means each CSS pixel maps to a 2x2 grid of physical pixels. Apple's Retina displays typically have a DPR of 2 or 3.

For on-screen measurement, what matters is the combination of PPI and DPR. The browser reports dimensions in CSS pixels, but the physical size depends on PPI. The device pixel ratio acts as a multiplier:

Physical size = (CSS pixels * DPR) / PPI

This is why calibration is easier and more reliable than trying to calculate the correct size from PPI and DPR values — those numbers aren't always accurately reported by the browser.

How Screen Ruler Uses PPI

When you first visit Screen Ruler Online, the tool attempts to detect your device automatically. It maintains a database of 50+ popular devices (iPhones, Samsung Galaxy phones, iPads, Xiaomi, OPPO, and more) with their known PPI values.

If your device is recognized, the ruler starts with a pre-calibrated PPI estimate. But even then, calibration with a physical reference object is recommended because:

  • Browser zoom level affects the effective pixel density
  • Display scaling settings (like 125% or 150% scaling on Windows) change the CSS-to-physical pixel mapping
  • Some browsers round pixel values differently
  • Screen protectors and cases can slightly alter the perceived screen size

After calibration, the tool stores your settings locally (in your browser's storage) so you don't need to recalibrate on return visits — unless you change devices or browsers.

What "Good" PPI Looks Like

For general use, higher PPI means sharper text and images. But for measurement accuracy, PPI itself isn't what matters — calibration accuracy is.

A 92 PPI desktop monitor can produce measurements just as accurate as a 460 PPI phone, as long as calibration is done correctly. The lower PPI screen just has coarser "steps" — it can't subdivide a millimeter as finely.

In practice:

  • Above 150 PPI: Sub-millimeter precision is achievable with good calibration
  • 90-150 PPI: Millimeter-level accuracy is reliable; half-millimeter measurements become fuzzy
  • Below 90 PPI: Measurements are limited to the nearest 1-2 mm

For most practical purposes — measuring a ring, checking if a screw is the right length, verifying a printed photo's dimensions — millimeter accuracy is more than enough.

Summary

PPI is the reason your screen shows measurements differently from other screens. It's a hardware property that browsers don't reliably expose to web applications. Calibration — matching a known physical object to its on-screen representation — is the practical solution.

If you want accurate measurements on your screen, skip the math and calibrate directly. It takes ten seconds and works on any device.

Ready to measure something?

Try Screen Ruler Online — free, accurate, and works on any device.

Open Screen Ruler