Inflation calculator (CPI, 1913 to latest month)
calculate_inflationAdjusts a dollar amount for inflation between any two periods from 1913 to the latest month the U.S. Bureau of Labor Statistics has published, using the official CPI-U (or CPI-W or core CPI). Checks the BLS Public Data API live for months newer than its bundled data (bundled through September 2026, fetched 2026-11-03), so it knows CPI figures newer than a model's training data. Handles the October 2025 gap: BLS published no October 2025 CPI because of the 2025 lapse in appropriations. Returns the adjusted amount, cumulative and average annual inflation, and the exact index values used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Ending period, default "latest": "YYYY" for the annual average, "YYYY-MM" for one month, or "latest". | |
| from | Yes | Starting period, e.g. "1995" or "2020-01": "YYYY" for the annual average, "YYYY-MM" for one month, or "latest". | |
| amount | Yes | Dollar amount in the 'from' period. | |
| series | No | cpi_u (default, the headline CPI), cpi_w (wage earners, used for Social Security COLAs) or core (CPI-U less food and energy). |