PhotoToolsPhotoTools
Home/Blog/DPI to Pixels: Formula, Print Size Charts, and Real Examples

DPI to Pixels: Formula, Print Size Charts, and Real Examples

Convert DPI to pixels with the formula pixels = inches x DPI. Includes practical charts for 72, 96, 150, 300, and 600 DPI; A4 and metric sizes; reverse pixels-to-print-size math; and the common trap where changing the DPI tag does not change image quality.

By PhotoTools Editorial Team · Updated July 18, 2026

Reviewed July 18, 2026 against W3C CSS units guidance, MDN CSS resolution documentation, Adobe print-resolution guidance, NIST inch-to-millimeter conversion factors, and PhotoTools browser-local resize behavior.

Resize an image to exact pixel dimensions in your browser

Free · No upload · Runs in your browser

Quick answer: DPI to pixels formula

To convert DPI to pixels, multiply the physical print size by the print resolution:

pixels = inches x DPI
pixels = millimeters / 25.4 x DPI
inches = pixels / DPI
DPI = pixels / inches

A 4x6 inch photo at 300 DPI needs 1200x1800 pixels. A 2x2 inch passport photo at 300 DPI needs 600x600 pixels. A4 paper at 300 DPI is about 2480x3508 pixels.

The important catch: DPI alone is not a pixel count. "300 DPI" means 300 pixels for every inch of final print size. You still need the inches, centimeters, or millimeters.

So if someone asks for "a 300 DPI image," ask the missing question: 300 DPI at what physical size?

DPI vs PPI: the term people search and the term printers mean

For digital image files, PPI is the more precise term because the file is made of pixels. A 3000x2000 image has 3000 pixels across and 2000 pixels down. If you print it 10 inches wide, the print density is 300 pixels per inch.

DPI originally describes printer dots per inch: how many ink dots or output marks a printer can lay down. In everyday upload forms, print labs, passport photo instructions, and client emails, people often say "DPI" when they mean "pixels per inch."

This guide uses DPI because that is the search language, but the math you need is really PPI:

image pixels / physical inches = pixels per inch

When a print lab says "300 DPI," read it as "give us enough pixels to print this size sharply."

The mistake: changing the DPI tag is not the same as resizing

Image editors often show three numbers together:

  • Width in pixels.
  • Height in pixels.
  • Resolution, such as 72, 96, 240, or 300 PPI.

Only the first two are actual image detail. The resolution field is a print instruction. If you change a 3000x2000 image from 72 DPI to 300 DPI without resampling, it is still a 3000x2000 image. It will not become sharper, smaller, or more detailed. It will only have a different suggested print size.

Here is the same 3000x2000 image interpreted three ways:

DPI/PPI tag Pixels Suggested print size
72 DPI 3000x2000 41.7x27.8 in
150 DPI 3000x2000 20x13.3 in
300 DPI 3000x2000 10x6.7 in

Nothing about the pixels changed. The print label changed.

If your goal is a sharper print, you need enough real pixels for the final print size. If your goal is web display, the DPI tag is usually irrelevant; the browser uses pixel dimensions and CSS layout.

Image DPI explained covers that screen-vs-print confusion in more depth.

DPI to pixels chart for common inch sizes

Use this chart when you know the print size in inches.

Print size 72 DPI 96 DPI 150 DPI 300 DPI 600 DPI
2x2 in 144x144 192x192 300x300 600x600 1200x1200
3.5x5 in 252x360 336x480 525x750 1050x1500 2100x3000
4x6 in 288x432 384x576 600x900 1200x1800 2400x3600
5x7 in 360x504 480x672 750x1050 1500x2100 3000x4200
8x10 in 576x720 768x960 1200x1500 2400x3000 4800x6000
8.5x11 in 612x792 816x1056 1275x1650 2550x3300 5100x6600
11x14 in 792x1008 1056x1344 1650x2100 3300x4200 6600x8400
12x18 in 864x1296 1152x1728 1800x2700 3600x5400 7200x10800
16x20 in 1152x1440 1536x1920 2400x3000 4800x6000 9600x12000
24x36 in 1728x2592 2304x3456 3600x5400 7200x10800 14400x21600

For normal close-viewed photo prints, the 300 DPI column is the one people usually want. Adobe's print-resolution guidance describes 300 pixels per inch as the common high-quality print standard, especially for prints viewed up close.

Use 600 DPI only when the job asks for it or when you are dealing with line art, small text, scans, or very fine detail. For a normal phone photo, 600 DPI often creates a large target without adding visible benefit.

DPI to pixels chart for A4, metric, and passport sizes

For metric sizes, divide millimeters by 25.4 to get inches, then multiply by DPI. NIST's conversion guidance defines the international foot from the meter, which gives the familiar exact relationship of 1 inch = 25.4 mm.

