Inflation Calculator API
Inflation at a steady annual rate: what an amount will cost in the future, or what a future amount is worth in today's money, plus purchasing power lost and doubling time.
POST /api/v1/tools/inflation-calculatorMCP inflation_calculatorCalculatorsSee what something will cost in the future and what money will be worth, at an inflation rate you choose, plus how long until prices double by the rule of 72.
Input
Send these as a JSON object. Unknown fields are rejected.
- mode
- future: amount is today's money. present: amount is a future sum to convert to today's money. (string, one of future, present, default "future")
- amount
- The amount of money. (number, 0 to …, required)
- rate
- Average annual inflation in percent, e.g. 3 (above −50, up to 100). (number, -49.99 to 100, required)
- years
- Number of years, 0 to 200. (number, 0 to 200, required)
curl https://pithlab.com/api/v1/tools/inflation-calculator \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"mode":"future","amount":1000,"rate":3,"years":10}'Example response
{
"ok": true,
"result": {
"factor": 1.3439163793441222,
"futureValue": 1343.9163793441223,
"presentValue": 744.093914896725,
"powerLostPercent": 25.590608510327506,
"halving": {
"rule72": 24,
"exact": 23.449772250437736
},
"text": "At 3% a year, 1,000.00 today will cost 1,343.92 in 10 years, and 1,000.00 then will buy what 744.09 buys today."
}
}