calculate dpi

DPI / PPI Calculator

Use this tool to calculate display pixel density (PPI, often called DPI) and print DPI from image dimensions.

If you enter diagonal inches, the calculator returns pixel density for a monitor, laptop, tablet, or phone.

If you enter print size, the calculator returns horizontal and vertical print DPI.

What does “calculate DPI” really mean?

DPI stands for dots per inch. In printing, it describes how many ink dots are placed in one inch of paper. In digital screens, people often say DPI when they actually mean PPI (pixels per inch), which is the pixel density of a display. The terms are related, but not exactly the same.

Quick definitions

  • DPI (printing): Physical dots of ink per inch from a printer.
  • PPI (display): Number of pixels per inch on a monitor, laptop, phone, or tablet.
  • Image resolution: Total pixel dimensions, such as 3000 × 2000 px.
In everyday design and web conversations, “DPI” is commonly used as a shortcut for any pixel density discussion. That is why this calculator supports both screen density and print density workflows.

The core formulas

There are two common ways to calculate pixel density:

1) Screen PPI from resolution + diagonal

PPI = √(pixelWidth² + pixelHeight²) ÷ diagonalInches

This uses the Pythagorean theorem to get the pixel diagonal, then divides by physical diagonal size in inches.

2) Print DPI from pixels + print dimensions

Horizontal DPI = pixelWidth ÷ printWidthInches
Vertical DPI = pixelHeight ÷ printHeightInches

If horizontal and vertical values are close, your print scaling is consistent. If they differ a lot, your image may be stretched or cropped when printed.

How to use this calculator correctly

For monitors, laptops, and phones

  • Enter pixel width and pixel height (for example 2560 × 1440).
  • Enter physical diagonal in inches (for example 27).
  • Click Calculate DPI to get PPI.

For print quality checks

  • Enter the image pixel dimensions (for example 3600 × 2400).
  • Enter intended print width and height in inches (for example 12 × 8).
  • Calculate to see horizontal/vertical DPI and quality guidance.

What DPI should you target?

Target DPI depends on distance, use case, and quality expectations:

  • 300 DPI and above: High-quality photo prints, books, portfolios.
  • 200–299 DPI: Good general prints, flyers, and brochures.
  • 150–199 DPI: Acceptable for casual prints and posters viewed at a distance.
  • Below 150 DPI: Usually soft or pixelated up close.

Worked examples

Example A: 24-inch, 1920 × 1080 monitor

Pixel diagonal = √(1920² + 1080²) ≈ 2202.9. Divide by 24 inches: PPI ≈ 91.8. So this display is roughly 92 PPI.

Example B: Print a 4000 × 3000 image at 10 × 7.5 inches

Horizontal DPI = 4000 ÷ 10 = 400. Vertical DPI = 3000 ÷ 7.5 = 400. This is excellent print quality.

Example C: Same image at 20 × 15 inches

Horizontal and vertical DPI both become 200. This is still decent for many purposes, especially if viewed from farther away.

Common mistakes when people calculate DPI

  • Confusing image dimensions (pixels) with physical print size (inches).
  • Assuming changing the “DPI metadata” alone adds detail. It does not; only more pixels add real detail.
  • Forgetting aspect ratio, which causes distortion and mismatched horizontal/vertical DPI.
  • Using screen PPI expectations for print jobs without checking final print size.

Practical checklist before exporting images

  • Verify final print dimensions in inches or centimeters.
  • Confirm pixel dimensions are sufficient for your target DPI.
  • Keep aspect ratio consistent to avoid stretching.
  • Sharpen after resizing for final output.
  • Export in appropriate format (JPEG, PNG, TIFF, or PDF depending on use).

Frequently asked questions

Is 72 DPI always enough for screens?

That old guideline is outdated. Modern screens have a wide range of PPI values. What matters for digital display is usually pixel dimensions and responsive design, not a fixed 72 DPI number.

Can I convert a low-resolution image to 300 DPI and make it sharp?

You can set metadata to 300 DPI, but if total pixels are low, print quality will still be limited. Real improvement usually requires higher native resolution or AI upscaling with careful review.

Why do I get different horizontal and vertical DPI?

It usually means the print size and image aspect ratio do not match. Either crop to match the ratio or adjust one dimension to keep scaling proportional.

Bottom line

To calculate DPI accurately, always start with the right inputs: pixel dimensions and either screen diagonal or intended print size. Once you know your density, you can make better decisions for design, photography, publishing, and device comparisons. Use the calculator above whenever you need a fast, reliable answer.

🔗 Related Calculators