Size 150 DPI 300 DPI 600 DPI
A6, 105x148 mm 620x874 1240x1748 2480x3496
A5, 148x210 mm 874x1240 1748x2480 3496x4961
A4, 210x297 mm 1240x1754 2480x3508 4961x7016
A3, 297x420 mm 1754x2480 3508x4961 7016x9921
35x45 mm photo 207x266 413x531 827x1063
50x70 mm photo 295x413 591x827 1181x1654
10x15 cm photo 591x886 1181x1772 2362x3543
13x18 cm photo 768x1063 1535x2126 3071x4252
15x20 cm photo 886x1181 1772x2362 3543x4724
20x30 cm photo 1181x1772 2362x3543 4724x7087

Small rounding differences are normal because paper sizes in millimeters rarely convert to a perfect whole number of pixels. Round to the nearest whole pixel unless a specific upload system says otherwise.

Reverse chart: pixels to print size

If you already have an image and want to know how large it can print, divide the pixels by the target DPI.

Image pixels Print size at 150 DPI Print size at 240 DPI Print size at 300 DPI
1080x1080 7.2x7.2 in 4.5x4.5 in 3.6x3.6 in
1600x1200 10.7x8 in 6.7x5 in 5.3x4 in
1920x1080 12.8x7.2 in 8x4.5 in 6.4x3.6 in
2048x1536 13.7x10.2 in 8.5x6.4 in 6.8x5.1 in
3000x2000 20x13.3 in 12.5x8.3 in 10x6.7 in
4000x3000 26.7x20 in 16.7x12.5 in 13.3x10 in
6000x4000 40x26.7 in 25x16.7 in 20x13.3 in
7680x4320 51.2x28.8 in 32x18 in 25.6x14.4 in

This table is often more useful than a DPI-to-pixels chart because real life starts with a file you already have. If your phone photo is 4000x3000 pixels, it can make a sharp 13.3x10 inch print at 300 DPI. It can make a larger print at 150 DPI, especially if people view it from farther away.

Worked examples

Example 1: 4x6 photo at 300 DPI

width: 4 x 300 = 1200 pixels
height: 6 x 300 = 1800 pixels
answer: 1200x1800 pixels

This is the standard size for a small photo print. If your file is 1800x1200 instead, that is the same shape in landscape orientation.

Example 2: 8x10 print from a 4000x3000 file

At 300 DPI, an 8x10 print needs 2400x3000 pixels. A 4000x3000 file has enough height but too much width for the 8x10 aspect ratio. You will need to crop from 4:3 to 5:4, then export around 2400x3000 or larger.

This is where people get confused: the file has enough pixels, but the shape is not the same as the print.

Example 3: A4 at 300 DPI

A4 is 210x297 mm.

210 / 25.4 x 300 = 2480 pixels
297 / 25.4 x 300 = 3508 pixels
answer: 2480x3508 pixels

This is the common pixel size for an A4 page image at 300 DPI.

Example 4: 35x45 mm ID photo at 300 DPI

35 / 25.4 x 300 = 413 pixels
45 / 25.4 x 300 = 531 pixels
answer: 413x531 pixels

For passport or visa photos, do not stop at the outer pixel size. Many countries also define head height, eye position, background, expression, and print-paper rules.

Aspect ratio matters as much as DPI

DPI math tells you how many pixels are needed. It does not tell you whether your photo has the right shape.

Compare these common ratios:

Print size Aspect ratio Common issue
2x2 passport 1:1 Must crop square
4x6 photo 2:3 Matches many camera photos after rotation
5x7 photo 5:7 Usually needs a small crop
8x10 photo 4:5 Needs more crop from 3:2 or 4:3 camera files
A4 page 1:1.414 Does not match normal camera photos

If the image has enough pixels but the wrong shape, resizing alone will stretch the image. Crop first, then resize. Stretching a face, product, document, or logo to force a target size is the fastest way to make a print look wrong.

Which DPI should you use?

Use DPI based on output, not habit.

DPI/PPI Use it for Practical note
72 DPI Old screen/export presets Not a modern web requirement
96 DPI CSS reference density Useful in web/CSS discussions, not photo print quality
150 DPI Drafts, posters, large prints viewed from a distance Often acceptable when the viewer is not close
240 DPI Good photo printing when 300 is not available Common compromise for larger photos
300 DPI Close-viewed photos, documents, small prints, passport sheets Strong default for print
600 DPI Line art, fine type, scanning, archival work Overkill for many ordinary photos

Do not upscale a small file to hit a chart number unless the upload system refuses anything else. Upscaling can satisfy a pixel-count rule, but it cannot recreate detail that was never captured.

Why 72 DPI and 96 DPI confuse web images

The 72 DPI number is a historical screen convention. The 96 DPI number appears in CSS because web layout uses a reference pixel model. The W3C CSS guidance says CSS is best thought of by output medium: pixels are natural for screens, while physical units such as inches and centimeters are for print. MDN's CSS resolution docs also note that 1dppx equals 96dpi because CSS has a fixed 1:96 relationship between CSS inches and CSS pixels.

