How it works
A pixel has no fixed physical size, it depends on the display or print resolution, measured in dots (or pixels) per inch. Dividing the pixel count by the DPI gives the size in inches.
inches = pixels ÷ DPI
cm = inches × 2.54 · points = inches × 72
Worked example
A 1920-pixel width at 96 DPI is 1920 ÷ 96 = 20 inches on screen, but only 6.4 inches at 300 DPI for print.
Print sizes for common image resolutions
Print size depends only on the pixel count and the resolution you print at: inches = pixels ÷ DPI. 300 DPI is the usual target for photos and magazines, 150 DPI is acceptable for large posters viewed from a distance, and web browsers treat 96 CSS pixels as one inch.
To find the pixels you need for a print, reverse it: an 8 × 10 inch print at 300 DPI needs 2,400 × 3,000 pixels.
Pixels needed for common print sizes
Common resolutions and where they're used
CSS units in pixels
- 1 inch = 96 px
- 1 centimeter ≈ 37.8 px
- 1 point (pt) = 1/72 inch ≈ 1.333 px
- 1 pica = 12 pt = 16 px
Viewing distance matters: a billboard viewed from across the street can look sharp at 20 DPI or less, while a photo held in your hand needs about 300 DPI to look crisp.
Frequently asked questions
How do I convert pixels to inches?
Divide pixels by DPI. At 96 DPI, 96 px = 1 inch.
How many pixels are in an inch?
96 for web, 300 for print, depending on the resolution.
How many pixels do I need for an 8 × 10 print?
2,400 × 3,000 pixels at 300 DPI, or 1,200 × 1,500 at 150 DPI for a lower-quality print.
What is the difference between DPI and PPI?
PPI is pixels per inch in the image or screen; DPI is dots of ink per inch on a printer. For converting image size to print size, they are used the same way.
What resolution do I need for a 4×6 print?
1,200 × 1,800 pixels at 300 DPI. Most phone photos easily exceed this.
How many pixels is 1 cm?
About 37.8 pixels at the 96 PPI used by web browsers, or about 118 pixels at 300 DPI.