Article — Pixels to Inches Converter
Pixels to inches: a converter built around DPI, not folklore
A pixel has no fixed physical size. To convert pixels to inches you need a DPI. The W3C CSS specification fixes the CSS inch at exactly 96 pixels. The commercial print industry treats 300 DPI as the photo-quality standard. Use 96 for screens and web design, 300 for printed photos and brochures, 150 for draft printing or large signs viewed from a distance, and 600 or 1200 for fine art and laser printer output.
The calculator above runs the math both ways. Pick a DPI from the dropdown, type pixels or inches into either field, and read the other side. The six presets cover almost every realistic use case, from postage-stamp web graphics at 72 DPI to gallery-quality fine art prints at 1200 DPI.
How many pixels are in one inch?
There is no universal answer because the pixel is not a unit of physical length. It is a software abstraction that a display device or printer renders at whatever physical size it likes. On a CSS-rendered web page, one inch is defined by the W3C as exactly 96 pixels. On a 300 DPI photo printer, one inch is exactly 300 pixels. On a Retina iPhone screen, one inch contains 326 physical pixels, but CSS still treats 96 of them as one inch by scaling.
This is why the calculator above is a converter and not a lookup. Without a DPI it is impossible to put pixels and inches in the same equation. The dropdown lets you set the assumption that matches your context.
The CSS specification draws a line between the "reference pixel" used in CSS layout and the "device pixel" the screen actually contains. On a Retina display the browser uses 4 device pixels (2 x 2) for each CSS pixel - everything is rendered at twice the resolution but laid out at the historical 96 PPI scale. That is why CSS measurements behave the same on a 220 PPI MacBook and a 96 PPI office monitor.
DPI versus PPI - what is the difference?
PPI stands for pixels per inch and describes screens. DPI stands for dots per inch and describes printers. The two terms are used interchangeably in everyday speech, including in this calculator's dropdown, because the math is identical for the pixel-to-inch conversion.
Strictly, the distinction matters when you look at how images are formed. A screen pixel is a single RGB triplet that produces one perceived colour spot. A printer dot is one tiny droplet of CMYK ink, and several dots together combine to produce one perceived colour. A 300 DPI inkjet might therefore use four or five physical dots for every "pixel" of the source image. For converting an image dimension to a print size, however, this distinction is invisible - the printer driver handles it for you.
- PPI = pixels per inch (RGB screens, image sensors)
- DPI = dots per inch (CMYK printers, halftone screens)
- LPI = lines per inch (offset printing screens, typically DPI / 2)
- SPI = samples per inch (scanners, equivalent to PPI)
- For the pixels-to-inches conversion these are mathematically equivalent
Why 96 DPI is the CSS reference
The W3C CSS Values and Units Module fixes the CSS inch at exactly 96 CSS pixels. This is a software definition, not a measurement of any particular monitor. The choice traces back to Microsoft Windows, which set 96 DPI as the default screen resolution in Windows 3.1 and kept it as the system default for the next three decades. When the CSS specification needed an inch-to-pixel ratio that would behave predictably across devices, the dominant desktop platform's default was the obvious anchor.
The practical consequence is that anything sized in in, cm, mm, pt, or pc in CSS comes out the same on every device, because all of those units convert deterministically to CSS pixels (1 in = 96 px, 1 cm = 37.795 px, 1 pt = 1.333 px). When the browser renders to a high-density screen, it scales the whole result, but the layout proportions stay constant.
The 300 DPI print standard
Commercial print houses treat 300 DPI as the threshold for photo-quality output. Below that, details start to look soft; above it, the printer cannot reliably resolve the extra pixels because the ink dot size is the limiting factor. For everyday photo printing - 4 x 6 snapshots, brochures, magazines, postcards - 300 DPI is the assumed default.
To prepare an image for an 8 x 10 inch print at 300 DPI, you need at least 2400 x 3000 pixels - 7.2 megapixels. Most modern smartphones easily clear that threshold. For a 16 x 20 print you need 4800 x 6000 pixels (28.8 megapixels) - here you start hitting the limit of phone cameras and need a real digital camera.
Larger formats relax the standard. A 24 x 36 inch poster viewed from 1 metre away can be printed at 150 DPI without visible loss; a billboard viewed from 30 metres is fine at 30 DPI. The rule of thumb is roughly: required DPI equals 6000 divided by the viewing distance in inches. Hold a print at arm's length (around 20 inches) and you want 300 DPI. View it across a room (120 inches) and 50 DPI is enough.
Screen density in the real world
Real screens span an enormous range of physical pixel densities. A 27-inch 1080p TV used as a computer monitor delivers around 82 PPI - low enough that you can sometimes see the pixels. A 13-inch MacBook Pro Retina display runs at 227 PPI. A modern flagship phone, like an iPhone 15 Pro, is at 460 PPI. Sony's 4K Xperia phones reach roughly 800 PPI.
To calculate the PPI of your own display: take the diagonal pixel count using Pythagoras (square root of width squared plus height squared), then divide by the screen diagonal in inches. A 27-inch monitor at 2560 x 1440 has a pixel diagonal of about 2938, divided by 27 gives 108.8 PPI. A 14-inch laptop at 3024 x 1964 has a pixel diagonal of 3600, divided by 14 inches gives 257 PPI - a high-DPI display by any reasonable definition.
From megapixels to print size
Camera resolution is usually quoted in megapixels (millions of total pixels). The maximum useful print size at 300 DPI is easy to derive from there: divide the long edge of the image by 300 and you have the long edge of the print in inches.
12 MP (4000 x 3000) 13.3 x 10 in16 MP (4920 x 3264) 16.4 x 10.9 in24 MP (6000 x 4000) 20 x 13.3 in50 MP (8688 x 5792) 29 x 19.3 in100 MP (11608 x 8708) 38.7 x 29 inAt 150 DPI (acceptable for posters) all of those print sizes double along each edge. A 24 MP camera that maxes out at 20 x 13 inches at photo quality can produce a 40 x 27 inch poster that still looks good from a few feet away.
The Photoshop DPI myth
Changing the DPI value in Photoshop's "Image Size" dialog without resampling does not improve image quality. The DPI field is just a tag stored in the file's metadata that tells a printer how big to print the same set of pixels. Re-tagging an image from 72 DPI to 300 DPI shrinks the printed output by a factor of four, but the actual pixels are unchanged - the image still has the same level of detail.
To actually add pixels you have to resample - the software invents new pixels by interpolating between the originals. Bicubic, Lanczos, and modern AI upscalers all do this. None of them recover lost detail; they only smooth what you already have. If the source is a 640 x 480 image and you need a sharp 8 x 10 print, you need a higher-resolution source. There is no Photoshop button that creates pixels from nothing.
Where 72 DPI came from
The 72 DPI standard is older than personal computing. It comes from PostScript typography. Adobe's PostScript page description language, released in 1984, defines a point as exactly 1/72 of an inch - the historical typographer's point rounded to a convenient computer-friendly fraction. When Apple shipped the original Macintosh that same year, the 9-inch screen happened to have 72 pixels per inch. The match was deliberate: one PostScript point on screen equalled one PostScript point in print, and designers could use a physical ruler to check their layouts.
That perfect symmetry broke as soon as monitors started getting denser. By the mid-1990s Windows had settled on 96 DPI as its default, and the screen-print equivalence was gone. 72 DPI lives on as a vestigial convention in some image-editing software defaults, but it has not been an accurate reflection of any common screen for thirty years.