Print size to pixels
Choose the paper and the resolution. The result is the pixel dimensions your file should be, with a 3 mm bleed version for anything going to a commercial printer. The list underneath shows the same sheet at four common resolutions so you can compare.
Pixels to print size
Switch modes, type your image dimensions and a target DPI, and the tool works out the largest print that still meets it, then lists the standard sizes that fit without upscaling. Smartphone photos are typically 3000 × 4000 px and print cleanly up to about 10 × 13 in at 300 dpi.
A rule of thumb
Divide the pixel count by 300 to get inches at photo quality, or by 118 to get millimetres at the same quality. If the number is bigger than the paper, you are fine.
If you would rather read the numbers than calculate them, paper sizes in pixels tabulates every size at 72, 96, 150, 200, 300 and 600 dpi.