Equation 12 · The Real Cost of Running Claude in Production, Beyond the Per-Token Price
What does this equation mean?
Read the formula alongside the article passage below. Each part has a deeper page with its role in the equation, the supporting passage and nearby citations.
This equation states an equality: the expressions on both sides have the same value under the article’s assumptions. Read the equation part by part below; each part has a contextual explanation and a link to its mathematical background.
Read it piece by piece
Symbol C
C is part of the quantity the equation computes from the expression on the right.
Symbol p_in
n occurs above the fraction bar. The numerator is divided by the entire denominator below it.
Symbol n
n occurs above the fraction bar. The numerator is divided by the entire denominator below it.
Symbol p_cw
w occurs above the fraction bar. The numerator is divided by the entire denominator below it.
Symbol w
w occurs above the fraction bar. The numerator is divided by the entire denominator below it.
Symbol p_cr
r occurs above the fraction bar. The numerator is divided by the entire denominator below it.
Symbol r
r occurs above the fraction bar. The numerator is divided by the entire denominator below it.
Symbol p_out
ut occurs above the fraction bar. The numerator is divided by the entire denominator below it.
Symbol y
y occurs above the fraction bar. The numerator is divided by the entire denominator below it.
Symbol z
z occurs above the fraction bar. The numerator is divided by the entire denominator below it.
Symbol a
a is one of the signed contributions combined to compute the quantity on the left.
=
The expressions on both sides represent the same quantity under the stated assumptions.
See an illustrated explanation →subscript
The lower label selects a particular version, component, or indexed member of the quantity. For example, x₀ and xₜ can be values at different positions.
Numerator: p_in(n + τ) + p_cw w + p_cr r + p_out(y + z)
The complete quantity above the fraction bar.
How to interpret it
With a fixed numerator, increasing a nonzero denominator reduces the fraction. Read it with the definitions, units, and assumptions supplied by the article.
What the article says around this equation
Collect the pieces above into one expression and the gap between a rate card and an invoice becomes explicit. For a single request, let n be new input tokens, w cache-write tokens, r cache-read tokens, y visible output tokens, z billed-but-invisible thinking tokens, and the fixed tool and system-prompt tokens added regardless of content. Let , , , and be the published rates, and let a (0, 1] be the fraction of attempts an application accepts without needing to reissue the request, because it was neither truncated at the maximum-tokens cap nor lost to a timeout, an overload error, or a rate limit. Cost per accepted…
Read the full surrounding passage
Collect the pieces above into one expression and the gap between a rate card and an invoice becomes explicit. For a single request, let n be new input tokens, w cache-write tokens, r cache-read tokens, y visible output tokens, z billed-but-invisible thinking tokens, and the fixed tool and system-prompt tokens added regardless of content. Let , , , and be the published rates, and let a (0, 1] be the fraction of attempts an application accepts without needing to reissue the request, because it was neither truncated at the maximum-tokens cap nor lost to a timeout, an overload error, or a rate limit. Cost per accepted response is then . Every term in the numerator is priced directly by the rate card, and every one is documented above. The denominator is not on any rate card. It is the assumption a pure per-token estimate makes implicitly by omission: that acceptance equals one, that nothing is ever truncated, dropped, or retried. Nothing examined for this article suggests that assumption holds for a real production system, and the mechanisms above — an undersized token cap, a dropped connection on a long request, an overload window during a spike — are all documented ways acceptance falls below one in practice.
For background, read the article’s source list.
Return to The Real Cost of Running Claude in Production, Beyond the Per-Token Price