DPI to Pixels: How Many Pixels Does Your Print Need?
Convert DPI to pixels with one formula, see A4 and 4×6 sizes at 150 and 300 dpi, and use a free calculator that runs in your browser.
On this page
- The short answer
- What DPI and pixels mean
- The formula to calculate pixels from DPI
- Common paper sizes at 72, 150 and 300 dpi
- What 300 dpi, 150 dpi and 72 dpi really mean
- How to calculate the DPI of a photo you already have
- Does the DPI stored in a file change its pixels?
- Is 1 pixel 1/96 inch on a screen?
- How to use the ImgToJPG pixel and DPI calculator
- FAQ
- Sources
Someone asked for a 300 dpi image and you have no idea how many pixels that is. To convert DPI to pixels, you only need the print size and the resolution. The free pixel and DPI calculator on ImgToJPG does the maths for you, and it runs in your browser.
This guide gives you the formula, a table of common paper sizes, and the mistakes that confuse people most.
The short answer
- Multiply the width and height in inches by the DPI.
- If your sizes are in millimetres, divide by 25.4 first to get inches.
- At 300 dpi, an A4 page (210 × 297 mm) needs about 2480 × 3508 pixels.
- At 150 dpi, the same page needs about 1240 × 1754 pixels.
- To go the other way, divide the pixels by the inches on the matching side.
What DPI and pixels mean
Pixels are the dots that make up your image. DPI says how many of those dots fit into one inch of paper.
MDN describes the unit like this: screens typically contain 72 or 96 dots per inch, while the dpi for printed documents is usually much greater. Always check the pixel count before you print.
The formula to calculate pixels from DPI
- Convert the width and height to inches. One inch is 25.4 mm, and one centimetre is 10 mm.
- Multiply each length in inches by the DPI.
- Round to the nearest whole pixel.
Take a 3.5 cm wide photo at 200 dpi. That is about 1.38 inches, so you need roughly 276 pixels across.
A 10 × 15 cm photo at 300 dpi is about 3.94 × 5.91 inches. That works out to roughly 1181 × 1772 pixels.
Common paper sizes at 72, 150 and 300 dpi
These numbers are rounded, because the exact results have decimals.
| Size | 72 dpi | 150 dpi | 300 dpi |
|---|---|---|---|
| A4 (210 × 297 mm) | 595 × 842 | 1240 × 1754 | 2480 × 3508 |
| A5 (148 × 210 mm) | 420 × 595 | 874 × 1240 | 1748 × 2480 |
| Letter (216 × 279 mm) | 612 × 791 | 1276 × 1648 | 2551 × 3295 |
| 4 × 6 inches | 288 × 432 | 600 × 900 | 1200 × 1800 |
| ID photo (35 × 45 mm) | 99 × 128 | 207 × 266 | 413 × 531 |
What 300 dpi, 150 dpi and 72 dpi really mean
- 300 dpi: the usual request when someone wants print quality. An A4 page needs about 2480 × 3508 pixels.
- 150 dpi: fine for drafts or prints viewed from a distance. You need half the pixels per side compared with 300 dpi.
- 72 dpi: a classic screen figure. MDN lists 72 or 96 dpi as typical for screens.
More DPI always means more pixels. If your file has fewer pixels than the calculation asks for, changing the DPI number will not add detail.
How to calculate the DPI of a photo you already have
Sometimes you have the image and want to know how sharp it will print. Divide the pixel width by the print width in inches.
A photo that is 1600 pixels wide, printed 10 cm (3.94 inches) wide, comes out at about 406 dpi. Print it 20 cm (7.87 inches) wide and it drops to about 203 dpi.
The same idea turns pixels into a physical size. An image that is 1920 pixels wide at 300 dpi measures 6.4 inches, or about 162.6 mm.
Does the DPI stored in a file change its pixels?
No. Some formats store a pixel density. PNG does it in the pHYs chunk. According to the W3C PNG specification, that chunk holds pixels per unit for the X and Y axes plus a unit specifier, where 0 means the unit is unknown and 1 means the unit is the metre.
The specification also says that if the chunk is not present, pixels are assumed to be square and the physical size of each pixel is unspecified. So a file without that data has no fixed DPI. The DPI appears when you decide what size to print it.
Is 1 pixel 1/96 inch on a screen?
For web design, partly. MDN explains that, because CSS fixes the ratio of an inch to a pixel at 1:96, 1dppx equals 96dpi. It also notes that on screens these units relate to CSS inches, centimetres or pixels, not physical values.
That is useful when you write CSS. It does not tell you how many pixels a printer needs.
How to use the ImgToJPG pixel and DPI calculator
- Open the pixel and DPI calculator.
- Choose a direction: "Size → pixels" turns a print size into pixels, and "Pixels → size" does the reverse.
- Pick a paper preset (A4, A5, Letter, 4×6 photo or 35×45mm ID), or type the width and height yourself.
- Choose the unit: mm, cm or inch.
- Set the resolution to 150, 300 or 600.
- Press "Calculate" and read the result below.
- If you want to apply the numbers, press "Resize an image to this size" to continue in the image resizer.
The calculator works with numbers only, so you do not upload any file to use it.
FAQ
How many pixels is a 300 dpi image?
It depends on the print size. An A4 page at 300 dpi is about 2480 × 3508 pixels, and a 10 × 15 cm photo is about 1181 × 1772 pixels. DPI alone does not give a pixel count.
Can I make a blurry photo sharper by raising its DPI?
No. Changing only the DPI number leaves the pixels as they are. To print larger with good quality, you need a file with more pixels.
What is the difference between DPI and PPI?
People often use them as the same thing when they talk about image files. This calculator treats the resolution you enter as pixels per inch.
Does the calculator work for ID photos?
It has a 35×45mm ID preset. At 300 dpi that gives about 413 × 531 pixels. Always check the exact rules of the office that asked for the photo.
How do I find the size in millimetres for a given pixel count?
Divide the pixels by the DPI to get inches, then multiply by 25.4. At 300 dpi, 1080 pixels is 3.6 inches, or about 91.4 mm.
What should I do after I know the pixels I need?
Resize your picture to those pixels. You can open the image resizer, or prepare the file first with the image converter.