Pixels to Inches Converter

Convert pixels to inches at six DPI presets: 72, 96 (CSS reference), 150, 300, 600, and 1200.

Convert 6 DPI presets Bidirectional
Rate this calculator · 4.5 (4)

Pixels ↔ Inches

6 DPI presets · W3C CSS reference · bidirectional

Instructions — Pixels to Inches Converter

1

Pick the resolution

The result depends on the DPI. For web design and CSS work, use 96 DPI (the W3C CSS reference). For photo printing, use 300 DPI. For draft printing or big banners viewed from a distance, 150 DPI is enough. The dropdown switches between six common presets.

2

Enter pixels or inches

Type into either side and the other updates. Quick picks cover the most-used image widths: 96 (1 inch at CSS reference), 1920 (Full HD), 3840 (4K UHD), and 3000 (a standard 10-inch print at 300 DPI).

3

Adjust precision

Three decimals is the default; raise it to six for technical print specs, drop to zero for back-of-envelope checks. The reverse formula (inches to pixels) rounds to a whole pixel in practice, since you cannot print or display half a pixel.

CSS rule: the CSS specification defines 1 in = 96 px regardless of physical screen. That makes 96 DPI the universal reference for web design, even when the actual monitor is 220 PPI or higher.
Print rule: commercial print uses 300 DPI as the standard. A photo that prints 10 x 8 inches at 300 DPI needs 3000 x 2400 pixels - 7.2 megapixels.

Formulas

The pixel-to-inch conversion is simple division. The only twist is choosing the right DPI for the medium - screen, web, draft print, or photo print.

Pixels to inches
$$ L_{in} = \frac{P}{\text{DPI}} $$
Inches equals pixels divided by dots per inch. 300 pixels at 96 DPI is 3.125 inches; at 300 DPI it is 1 inch.
Inches to pixels
$$ P = L_{in} \times \text{DPI} $$
Pixels equals inches times DPI. A 4 x 6 inch photo printed at 300 DPI needs 1200 x 1800 pixels.
CSS reference
$$ 1\,\text{in (CSS)} = 96\,\text{px (exact)} $$
The W3C CSS Values and Units specification defines the CSS inch as exactly 96 pixels. This holds regardless of the actual physical screen density.
Screen PPI from resolution
$$ \text{PPI} = \frac{\sqrt{W_{px}^2 + H_{px}^2}}{d_{in}} $$
For a real display: take the diagonal in pixels (Pythagoras of width and height), divide by the diagonal in inches. A 27-inch monitor at 2560 x 1440 has PPI = 108.8.
Print size from megapixels
$$ \text{max print (in)} = \frac{\text{image px}}{300} $$
A 24-megapixel camera (6000 x 4000 px) prints up to 20 x 13.3 inches at 300 DPI before pixels start to show.
PostScript origin
$$ 1\,\text{point} = \tfrac{1}{72}\,\text{inch} $$
The 72-DPI standard comes from PostScript typography. Adobe set 72 points per inch in 1984, and the original Macintosh screen matched at exactly 72 pixels per inch.

Reference

Pixel to inch quick reference
Pixelsat 72 DPIat 96 DPI (CSS)at 150 DPIat 300 DPIat 600 DPI
721.000 in0.750 in0.480 in0.240 in0.120 in
961.333 in1.000 in0.640 in0.320 in0.160 in
3004.167 in3.125 in2.000 in1.000 in0.500 in
6008.333 in6.250 in4.000 in2.000 in1.000 in
108015.00 in11.25 in7.200 in3.600 in1.800 in
192026.67 in20.00 in12.80 in6.400 in3.200 in
216030.00 in22.50 in14.40 in7.200 in3.600 in
300041.67 in31.25 in20.00 in10.00 in5.000 in
384053.33 in40.00 in25.60 in12.80 in6.400 in

DPI by medium

Different media require different pixel densities. The right DPI depends on viewing distance and required detail.

Screen density
DisplayTypical PPI
CSS reference (spec)96 PPI
Standard desktop monitor90 - 110 PPI
High-DPI laptop120 - 200 PPI
Apple Retina (iPhone 4, 2010)326 PPI
Modern flagship phone400 - 600 PPI
4K phone (Sony Xperia)~800 PPI
Print resolution
UseDPI
Billboard (viewed from 30 m)30 - 50 DPI
Newspaper85 - 150 DPI
Magazine, brochure200 - 300 DPI
Photo print (industry standard)300 DPI
Laser printer, office600 DPI
Fine art print1200+ DPI

Note: the CSS specification fixes the CSS inch at exactly 96 px - that is a software definition, not a measurement. On a 220 PPI Retina display, the browser still treats 96 px as one CSS inch by scaling the rendering.

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.

Did you know

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.

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.

Tip

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.

Office monitor
96 PPI
CSS reference
Retina laptop
220 PPI
14" MacBook Pro
Phone (typical)
460 PPI
iPhone 15 Pro
4K phone
~800 PPI
Sony Xperia 1

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.

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.

Maximum print size at 300 DPI
12 MP (4000 x 3000) 13.3 x 10 in
16 MP (4920 x 3264) 16.4 x 10.9 in
24 MP (6000 x 4000) 20 x 13.3 in
50 MP (8688 x 5792) 29 x 19.3 in
100 MP (11608 x 8708) 38.7 x 29 in

At 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.

Resampling versus retagging

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.

FAQ

It depends on the medium. The CSS standard defines 1 inch = 96 pixels for web design. Commercial print uses 300 pixels per inch as the industry standard. Older Mac systems used 72 PPI, modern phones run at 300 to 600 PPI, and the actual screen density varies from 90 PPI on a basic monitor to 800+ PPI on a 4K phone.
Divide pixels by 300 (the print standard). A 3000 x 2000 pixel image prints at 10 x 6.67 inches at 300 DPI. For draft printing or large posters viewed from a distance, 150 DPI is acceptable and doubles the printable size.
PPI (pixels per inch) describes screen density and uses RGB pixels. DPI (dots per inch) describes printer output and uses CMYK ink dots. In practice the terms are used interchangeably, especially for the pixel-to-inch conversion itself, but printers technically use multiple dots to produce one perceived pixel.
The W3C CSS specification fixes the CSS inch at 96 px regardless of the actual display. This dates back to Windows, which used 96 DPI as the default screen resolution starting in the early 1990s. Standardising the CSS inch at this value made web layouts predictable across devices.
At 300 DPI (print standard) you need 1200 x 1800 pixels - about 2.2 megapixels. Most modern smartphones produce 12+ megapixel images, so a 4 x 6 print is well within reach. For an 8 x 10 print at 300 DPI you need 2400 x 3000 pixels (7.2 megapixels).
Because the DPI metadata field only tells the printer how big to print the same pixels. Changing 72 DPI to 300 DPI without resampling does not add pixels - it just shrinks the print size. To genuinely increase resolution you need more pixels, which requires either a higher-resolution capture or AI upscaling (which interpolates and never matches real detail).
An Apple marketing term for screens dense enough that individual pixels are not visible at normal viewing distance. The original Retina iPhone 4 (2010) ran at 326 PPI. Apple defined the threshold at roughly 300 PPI for handheld devices, falling to 220 PPI for laptops (held farther away) and 150 PPI for desktop monitors.
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 diagonal of 2938 pixels, divided by 27 inches gives 108.8 PPI - typical for a desktop QHD monitor.