PPI & DPI Calculator for Screens
Calculate pixels per inch (PPI) for screens and dots per inch (DPI) for print. Find display sharpness, dot pitch, and print quality ratings.
PPI & DPI Calculator for Screens
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: PPI = sqrt(width_px^2 + height_px^2) / diagonal_inches
Worked example โ 163.2 PPI | Dot pitch: 0.156mm | Quality: Good
Formula
PPI = sqrt(width_px^2 + height_px^2) / diagonal_inches
PPI is calculated by finding the diagonal resolution in pixels using the Pythagorean theorem, then dividing by the physical diagonal size in inches. For print DPI, divide the image pixel dimension by the desired print size in inches.
Worked Examples
Example 1: 4K Monitor PPI Calculation
Problem:Calculate the PPI of a 27-inch 4K (3840x2160) monitor.
Solution:Diagonal pixels = sqrt(3840^2 + 2160^2) = sqrt(14,745,600 + 4,665,600) = sqrt(19,411,200) = 4405.7 px PPI = 4405.7 / 27 = 163.2 PPI Dot pitch = 25.4 / 163.2 = 0.156 mm Total pixels = 3840 x 2160 = 8,294,400 (8.29 MP) Aspect ratio = 16:9
Result:163.2 PPI | Dot pitch: 0.156mm | Quality: Good
Example 2: Print DPI from Photo Resolution
Problem:A 4000x3000 pixel photo is printed at 8x10 inches. What is the effective DPI?
Solution:Horizontal DPI = 4000 / 8 = 500 DPI Vertical DPI = 3000 / 10 = 300 DPI Effective DPI = min(500, 300) = 300 DPI This ensures neither dimension is stretched. At 300 DPI, this is photo-quality printing.
Result:Effective print DPI: 300 | Photo Quality
Frequently Asked Questions
What is the difference between PPI and DPI?
PPI (Pixels Per Inch) and DPI (Dots Per Inch) are often used interchangeably, but they measure different things. PPI refers to the pixel density of a digital screen or image. Each pixel is a single point of color information displayed on your monitor. DPI refers to the physical dot density of a printed output, where each dot is a tiny ink spot laid down by a printer. A 300 PPI image sent to a 1200 DPI printer means the image data has 300 pixels per inch, but the printer uses multiple tiny ink dots to reproduce each pixel for smoother color transitions and gradients.
What PPI is considered Retina or high-resolution?
Apple coined the term Retina display for screens where individual pixels are indistinguishable to the human eye at a typical viewing distance. For phones held 10-12 inches away, this threshold is approximately 300 PPI. For tablets at 15 inches, roughly 264 PPI suffices. For laptops at 20 inches, around 220 PPI qualifies. Desktop monitors viewed from 24 inches only need about 110-150 PPI to appear sharp. The iPhone 15 Pro has 460 PPI, while a 27-inch 4K monitor has about 163 PPI. The key factor is always the viewing distance relative to the pixel density.
What DPI should I use for printing?
The ideal DPI depends on your print type and viewing distance. For photo prints, business cards, and magazines viewed up close, 300 DPI is the industry standard and produces crisp, detailed output. For large format posters viewed from several feet away, 150-200 DPI is usually sufficient because the viewing distance masks lower resolution. Billboard-sized prints viewed from great distances may only need 30-70 DPI. Newspapers typically print at 150-170 DPI. If you are printing text documents, 150 DPI minimum is recommended for legibility, though 300 DPI produces noticeably sharper type.
How does screen size affect PPI?
PPI is inversely proportional to screen size for the same resolution. A 1920x1080 display on a 5.5-inch phone yields about 401 PPI (incredibly sharp), while the same resolution on a 24-inch monitor yields only 92 PPI (noticeably pixelated up close). This is why phone screens appear much sharper than desktop monitors despite having the same or lower resolution. To maintain the same PPI when increasing screen size, resolution must increase proportionally. For example, going from a 24-inch to a 32-inch monitor requires jumping from 1080p to 1440p to maintain similar pixel density.
What is dot pitch and why does it matter?
Dot pitch is the distance in millimeters between the centers of two adjacent pixels on a display. It is the physical manifestation of PPI, calculated as 25.4 divided by PPI (since there are 25.4 millimeters per inch). A smaller dot pitch means pixels are packed more tightly together, producing a sharper image. Typical dot pitches range from 0.05mm on smartphones to 0.28mm on standard desktop monitors. For professional graphic design and photo editing, a dot pitch of 0.15mm or less (about 170 PPI or higher) is recommended to ensure accurate on-screen previews of print work.
How is PPI calculated for a display from its resolution and diagonal?
Take the diagonal pixel count with the Pythagorean theorem and divide by the physical diagonal in inches. For a 27-inch 3840 x 2160 monitor the diagonal is the square root of 3840 squared plus 2160 squared, about 4406 pixels, so PPI is 4406 divided by 27, roughly 163. The same 27-inch panel at 1920 x 1080 gives about 2203 divided by 27, roughly 82 PPI. Note that the quoted diagonal is the panel size rather than the outer case size, so measuring across the bezel overstates it and understates PPI.
What is the difference between CSS pixels, device pixels and device pixel ratio?
A device pixel is one physical addressable dot on the panel. A CSS pixel is a software unit that browsers keep at a roughly constant visual size, and device pixel ratio is how many device pixels the system renders per CSS pixel. A phone advertised at 460 PPI with a ratio of 3 presents about 153 CSS pixels per inch to the layout. This is why images need 2x or 3x assets to look sharp: the layout box is measured in CSS pixels, but the panel can resolve two or three times more detail across it.
How does halftone screen frequency in lines per inch relate to printer DPI?
Presses and many printers simulate continuous tone by clustering tiny dots into halftone cells, and the cell frequency is measured in lines per inch. Because each cell needs many printer dots to produce a range of tone levels, the device DPI must be far higher than the LPI: a 150 LPI screen is typically driven by a device running well over 1200 DPI. The long-standing prepress rule of thumb is to supply image data at roughly twice the screen ruling, which is where the familiar 300 PPI for a 150 LPI job comes from.
Why do image files carry a DPI tag if it does not change the pixels?
The DPI or PPI field in a JPEG or TIFF header is metadata telling a printing or layout application what physical size to assume by default. Changing it without resampling leaves every pixel untouched and only rescales the intended output dimensions: 3000 pixels tagged at 300 DPI means 10 inches, and retagging to 150 DPI means 20 inches from exactly the same data. Resampling is a different operation, since it interpolates new pixels and genuinely alters the file. For screen display the tag is ignored entirely.
How do I work out the viewing distance at which a screen looks pixel-free?
Human visual acuity resolves roughly one arcminute of detail, so a pixel becomes indistinguishable once it spans less than that angle. Because one arcminute is about 1/3438 of a radian, the approximate threshold distance in inches is 3438 divided by the PPI. A 163 PPI monitor therefore looks seamless from roughly 21 inches, which is a normal desk distance, while a 92 PPI monitor would need about 37 inches. The same reasoning explains why large prints tolerate far lower DPI than a print held in the hand.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer ยท Editorial policy
Related Calculators
๐ผ๏ธImage Resizer
Resize images to any dimension
๐งฎPrint Size Calculator
Calculate maximum print size from image resolution and desired DPI.
๐งฎDepth of Field Calculator
Calculate depth of field with interactive inputs and clear steps.
๐งฎHyperfocal Distance Calculator
Calculate hyperfocal distance with interactive inputs and clear steps.
๐งฎField of View Calculator (camera)
Calculate field of view (camera) with interactive inputs and clear steps.
๐งฎShutter Speed to Freeze Motion Calculator
Calculate shutter speed to stop motion with interactive inputs and clear steps.
๐งฎExposure Value (ev) Calculator
Calculate exposure value (ev) with interactive inputs and clear steps.
๐งฎNeutral Density Filter Stop Calculator
Calculate neutral density filter stop with interactive inputs and clear steps.