DPI and Pixel Size, Explained
After reading, you will be able to compute a screen's pixel density from its resolution and diagonal, convert pixels to a print size at any DPI, and work out how many pixels you need to print a photo without visible dots.
What DPI and PPI actually measure
Two numbers describe how tightly pixels are packed. PPI (pixels per inch) usually describes a screen. DPI (dots per inch) usually describes print. Both answer the same question: how many pixels fall inside one inch of physical length.
Here is the hook. A 24-inch monitor at 1920 × 1080 packs about 92 pixels into every inch. A modern phone packs over 400. Same word "pixel", very different sizes. A single pixel on that monitor is about 0.28 mm wide. On the phone it is under 0.06 mm, which is why phone text looks crisp and old monitor text looks slightly blocky up close.
An image file on disk has no DPI. It has a pixel count, for example 3000 × 2000. DPI only appears when you decide to display those pixels across a physical length. The same file prints at 300 DPI on a small card or 72 DPI on a large poster.
When to use each mode, and when not
Use the screen mode when you have a resolution and a diagonal and want the density. That tells you whether text will look sharp and how physically large one pixel is.
Use the pixels to print size mode when you already have an image and want to know how big you can print it before it looks soft. Use the print size to pixels mode when a client asks for a 10 cm wide print at 300 DPI and you need to know the pixel count to deliver.
Do not use DPI to judge an image file's quality on its own. A 3000-pixel-wide file is a 3000-pixel-wide file. Its stored DPI tag is just a printing hint; changing it from 72 to 300 in software adds no detail.
The formula and the intuition
Screen density comes from the Pythagorean theorem. The diagonal in pixels is the hypotenuse of the width and height, and you divide that by the physical diagonal in inches.
Here w is the width in pixels, h is the height in pixels, and d is the diagonal in inches. The numerator is the diagonal measured in pixels; dividing by the diagonal in inches gives pixels per inch.
Print conversions are simpler. Physical length equals pixel count divided by DPI.
To go the other way, multiply. If you want a length L in inches printed at a given DPI, you need \text{pixels} = L \times \text{DPI}. For centimetres, convert first: one inch is 2.54 cm, so \text{inches} = \text{cm} / 2.54.
Reproducing the demo: a 24-inch 1080p monitor
Use the default values: 1920 px wide, 1080 px tall, 24 inch diagonal.
- Square the sides: 1920^2 = 3{,}686{,}400 and 1080^2 = 1{,}166{,}400.
- Add them:
3,686,400 + 1,166,400 = 4,852,800. - Take the square root: \sqrt{4{,}852{,}800} \approx 2202.9 pixels along the diagonal.
- Divide by the diagonal in inches: 2202.9 / 24 \approx 91.79 PPI.
So this monitor is about 91.8 PPI. One pixel is 1 / 91.79 \approx 0.0109 inch, or about 0.277 mm. That is comfortable at desk distance but noticeably coarser than a laptop screen.
How density changes with diagonal
Keep the resolution fixed at 1920 × 1080 and stretch it across bigger screens. The pixel count stays the same, so each pixel grows and the density falls. The chart below plots PPI against diagonal.
Notice the curve is steep at small diagonals and flattens out. Doubling a 15-inch panel to 30 inches roughly halves the density, from about 147 to 73 PPI. That is why a large TV viewed up close shows visible pixels while the same panel across the room looks fine: your eye resolves less detail at distance.
Reading and interpreting the numbers
Some reference points help you judge a PPI result.
| Device | Resolution | Diagonal (in) | PPI | Pixel size (mm) |
|---|---|---|---|---|
| Desktop monitor | 1920 × 1080 | 24 | 91.8 | 0.277 |
| 4K monitor | 3840 × 2160 | 27 | 163.2 | 0.156 |
| Laptop "Retina" | 2560 × 1600 | 13.3 | 226.9 | 0.112 |
| Phone | 2532 × 1170 | 6.1 | 457.6 | 0.0555 |
Marketing calls a display "Retina" once pixels are too small for a typical eye to resolve at normal viewing distance. On a laptop held at arm's length that threshold is around 220 PPI, which is why the 13.3-inch panel above just clears it at about 227.
Higher PPI is not always better. A phone at 458 PPI drains more battery driving those pixels, and at reading distance you cannot see the difference above roughly 350 PPI. Match density to viewing distance, not to the largest number.
Print sizing worked both ways
Suppose you have a photo 3000 pixels on its long edge and you print at 300 DPI.
That gives a 10-inch print, or 10 \times 2.54 = 25.4 cm. Drop to 150 DPI and the same file covers 20 inches, fine for a poster you view from a metre away.
Now the reverse. A client wants a print 10 cm wide at 300 DPI. Convert the length: 10 / 2.54 \approx 3.937 inches. Multiply by DPI: 3.937 \times 300 \approx 1181 pixels. So you need a source image at least 1181 pixels across that edge.
Common mistakes
The frequent errors are easy to avoid once you name them.
- Thinking DPI adds detail
- Setting a 72 DPI file to 300 DPI in an editor without resampling changes only the print size, not the pixels. If it does resample, the software invents pixels by interpolation and the image looks soft. Real detail comes from the sensor or scan.
- Mixing the diagonal in centimetres
- The PPI formula needs the diagonal in inches. A "60 cm" monitor is about 23.6 inches. Plug in 60 and you get a nonsense density near 37 PPI.
- Ignoring viewing distance for print
- 300 DPI is the standard for prints held in the hand. A billboard read from 20 metres works at 10 to 20 DPI. Demanding 300 DPI there wastes file size for detail no one can see.
- Confusing megapixels with print size
- A 12-megapixel camera at
4000 × 3000prints about 4000 / 300 \approx 13.3 inches wide at photo quality. Doubling megapixels only increases each edge by about 41 percent, not double.
Related tools
Pixel density often comes up alongside shape questions. If you need to simplify a resolution to its ratio, check whether 1920 × 1080 matches 16:9, or scale one dimension while keeping proportions, use the Aspect Ratio Calculator. It pairs naturally with density work: aspect ratio fixes the shape, PPI fixes how big each pixel lands.
Frequently asked questions
Is DPI the same as PPI?
In everyday use people treat them as the same, and the arithmetic is identical. Strictly, PPI counts image pixels per inch and DPI counts printer ink dots per inch, and a printer may lay several dots per pixel. For sizing images this distinction does not change your numbers.
What DPI should I use for printing photos?
Use 300 DPI for anything viewed close, such as prints, cards and magazines. Use 150 DPI for large posters seen from a metre or more. Below 100 DPI is fine only for banners and billboards viewed at a distance.
Why does my 12-megapixel photo look bad printed large?
A 4000 × 3000 image only reaches about 13 inches wide at 300 DPI. Print it at 30 inches and the density falls to about 100 DPI, so each pixel spreads over more than three times the area and edges soften.
How do I get PPI if I only know the screen size in centimetres?
Convert the diagonal to inches first by dividing by 2.54, then apply the formula. A 68.6 cm diagonal is 27 inches, and at 3840 × 2160 that gives about 163 PPI.
Does a higher-PPI screen make my photos sharper?
It makes them look sharper on that screen, up to the limit of your eye at your viewing distance. It does not change the file. The same photo shown on a 92 PPI monitor and a 227 PPI laptop has identical pixels; the laptop just packs them tighter.