25.4 mm equals one inch
DPI is dots per inch, so millimeters are first converted to inches before multiplying by the requested density.
FREE WEB TOOL
Convert physical print size and DPI into required pixel dimensions.
Convert a physical print size in millimeters plus DPI into the pixel dimensions required for that print size.
2040 × 2894 px.DPI here is a print-density planning value. Changing only metadata does not create missing image detail; the source still needs enough actual pixels.
DPI is dots per inch, so millimeters are first converted to inches before multiplying by the requested density.
Using ceiling avoids returning a dimension fractionally below the requested physical density.
Keeping print size fixed while doubling DPI approximately doubles each pixel dimension and quadruples total pixel count.
Scaling options in print dialogs, bleed, trimming and device-specific rasterization are outside this calculation. Use the result as the source-image target size.
Related references: Paper sizes · DPI, PPI & px · Aspect ratios