Work out your upscaled image size before you run it
AI upscalers like Real-ESRGAN, Topaz Gigapixel and SwinIR multiply every dimension of your image, and the total pixel count grows by the square of the factor. That means a modest 512×768 generation becomes a 2048×3072, 6.3-megapixel file at 4× — and a 50-megapixel monster at 8×. This calculator shows you the exact output dimensions, megapixels and a file-size estimate before you spend GPU time, plus whether your target exceeds the model’s practical ceiling.
How upscaling math works
Upscaling is dimensional, not area-based. If your source is W × H and you
upscale by factor f, the output is (W × f) × (H × f). The pixel count —
and roughly the file size — scales by f²:
output_width = source_width × factor
output_height = source_height × factor
megapixels = (output_width × output_height) / 1,000,000
So 2× quadruples the pixels, 4× multiplies them by 16, and 8× by 64. Most upscalers also have a practical long-edge limit driven by VRAM and tiling behaviour, beyond which you get seams or out-of-memory errors.
Tips for clean upscales
- Chain passes for big jumps. For 8×, run two 4× or 2× passes rather than one aggressive pass — it usually yields cleaner detail and stays inside each model’s comfortable range.
- Watch the long edge, not just megapixels. Tiling artifacts appear when the longest dimension is large, so the calculator flags when you cross the model’s recommended ceiling.
- Pick the model for the job. Real-ESRGAN and 4x-UltraSharp are great general-purpose open-source options; Topaz Gigapixel handles the largest outputs; SwinIR preserves fine texture but is heavier on VRAM.