I asked Claude for a loan calculator and got a working one in under a minute. Then I tried to break it.
Claude can build a small interactive tool right inside the chat. I asked for a mortgage-style calculator, checked every number against my own maths, and tried the awkward 0% case. Here's the exact prompt and what to watch for.
Every number matched my own maths
Level: Beginner. About 10 minutes. Works in the claude.ai chat on a free or paid plan, and I used a Pro account.
Most people use Claude to write things. It can also build small tools you use on the spot, with no coding and nothing to install. Claude calls these artifacts: a working page that appears beside the chat.
I wanted to know if a tool like that is trustworthy, not just impressive. A loan calculator is a good test, because the maths is strict and I can check every figure myself.
The prompt
I typed this into a new chat:
Build me a loan repayment calculator I can use right now. Inputs: loan amount, annual interest rate, and term in years. Show the monthly payment, the total interest, and a small table of the first 12 months showing how much of each payment is interest and how much is principal. Start with $250,000, 6.5% and 30 years.
Three things in there are worth copying. I listed the inputs, I listed the outputs, and I gave starting values so I could check the result straight away.
What came back
In under a minute there was a working calculator next to the chat:
Change any box and everything updates as you type. For my starting values it showed a monthly payment of $1,580.17, total interest of $318,861.22, and $568,861.22 paid in total.
Checking the numbers
I didn't take it on trust. I recomputed everything with the standard loan formula in a separate script:
- Monthly payment: $1,580.17. Matches.
- Total paid over 360 months: $568,861.22. Matches, so total interest of $318,861.22 matches too.
- Month 1: $1,354.17 interest and $226.00 principal. Matches.
- Month 12 balance: $247,205.69. Matches.
Notice what month 1 tells you. Of a $1,580 payment, only $226 reduces the loan. On a 30-year loan at 6.5%, the first year is mostly interest. That's the thing most people never see until they look at a table like this.
Where I found a slip
Claude's chat message, written above the calculator, said that "roughly $16,170 of the year's payments went to interest." My own sum of the twelve months is $16,167.73. So it's right to the nearest ten dollars, and it says "roughly," which is fair. The exact figures are in the table, and the chat text points you there.
The lesson is small but useful: the table is the source of truth, and the sentence around it is a summary. If a number is going into a decision, copy it from the table.
The awkward case: 0% interest
The classic way a loan calculator breaks is zero interest, because the usual formula divides by zero. So I typed 0 into the rate box:
It handled it properly. The payment became $694.44, which is $250,000 divided by 360 months, total interest showed $0.00, and the balance fell by the same amount every month. I didn't ask for that. It just did the sensible thing.
Make it work for you
- List the inputs and the outputs in your prompt, in plain words.
- Give it starting values you can check by hand or with another tool.
- Try one awkward input: zero, a blank box, a huge number.
- Ask for changes in the same chat. "Add an extra monthly payment field" or "show the whole schedule" works as a follow-up.
- Don't use it as financial advice. A calculator gives arithmetic, not a recommendation.
What I didn't test
- One calculator, one run, with Haiku 5.5 on low effort. Another model might build it differently.
- I checked 0%, but not a blank box, a negative number or a term of half a year.
- Real loans add things a simple formula leaves out: fees, insurance, rate changes, and how your lender rounds.
- I didn't use the Share option. Be careful with it: the link in the chat can open the tool to other people, so keep it out of anything you screenshot.
Sources
- https://claude.com/resources/articles/claude-opus-5-5-as-a-daily-driver
Editorial note: We ran the steps in this guide ourselves and the screenshots come from those runs. Your results may differ with your plan, model or settings, so check anything important. Cover illustrations are AI-generated. Discovia is independent and not affiliated with Anthropic.
New guides and tools
Hands-on Claude guides, straight to your inbox
Step-by-step walkthroughs of what's new in Claude and Anthropic's tools, with real screenshots and honest results, including what didn't work. No hype, no jargon, no noise.
By subscribing, you agree to receive newsletter and marketing emails, and accept our Terms of Use and Privacy Policy. You can unsubscribe anytime.
Everyday Claude
Practical guides to the Claude apps: chat, connectors and artifacts, checked against real numbers.
More Claude Apps guides →


