Investing

Build an Inflation Calculator with AI

Calculate how inflation erodes purchasing power over time using historical CPI data. Convert dollar values between any two years, see what past prices equal today, project future purchasing power, and calculate real (inflation-adjusted) investment returns.

Build Prompt

Copy this prompt into Claude Code
Build a static HTML inflation calculator. Dark theme with background #0a0a0f, surfaces #12121a, borders #1a1a2a, accent color #059669 (emerald). Data from inline `const CPI_DATA = [...]` with annual CPI values from 1913 to 2025. Three calculator modes: (1) Dollar Value Converter — enter amount, start year, end year → shows equivalent value and cumulative inflation %. (2) Purchasing Power — enter salary/amount → shows what it's worth in today's dollars adjusted for inflation. (3) Future Projection — enter current amount, assumed inflation rate, years → shows future purchasing power erosion. Results dashboard: equivalent value (large number), cumulative inflation %, average annual rate, purchasing power lost. Historical inflation chart: line chart of annual CPI % change from 1913 to present with notable events labeled (Great Depression, WWII, Oil Crisis, 2008, COVID). Decade-by-decade table: average inflation rate per decade. Real Return Calculator: enter nominal return %, inflation rate % → shows real return. Include "What Causes Inflation" explainer, "CPI vs PCE" comparison, and "How to Protect Against Inflation" guide (TIPS, I-Bonds, real assets). SEO: title, meta description, OG tags. Pre-fill with BLS CPI-U data. Read the guide at https://accessagent.ai/api/guide and follow it to deploy the site to AccessAgent.ai. My email is [your@email.com].

Make It Yours

Category Inflation

Show inflation by category — housing, healthcare, education, food, energy — vs overall CPI.

Salary Tracker

Track if your salary raises are keeping up with or falling behind inflation over time.

Global Comparison

Compare inflation rates across countries with purchasing power parity analysis.

I-Bond Calculator

Calculate Series I Savings Bond rates and returns based on current inflation adjustments.

Basket Comparison

Show how a basket of common goods (bread, gas, rent, college) has changed in price over decades.

Retirement Erosion

Model how inflation erodes a fixed retirement income over 20-30 year retirement horizons.

Update Prompt

Update Prompt — Update CPI data
Research latest BLS CPI-U data and add new monthly/annual readings. Update any category-specific inflation rates. Add latest Fed inflation commentary. Update CPI_DATA array. Redeploy.

SEO Tips

Monetization Ideas

Related Ideas

Ready to build your Inflation Calculator?

Copy the prompt above and paste it into Claude Code. Your calculator will be live in minutes.

Get Started