You picked the photo, the print shop asked for 300 DPI, and now you are staring at a file wondering whether it will print sharp or soft. The photo looks fine on your phone, but that tells you nothing about how it prints, because a screen and a printer measure an image in completely different ways. This guide shows you how to check image DPI before printing, on Windows, Mac, iPhone, and Android, with the print size math that turns the number into a real answer. Our increase DPI tool does the fix once you know the number: it reads the current DPI from your file, lets you set a new value, and rewrites only the metadata, with no upload and no signup.
1. The short answer: one formula decides whether your print will be sharp
Checking DPI takes thirty seconds once you know where to look, and the number only means something when you combine it with the pixel dimensions. The whole check is one division.
Print size in inches equals pixels divided by DPI. A photo that is 3000 pixels wide, tagged at 300 DPI, prints 10 inches wide. The same photo tagged at 72 DPI prints 41.7 inches wide, which is why it would look soft: the same pixels are stretched over four times the paper.
The rule print shops use is simple. For a photo quality print, you want 300 DPI at the size you plan to print. For a large poster viewed from a few steps away, 150 DPI is usually accepted. For anything on a screen, DPI does not matter at all, only the pixel count does. So the check has three steps: find the DPI value in the file, find the pixel dimensions, and divide the pixels by the DPI to get the print size. If the result covers the paper size you want at 300 DPI, the file is ready. If it does not, you either print smaller or start from a larger original.
2. What DPI actually is, and what it is not
DPI stands for dots per inch. It is a small number stored in your image file’s metadata that tells a printer how densely to pack the pixels on paper. It is not part of the picture itself. Changing it adds no pixels, removes no pixels, and changes nothing about how the image looks on a screen. A 3000 by 2400 pixel photo tagged at 72 DPI and the same photo tagged at 300 DPI contain identical pixels and look identical on any screen.
Think of it like a label on a box of tiles. The tiles are the pixels: their number never changes. The DPI label tells the tiler how tightly to lay them. A low DPI spreads the same tiles over a large floor, so you see every gap. A high DPI packs them tight, so the surface looks smooth. The printer follows the label, and if the label says 72 DPI, it spreads your pixels thin even though the file holds enough detail for a much smaller, sharper print.
Three confusions cause most of the trouble. First, people treat DPI as image quality, and it is not: quality lives in the pixel count. Second, people assume a file with no DPI value is broken, when many perfectly good files simply carry no DPI tag at all. Third, people believe raising the DPI number improves the photo, when it only changes the size it prints at. Our increase DPI tool is honest about this on its own page: changing DPI only updates the metadata and does not add detail or improve image quality.
3. The print size math, with real numbers
Every DPI question is answered by the same division, so here it is on real files. Take a photo that is 1800 pixels wide and 1200 pixels tall, the worked example on our DPI tool page. At 72 DPI it would print at 25 by 16.7 inches, a poster sized print where every pixel shows. After you increase DPI to 300, the exact same file prints at 6 by 4 inches, dense and crisp, which is what a print shop wants for a standard photo print. Same pixels, same file, completely different print.
Now run the check the other way round, from the print size you want to the pixels you need. Multiply the inches by the DPI. A 4 by 6 inch print at 300 DPI needs 1200 by 1800 pixels. An 8 by 10 inch print needs 2400 by 3000 pixels. An A4 page needs 2480 by 3508 pixels, because A4 is 210 by 297 millimetres, which is 8.27 by 11.69 inches, and 8.27 times 300 is 2480 while 11.69 times 300 is 3508. If your photo has fewer pixels than that, it cannot print at that size at 300 DPI, no matter what the DPI tag says.
The quick check most people actually need is simpler still. Divide the long edge of your photo by 300. That is the widest photo quality print you can make. A phone photo at 4000 by 3000 pixels gives 13.3 inches on the long edge, so it covers an 8 by 10 print with room to spare. A 1200 by 900 pixel image gives 4 inches on the long edge and 3 inches on the short edge, so it covers a 4 by 3 inch print at photo quality, and it cannot cover a 5 by 7 at full quality at all.
4. How many pixels you need for common print sizes
Use this table before you send anything to print. It lists the pixels a photo needs to cover each size at 300 DPI, the photo quality standard, and at 150 DPI, the level large format printers accept for posters viewed from a distance.
| Print size | Pixels needed at 300 DPI | Pixels needed at 150 DPI | Typical use |
|---|---|---|---|
| 4 by 6 in | 1200 x 1800 | 600 x 900 | Standard photo print |
| 5 by 7 in | 1500 x 2100 | 750 x 1050 | Frame print, greeting card |
| 8 by 10 in | 2400 x 3000 | 1200 x 1500 | Frame print, portrait |
| 8 by 12 in | 2400 x 3600 | 1200 x 1800 | Frame print, 2:3 photo |
| 11 by 14 in | 3300 x 4200 | 1650 x 2100 | Large frame print |
| A4 (210 by 297 mm) | 2480 x 3508 | 1240 x 1754 | Document, flyer, certificate |
| 12 by 18 in | 3600 x 5400 | 1800 x 2700 | Poster |
| 16 by 20 in | 4800 x 6000 | 2400 x 3000 | Large poster |
| 24 by 36 in | 7200 x 10800 | 3600 x 5400 | Large poster, banner |
Notice what the table implies. A phone photo at 4000 by 3000 pixels covers everything up to 8 by 12 at 300 DPI, but it cannot cover 11 by 14 at 300 DPI, because that needs 3300 by 4200 pixels and the photo’s short edge only holds 3000. It can cover 16 by 20 at 150 DPI, which needs only 2400 by 3000, so a large poster from a phone photo is fine at the lower standard and soft at the higher one. That is the trade every print decision makes: the bigger the paper, the fewer pixels per inch, unless you start from a bigger file.
Passport photos are the strictest everyday case of the same math, and they show why the DPI tag and the pixel count have to be checked together. A US passport photo prints at 2 by 2 inches, which is 600 by 600 pixels at 300 DPI. Our guide on what size is a passport photo lists every country’s size with the pixel conversion, and the same divide by 300 rule checks each one.
5. How to check DPI on Windows
Windows shows the DPI value in the file properties, with no extra software. The steps are the same on Windows 10 and Windows 11.
Step 1: find the file in File Explorer. Open the folder that holds the photo. If you only have the photo inside another app, save a copy to a folder first, because the check reads the file itself.
Step 2: right-click the file and choose Properties. A window opens with several tabs. Ignore the General tab: it shows the file size and dates, but not the DPI.
Step 3: open the Details tab and scroll to the Image section. Look for two lines named “Horizontal resolution” and “Vertical resolution”. Those are the DPI values, shown as a number followed by dpi. A photo saved by a camera or a photo editor usually shows 300 dpi, 240 dpi, or 72 dpi here. The same section also shows the dimensions in pixels, so you can run the print size division right there: divide the width in pixels by the horizontal resolution to get the print width in inches.
Two things catch people out here. First, screenshots and images saved from the web often show no resolution lines at all, or show 96 dpi, which is a Windows screen default rather than a real print setting. That does not mean the file is broken, it means the file carries no useful DPI tag, and section 10 explains what to do about that. Second, the Details tab shows the DPI tag, not the print quality: a 600 by 400 pixel image tagged at 300 DPI still only prints 2 by 1.3 inches at photo quality, because the pixel count is the real limit.
The Windows Photos app is not a substitute for this check. Its info panel shows the pixel dimensions and the file size, which is useful, but it does not show the DPI value. Use File Explorer Properties for the DPI number, and use the Photos app only for the dimensions.
6. How to check DPI on a Mac
A Mac shows the DPI in Preview, the image viewer built into macOS. Finder on its own does not show it.
Step 1: open the image in Preview. Double-click the file, or right-click it and choose Open With, then Preview. Preview opens most image formats, including JPG, PNG, and HEIC.
Step 2: open Tools, then Adjust Size. A panel appears showing the width and height in pixels, and a Resolution field measured in pixels per inch. That resolution number is the DPI value. The panel also shows the resulting print size in inches or centimetres, which is the same division from section 1 done for you: pixels divided by DPI. If the width shows 10 inches at 300 pixels per inch, the photo covers a 10 inch wide print at photo quality.
Step 3: read the number and close the panel without saving. The Adjust Size panel edits the file if you press OK after changing a value, so if you only want to check, read the numbers and press Cancel. Changing the resolution field here and pressing OK rewrites the DPI tag without touching the pixels, but only if the Resample option is off. With Resample on, Preview changes the pixel count too, which is a different job.
If you prefer Finder, select the file and press Command and I for Get Info. The panel shows the dimensions in pixels and the file size, but it does not show DPI, so it answers only half the question. Preview is the tool for the DPI number on a Mac, and it takes less than a minute.
7. How to check DPI on iPhone and Android
Phones are the awkward case, because the built-in photo apps show the pixel dimensions and the file size, but not the DPI value. That is not an oversight: DPI is a print instruction, and phones are built for screens, so Apple and Google never put the number where you would see it.
On an iPhone: open the Photos app, tap the photo, then tap the info button, the small “i” in a circle, or swipe up. The details panel shows the pixel dimensions, for example 4032 by 3024, and the file size, for example 3.2 MB. It does not show DPI. From the dimensions alone you can still answer the print question: divide the long edge by 300. A 4032 pixel wide photo divides to 13.4 inches, so it covers an 8 by 10 print easily. But you cannot see whether the file is tagged 72 DPI or 300 DPI, and a print shop that checks the tag will still ask you to set it. To see or change the tag, use the online method in section 9, which reads the header of the file itself.
On Android: open Google Photos or your gallery app, tap the photo, then swipe up or tap the three dots and choose Details. The panel shows the same two numbers, dimensions and file size, and likewise no DPI value. The same division applies: a 4000 by 3000 photo covers a 13.3 by 10 inch print at 300 DPI. Some Android file manager apps show more metadata than the gallery does, so if your file manager has a Details or Properties view, check there too, but most will show the same two numbers and no DPI.
One more phone detail matters before printing. Since iOS 11, iPhones save photos in the HEIC format by default, and many print shops and online print services still reject HEIC files outright. If your photo ends in .heic or .heif, convert it to JPG first with our HEIC to JPG converter, which converts one file at a time in your browser and keeps the dimensions exactly the same, then check the DPI of the JPG. The converted JPG files are usually 1.5 to 2.5 times larger than the HEIC originals, because HEIC compression is far more efficient than JPG compression, so allow for the bigger file when you upload it to the print service.
8. How to check DPI in Photoshop and free editors
If you already use an image editor, it shows the DPI value directly, and it is the most reliable place to check, because editors read the same header fields a printer reads.
In Photoshop: open the image, then go to Image, then Image Size. The dialog shows the pixel dimensions at the top and a Resolution field below, measured in pixels per inch. That is the DPI value. The dialog also shows the document size in inches, which is the print size at that DPI. To check without changing anything, read the numbers and press Cancel. If you change the Resolution number with Resample turned off and press OK, Photoshop rewrites only the DPI tag, and the pixel dimensions stay exactly the same. With Resample turned on, it changes the pixel count, which is a resize, not a DPI change.
In GIMP, the free editor: open the image, then go to Image, then Print Size. The dialog shows the X and Y resolution in pixels per inch, which is the DPI value, plus the print width and height. Change the numbers here and export, and only the tag changes.
In free online editors such as Photopea: open the image, then go to Image, then Image Size. The dialog mirrors Photoshop: dimensions in pixels, resolution in pixels per inch, and a resample checkbox. The same rule applies, read and cancel to check, change with resample off to retag.
One warning covers all three. Editors that offer a “300 DPI” preset sometimes apply it by resampling the image, which invents new pixels and softens the photo. A DPI change should never touch the pixels. If your editor asks whether to resample, say no, and check the pixel dimensions before and after: if they changed, the tool resized your photo instead of retagging it.
9. How to check DPI online without installing anything
If you do not have an editor and your phone will not show the number, the fastest check is a browser tool that reads the file header directly. This is also the most honest check, because it reads the same fields a printer reads, rather than a value an app guessed.
Open our increase DPI tool and drop in your JPG or PNG file, up to 25 MB. The tool reads the current DPI from the file header and shows it to you before you change anything, so the check and the fix happen in one place. If the file is tagged 300 DPI and the pixels cover your print size, you are done: close the tab and send the file. If it is tagged 72 DPI, type 300 as the target and press Set DPI, and the tool rewrites only the DPI metadata fields in the header, the density fields in a JPG’s JFIF header or the pHYs chunk in a PNG, with no re-encoding and no quality change of any kind. The file downloads with the same pixels and a new tag.
The check works because JPG, PNG, and TIFF all store DPI metadata reliably, which is why printers ask for them. Formats like WebP and GIF handle DPI inconsistently, so if your file is a WebP, convert it to JPG or PNG first, then check the DPI of the converted file. The tool accepts only JPG and PNG, so a WebP file will be refused with a clear message rather than a wrong answer.
Privacy is the reason to prefer a browser tool that processes locally over an upload based checker. Our tool runs entirely in your browser: the file never leaves your device, so a client photo, an unreleased product shot, or a family portrait is never sent to a server to be checked. Any checker that uploads your file to read one number is doing more than the job requires.
10. What to do when the file has no DPI value
A missing DPI value is the most common surprise in this whole check, and it is not a problem. Screenshots, images saved from the web, exports from design apps, and photos that have been through some messaging apps often carry no DPI tag at all, or carry the placeholder value 72. The pixels are still there, and the print quality is still decided by the pixel count, not by the missing tag.
When a print shop receives a file with no DPI value, its software has to guess a print size, and different programs guess differently. Some default to 72 DPI, which makes a 3000 pixel wide photo claim to print 41.7 inches wide, and the shop’s system may then warn that the file is low resolution, even though the pixels are fine. Some default to the printer’s own standard, often 300 DPI, and print it correctly. The fix is to set the tag yourself before sending the file, so no program has to guess.
Setting the tag takes seconds. Open the increase DPI tool, drop in the file, type 300, and download the retagged copy. The pixels are untouched, the file size barely changes, because only a few bytes of header metadata were rewritten, and the print shop now sees a file that declares itself plainly. This is the correct fix for a missing DPI value, and it is the only fix most files need: do not resize, do not re-export, and do not run the file through a quality enhancer, because none of those add pixels.
There is one exception. If the file has no DPI value and too few pixels for the print size, setting the tag to 300 only makes the print smaller, it does not make it sharper. A 1200 by 900 pixel screenshot tagged at 300 DPI prints at 4 by 3 inches. If you wanted an 8 by 10, the file simply does not hold enough detail, and no tag change fixes that. Section 13 covers the two honest options in that case.
11. What DPI is good for printing: 300, 150, and 72, explained
Three numbers cover almost every print job, and knowing which one your job needs stops you from chasing a number that does not matter.
300 DPI is the photo quality standard. Print shops ask for it for brochures, flyers, business cards, book covers, framed photos, and anything people will hold in their hands and look at closely. At 300 DPI, the individual dots are too small for the eye to separate at normal reading distance, so edges look smooth and skin looks continuous. If a printer asks for a number and does not say which, it means 300.
150 DPI is the large format standard. Banners, posters, and trade show graphics are viewed from a few steps away, so the eye cannot resolve 300 DPI at that distance anyway. A 24 by 36 inch poster at 150 DPI needs 3600 by 5400 pixels, which a high resolution phone photo can supply, while the same poster at 300 DPI would need 7200 by 10800 pixels, which almost no phone can supply. Printers accept 150 DPI for large work because the viewing distance does the smoothing that the extra dots would have done.
72 DPI is a screen number, not a print number. It comes from old display conventions, and it survives because so many files carry it as a default tag. A file tagged 72 DPI is not low quality by itself: it is only a label, and the pixels behind it may be perfectly good. What matters is the print size the label implies. A 3000 pixel wide photo at 72 DPI claims a 41.7 inch print, and at that size the pixels are spread too thin. Retag the same file to 300 DPI and it claims a 10 inch print, where the same pixels look sharp. The number 72 only becomes a problem when a printer believes the label and prints at the size it implies.
For print on demand products such as shirts, mugs, and books, the services usually publish both a DPI and a pixel size. Check both: the DPI tag gets the file accepted, and the pixel count decides whether the design prints crisp. A design that meets the DPI tag but not the pixel size will be accepted and still print soft, which is the worst outcome, because you only find out when the product arrives.
12. DPI vs PPI vs resolution: the confusion, cleared up
Three terms get mixed together in almost every DPI discussion, and separating them is the fastest way to stop second guessing the check.
Resolution is the pixel count. A photo described as 4000 by 3000 has a resolution of 12 megapixels. That is the whole definition, and it is the only one of the three that describes how much detail the file holds. If you want to change how much detail a photo has, you change the resolution, with the resize photo resolution tool, which sets exact pixel dimensions in your browser.
DPI is a print instruction. It tells a printer how densely to pack the existing pixels onto paper. It changes the print size and nothing else. Two files with the same pixels and different DPI tags are the same photo, printed at different sizes.
PPI, pixels per inch, is the screen version of the same idea. It describes how densely pixels sit on a display. In image file metadata, DPI and PPI are used interchangeably: Photoshop labels the field “Resolution” in pixels per inch, Windows calls it DPI, and they read and write the same number. For the purpose of checking a file before printing, treat DPI and PPI as the same value, and do not let the two labels suggest there are two different numbers to find.
The practical consequence is simple. When a print shop asks for 300 DPI, it is asking for the tag. When it asks for a minimum pixel size, it is asking for resolution. A file needs both to be right: the tag so the printer sizes it correctly, and the pixels so the print is sharp at that size. Checking one without the other is how files get rejected after they looked ready.
13. Your DPI is too low: the two honest fixes
Sometimes the check comes back bad: the pixels do not cover the print size at 300 DPI. There are exactly two honest fixes, and neither one invents detail.
Fix 1: print smaller. This is the fix that always works. Divide your pixels by 300 and print at that size or smaller. A 2400 by 1800 pixel photo prints at 8 by 6 inches at 300 DPI, so frame it at 8 by 6 instead of 8 by 10, and it will look exactly as sharp as a bigger file printed bigger. A 1500 by 1000 pixel photo prints at 5 by 3.3 inches at 300 DPI, so print it at that size and it will look exactly as sharp as a bigger file printed bigger. Printing smaller costs nothing, loses no quality, and is what professional photographers do when the file is what it is.
Fix 2: add pixels, knowing what that costs. The resize photo resolution tool can raise the pixel dimensions, for example from 1500 by 1000 to 3000 by 2000, and then the file covers a 10 by 6.7 inch print at 300 DPI. But upscaling adds pixels without adding detail: the tool invents the new pixels by interpolation, so the print is larger and smoother, never sharper than the original. The tool says this plainly every time you upscale, because pretending otherwise would be dishonest. Upscaling is worth doing when the alternative is a print that is visibly pixelated, and it is not worth doing when the original is already blurry, because a bigger blur is still a blur.
What does not work is changing the DPI tag and expecting a better print. Retagging a 1500 by 1000 photo from 72 DPI to 300 DPI changes its print size from 20.8 by 13.9 inches to 5 by 3.3 inches, and at that smaller size it prints sharply, which is fix 1 wearing a different label. The tag change never added detail. Any tool, app, or preset that promises to “increase DPI to 300 and improve quality” is selling fix 1 as if it were new detail, and the print will show the difference.
If the file also needs to be under a size cap for upload to the print service, slim it after the DPI and pixel work is done. Our reduce image size in KB tool takes an exact kilobyte target and produces a file at or under it, and our guide on how to fix an image that is too large to upload covers the same problem for forms and portals that reject oversized files.
14. Worked example: a phone photo for an 8 by 10 print
Here is the full check on a real file, from phone to print shop, using the free tools on this site.
Step 1: get the numbers. The photo is 4000 by 3000 pixels, saved by the phone at 3.8 MB as a JPG. That is the resolution, 12 megapixels, and it is plenty for an 8 by 10 print, which needs 2400 by 3000 pixels at 300 DPI.
Step 2: check the DPI tag. In File Explorer Properties, the Details tab shows a horizontal resolution of 72 dpi. The phone saved the pixels but tagged the file for screens. At 72 DPI the photo claims a print size of 55.6 by 41.7 inches, which is why the print shop’s system flagged it as low resolution: it believed the label, not the pixels.
Step 3: retag to 300 DPI. Open the increase DPI tool, drop in the JPG, type 300, and download the retagged copy. The tool reports the starting DPI first, so the check is confirmed before the fix. The pixels are unchanged, the file size barely moves, and the file now claims a print size of 13.3 by 10 inches at 300 DPI, which covers the 8 by 10 with room to spare.
Step 4: crop to the print shape. An 8 by 10 print is a 4 by 5 shape, and the photo is 4 by 3, so the sides need trimming. The crop keeps the full 3000 pixel height, and the width becomes 3000 times 4 divided by 5, which is 2400 pixels, giving a 2400 by 3000 file. That is exactly 8 by 10 inches at 300 DPI, with nothing stretched and nothing upscaled. For the full method on shaping photos to exact sizes, read our guide on what size is a passport photo, which works the same crop then resize sequence for the strictest size rules in everyday use.
Step 5: verify before you send it. Open the finished file and check three numbers: the pixel dimensions are 2400 by 3000, the DPI tag reads 300, and the file size fits the print service’s upload cap. If the cap is tight, run the file through the KB tool from section 13 first, and check the DPI tag again after, because re-encoding a JPG can rewrite the header. If any of the three numbers is wrong, fix that one number and recheck: do not resend a file you have not verified.
15. Mistakes that waste a print run
Trusting the file name. A file named photo-300dpi.jpg is not necessarily 300 DPI. File names are labels people type, and the DPI tag lives in the header, where only a check can read it. Always verify the tag in Properties, Preview, or the DPI tool, never from the name.
Checking DPI but not pixels. A file tagged 300 DPI with 600 by 400 pixels prints at 2 by 1.3 inches. The tag is right and the print is still tiny. Run the division every time: pixels divided by DPI, at the size you actually want.
Upscaling to hit 300 DPI. Stretching a 1200 by 900 photo to 3600 by 2700 so the math works gives you a larger soft photo, not a sharp one. Print smaller instead, or accept 150 DPI for a poster sized print, and save the upscaling for cases where the alternative is visible pixels.
Screenshotting instead of exporting. A screenshot of a photo is a new, lower resolution capture of a screen rendering, and it bakes in screen glare and scaling. It also carries no useful DPI tag. Export the original file properly and check that file instead.
Sending the file before checking the upload cap. Print services cap uploads just like forms do, and a 25 MB camera original can be rejected after you spent ten minutes on the DPI tag. Check the cap first, then set the DPI, then compress to the cap if needed. For the full method, read our guide on how to reduce photo size in KB for online forms, which uses the same tools with form sized targets.
16. Frequently Asked Questions
How do I check the DPI of an image on Windows?
Open File Explorer, right-click the image, choose Properties, then open the Details tab. Scroll to the Image section and read “Horizontal resolution” and “Vertical resolution”. Those numbers are the DPI values. The same section shows the pixel dimensions, so divide the width in pixels by the horizontal resolution to get the print width in inches.
How do I check DPI on an iPhone?
The iPhone Photos app does not show DPI. Open Photos, tap the photo, then tap the info button to see the pixel dimensions and file size, and divide the long edge by 300 to find the largest photo quality print you can make. To see or change the DPI tag itself, open the image in the increase DPI tool in your browser, which reads the current DPI from the file header and shows it before you change anything.
What DPI is good for printing photos?
300 DPI is the standard for photo quality prints, including framed photos, brochures, flyers, and business cards. 150 DPI is accepted for large posters and banners viewed from a few steps away. 72 DPI is a screen default, not a print standard: a file tagged 72 DPI can still print well if it has enough pixels, but the tag should be set to 300 before you send it to a print shop.
What if my image has no DPI value?
Many files carry no DPI tag at all, including screenshots and images saved from the web. The file is not broken: the pixels are still there, and the print quality is still decided by the pixel count. Set the tag yourself before sending the file, using the increase DPI tool with a target of 300, so the print shop’s software does not have to guess a print size. The change is metadata only and does not touch the pixels.
Does increasing DPI improve image quality?
No. Increasing DPI only updates the metadata tag and does not add detail or improve image quality. True quality comes from pixel dimensions: a 6000 by 4000 photo holds more detail than an 1800 by 1200 one at any DPI setting. If your photo has too few pixels for the print size, the honest fixes are to print smaller or to upscale knowing the result is smoother but never sharper than the original.
What DPI do I need for an A4 print?
For photo quality, 300 DPI. An A4 page is 210 by 297 millimetres, or 8.27 by 11.69 inches, so at 300 DPI the image needs 2480 by 3508 pixels. At 150 DPI, which suits a poster viewed from a distance but not a document read up close, it needs 1240 by 1754 pixels. Check both the DPI tag and the pixel count before you print.
Is DPI the same as image resolution?
No. Resolution is the pixel count, for example 4000 by 3000, and it decides how much detail the file holds. DPI is a print density tag that tells a printer how tightly to pack those pixels onto paper, and it decides the print size. A file needs both to be right: enough pixels for the size, and the right DPI tag so the printer sizes it correctly.
One last rule covers everything above: the print shop in front of you is the final word. Ask for its DPI and pixel requirements before you send a file, check the finished file against those numbers, and keep the original photo so you can re-crop it if a different print size needs a different shape.