DPI Calculator

How to Calculate Image DPI

Calculating image DPI takes two numbers: the pixel dimension and the physical print size. Nothing else is involved — not the file format, not the camera brand, and not the DPI number stored in the file. If you know pixels and inches, you know DPI.

The formula

DPI = Pixel dimension / Print dimension in inches

Do it twice, once for each direction:

If the two results match, the image and the print share an aspect ratio and the image fills the print exactly. If they differ, the shapes do not match, and you will need to crop, leave a border, or accept stretching. Always check both directions; a single number hides this problem.

Step by step

  1. Find the pixel dimensions. In most image viewers, right-click the file and open its properties or info panel. You need both numbers, for example 3000 × 2000 px. If you only have a file on your device, upload it to the DPI Calculator and it will read the dimensions for you.
  2. Decide the print size in inches. For example, 10 inches wide. If your size is in centimetres, divide by 2.54. If it is in millimetres, divide by 25.4. A 25.4 cm print width is 10 inches; a 254 mm print width is also 10 inches.
  3. Divide. 3000 / 10 = 300 DPI.
  4. Repeat for height. 2000 / 6.67 = 300 DPI. Both directions agree, so this image fits a 10 × 6.67 inch print at 300 DPI.
  5. Compare with your target. For a photo held in the hand, the usual target is 300 DPI. For a poster viewed from a few feet, 150 DPI is often enough. For a banner seen from metres away, 72 DPI can be fine. The target depends on viewing distance, not on the image.

Worked examples

Example 1: a camera photo as a hand-held print

A 6000 × 4000 px photo printed at 20 × 13.33 inches:

This is a textbook 300 DPI print, suitable for close viewing.

Example 2: a Full HD image, two print sizes

A 1920 × 1080 px image printed 10 inches wide (10 × 5.63 inches):

At 192 DPI this is fine for a poster, but soft for a close-up photo print. Printed 6.4 inches wide instead (6.4 × 3.6 inches), the same image gives 1920 / 6.4 = 300 DPI — now suitable for close viewing. Same pixels, different size, different result. Print size is the lever you control.

Example 3: a size given in centimetres

A 4000 × 3000 px image printed 30 cm wide:

Example 4: the reverse calculation

Suppose you want a 300 DPI print but have not chosen a size yet. Divide pixels by target DPI to get the largest size that holds 300 DPI:

A 3000 × 2000 px image at 300 DPI can print at most 10 × 6.67 inches. At 150 DPI, the same image can print at 20 × 13.33 inches. The DPI Calculator performs this reverse calculation automatically when you set a target DPI.

A quick reference table

ImagePrint widthEffective DPIGood for
3000 × 2000 px10 in300Hand-held photo
3000 × 2000 px20 in150Poster
1920 × 1080 px6.4 in300Hand-held photo
1920 × 1080 px12.8 in150Poster
6000 × 4000 px20 in300Hand-held photo
6000 × 4000 px40 in150Large poster

Common mistakes

Frequently asked questions

What if my image is 3000 × 2000 but I want an 8 × 10 inch print?

The aspect ratios do not match (3:2 vs 4:5), so width and height disagree: 3000 / 8 = 375 DPI, but 2000 / 10 = 200 DPI. You cannot fill an 8 × 10 frame with a 3:2 image at one DPI. Crop the image to 4:5 first (for example 2000 × 2500 px after cropping the width), then 2000 / 8 = 250 DPI and 2500 / 10 = 250 DPI. The Image Print Studio walks through exactly this check.

Does the same formula work for height?

Yes, and you should always run it. Effective DPI is a pair of numbers, not one, whenever the print shape differs from the image shape.

My image has no DPI metadata. Can I still calculate DPI?

Yes — metadata is irrelevant to the calculation. Pixels and intended print size are all you need.

How do I find my image’s pixel dimensions?

On most systems, right-click the file and choose Properties or Get Info. Or upload it to the DPI Calculator, which reads the dimensions in your browser without uploading the file to any server.

Try it: DPI Calculator · Print DPI Calculator · Pixels to Inches

← All guides