Image DPI Calculator

Calculate print DPI from pixel size.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter a number of pixels and the length in inches they span. The calculator returns the resolution in pixels per inch (DPI).

How to use

1
Step 1
Enter the pixels along one edge.
2
Step 2
Enter the length of that edge in inches.
3
Step 3
Read the DPI.

How it works

DPI here is pixels divided by inches. It works for a screen (pixels across the width of a display) or for a print (pixels in the image divided by the print width). The inches value cannot be zero.

DPI = pixels ÷ inches

Worked example

A 13.3-inch laptop screen

Input
1920 pixels across 13.3 inches
Output
about 144.36 DPI
Walkthrough
1920 ÷ 13.3 = 144.36.

Limitations

  • Uses one edge only; pixel density along the diagonal is not calculated.
  • Does not read or change any image file.
  • Inches must be above zero.

Questions

How do I calculate DPI?
Divide the pixels by the length in inches.
Is DPI the same as PPI?
In everyday use they are treated the same. Strictly, DPI is dots of ink and PPI is pixels.
What DPI do I need to print?
300 is common for photos, but it varies with size.

Features

  • DPI from pixels and inches
  • Works for screens and prints
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Reduce image size with srcset

    Chrome for Developers

    Serving the right resolution—the goal of resize/compress tools.

    Watch on YouTube
  • Working with Responsive Images

    Chrome for Developers

    Practical responsive-image patterns for web exports.

    Watch on YouTube