Will this photo print sharply at 8 x 10?
A camera produces a photo of 6000 × 4000 pixels, and you want an 8 x 10 inch print. The photo is landscape, so the paper is turned to 10 x 8. Across, 6000 pixels over 10 inches is 600 pixels per inch. Down, 4000 pixels over 8 inches is 500. The photo is a different shape from the paper, so it is scaled until the 4000 pixel side fills the 8 inches, at 500 dpi. At that scale the width needs only 5000 pixels, and the other 1000 are trimmed, 500 from each side.
So the print gets 500 dpi, well above the 300 that sharp photo prints need. It also loses a sixth of the width, which matters more than the dpi here. If the left edge of the photo has a person in it, crop the picture yourself to 5:4 before sending it, so you choose what goes. The page names which side is trimmed for this reason.
Now a phone photo of 4032 × 3024 pixels. Choose How big can I print and type 300 dpi, and the answer is 13.44 × 10.08 inches, or 34.1 × 25.6 cm. That is the largest sharp print for close viewing. At 150 dpi the same photo makes a 26.88 × 20.16 inch poster, which looks fine on a wall seen from a step back. Printing larger than that does not fail; each pixel just covers more paper, and close up the picture looks soft.
The third question comes from designers: how many pixels does a print need? A flyer on A4 at 300 dpi needs 2480 × 3508 pixels. A 4 x 6 postcard needs 1200 × 1800. Start the artwork at that size and it will print sharply. If a print shop asks for 3 mm of bleed, A4 with bleed is 216 × 303 mm, which needs 2551 × 3579 pixels.
The calculator has limits. It assumes the picture is scaled to fill the paper, as most print shops do, and does not cover printing with white borders. The quality bands are a guide for typical viewing distances, not a guarantee; a good photo can look fine at lower dpi and a blurry one will not be rescued by more pixels. Upscaling a small image raises its pixel count without adding detail. And it does not read files: for megapixels and aspect ratio of a resolution, use the Resolution Calculator.