Skip to content
OverCalculator
  1. Home
  2. Math & Scientific
  3. PPI Calculator
Math & Scientific

PPI Calculator

Calculate display pixels per inch from pixel width, pixel height, and diagonal size, with aspect ratio, pixel diagonal, and screen area context.

Published

Pixel density
PPI
141.21
Aspect ratio
16:9
Screen area
103.99 sq in
Pixel diagonal
2,202.91 px

A PPI of 141.21 means there are 141.21 pixels per inch on the display.

px
px
in

Results update as you type.

PPI Calculator

A PPI calculator converts a screen’s pixel resolution and physical diagonal into pixels per inch, the standard shorthand for display pixel density. The result helps compare laptop panels, phones, monitors, tablets, image previews, and design targets where the same resolution can look sharp on one size and coarse on another.

What pixels per inch measures

Pixels per inch is a linear density: how many individual pixels lie along one inch of screen length. It is commonly written as PPI for displays and images, while print discussions often use DPI for dots per inch. The numbers can look similar, but a display pixel and a printed ink dot are not the same physical object. It is not the total number of pixels and not the physical screen size by itself. A 1920 by 1080 phone would have far higher PPI than a 1920 by 1080 television because the same pixel grid is compressed into a much smaller diagonal.

The calculator also reports aspect ratio, screen area in square inches, and pixel diagonal. Aspect ratio describes the shape of the grid, such as 16:9. Screen area gives physical size context. Pixel diagonal is the diagonal length of the pixel grid before it is divided by the physical diagonal. If you need to convert physical measurements first, use the length calculator. For proportional resizing, the scale converter calculator is a useful companion.

Formula and variable definitions

The pixel grid forms a right triangle: width in pixels is one leg, height in pixels is the other leg, and the diagonal in pixels is the hypotenuse. The calculator uses:

pixel diagonal=width2+height2\text{pixel diagonal} = \sqrt{\text{width}^2 + \text{height}^2}

Then it divides by the physical diagonal size:

PPI=pixel diagonaldiagonal size\text{PPI} = \frac{\text{pixel diagonal}}{\text{diagonal size}}

where:

  • width\text{width} is the horizontal resolution in pixels.
  • height\text{height} is the vertical resolution in pixels.
  • pixel diagonal\text{pixel diagonal} is the diagonal resolution in pixels.
  • diagonal size\text{diagonal size} is the physical screen diagonal in inches.
  • PPI\text{PPI} is pixels per inch.

The screen area shown by the calculator is derived from the same geometry. It estimates physical width and height from the diagonal and the pixel aspect, then multiplies those physical dimensions. The aspect ratio is reduced by the greatest common divisor of the pixel width and height.

Example: calculating pixel density

Consider a 1920 by 1080 display with a 15.6 inch diagonal. First calculate the pixel diagonal:

pixel diagonal=19202+10802=4,852,800=2202.907170\text{pixel diagonal} = \sqrt{1920^2 + 1080^2} = \sqrt{4{,}852{,}800} = 2202.907170\ldots

Now divide by the physical diagonal:

PPI=2202.90717015.6=141.2120\text{PPI} = \frac{2202.907170\ldots}{15.6} = 141.2120\ldots

Rounded like the calculator, the display is 141.21 PPI. The aspect ratio is 16:9 because both 1920 and 1080 reduce by a common divisor of 120. The calculator also reports a pixel diagonal of 2202.91 px and a screen area of 103.99 sq in for this example. That area is not entered directly; it is inferred from the diagonal and aspect ratio, so rounding can differ slightly from manufacturer dimensions.

Interpreting PPI in real devices

PPI is most useful when comparing displays viewed from similar distances. A phone held close to the eyes benefits from very high density. A desktop monitor sits farther away, so a lower PPI can still look crisp. A television is farther away again, which is why a large 4K TV can have lower PPI than a small laptop while still appearing detailed from a couch.

Designers use PPI to reason about how much physical space an interface may occupy, but modern operating systems often apply scaling. A high-PPI laptop may render text at a comfortable physical size by mapping one CSS or logical pixel to multiple hardware pixels. Photographers and print designers should be careful not to confuse display PPI with print DPI. A file’s pixel dimensions, print size, and printer dot behavior are related but not identical.

For very large image dimensions, the scientific notation calculator can make pixel counts easier to read. For percent-based scale changes, the percentage increase calculator can help describe how much density changes when moving between devices.

Domain, edge cases, and common mistakes

Width and height must be positive whole-pixel counts. A screen cannot have 1920.5 horizontal pixels. Diagonal size must be positive and is measured in inches, because PPI is explicitly per inch. If you enter centimeters as though they were inches, the density will be wrong by a factor of 2.54.

A resolution label such as 1080p, 1440p, or 4K does not determine PPI without screen size. Likewise, diagonal size alone says nothing about sharpness. The same 27 inch monitor can be low-density at 1920 by 1080, moderate at 2560 by 1440, and much denser at 3840 by 2160. Also remember that PPI is linear. Doubling PPI roughly quadruples pixels per square inch, which can increase graphics workload and affect battery life.

Sources

  • Wolfram MathWorld, Pythagorean Theorem — right-triangle relationship used for the pixel diagonal.
  • W3C, CSS units — practical distinction between screen units, pixels, and physical units in web display contexts.
  • NIST, SI Units — unit-system context for length measurements and conversions.

Frequently asked questions

What does PPI mean?
PPI means pixels per inch. It describes how many display pixels fit along one physical inch of the screen. Higher PPI means pixels are packed more densely, which can make text and images look sharper at the same viewing distance.
How do I calculate PPI for a monitor?
Find the diagonal pixel count from the horizontal and vertical resolution using the Pythagorean theorem. Then divide that pixel diagonal by the physical diagonal size in inches. The calculator performs those steps from width, height, and diagonal size and rounds PPI to two decimals.
Why do two 1080p screens have different PPI?
They can have the same 1920 by 1080 pixel grid but different physical sizes. A smaller screen squeezes the same pixels into a shorter diagonal, raising PPI. A larger screen spreads those pixels out, lowering PPI and making individual pixels larger.
Is PPI the same as DPI?
Not exactly. PPI describes pixels per inch on a digital image or display. DPI traditionally describes printer dots per inch. People sometimes use the terms loosely, but display density and printer dot placement are different physical systems with different hardware limits.
Why must width and height be whole pixels?
A display's pixel grid has whole pixel counts in each direction. The calculator requires positive integers for width and height to match that physical reality. The diagonal size can be decimal because screens are commonly sold as fractional inch sizes.

Related calculators

PPI Calculator updated at