Cache Size Calculator

Calculate nominal cache data capacity from its organization.

About the Cache Size Calculator

Cache data capacity follows from line bytes, sets and ways.

How to use it

  1. Enter line size.
  2. Enter set count and associativity.
  3. Calculate bytes, KiB and MiB.

Formula

Cache size equals line size times sets times associativity.

Example

64-byte lines, 1,024 sets and 8 ways equal 512 KiB.

Notes

This capacity excludes tags, metadata, replacement state and implementation overhead.