Gamedev Quick Tools

Texture memory calculator

Work out how much VRAM a texture uses for any resolution and format, including compressed formats, MSAA render targets, cubemaps and texture arrays. Load texture files to fill in their settings, compare every format side by side and total a list of textures.

Files

Texture files (PNG, JPG, WebP, BMP, TGA, DDS or KTX2), optional

No file loaded

Texture settings

Settings

Results

VRAM needed

Details

Share of graphics memory

Compare all formats

All formats with these settings

How the texture memory calculator works

A texture’s size in memory is its pixel count multiplied by the bits each pixel takes in the chosen format. Uncompressed RGBA8 uses 32 bits (4 bytes) per pixel, so a 2048×2048 texture takes 16 MB before mipmaps.

Block-compressed formats such as BC1, BC7 and ASTC store fixed-size blocks of pixels instead. The calculator rounds each mip level up to whole blocks, as the GPU does.

Each mip level halves the width and height of the one above (rounded down, never below 1 pixel) until it reaches 1×1, so a 1920×1080 texture has 11 levels. Mip levels sets how many are counted, from 1 (no mips) to the full chain; a partial chain counts only the largest levels. Cubemaps multiply the total by six, and texture arrays by the number of layers. MSAA render targets have no mip chain and store every sample, so 4× MSAA takes four times the memory of a single-sample target. Block-compressed formats can’t be multisampled, so MSAA is off for them.

  • The calculator shows one texture: set its size and format, or load a file to fill them in, and the result shows the memory it needs.
  • Loading files is optional. Choose or drop several files at once and they go into a list with a combined total (see Texture List below). DDS, KTX2, PNG and TGA files are read from their first 512 bytes (the header); JPG, WebP and BMP images are opened in the browser to read their size. Most PNG, TGA, BMP and JPG images are also decoded in the browser to check for transparent pixels and normal maps.
  • PNG, JPG, WebP, BMP and TGA images fill in the resolution and an uncompressed format, since that is how a GPU holds them before compression. Choose a compressed format to see its size. DDS and KTX2 files also carry their compression format (BC, ETC2, every ASTC block size and the common uncompressed and depth formats), number of mip levels, cubemap flag and array size, so those are filled in too. Basis Universal KTX2 files choose their GPU format at load time, so pick the one you transcode to.
  • An image file also shows what Unity, Unreal Engine and Godot make of it, because engines compress images when they import them: first its default import, for the file as it is. If you change a setting, a second table shows the same engines with your size, format, mip levels and copies, using the same rules for size and padding. It says Not measured for what wasn’t tested, and it is left out for MSAA, since a multisampled render target isn’t imported. These figures were measured on Windows with 1,034 game textures in Unity 6.3 and 6.6, Unreal Engine 5.6 and 5.8 and Godot 4.7.2; other versions, platforms and settings can differ. Unity and Unreal use BC1 when no pixel is transparent and BC3 when one is. Unity limits the longer side to 2048 px and rounds each side to the nearest power of two. Unreal keeps the size, builds mips only when both sides are powers of two, and its figure includes the padding it reported on Direct3D 12. Unreal also stored an image it took for a normal map as BC5, an 8-bit grey TGA as G8, and an image with a side that isn’t a multiple of 4 as BGRA8. Godot has two rows because its default depends on use. Godot, 2D is its default import: the image stays uncompressed with no mips, as R8 when it is grey, RG8 when it is grey with alpha and RGBA8 otherwise (the GPU holds RGB as RGBA, and TGA and BMP are always RGBA8). Godot, 3D is what Godot switches to once a 3D material uses the texture: BC1, or BC3 when a pixel is transparent, with a full mip chain, each side of 3 pixels or more padded up to a multiple of 4, and BC5 for a texture used as a normal map. The calculator looks for what normal maps have in common and shows BC5 for an image that looks like one; this is its own check, tested only on those textures, so it can be wrong. In these tests Unity and Unreal didn’t import WebP; Godot did.
  • Unity’s Profiler can show more than this calculator. In the same tests, in the Editor, it reported a Texture2D, a cubemap and a texture array at about twice their stored size, and a multisampled render target with one extra single-sample surface, so 4× MSAA showed five times the single-sample size.
  • If a file can’t be read (cut short, damaged or another type), the message under the result names it and says why. When none of the chosen files could be read, the settings are no longer tied to a texture in the list (“Not in the list”), so they are never taken for the failed file’s settings.
  • To total several textures, open Texture List under Add as a new texture: it shows the list, and the details add its combined total. Closing it keeps the list for later and shows the single texture again.
  • With the list open, the settings always show the selected texture in the list (the line under Texture settings names it), and changing them changes that texture. Click a thumbnail or press Enter or Space on it to select it; do it again or press Escape to deselect. Hover over, focus or tap a thumbnail to see its details under the list; use × or Delete to remove it. Use the arrow keys (Home and End for the ends) to move between thumbnails, and Tab to leave the list. Image files show a small picture; entries without one (settings you added, DDS and KTX2 files) show their size and format instead.
  • Add as a new texture, under the settings, adds the current settings to the list as a new texture without a file and selects it, opening Texture List if it is closed.
  • Undo and Redo (Ctrl+Z to undo; Ctrl+Y or Ctrl+Shift+Z to redo) step back and forward through changes to the list and the settings, up to 50 steps. A number you type counts as one step when you leave the field. Selecting a texture is not a step.
  • Your list and settings are kept while you move between the tools in this tab, and are cleared when you close the tab or choose Clear saved work.
  • Width and height are counted up to 16384 px, the largest texture size most GPUs support; a larger value is counted as 16384 px and a message says so.
  • The line under the result gives the size, format, mip levels and number of textures, plus MSAA when used and, for formats smaller than RGBA8, the saving. The details give the size per texture, the mip levels, the copies, the exact total in bytes (so partial mip chains and small differences show), the total of the whole list while it is open, and the share of 2, 4, 8, 12 and 16 GB of VRAM.
  • Compare all formats lists the size of the same texture in every format, smallest first, with your format marked as selected. On a wide screen the list is split into two tables side by side.

