Formula and meaning
H is cache lookup time, m is miss rate as a fraction and P is the extra time needed after lookup.[1][2]
A hit takes H. Here a miss takes H + P. If an exercise instead gives total miss time M, use AMAT = (1 − m)H + mM. The two forms agree only when M = H + P.[1][2]
CPU time uses effective CPI. If that value already includes memory stalls, AMAT must not simply be added to CPU time again. AMAT and program execution time describe different boundaries.[1][2]
Why the formula holds
Consider many consistently defined accesses. A fraction 1 − m hits the cache and takes H; a fraction m takes H + P. The expectation weights times by these fractions instead of averaging two times equally.[1][2]
For two serial levels the corresponding extension is H1 + m1(H 2 + m2P2). Local miss rate m2 refers to accesses that actually reach L2. The global fraction passing beyond L2 is m1·m2. This distinction matters more than merely counting cache levels.[1][2]
Units, inverses and limits
The first inverse needs m > 0; the second needs P > 0. When a weighting factor is zero, its hidden partner cannot be inferred.[1][2]
The calculator requires positive H, miss rate between zero and one, nonnegative P and consistent time units. Enter 5 percent as 5 with unit % or 0.05 with unit 1. A negative penalty or miss rate above 100 percent does not fit this model.[1][2]
Two fully worked examples
A small miss rate with a large penalty
- Given
- H = 1.2 ns, m = 4% and additional penalty P = 70 ns.
- Find
- Calculate average access time.
Convert percent to a fraction first.
Weight extra time by miss rate.
Result: AMAT = 4.0 ns. An individual miss instead takes 71.2 ns.
Check: 96 percent of accesses take 1.2 ns and 4 percent take 71.2 ns. Their weighted mean is also 4 ns.
Weighting two cache levels correctly
- Given
- H1 = 1 ns, m1 = 10%, H2 = 8 ns, local rate m2 = 20% and P2 = 80 ns.
- Find
- Find AMAT for the complete serial hierarchy.
First calculate mean additional time after L1.
Only L1 misses reach the second calculation.
Result: AMAT = 3.4 ns; global L2 miss rate is 0.1·0.2 = 2%.
Check: The three paths give 0.9·1 +0.08·9 +0.02·89 =3.4 ns. Local rates cannot simply be added.
Recall the method later with the formula’s flashcards.
10 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Rare misses can dominate the average
Rare misses can dominate the average
Free with a Quanta account. Your download stays ready after registration.
Five exercises with solutions
Calculate · Foundation
H =2 ns, m =3% and P =50 ns. Calculate AMAT.
Show hint
P is only the additional delay.
Learning goal: Apply weighted miss penalty.
Rearrange · Application
AMAT =5 ns, H =1 ns and m =8%. Find additional penalty.
Show hint
Subtract H before dividing by m.
Learning goal: Infer extra time from an average.
Interpret · Application
What AMAT results from m =0 with H =2 ns? Can P be inferred?
Show hint
One weighting factor vanishes.
Learning goal: Recognize a limit and non-identifiability.
Error analysis · Application
H =2 ns and total miss time is 102 ns at m =5%. Is 2 +0.05·102 correct?
Show hint
Separate total time from additional time.
Learning goal: Avoid counting lookup time twice.
Transfer · Challenge
Cache A has H =1 ns, m =8%; cache B has H =2 ns, m =2%. Both use P =60 ns. Which average is lower?
Show hint
A fast hit is not the only criterion.
Learning goal: Compare designs with multiple changing parameters.
Check your understanding with the formula’s reference test.
8 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Sources for this explanation
Quanta · Updated November 9, 2026
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Complete DE/EN learning article with explicit model limits, calculator, original graphic and solved exercises.
Cite this reference page
Quanta. Average memory access time (AMAT). Updated November 9, 2026. https://quanta-study.de/en/formula-sheet/durchschnittliche-speicherzugriffszeit-amat
When citing a specific scientific statement, also cite the specialist source linked to that statement.