What is PPI?
PPI, pixels per inch, measures how densely pixels are packed on a display. The higher it is, the smaller each pixel and the crisper text, icons and photos look. Two screens with the same resolution can differ hugely in sharpness if one is much larger.
Shoppers use a PPI calculator to compare phones, tablets, laptops and monitors beyond the resolution on the box. Designers and developers use it to understand device pixel ratios and how large interface elements will appear physically. Along with PPI it gives the dot pitch, total megapixels and the screen's real width and height.
How to use the PPI Calculator (Pixel Density)
1.Enter the resolution
Width and height in pixels, from the spec sheet.
2.Enter the diagonal
The advertised screen size in inches.
3.Compare screens
Higher PPI means smaller pixels and sharper text.
Example: a 6.1-inch phone
A 2556 × 1179 display with a 6.1-inch diagonal:
- Pixel density
- 461.4 PPI
- Dot pitch
- 0.055 mm
- Screen size
- 5.54″ × 2.56″
- Total pixels
- 3.01 MP
PPI = √(w² + h²) ÷ diagonal
At over 460 PPI, individual pixels are invisible at normal viewing distance.
How density is worked out
The diagonal in pixels is found with Pythagoras, √(width² + height²), then divided by the diagonal in inches. Dot pitch is the distance between pixel centres, 25.4 mm divided by the PPI.
Whether pixels are visible depends on viewing distance as well as density. A phone held 30 cm away needs well over 300 PPI to look perfectly smooth, while a 27-inch monitor at arm's length looks sharp at around 110–160 PPI, and a TV across the room needs far less.
Frequently asked questions
What is a good PPI for a phone?
Around 400 or more looks very sharp at normal distance; many flagship phones are 450–500.
What PPI is a 27-inch 4K monitor?
About 163 PPI at 3840 × 2160.
Is PPI the same as DPI?
They're often used interchangeably. Strictly, PPI describes screens and images; DPI describes printer ink dots.
Why isn't my screen exactly the advertised size?
Advertised diagonals are often rounded, and rounded corners or notches aren't subtracted.
Related tools
Aspect Ratio Calculator
Find an image or video's aspect ratio and resize it without distortion.
px to rem Converter
Convert pixels to rem and rem to pixels for any root font size.
Image Resizer
Change an image's width and height in pixels or by percentage.
Type scale generator
Font sizes from a ratio, with fluid clamp() and CSS variables.
Font pairing
Preview heading and body font combinations from Google Fonts.
Font inspector
See a font file's names, licence, glyphs and language support.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
- Base64 encode & decode
- URL encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table