By the ImageOpti team ·
What Is Image Resolution? DPI and PPI Explained Simply
Image resolution, DPI and PPI explained with real arithmetic: how many pixels you need for screens and prints, and why a 72 or 300 DPI label rarely matters.
Image resolution is the number of pixels in a picture, such as 4000 by 3000. PPI (pixels per inch) describes how densely those pixels are packed when shown or printed at a particular size, and DPI (dots per inch) describes how many ink dots a printer places per inch. For screens only the pixel count matters. For printing, the useful question is whether you have enough pixels for the size you want.
The confusion comes from people using the three terms as if they were the same thing. This article separates them and shows the arithmetic you can use to check any image.
Pixels are the real measure
A digital image is a grid of coloured squares called pixels. A photo that is 4000 pixels wide and 3000 pixels tall has 4000 x 3000 = 12,000,000 pixels, which is 12 megapixels.
That grid has no physical size on its own. It is just numbers. It only becomes "so many inches wide" when you decide how to display or print it. This is the key idea behind everything else.
PPI: pixels per inch
PPI links pixels to physical size. If you print or display an image at a given size, PPI is the pixel count divided by the size in inches.
PPI = pixels / inches
Or, to find print size:
Print size in inches = pixels / PPI
Worked example
Take the 4000 by 3000 photo.
- At 300 PPI: 4000 / 300 = 13.3 inches wide, and 3000 / 300 = 10 inches tall. So it prints at about 13.3 by 10 inches with good detail.
- At 150 PPI: 4000 / 150 = 26.7 inches wide and 3000 / 150 = 20 inches tall. Same pixels, larger print, less sharp.
- At 72 PPI: 4000 / 72 = 55.6 inches wide. Technically possible, but it will look coarse up close.
The photo did not change. Only the amount of paper it is spread across changed.
DPI: dots per inch
DPI properly belongs to printers. A printer lays down tiny dots of ink, and the DPI figure says how many dots it can place per inch. A modern inkjet might list thousands of dots per inch. It uses several dots to create the appearance of a single image pixel's colour, which is why printer DPI numbers look so much bigger than the PPI you need from an image.
In everyday talk, people use "DPI" when they mean PPI, because image programs, print shops and forms often say "300 DPI" when they are asking for 300 pixels per inch at the print size. When you see "DPI" in a request, read it as "pixels per inch at the final size" unless the context is clearly about printer hardware.
The 72 and 300 numbers
You will often hear that web images should be 72 DPI and print images 300 DPI.
- 72 DPI for web is an old convention from early computer screens. It has no effect on how a web image displays. A browser looks at the pixel dimensions only. A 1200 by 800 image appears identical whether the file's DPI tag says 72, 96 or 300.
- 300 PPI for print is a common target for sharp prints viewed at close range, such as photo prints, brochures and business cards. It is a guideline, not a law. Large prints viewed from a distance, such as posters or banners, look fine at lower values. 150 PPI or even less can be acceptable when people stand well back.
If a website or print shop says it needs a "300 DPI image", the thing to check is the pixel dimensions. The number in the file's metadata can be changed in seconds without altering a single pixel, so it proves nothing.
How many pixels do you need?
Work backwards from where the image will be used.
For screens
A screen shows a certain number of pixels, and a layout shows your image at a certain width in CSS pixels. Many phones and laptops have high-density displays that use 2 or 3 device pixels for every CSS pixel.
| Use | Display width | Sharp pixel width |
|---|---|---|
| Blog image column | 700 CSS px | 1400 px at 2x density |
| Full-width hero on desktop | 1440 CSS px | Up to about 2000 to 2880 px |
| Thumbnail in a grid | 300 CSS px | 600 px at 2x |
For the web, supplying more than this wastes bandwidth. The resizer reduces images to the size you need, and how to reduce image file size without losing quality explains how this affects file size.
For print
Multiply the print size in inches by the PPI you want.
| Print size | At 300 PPI | At 150 PPI |
|---|---|---|
| 4 x 6 in | 1200 x 1800 px | 600 x 900 px |
| 5 x 7 in | 1500 x 2100 px | 750 x 1050 px |
| 8 x 10 in | 2400 x 3000 px | 1200 x 1500 px |
| 11 x 14 in | 3300 x 4200 px | 1650 x 2100 px |
| 16 x 20 in | 4800 x 6000 px | 2400 x 3000 px |
So a 12 megapixel photo of 4000 by 3000 pixels is enough for an 8 by 10 inch print at 300 PPI with room to spare, but not quite for 16 by 20 at 300 PPI (that needs 4800 by 6000, or 28.8 megapixels). At 16 by 20 you would be at about 4000 / 20 = 200 PPI along the long side, assuming you crop to the shape, which is still decent for a print viewed at normal distance.
Remember the aspect ratio. A 3:2 camera photo does not match an 8 by 10 print, which is 5:4, so some of the picture must be cropped. The cropper lets you pick the shape first.
Common misconceptions
"Changing the DPI makes the image sharper"
It does not. Changing the DPI tag without resampling (changing the number of pixels) just changes the stated print size. Nothing improves.
"I can raise a low-resolution image to 300 DPI"
If you increase the pixel count by resampling, software invents new pixels by guessing from the neighbours. The picture gets bigger but not sharper. Some modern tools use AI to add plausible detail, but they cannot recover detail that was never captured. The honest solution is to start from a higher-resolution original. This is also why the resizer here only makes images smaller. The page why are my images blurry after resizing goes into this.
"More megapixels always means a better picture"
Not on its own. Lens quality, lighting, focus and sensor size matter. A sharp 8 megapixel image can beat a blurry 24 megapixel one.
"Web images need 72 DPI to load fast"
File size depends on pixel dimensions, format and compression. The DPI tag has almost no effect on it.
Resolution and file size
More pixels means more data, but the link depends on compression. Roughly, halving the width and height leaves a quarter of the pixels and usually a file around a quarter of the size. That is why scaling down is such an effective way to cut file size before any compression. After that, the optimizer can squeeze the file further with a quality setting.
A short checklist
- For web: match pixel width to the display size, up to about twice for high-density screens. Ignore the DPI tag.
- For print: target about 300 PPI for close viewing, less for large prints viewed from a distance. Ask your print shop what they want.
- For uploads that demand a "DPI": satisfy them with pixel dimensions, and treat the tag as secondary.
- Always keep the original at full resolution.
For social images, specific pixel dimensions matter more than DPI, as covered in image sizes for social media: a practical guide.
FAQ
What is the difference between DPI and PPI?
PPI describes pixels per inch in a digital image at a given size. DPI describes ink dots per inch for a printer. People often use DPI loosely to mean PPI.
Is 72 DPI good for websites?
The number does not affect how the image displays on a website. Only pixel dimensions matter.
Is 300 DPI always required for printing?
No. It is a typical target for close viewing. Posters and banners viewed from far away often use much lower values.
How do I find my image's resolution?
Open its properties or an editor to see the width and height in pixels. The pixel dimensions are the real resolution.
Can I increase resolution without losing quality?
Not truly. Enlarging adds pixels but not detail. Use a higher-resolution original if you can.
Related guides
For the full picture on sizing, see the image resizing and quality guide.