DPI, or more precisely PPI, is how many pixels a screen packs into each inch. Enter the width and height in pixels and the diagonal size in inches, and this calculator returns the pixel density, the diagonal in pixels and the dot pitch. A 1920 by 1080 screen measuring 15.6 inches has about 141 pixels per inch.
Pixel density (PPI)
Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.
Saved results (0)
How to Use the DPI Calculator
- Enter the screen width and height in pixels, its resolution.
- Enter the diagonal size in inches.
- Read the pixel density, the diagonal in pixels and the dot pitch, all updating live.
Each output describes the display:
| Result | What it tells you |
|---|---|
| Pixel density | Pixels per inch, the measure of sharpness. |
| Diagonal resolution | The number of pixels along the diagonal. |
| Dot pitch | The distance between pixels in millimetres; smaller is sharper. |
What Is DPI and PPI?
PPI, pixels per inch, measures how densely a screen packs its pixels. A higher PPI means smaller, more tightly spaced pixels and a sharper image, because your eye cannot pick out the individual dots. The term DPI, dots per inch, comes from printing but is widely used to mean the same thing for screens.
Two screens with the same resolution can have very different densities if their sizes differ. A 1080p image looks razor sharp on a small phone but softer on a large television, because the same pixels are spread over more inches. Density, not resolution alone, decides sharpness.
How the DPI Calculator Works
It finds the diagonal length in pixels with Pythagoras, then divides by the diagonal size in inches.
PPI = sqrt(width^2 + height^2) / diagonal in inchesThe diagonal in pixels is sqrt(w^2 + h^2), and dividing it by the physical diagonal gives the density PPI = sqrt(w^2 + h^2) / d. The dot pitch, the spacing between pixels, is then 25.4 / PPI millimetres, since there are 25.4 millimetres in an inch.
- Square the width and height in pixels and add them.
- Take the square root for the diagonal in pixels.
- Divide by the diagonal in inches for the pixels per inch.
Because it uses the diagonal, the result does not depend on the aspect ratio being any particular shape.
DPI Example
A 1920 by 1080 laptop screen measuring 15.6 inches has a diagonal of sqrt(1920^2 + 1080^2) = 2203 pixels. Dividing by 15.6 gives 2203 / 15.6 = 141 pixels per inch, with a dot pitch of about 0.18 millimetres.
Shrink the same 1080p resolution onto a 6.1-inch phone and the density soars past 400 PPI, far sharper, which is why phone text looks so crisp. Stretch it onto a 32-inch monitor and it drops below 70 PPI, where pixels become visible up close.
A 27-inch 1440p monitor lands around 109 PPI, a comfortable middle ground for desktop work at arm's length.
Pixel Density Bands Compared
These rough bands help you judge whether a screen will look sharp.
| PPI | Typical device | Sharpness |
|---|---|---|
| Below 100 | Large monitors and TVs | Pixels visible up close |
| 100 to 150 | Desktop monitors | Fine at normal distance |
| 150 to 300 | Laptops and tablets | Crisp |
| 300 and up | Phones | Retina-class, pixels invisible |
Viewing distance matters too: a TV seen from across a room needs far less density than a phone held close. To compare screen shapes, the aspect ratio calculator is a useful partner.
What Changes Pixel Density
Only resolution and size set the density, but a few points are worth knowing.
Resolution
More pixels across the same screen raise the density and the sharpness directly.
Screen Size
Spreading the same resolution over a larger diagonal lowers the density, softening the image.
Viewing Distance
Density needed for a sharp look falls with distance, so a distant TV can have far fewer pixels per inch.
Sub-pixel Layout
Some panels arrange coloured sub-pixels unusually, so perceived sharpness can differ slightly from the raw PPI.
When to Use a DPI Calculator
Comparing Screens
Put two displays on the same footing by their pixels per inch rather than resolution alone.
Choosing a Monitor
Check whether a size and resolution will look sharp at your usual viewing distance before buying.
Design and Development
Know a target screen density when preparing images or setting scaling for an interface.
Common Mistakes
1. Judging Sharpness by Resolution Alone
The same resolution looks very different on a phone and a TV. Density is what matters.
2. Using the Width Instead of the Diagonal
Screen size is the diagonal measurement, not the width, so use the diagonal in inches.
3. Confusing DPI with Resolution
Resolution is the total pixel count; DPI or PPI is how tightly those pixels are packed.
4. Ignoring Viewing Distance
A high density adds little benefit on a screen viewed from far away.
5. Mixing Inches and Centimetres
The diagonal must be in inches for pixels per inch; convert first if it is in centimetres.
Accuracy and Limitations
The math is exact for the resolution and diagonal you enter, using the standard geometry of a screen.
What it calculates accurately
- Pixels per inch from resolution and size
- The diagonal in pixels
- The dot pitch in millimetres
What it does not account for
- Sub-pixel arrangements and panel types
- Viewing distance and perceived sharpness
- Manufacturer rounding on spec sheets
- Print DPI, which involves ink dots not pixels
How We Calculate Pixel Density
Frequently Asked Questions About DPI and PPI
How do I calculate DPI or PPI?
Find the diagonal in pixels with the square root of width squared plus height squared, then divide by the diagonal in inches. This calculator does both steps.
What is the difference between DPI and PPI?
PPI, pixels per inch, is the correct term for screens. DPI, dots per inch, comes from printing but is often used loosely to mean the same thing for displays.
What is a good PPI for a monitor?
Around 100 to 150 PPI is comfortable for a desktop monitor at arm's length. Laptops often sit at 150 or more, and phones exceed 300.
Is higher PPI always better?
Sharper, yes, but with diminishing returns beyond what your eye can resolve at your viewing distance. A distant TV needs far less density than a phone.
How is PPI different from resolution?
Resolution is the total number of pixels, such as 1920 by 1080. PPI is how tightly those pixels are packed, which depends on the screen size too.
What is dot pitch?
Dot pitch is the distance between neighbouring pixels, in millimetres. It is 25.4 divided by the PPI, so a higher density means a smaller pitch.
Does aspect ratio affect PPI?
No. Because PPI uses the diagonal, it does not depend on the screen being any particular shape, only on the resolution and the diagonal size.
What does retina display mean?
It is a marketing term for a density high enough that a typical viewer cannot see individual pixels at normal distance, often around 300 PPI or more on phones.
Is anything I enter stored?
No. The calculation runs in your browser, and nothing you enter is sent anywhere unless you Save a result, which stays on this device only.
Sources
- Dots per inch (Wikipedia).
- Pixel density (Wikipedia).
- Unit of length (Wikipedia).
Related Calculators
Looking for more display and math tools?
Explore all math calculatorsThis calculator is for general use. It reports pixel density from resolution and screen size; manufacturers may round figures or use sub-pixel layouts, so a spec sheet can differ slightly from the calculated value. Spotted an error? Let us know.
Creator
Hamza Shakeel is the Chief Technology Officer at MultiCalculators.com, responsible for the platform's technical architecture, calculator engine performance, and infrastructure reliability. He leads engineering efforts focused on site speed, mobile responsiveness, Core Web Vitals optimization, and security. Hamza ensures every calculation runs accurately and instantly across all devices, while maintaining the platform's stability and scalability as it grows. His work directly supports the seamless, trustworthy experience users expect from MultiCalculators.com.
Areas of Expertise: Web Engineering, Core Web Vitals, Site Performance, Calculator Logic, Cloud Infrastructure, Security
