Android Screen Density Calculator

Pixel density, bucket and dp size for an Android screen.

Runs in your browser. Nothing is uploaded — your input is processed on this device and discarded when you close the tab.

Android Screen Density Calculator

How to use this tool

  1. Enter your values in the fields above.
  2. Press Generate to see the result.
  3. Use Load sample to try the worked example, Copy result to copy it, or Clear to start again.

Worked example

A 1080 by 2400 screen at 6.5 inches gives about 404.9 ppi, which falls in the xxhdpi bucket, about 426.8 dp wide and 948.4 dp tall.

What this tool does not do / Limits

This is arithmetic from the numbers you enter. It does not detect a device, read a screen, or look up any phone model.

Frequently asked questions

What is a dp?

A density-independent pixel: pixels divided by density divided by 160, so layouts scale across screens.

Why does the bucket matter?

Android groups densities into buckets so artwork can be supplied at the right scale for each screen.

Related tools