---
title: "Inflation Calculator"
method: POST
path: "/api/v1/tools/inflation-calculator"
tags: ["tools"]
---

# Inflation Calculator

`POST /api/v1/tools/inflation-calculator`

## Request

- Base URL: `https://toolforte.com`
- URL: `https://toolforte.com/api/v1/tools/inflation-calculator`
- Auth: HTTP bearer

What an amount is worth after inflation, or what it was worth before. Fixed mode applies a rate you choose over a number of years. CPI mode uses the published US CPI-U annual averages from 1913 to 2025, so two years can be compared with the figures the BLS actually reported.

## Request body

- object
  - `mode` string
  - `amount` integer
  - `annualRatePercent` integer
  - `years` integer
  - `fromYear` integer
  - `toYear` integer

## Response `200`

Successful result

- object
  - `ok` boolean
  - `data` object
    - `mode` string
    - `amount` integer
    - `years` integer
    - `annualRatePercent` number
    - `futureCost` number
    - `purchasingPower` number
    - `cumulativeInflationPercent` number
    - `fromYear` integer
    - `toYear` integer
    - `fromIndex` number
    - `toIndex` integer

## Other responses

- `400`: Missing or invalid request fields
- `401`: Invalid or missing API key
- `429`: Monthly plan limit reached

---

[API](https://skmtc.dev/toolforte/apis/toolforte-api.md) · [All operations](https://skmtc.dev/toolforte/apis/toolforte-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toolforte/apis/toolforte-api/revisions/4d814d484dfc?raw)
