ConverterHubsConverterHubs

Pixel Density Calculator — DPI, PPI & Retina Display Guide

A sharp icon on a standard display can look blurry on a Retina screen if you export at the wrong density. Pixel density determines how many physical screen pixels are used to render a single CSS pixel — and getting it wrong means your graphics look fuzzy on half your users' devices.

Calculate pixel density in DPI or PPI for any screen, image, or asset export. Understand the difference between physical pixels and CSS pixels. Plan your 1x, 2x, and 3x asset exports correctly for retina and super-retina displays.

1x = 96 DPI (standard), 2x = Retina (192 DPI), 3x = Super Retina (288 DPI).

Planning Assets for High-Density Displays

Pixel density (DPI/PPI) is the number of physical pixels per inch of screen. Modern high-DPI displays (Retina, AMOLED) pack 2× or 3× more physical pixels per inch than a standard screen, meaning a 100×100px image needs to be 200×200px or 300×300px to render sharply at those densities.

  1. 1Enter your display's screen resolution (width × height in pixels) and its physical diagonal size in inches.
  2. 2Calculate the PPI to understand your display's density class (1x, 2x, or 3x).
  3. 3Use the density class to determine which asset sizes to export for web, iOS, or Android projects.

PPI & Device Pixel Ratio Formula

PPI is calculated by dividing the diagonal pixel count by the physical screen size. Device Pixel Ratio (DPR) is then derived by comparing the screen PPI to the baseline 96 DPI standard.

PPI = √(Width² + Height²) ÷ Diagonal Inches DPR = Screen PPI ÷ 96 (baseline DPI) 2x = ~192 PPI (Retina), 3x = ~288 PPI (Super Retina)

Device Pixel Density Reference

Compare real-world display densities and their corresponding asset export requirements:

Device / Display ClassPPI / DPR & Export Requirement
Standard HD Monitor96 PPI | 1x | Export @1x assets
Apple MacBook Air (M2)224 PPI | 2x Retina | Export @2x
Apple MacBook Pro 14" (M3)254 PPI | 2x Retina | Export @2x
iPhone 15 / 15 Plus460 PPI | 3x Super Retina | Export @3x
iPhone 15 Pro / Pro Max460 PPI | 3x ProMotion | Export @3x
Samsung Galaxy S24416 PPI | 3x | Export @3x
iPad Pro 12.9"264 PPI | 2x | Export @2x
4K UHD Monitor (27")163 PPI | ~1.7x | Export @2x for safety
Standard Web (96 DPI baseline)1x CSS pixel = 1 physical pixel
CSS image-set() / srcsetServes correct density automatically

Display Density FAQs

A CSS pixel is a device-independent unit. On a 1x screen, 1 CSS pixel = 1 physical pixel. On a 2x Retina screen, 1 CSS pixel = 2×2 = 4 physical pixels. CSS always works in CSS pixels, so your layouts do not change, but your images need to supply extra resolution.

Use the resolution media feature: @media (min-resolution: 192dpi) { } or @media (min-resolution: 2dppx) { } to serve high-density assets. The dppx unit (dots per pixel) is the most modern and reliable syntax.

No. Exporting 3x for all images increases page weight significantly, hurting performance on standard 1x and 2x screens. Use the HTML srcset attribute or CSS image-set() to serve each device the appropriate density tier.

Getting pixel density right is the difference between sharp, professional graphics and blurry assets that undermine your brand. Use this calculator to determine the correct export sizes for every screen your audience uses.

Related Tools