DPI Calculator

Enter the pixels you have and the size you want to print or display. Get the resulting DPI and whether it is sharp enough.

px
Resolution 300 DPI

Type one number for a single side, or W x H to check both. Fractions such as 8 1/2 work too.

How to calculate DPI

Pixels per inch is literally pixels divided by inches.

Formula

DPI = pixels ÷ inches

DPI = pixels ÷ cm × 2.54

Example: a 3000 px wide photo printed 10 inches wide is 300 DPI. Printed 20 inches wide it drops to 150 DPI.

1

Pixels you have

Read the width and height from the file or camera.

2

Size you want

The finished print or display size, in inches, cm or mm.

3

Divide

300+ is print quality; 150 is fine for posters; under 100 shows pixels up close.

What a DPI number looks like

The higher the DPI, the smaller each pixel and the smoother the edges.

DPI is a density: the same image at 150 DPI has pixels twice as wide as at 300 DPI, and four times the area.

Need to go the other way, from DPI to size? Use the print size calculator, or the inches to pixels converter to get the pixels for a target size.

Pixel density, magnified

More inch and pixel tools

Every converter on Convert Inches to Pixels runs in your browser and works with any DPI.

Frequently asked questions

How do I calculate DPI?

Divide the number of pixels by the size in inches. An image 2400 px wide printed 8 inches wide is 2400 ÷ 8 = 300 DPI.

How do I find the DPI of an image?

An image has no true DPI until you decide how big to print it. Divide its pixel width by the print width in inches. The DPI stored in the file is only a default print size and does not change the pixels.

What if the width and height give different DPI?

The image and the print have different shapes. The lower of the two values is the resolution you get if you fit the whole image; the higher one applies if you crop to fill the print.

How do I calculate DPI from centimetres?

Divide the pixels by the size in centimetres and multiply by 2.54. 2480 px across 21 cm is 2480 ÷ 21 × 2.54 ≈ 300 DPI.

Does increasing DPI improve image quality?

Only if there are more pixels. Raising the DPI number on an existing image just makes it print smaller. Real extra detail has to come from a higher-resolution original.