Computing & Software

Two-Level Cache Average Access Time Calculator

Estimate average memory access time with local miss probabilities for two cache levels.

How the calculation works

Average memory access time = l1+miss1*(l2+miss2*memory) ns. Fraction reaching main memory = miss1*miss2 fraction.

Worked example

Example inputs — L1 hit time (ns): 1; L1 local miss probability: 0.1; Additional L2 lookup time on L1 miss (ns): 5; L2 local miss probability conditional on L1 miss: 0.2; Additional memory penalty after L2 miss (ns): 100. Expected results — Average memory access time: 3.5 ns; Fraction reaching main memory: 0.02 fraction.

Assumptions and limits

Analytical software/hardware scenario, not a benchmark or a live provider quote. Use the actual architecture, workload and billing definitions; overheads not named in the model are excluded. Serial lookups with additive penalties and local, not global, L2 miss rate. Nonblocking caches, prefetching, overlap, dirty evictions and queueing are excluded.

Reference and further reading

Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.

Related calculators

Browse all 1000 calculators →

Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.