Cache Size Calculator

Enter your cache parameters — number of sets, associativity, and block size — to instantly compute total cache size and address bit breakdowns.

Cache Parameters

Results

Fill in the parameters and click Calculate.

Summary

Enter your cache parameters — number of sets, associativity, and block size — to instantly compute total cache size and address bit breakdowns.

How it works

  1. Select a cache mapping type: direct-mapped, set-associative, or fully-associative.
  2. Enter the number of cache sets (S) — must be a power of 2.
  3. Enter the associativity (E), the number of lines (ways) per set.
  4. Enter the block size (B) in bytes — must be a power of 2.
  5. Enter the total address space (number of address bits).
  6. The calculator shows total cache size, data capacity, and the tag/index/offset bit breakdown.

Use cases

  • Verify cache sizing homework for computer architecture courses.
  • Understand how set associativity affects address bit partitioning.
  • Design cache parameters for embedded system memory constraints.
  • Cross-check textbook examples on cache organization.
  • Compare direct-mapped vs. fully-associative trade-offs quickly.

Frequently Asked Questions

Last updated: 2026-06-11 · Reviewed by Nham Vu