Common formats at a glance

FormatBits per pixelTypical use
RGBA832UI, uncompressed colour
BC1 / ETC2 RGB4Opaque albedo
BC44Single-channel masks, height
BC3 / BC5 / BC78Albedo with alpha, normal maps, high quality colour
ASTC 4×4 / 6×6 / 8×88 / 3.56 / 2Mobile, with quality set by block size
RGBA16F64HDR render targets, VFX flipbooks

Ways to use less VRAM

Pack masks into the channels of one texture (roughness, metallic and AO in RGB) rather than using three; the channel packer does this in your browser. Drop resolution on textures that never fill much of the screen. For VFX flipbooks, compress the sheet and trim empty cells, since every cell of the sheet takes memory, used or not. You can build one with the flipbook texture generator.

Questions

How much VRAM does a 4K texture use?

A 4096×4096 RGBA8 texture uses 64.00 MB without mips and 85.33 MB with a full mip chain. In BC7 it uses 16.00 MB without mips and 21.33 MB with a full chain.

Why is BC7 four times smaller than RGBA8?

RGBA8 stores 4 bytes for every pixel. BC7 stores each 4×4 block of 16 pixels in 16 bytes, which is 1 byte per pixel.

How much do mipmaps add?

A full mip chain adds about one third on top of the base level, because each level has a quarter of the pixels of the one above. A 4096×4096 texture has 13 levels.

How exact is the estimate?

It counts every mip level and rounds block-compressed levels up to whole blocks, as the GPU does. In our tests every size Unity 6.3 and 6.6 stored matched it exactly. Unreal Engine 5.6 and 5.8 on Direct3D 12 reported about 3% more at 1024×1024 and 0.2% more at 4096×4096 with a full mip chain, and a larger share on small textures.