← All parts of this equation

Equation 12 · Part 17 · The Real Cost of Running Claude in Production, Beyond the Per-Token Price

Numerator: p_in(n + τ) + p_cw w + p_cr r + p_out(y + z)

C=pin(n+τ)+pcww+pcrr+pout(y+z)aC = \frac{p_{\mathrm{in}}(n + \tau) + p_{\mathrm{cw}} w + p_{\mathrm{cr}} r + p_{\mathrm{out}}(y + z)}{a}
pin(n+τ)+pcww+pcrr+pout(y+z)p_{\mathrm{in}}(n + \tau) + p_{\mathrm{cw}} w + p_{\mathrm{cr}} r + p_{\mathrm{out}}(y + z)

What this part means

The complete quantity above the fraction bar.

Its job in the formula

pip_in(n + τ) + pcp_cw w + pcp_cr r + pop_out(y + z) occurs above the fraction bar. The numerator is divided by the entire denominator below it.

The passage around this formula

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 τ\tau the fixed tool and system-prompt tokens added regardless of content. Let pinp_{\mathrm{in}} , pcwp_{\mathrm{cw}} , pcrp_{\mathrm{cr}} , and poutp_{\mathrm{out}} be the published rates, and let a ∈\in (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 this part in the article →

Learn the underlying idea

A fraction a/b means a divided by b. The top number is the numerator; the bottom number is the denominator, and it cannot be zero.

Open the illustrated fractions: division written vertically guide →

The article lists its research sources here.