Calculator Directory
Computing

Uncompressed Bitmap Memory Calculator

Find the memory footprint of raw image pixels in MiB from width, height and bits per pixel. Each scan line rounds up to a full byte.

Inputs

Pixel memory
31.640625 MiB

Formula & assumptions

Bytes = ceil(width × bits per pixel ÷ 8) × height.

Each scan line rounds up to a full byte. File headers, palettes and additional row alignment are excluded.

Worked example

Width (pixels)
3840
Height (pixels)
2160
Bits per pixel
32
Pixel memory
31.640625 MiB

Interpreting the result

A 32-bit-per-pixel image uses four bytes per pixel, so even a small compressed image file can occupy much more memory when opened.