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.
Total Cache Lines
Data Capacity
Address Bit Breakdown
Tag
bits
Index
bits
Offset
bits
Formula Used
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
- Select a cache mapping type: direct-mapped, set-associative, or fully-associative.
- Enter the number of cache sets (S) — must be a power of 2.
- Enter the associativity (E), the number of lines (ways) per set.
- Enter the block size (B) in bytes — must be a power of 2.
- Enter the total address space (number of address bits).
- 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