That does not mean your image must be exported at 96 DPI for the web.

For websites, the questions are:

  • How many image pixels does the layout need?
  • Is the file being displayed on high-density screens?
  • Is the file compressed well?
  • Is the format appropriate, such as JPG, PNG, WebP, or AVIF?

A 1200x800 image tagged 72 DPI and the same 1200x800 image tagged 300 DPI render the same in a browser. If you want the web version to look better, change the pixel dimensions, compression, or source quality, not the DPI tag.

How to resize to a DPI-derived pixel target in PhotoTools

PhotoTools does not need to change the DPI metadata tag to make a print-ready copy. It changes the actual pixel dimensions, which is the part that matters for image detail.

Use this workflow:

  1. Decide the physical print size, such as 4x6 inches or A4.
  2. Choose the target DPI, usually 300 for close-viewed prints.
  3. Calculate the pixel size from the chart or formula.
  4. Open Resize Images.
  5. Switch to exact dimensions.
  6. Enter the target width and height in pixels.
  7. Keep the aspect-ratio lock on if you are setting only one side.
  8. If the image must match an exact shape, crop first, then resize.
  9. Choose the output format: JPG for photos, PNG for graphics or transparency, WebP for modern web use.
  10. Download the resized copy and keep your original file.

For batches, resize one sample first and check it at the intended print size. Then process the rest. PhotoTools runs the resize in your browser and supports batch downloads, so you do not have to upload personal photos to a server just to change pixel dimensions.

What to do when a form says "300 DPI"

Upload forms often use "300 DPI" as shorthand for "high enough resolution." They may not actually inspect the DPI metadata tag. Some check only pixel dimensions and file size.

Use this triage:

  • If the form gives a physical size and DPI, calculate pixels.
  • If the form gives only pixel dimensions, follow the pixel dimensions.
  • If the form gives only "300 DPI," look for a hidden size requirement in inches, cm, or mm.
  • If a print shop rejects the file for DPI metadata after the pixels are correct, export from a print editor that can set the metadata tag.
  • If a website asks for 72 DPI, treat that as outdated wording and look for pixel dimensions instead.

For passport, visa, school, medical, and government submissions, check the official instructions first. Pixel size is only one rule; cropping, background, file type, file size, paper type, and image editing restrictions can matter too.

Technical sources checked

This guide was reviewed against:

Bottom line: use DPI to calculate the pixel target for print, but use actual pixel dimensions to judge image detail.

Frequently asked questions

How do I convert DPI to pixels?

Multiply the physical print size in inches by the DPI or PPI value: pixels = inches x DPI. A 4x6 inch print at 300 DPI needs 1200x1800 pixels. For millimeters, use pixels = mm / 25.4 x DPI.

How many pixels is 300 DPI?

300 DPI is not a pixel size by itself. It means 300 pixels per printed inch. At 300 DPI, 1x1 inch is 300x300 pixels, 2x2 inches is 600x600 pixels, 4x6 inches is 1200x1800 pixels, and A4 is about 2480x3508 pixels.

What is 300 DPI in pixels for a 4x6 photo?

A 4x6 inch photo at 300 DPI is 1200x1800 pixels. Multiply 4 inches by 300 and 6 inches by 300.

What is 300 DPI in pixels for A4?

A4 is 210x297 mm. At 300 DPI, that converts to about 2480x3508 pixels. The calculation is 210 / 25.4 x 300 by 297 / 25.4 x 300, rounded to whole pixels.

How do I convert pixels back to inches?

Divide each pixel dimension by the DPI. A 3000x2000 pixel image prints at 10x6.7 inches at 300 DPI, or 20x13.3 inches at 150 DPI.

Is DPI or PPI the correct term for images?

PPI is more technically precise for digital images because you are counting pixels per inch. DPI originally describes printer dots per inch. People search for DPI, so this guide uses DPI in the common sense but the math is pixels per inch.

Does changing DPI from 72 to 300 improve quality?

Not if the pixel dimensions stay the same. Changing only the DPI metadata changes the suggested print size, not the actual detail in the image. Quality improves only when the source has enough real pixels for the intended print size.

Does DPI matter for websites?

The DPI tag inside an image file does not control how a browser displays it. Web layout uses pixel dimensions, CSS size, and device pixel ratio. A 1200px-wide image tagged 72 DPI and the same 1200px image tagged 300 DPI render the same online.

What DPI should I use for printing?

Use 300 PPI/DPI for close-viewed photos, documents, and small prints. Use 150 PPI for drafts or large prints viewed from farther away. Use 600 PPI only when the job genuinely needs fine line art, small type, scanning, or archival detail.

Can PhotoTools change an image to 300 DPI?

PhotoTools Resize changes the actual pixel dimensions. That is usually what you need for print quality. If a printer specifically requires a DPI metadata tag, use a print/export app after resizing, but do not confuse the tag with real image detail.

Keep reading