PPI Calculator (Pixels Per Inch)

Enter a display's horizontal and vertical resolution plus its diagonal screen size to calculate pixel density (PPI), pixel pitch, diagonal resolution, and aspect ratio using the standard diagonal PPI formula.

Quick Facts

Formula
PPI = √(width_px² + height_px²) ÷ diagonal inches
The same diagonal method rates phone, tablet, and monitor screens.
Pixel pitch
25.4 ÷ PPI = millimeters per pixel
A smaller pixel pitch means a visually sharper display.

Your Results

Calculated
Pixel density (PPI)
-
Pixels per inch, diagonal method
Diagonal resolution
-
Total pixels along the diagonal
Pixel pitch
-
Physical width of one pixel
Aspect ratio
-
Simplified width:height ratio

Ready

Enter your screen resolution and diagonal size, then press Calculate.

Understanding the PPI Calculator

PPI, or pixels per inch, measures how densely a display packs its pixels — the higher the PPI, the sharper text and images look at a given viewing distance, since more pixels are used to render the same physical area. The calculator uses the standard diagonal-resolution method: it treats the screen's horizontal and vertical pixel counts as the two legs of a right triangle and finds the diagonal pixel count with the Pythagorean theorem, then divides by the diagonal screen size in inches.

The formula

For a display with a horizontal resolution of W pixels, a vertical resolution of H pixels, and a diagonal screen size of D inches:

  • Diagonal resolution (pixels): √(W² + H²)
  • PPI: √(W² + H²) ÷ D
  • Pixel pitch (mm): 25.4 ÷ PPI — the physical width of one pixel, since one inch equals 25.4 millimeters
  • Aspect ratio: W and H divided by their greatest common divisor, written as W:H

For example, a 24-inch monitor at 1920×1080 has a diagonal resolution of √(1920² + 1080²) ≈ 2203 pixels, giving a PPI of about 2203 ÷ 24 ≈ 91.8 — typical for a full-HD desktop monitor. A 6.1-inch phone screen at 1170×2532 works out to roughly 458 PPI, well into the density range marketed as "Retina" or HiDPI.

What counts as a high-density display?

There is no official cutoff, but a few reference points are widely used in the display industry: screens below about 100 PPI are common on older or larger low-resolution monitors, 150-220 PPI is typical of modern laptop and desktop panels, and phone and tablet screens above roughly 220-300 PPI are usually marketed as Retina-class or HiDPI because individual pixels become difficult to distinguish at normal viewing distance. Many current smartphones exceed 400 PPI, approaching the ~300 DPI often used as a print-quality benchmark.

Why viewing distance matters

PPI alone does not determine how sharp a screen looks in practice — viewing distance does too. A phone held close to the eyes needs a much higher PPI to look equally sharp as a TV viewed from across a room, because the same pixel subtends a smaller visual angle up close. That is why TVs can ship with far lower PPI than phones without looking noticeably pixelated.

Frequently Asked Questions

What is the formula for PPI (pixels per inch)?
PPI equals the diagonal resolution in pixels divided by the diagonal screen size in inches: PPI = √(width² + height²) ÷ diagonal inches. The diagonal pixel count comes from applying the Pythagorean theorem to the horizontal and vertical resolution.
What is pixel pitch and how does it relate to PPI?
Pixel pitch is the physical width of a single pixel, in millimeters. It is the metric inverse of PPI: pixel pitch (mm) = 25.4 ÷ PPI. A smaller pixel pitch means pixels are packed more tightly, which generally makes a display look sharper at a given viewing distance.
What PPI counts as a Retina or high-density display?
There is no single legal threshold, but displays above roughly 220 PPI are commonly marketed as Retina-class or HiDPI, and modern phone screens often exceed 300-400 PPI, which approaches standard 300 DPI print resolution. Older desktop monitors typically fall in the 90-110 PPI range.
Does PPI depend on aspect ratio, not just size?
Yes. PPI is calculated from both the resolution and the diagonal size, so two screens with the same diagonal size but different resolutions or aspect ratios will have different PPI values. A wider aspect ratio at a fixed diagonal size generally means a shorter screen height, which changes the diagonal pixel count and the resulting PPI.