Image DPI Calculator
Calculate print DPI from pixel size.
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
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?
Is DPI the same as PPI?
What DPI do I need to print?
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 YouTubeWorking with Responsive Images
Chrome for Developers
Practical responsive-image patterns for web exports.
Watch on YouTube
- Use WebP images
web.dev
When next-gen formats beat shipping oversized PNGs.
- Efficiently encode images
Chrome Developers
Lighthouse image budgets that motivate compress tools.