The question behind a print size
Before ordering a print, most people want to know whether the photo has enough pixels to look sharp at the size they have in mind. A file that looks excellent on a phone can look soft on a 24 inch wall print, and the cause is simple arithmetic. Every printed inch has to be filled with some number of image pixels, and when that number gets low, individual pixels start to show as blocks or the print looks blurred. This calculator answers the question directly. You enter the number of pixels along one edge, for example the long side of the image, and the length in inches you want that edge to measure on paper. The page returns pixels per inch (PPI). You can then compare the figure with the density your print provider asks for, and decide whether to print at that size, print smaller, or reshoot or upscale the image.
The formula and the default example
The formula is ppi = pixels divided by inches. With the defaults, an edge of 3,000 pixels printed over 10 inches gives 3,000 divided by 10, which is 300 pixels per inch. Because the formula uses a single edge, you can run it twice, once for the width and once for the height, and the two answers agree whenever the print keeps the original proportions. If they differ, the print is stretched or cropped. Cropping removes pixels from one or both edges, so enter the pixel count that remains after the crop, not the original count. Resizing the print changes the answer in direct proportion. Keep the same 3,000 pixels and print them over 20 inches, and the density falls to 150 PPI. Print them over 5 inches and it rises to 600 PPI, though extra density beyond what the printer can use brings no visible gain.
PPI is not DPI
The two abbreviations get mixed up constantly, and the distinction affects how you read the result. PPI describes the image: how many pixels of the digital file fall on each inch of the printed page. DPI, dots per inch, describes the printer: how many tiny ink or toner dots the device can place per inch. An inkjet advertised at 4,800 by 1,200 dpi is not asking for a 4,800 PPI image. The printer builds each image pixel out of many small dots in different colors, and that is how it produces smooth tones from a limited set of inks. This page calculates image PPI only, as its assumption note states. It does not tell you anything about printer resolution, halftone screens or ink coverage. A print shop's request for a 300 DPI file is therefore a request for an image whose PPI is 300 at the size you order, and if the upload page does not say which it means, ask.
Common pixel targets for standard sizes
Working backward from a paper size shows how many pixels you need. One inch is exactly 25.4 millimeters, so 300 PPI equals about 11.81 pixels per millimeter. At 300 PPI, a 4 by 6 inch print needs 1,200 by 1,800 pixels. An 8 by 10 needs 2,400 by 3,000. A letter-size page of 8.5 by 11 inches needs 2,550 by 3,300. A 16 by 20 inch print needs 4,800 by 6,000 pixels, which is 28.8 megapixels, and that is why large prints at 300 PPI demand high-resolution cameras or stitched images. Many photo labs and print guides treat 300 PPI as a comfortable target for prints viewed at arm length, and lower figures as acceptable for larger prints that people view from farther away. The right figure depends on the paper, the printer and the viewing distance, so check what your provider recommends.
Lower density for larger prints
The eye resolves less detail as viewing distance grows, which is why a poster seen from across a room can look fine at a density that would look coarse on a photo held in the hand. Large-format printers and sign makers often work with images between roughly 100 and 150 PPI at final size, and billboards use far less because nobody stands next to them. These are practical conventions rather than fixed rules, and providers publish their own minimums. A useful habit is to compute the PPI at the planned size, then compare it with the requirement stated on the provider's upload page. If the requirement is 150 PPI and the calculator shows 142, the file is just under the line and you can decide whether a small size reduction makes sense. If it shows 60, the image needs more pixels or a smaller print. Judge a final decision on a test print where possible.
A second example with a camera file
Suppose a camera produces images that measure 6,000 pixels on the long side and 4,000 on the short side, a 24 megapixel frame. You want to print the long side across 24 inches. Dividing 6,000 by 24 gives 250 PPI. Check the short side too: 4,000 divided by 250 is 16 inches, so the print would measure 24 by 16 inches, which is a 3:2 shape that matches the file. If you prefer a 300 PPI result, rearrange the formula to inches = pixels divided by PPI. Then 6,000 divided by 300 gives 20 inches, and 4,000 divided by 300 gives 13.33 inches. A 20 by 13.33 inch print would sit in a standard 20 by 16 frame only with a mat or borders, because the image is wider relative to its height than the frame, and cropping the width to fill the frame would lower the density of what remains. These figures are illustrative arithmetic for one hypothetical file.
Cropping and aspect ratio
Standard paper and frame sizes rarely match the shape of a camera image. A 3:2 camera frame fits a 4 by 6 print exactly, but an 8 by 10 print has a 4:5 shape, so part of the image must be trimmed. Take a 6,000 by 4,000 pixel file printed at 8 by 10 inches with the short side running along the 8 inch edge: the short side needs 4,000 pixels over 8 inches, which is 500 PPI, while the long side can be cropped to 5,000 pixels to fill 10 inches at the same density. The crop discarded 1,000 pixels, and the density of the remaining pixels did not change. Cropping affects PPI only when you then scale the cropped result to a size that is different from the original. Always enter the pixel count of the area that will actually be printed, and the length of the same edge on paper.
Resampling and what it can do
Photo editors can resample an image, which means changing its pixel count by interpolation. Adobe's Photoshop documentation on image size and resolution describes this: with resampling on, the program adds or removes pixels, and with it off, changing the resolution value changes only the print size. Upscaling creates new pixels by estimating colors from neighbors. It makes the file larger and the PPI figure higher, but it cannot recover detail the camera never captured. Modern algorithms can make an enlarged image look smoother, and some tools use machine learning to add plausible texture, though the added detail is a reconstruction rather than a measurement. Downscaling for a smaller print is safer, since it throws away pixels that you did not need. If the calculator shows a figure that is too low, try a smaller print first, then consider upscaling only if the size is fixed.
Limits of a single-number check
PPI is a useful screening number, and it is only that. It does not measure sharpness, noise, focus accuracy, compression artifacts, color accuracy or the way a given paper absorbs ink. Two images with the same PPI can look very different if one was shot in good light on a sharp lens and the other is a heavily compressed web download. The calculator also treats one dimension at a time and assumes the print keeps the image proportions. It is a scalar model: any pair of positive values works, and the output must be finite. Use the result to reject clearly insufficient files and to size prints sensibly, and use a proof print or a soft-proof from the printing service for the final call. For documents with text or line art, vector artwork avoids the issue entirely, since it has no fixed pixel density.
Working backward from a target density
Sometimes the density is fixed by the printer or the client and the unknown is the largest print you can make. Rearrange the formula to inches = pixels divided by PPI. A 4,500 pixel edge at 300 PPI gives 15 inches, and at 150 PPI it gives 30 inches. The same relation tells you how many pixels to capture. If you plan a 30 inch wide canvas at 100 PPI, you need 3,000 pixels across, which almost any modern camera or phone supplies. Doubling the print width at a fixed density means doubling the pixels along that edge, which quadruples the total pixel count, so a 12 megapixel file that suits one size needs about 48 megapixels to cover twice the width at the same quality. This is why a modest step up in print size can push a file past what a camera produced. Run the calculator both ways to find a size that your pixels can support without resampling.