The relationship between pixel dimensions, physical size, and resolution is one simple formula — pixels equals physical size times resolution — applied three different ways depending on which two of the three values you know. This calculator handles all three cases with a mode toggle.
Pick what you want to solve for, enter the two knowns, and the answer appears immediately. Paper-size presets (A4, US Letter, photos, business cards) fill in the physical dimensions without typing; DPI presets (72 for web, 300 for photo print, 600 for fine art) fill in standard resolutions.
The formula
Rearrange to solve for any of the three:
That is the entire thing. The tool supports inches, centimeters, and millimeters as input and output units, converting everything to inches internally (1 inch = 25.4 mm exactly) so the math stays consistent regardless of which unit you pick.
Example: sizing an image for a photo print
You are ordering a 4 by 6 inch photo print and want to know how large the source image needs to be. Set the mode to “pixels”, enter 4 and 6 inches for the physical size, and pick the 300 DPI preset. The calculator returns 1200 by 1800 pixels. That is the minimum size your source file needs to be for a print that will look sharp at normal viewing distance; anything below that and you will start seeing individual pixels on close inspection.
For an A4 print at the same resolution, pick the A4 preset (which switches the unit to mm and fills 210 by 297). At 300 DPI, you need roughly 2480 by 3508 pixels — that is 8.7 megapixels, well within the range of any modern camera.
Example: computing the physical size of an existing image
Working the other direction — you have a 1920 by 1080 pixel image and want to know how large it will print. Set the mode to “physical size”, enter the pixel dimensions, and pick a DPI. At 300 DPI it comes out 6.4 by 3.6 inches; at 150 DPI it is 12.8 by 7.2 inches. Lower DPI means more inches but worse visible quality — the pixels get spread further apart on the paper. 150 is acceptable for draft work, 300 for anything you’ll actually hang on a wall.
Example: computing DPI from pixels and physical size
The third mode is the one you reach for when you are trying to figure out whether an image is high-enough resolution for a given print. You have a 2400 by 3000 pixel photo and want to print it 8 by 10 inches. Mode: “DPI”, plug in the numbers, and the answer is 300 DPI on both axes — perfect for photo printing. If the same source had to go 16 by 20 inches, the DPI would drop to 150, which is still acceptable for anything viewed from a couple of feet away but starts looking soft up close.
Screen DPI vs print DPI
These are related but measure different things:
- Print DPI is ink dots per inch of paper. 300 is the standard for glossy photos; 600 and above are for high-end fine-art prints.
- Screen PPI is image pixels per inch of screen. A 27-inch 4K monitor is roughly 163 PPI; a standard 1080p laptop is around 100; a phone is 300 to 500.
The web platform has a convention that 1 CSS pixel = 1/96 of an inch at typical viewing distance. That is where the common “96 DPI for web images” figure comes from — but it is a layout convention, not a measurement of any real screen. If you want an image to look sharp on retina displays, source it at 2x the nominal size and let CSS scale it down — the image dimension calculator gives you the exact dimensions for the 2× source.
Why does my image show different DPI on each axis?
If the pixel aspect ratio does not match the physical aspect ratio — for instance, a 1200 by 1600 image printed 4 by 6 inches — the calculator reports split values on the two axes. One axis comes out 300 DPI, the other comes out roughly 267 DPI. The mismatch usually means someone has cropped or scaled one dimension independently of the other. Print drivers typically ignore it and use whichever axis matches the paper orientation, but the tool shows both so you know what is going on.
What this tool does not do
It does not resize or rescale actual image files — it is purely a calculator for the numbers. To change the pixel dimensions of a file you need an image editor, a browser canvas, or a command-line tool like ImageMagick. For aspect-preserving math on arbitrary pairs (not just against a physical print), the aspect ratio calculator is the simpler tool. And it does not model printer-specific behaviour (halftone screens, dot gain, or the difference between addressable and perceptual resolution), which matters for high-end prepress work but not for anything a calculator can cover in a page of math.