

# How cost estimates are calculated

When you read a cost figure, you want to know how it is produced, so you know what it does and does not promise. This page explains how AgentCore Observability produces its estimate.

## The estimate, in one sentence
<a name="_the_estimate_in_one_sentence"></a>

AgentCore Observability takes the usage already recorded on each span, multiplies it by the matching public AWS price-list rate, and records the dollar figure on that same span.
+  **Public rates, no discounts.** The estimate uses public price-list rates (or a rate you configure). It does not apply private pricing, savings plans, or credits, so it will not match your bill exactly.
+  **Priced on the span.** The cost is recorded on the span where the usage happened. A session total is the sum of its spans, so nothing is reconciled to an invoice after the fact.
+  **An estimate, not an invoice.** The figure is for troubleshooting, monitoring, and optimization. It is calculated from public list prices and applies no discounts, so it can differ from your AWS bill.

## Model cost
<a name="_model_cost"></a>

Model cost is calculated on each model-call span from the tokens used, at the published per-token rates: input tokens, output tokens, and the tokens written to and read from cache, each at its own rate. On a model-call span, the input-token and output-token costs are recorded separately as well as in the span total.

Some models are not priced, and some token dimensions are estimated. See [Model pricing caveats](acv-model-pricing-caveats.md).

## AgentCore component cost
<a name="_agentcore_component_cost"></a>

Everything else is priced at published AgentCore rates from what each service measured:
+  **Runtime, Browser, Code Interpreter** — compute (CPU and memory time).
+  **Gateway** — API calls and tool searches.
+  **Memory** — data written and lookups.
+  **Evaluations** — online evaluation runs.

See [Cost estimate coverage and limits](acv-cost-coverage-by-primitive.md).

## When a price cannot be found
<a name="_when_a_price_cannot_be_found"></a>

If a price cannot be found, the figure is marked unavailable and shown as a dash, never as `$0`. Pricing is best-effort and never slows, blocks, or breaks a running agent. See [Principles behind the figures](#acv-principles-behind-the-figures).

## Why figures can shift slightly over time
<a name="_why_figures_can_shift_slightly_over_time"></a>

Prices refresh from the public price list about once an hour, so a price change can take up to about an hour to appear in new figures. Figures already recorded on past spans are frozen and are not recalculated.

## Principles behind the figures
<a name="acv-principles-behind-the-figures"></a>

When a figure looks surprising, you want the rules the feature follows, so you can read it correctly. These principles govern every cost figure in AgentCore Observability.

### Historical values are frozen
<a name="_historical_values_are_frozen"></a>

The moment a piece of work completes, its estimated cost is recorded on that record and is never recalculated. Opening a past session always shows the same total, even if prices change later. This is what makes before-and-after comparison reliable when you optimize an agent.

### Absent is not zero
<a name="_absent_is_not_zero"></a>

Every figure shows how it was produced, and anything missing is shown as a dash, never as `$0`. A gap in the data must never be mistaken for "this was free." See [A cost shows a dash instead of a figure](acv-cost-shows-a-dash.md).

### When cost starts
<a name="_when_cost_starts"></a>

Cost is recorded only for work that runs after you set up cost. Earlier work shows blank rather than an incorrect figure.

### Cost never breaks the agent
<a name="_cost_never_breaks_the_agent"></a>

Calculating cost is a best-effort, background activity. If a price cannot be found, the agent’s work continues normally and the record is marked unavailable. Pricing adds no call to the agent’s path and can never slow, block, or interfere with a running agent.

### The estimate is its own thing
<a name="_the_estimate_is_its_own_thing"></a>

The Observability estimate serves troubleshooting, monitoring, and optimization. It uses public rates, applies no discounts, and is not reconciled to an invoice, so it is not expected to match your bill to the cent.