Compound Interest Teaching Simulation as a Claude Artifact

Get a live one-page compound interest simulation with three sliders, a compound vs simple chart and a caption that explains each change.

Text prompt for Claude and ChatGPT

You get: one complete HTML file in a single code block, then 3 short ideas to extend it.

The prompt

Prompt
Build Growing Money, a one-page explorable teaching simulation of compound versus simple interest to project or share in class. Layout: a heading, the question 'Why does money grow faster over time?', controls, a chart and a caption box below it.
Rules:
1. Exactly three labelled, keyboard-friendly sliders with live values: Starting amount 100 to 10,000; Yearly interest rate 0% to 12% in 0.5 steps; Years 1 to 40. Add a small Yearly/Monthly compounding switch.
2. Canvas chart with Year and Balance axes: compound line A = P(1 + r/n)^(nt), dashed simple line P(1 + rt), a legend and final values at the right end. Whole numbers with thousands separators; currency symbol in one constant.
3. A 'What changed' caption rewrites itself after each change in 2-3 plain sentences: the slider moved, old and new value, the change in final compound balance (amount and percent) and one rule-based insight. Add a live rule-of-72 line, hidden at 0%.
4. A Predict first toggle hides new results behind a Reveal button; include Reset and three original presets.
5. System fonts, calm light theme plus prefers-color-scheme dark, strong contrast, no external files or storage, and a one-line not-financial-advice note.
For another concept, keep this pattern and swap the formula, sliders and insight rules.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.

Example output

One HTML file. Save it and open it in any browser.Open full screen (opens in a new tab)

Example: Growing Money, a compound vs simple interest simulation for class.

Drag the three sliders (or focus one and use the arrow keys) to change the starting amount, rate and years. Both lines redraw instantly and the What changed box explains the move in plain words. Switch Yearly/Monthly compounding, try the Start at 25 and Start at 35 presets back to back, and turn on Predict first so students guess before you press Reveal.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Exact formulas and fixed slider ranges leave nothing to guess, so the chart and numbers are correct on the first run.
  • Rule-based insights tied to which slider moved make the caption feel written by a teacher, not a generic summary.
  • Banning external files and storage means the page runs inside a Claude artifact, a canvas preview or a saved file unchanged.

Paste into Claude and open the result as an artifact: preview it, then share or publish the artifact link with students. It also works in ChatGPT canvas or Gemini Canvas, or saved as an .html file for a classroom screen.

Common edits

  • Swap the concept: keep the three-slider, chart and caption pattern but model population growth or radioactive half-life with its own formula and insight rules.
  • Add a fourth control for a regular monthly deposit and extend both formulas so students see how steady saving changes the curve.

Reuse it: Use in a workflowTurn into a skillAdapt in the builder

More in Education
EducationClaude

Build a Claude Artifact Quiz for Students with Leaderboard

A Claude artifact quiz for students: one question at a time with instant feedback and an explanation, a missed-question review, and a shared class leaderboard.

Education

Build an Analytic Grading Rubric with Clear Level Descriptors for Any Assignment

You get a weighted analytic rubric with observable, non-overlapping descriptors per level, student 'I can' statements, and scoring notes for borderline work.

Education

Plan a Backward Design Unit from Standards to Summative Assessment

Get a full unit plan that starts with the final assessment and rubric, breaks it into skills, and maps every daily lesson to one skill with a quick check.

Education

Differentiated Lesson Plan for a Mixed-Ability Class

Writes a timed lesson plan with one shared objective and three tiers of tasks, plus support for learners who need scaffolding and stretch tasks for those who finish early.

Education

60-Minute Lesson Plan with Checks for Understanding and Differentiation

Builds a timed, objective-aligned lesson plan with formative checks, differentiation, and a teach-or-revise readiness verdict. It asks for missing inputs first and keeps assumptions separate.

Education

ChatGPT Study Plan for Finals with Multiple Exams Ranked by Grade Impact

Get the score each final needs with the math shown, your study hours split by grade impact, and a day-by-day schedule to your last exam.