DPI versus pixel dimensions
A raster image stores pixel dimensions and nothing else. DPI is metadata saying how many of those pixels map to one inch on paper, so it changes the printed size and never the file itself.
At a glance
- Stored in the file
- Pixel dimensions, always
- DPI or PPI
- Metadata: how many pixels map to one inch of paper
- Physical size
- pixels divided by DPI equals inches
- On a screen
- The DPI value is ignored entirely
- Conventional print target
- 300 DPI for photographic quality, 150 for large format viewed at a distance
- A4 at 300 DPI
- 2480 x 3508 pixels
In detail
A raster file contains a grid of pixels and a header. The grid is the image; the DPI figure in the header is a note to the printer saying how densely to lay those pixels down. Changing that number without resampling changes nothing about the image data and everything about how large it prints, which is why a file can be described as 72 DPI and still print beautifully at A4 if it has enough pixels.
The arithmetic is one division. Pixels divided by DPI gives inches, so a 3000 pixel wide image at 300 DPI prints ten inches wide, and the same file at 150 DPI prints twenty inches wide with visibly less detail per inch. Going the other way, a required print size multiplied by the target DPI gives the pixel count you need to supply.
On screen the number is ignored completely. A browser lays out an image by its pixel dimensions and the page's own CSS, so the DPI in the metadata has no effect at all on a web page. This is the source of the persistent belief that web images should be 72 DPI, which was true of a particular class of monitor decades ago and has meant nothing since.
Three hundred DPI is a convention rather than a rule. It matches roughly the resolving limit of the eye at normal reading distance, so it is the right target for something held in the hand. A poster read from three metres away is routinely produced at half that, and doubling the resolution beyond it adds file size and nothing a viewer can see.
Examples
pixels / dpi = inches
3000 / 300 = 10 in
3000 / 150 = 20 in
inches * dpi = pixels
8.5 * 300 = 2550
11 * 300 = 3300 // US Letter at 300 DPIbefore: 3000 x 2000 px, tagged 72 dpi -> prints 41.7 x 27.8 in
after: 3000 x 2000 px, tagged 300 dpi -> prints 10 x 6.7 in
// identical pixel data, identical file size, different printed sizeThings that catch people out
- Setting a file to 300 DPI does not add detail. If the pixel count is too low, the print is soft no matter what the metadata says.
- The 72 DPI rule for web images is a myth with no effect on anything. Only the pixel dimensions matter on screen.
- DPI and PPI are used interchangeably in most software, but a printer's dots and an image's pixels are not the same unit, which is why a 600 DPI printer does not need a 600 PPI file.
Try it: Aspect Ratio Calculator
Enter a width and a height, or a ratio and one dimension, and it solves the missing one, simplifies the ratio, counts the megapixels and gives you a copyable CSS value.
Aspect Ratio Calculator
LOCAL · Browser-OnlyCalculate and convert aspect ratios for images, videos, and screens
1920 x 1080px · 16:9 · 1.7778:1
Common Aspect Ratios Reference
| Ratio | Decimal | Common Use |
|---|---|---|
| 16:9 | 1.778 | Widescreen TV, YouTube, monitors |
| 4:3 | 1.333 | Classic TV, iPad, presentations |
| 1:1 | 1.000 | Instagram square, profile pictures |
| 21:9 | 2.333 | Ultrawide monitors, cinema |
| 9:16 | 0.563 | Phone vertical, TikTok, Reels |
| 3:2 | 1.500 | 35mm photography, MacBook |
| 2:3 | 0.667 | Portrait photography, posters |
| 5:4 | 1.250 | Large format photography, older monitors |
| 32:9 | 3.556 | Super ultrawide monitors |
| 2.39:1 | 2.390 | Anamorphic cinema, widescreen films |
Related Image and canvas sizes
All image and canvas sizes →A4 at 300 DPI: 2480 by 3508 pixels
How 210 by 297 millimetres becomes 2480 by 3508 pixels at 300 DPI, why the A series ratio is the square root of two, and what bleed adds.
US Letter at 300 DPI: 2550 by 3300 pixels
How 8.5 by 11 inches becomes exactly 2550 by 3300 pixels at 300 DPI, the 17:22 ratio it reduces to, and why it does not interchange with A4.
Business card at 300 DPI: 1050 by 600 pixels
The 1050 by 600 pixel card canvas, the 3.5 by 2 inch physical size behind it, the 7:4 ratio, and the bleed and safe margins a printer expects.
YouTube 1080p video size: 1920 by 1080
Why 1920 by 1080 is the standard full HD upload frame, what the player overlays cover, and how the thumbnail is a separate asset at the same shape.
YouTube 4K video size: 3840 by 2160
The 4K UHD frame at 3840 by 2160, why it is exactly four times the pixel count of 1080p, and what uploading above the watched resolution actually buys you.
YouTube Shorts size: 1080 by 1920
The 9:16 Shorts frame at 1080 by 1920, how it compares to the Stories and TikTok frame it shares pixels with, and where the interface covers your picture.
Tools for this
- Image Resizer Free online image resizer - resize images to exact dimensions, percentage, or common presets
- Aspect Ratio Calculator Free online aspect ratio calculator - calculate and convert aspect ratios for images, videos, and screens