Whole-number scaling · pixel art · display planning

Integer scaling calculator

Find the largest whole-number scale that fits a source image inside a target display. Calculate output resolution, centered borders and screen coverage without stretching or cropping.

Source and target resolution

No upload needed

Presets describe raster dimensions only; no console-specific display aspect correction is applied.

Scaled size & borders

This calculator uses the same integer factor on both axes and assumes square pixels. It does not resize a file, enable GPU scaling or detect hardware support.

How to use the integer scaling calculator

  1. Enter the actual source raster width and height, or choose a preset.
  2. Enter the target display or output dimensions in the same pixel units.
  3. Use automatic mode for the largest fitting integer factor, or select a smaller whole factor manually.
  4. Review the scaled resolution and all four borders, then copy the measurements into your workflow.

The default 320 × 240 image on a 1920 × 1080 target fits at 4×, producing 1280 × 960 pixels. A 5× enlargement would be 1600 × 1200 and exceed the target height. The calculator therefore keeps the complete image at 4× and leaves borders.

What is integer scaling?

Integer scaling enlarges each dimension by a whole number such as 2, 3 or 4. At 3×, a single source pixel can be represented by a 3 × 3 output block. Using the same factor horizontally and vertically preserves the source raster's proportions.

This is useful when you want consistent pixel blocks in pixel art or low-resolution game graphics. AMD describes the feature in its integer scaling guide. Support and setup depend on the graphics hardware, driver and application; the mathematical result here is not a compatibility check.

Integer sizing alone does not ensure a sharp final image. The rendering or export pipeline must also avoid unwanted smoothing and further fractional resizing. A browser preview scaled to fit a small page panel cannot demonstrate the exact appearance of physical output pixels.

Largest integer scale formula

k = floor(min(target width ÷ source width, target height ÷ source height))
Scaled width = source width × k; scaled height = source height × k

Both dimensions limit the fit. Taking the smaller available multiplier prevents overflow; rounding down gives a whole-number factor. When k is 1, the source fits at its original size but cannot be enlarged by a full integer step. When k is 0, even the original source does not fit inside the target.

A result of 0 is not an instruction to create a zero-sized image. Automatic mode shows a no-fit message instead. Use a larger target, choose a smaller source, or use a separate downscaling or cropping workflow. Manual mode rejects a factor that would exceed either target dimension.

Integer scaling examples for 1080p, 1440p and 4K

Largest fitting scale, centered placement and square-pixel source interpretation.
Source → targetFactorScaled sizeBorders L/R/T/B
320 × 240 → 1920 × 10801280 × 960320 / 320 / 60 / 60
640 × 480 → 2560 × 14401920 × 1440320 / 320 / 0 / 0
1280 × 720 → 1920 × 10801280 × 720320 / 320 / 180 / 180
1920 × 1080 → 3840 × 21603840 × 21600 / 0 / 0 / 0
1280 × 720 → 3840 × 21603840 × 21600 / 0 / 0 / 0
256 × 224 → 1920 × 10801024 × 896448 / 448 / 92 / 92

These examples use exact dimensions, not a device or console emulation profile. Some older systems need a display aspect ratio different from their raw raster ratio. Applying that correction is a separate decision; use the pixel aspect ratio calculator when non-square pixel interpretation matters.

Why integer scaling can leave black borders

The next integer step may be too large even when there is unused space around the current result. A 1280 × 720 source fits a 1920 × 1080 target at 1×. Filling that target proportionally requires 1.5×, which is not an integer scale. At 2× the source would exceed both target dimensions.

For centered placement, split the leftover width and height between opposite edges. This calculator rounds the left and top borders down, assigning any extra pixel to the right or bottom. A 320 × 240 source on a 1281 × 961 target uses 4× and leaves 0 / 1 / 0 / 1 pixels. The asymmetry is required to keep the image on whole-pixel coordinates.

Left = floor((target width − scaled width) ÷ 2); right = remaining width − left

Screen coverage measures scaled-image area divided by target area. It does not measure perceived quality or performance. If filling more of the display matters more than whole pixel blocks, compare a proportional fit with the letterbox and pillarbox calculator.

Integer scaling vs nearest-neighbor and fractional scaling

Integer scaling specifies the size relationship. Nearest-neighbor specifies a sampling method. They are related but not interchangeable: nearest-neighbor can also be used for a fractional ratio, where source pixels may occupy uneven numbers of output pixels. Intel discusses these distinctions in its integer scaling technical article.

This tool calculates a uniform whole-number enlargement only. It does not add sharpening, invent missing detail, crop the source or stretch one axis independently. The fractional-fit number is included for comparison, not as a second rendering mode.

When exporting artwork, choose the intended resampling setting in your editor and avoid resizing the result again afterward. For an application or game, check which layer performs scaling: the application, operating system, graphics driver or display. A mathematically exact result can still look filtered if another layer changes it.

Integer scaling FAQ

Does 1080p scale perfectly to 4K?

A 1920 × 1080 source fits a 3840 × 2160 UHD target at exactly 2× on both axes, with no borders. This statement uses those exact dimensions; other formats described as 4K can differ.

Can 720p fill 1080p with integer scaling?

No. The proportional ratio is 1.5×. A 1280 × 720 source fits at 1× with borders, while 2× is too large. It does fill 3840 × 2160 at 3×.

Why does the calculator say no integer fit?

The source exceeds the target on at least one axis. This tool does not perform fractional downscaling or crop a larger source to fit.

Can I use a smaller integer factor?

Yes. Choose manual mode and enter a factor between 1 and the largest fitting factor. Smaller factors leave more unused target area.

Does the preview show actual pixel quality?

No. It shows the geometric placement of the image and borders. Its size is adapted to your browser window, so it is not a pixel-for-pixel rendering test.

Is DPR the same as an integer scale factor?

No. DPR describes device pixels relative to CSS pixels and can be fractional. This calculator uses raster source and target sizes. Use the viewport & DPR tool for browser layout calculations.

Related scaling tools