In the pack: Claude Prompts for Work: 46 Prompts for Projects, Artifacts, Files and Claude Code
Build a Single-Page Calculator as an Artifact
Prompt
Inputs the user enters: {{INPUT_FIELDS}}.
The calculation, in plain words: {{CALCULATION_RULE}}.
First state, in two or three lines, any assumption you are making about the calculation. Do not wait for my reply; build the artifact straight after, so I can correct the assumptions on the next turn.
Requirements for the artifact:
- Show the result and the working underneath it, so a user can see how the number was reached.
- Validate the inputs: reject empty, negative or non-numeric entries with a plain message beside the field.
- Include a reset button and sensible default values.
- It must work on a phone screen and use no external services or network calls.
- Add a note at the bottom stating what the calculator does not take into account.
After the artifact, give three test cases with the answers you expect, worked out step by step, so I can check the arithmetic by hand.
Customize this prompt
Fill in the variables below to personalize this prompt:
Model Settings
Recommended Models
Temperature
Max Tokens
Additional Notes
About this prompt
“Build a Single-Page Calculator as an Artifact” is a free prompt for Claude in the Coding & Software category, 162 words long, added to The Prompt Index on November 18, 2026 by The Prompt Index. Copy it with the button above, paste it into Claude or any other AI chat assistant, and send it.
It has 3 placeholders to fill in first:
{{CALCULATOR_PURPOSE}}, {{INPUT_FIELDS}}, {{CALCULATION_RULE}}.
Use the “Customize this prompt” fields to personalise it before you copy.
Recommended models: Claude.
0 upvotes, sent to an AI tool 0 times, viewed 7 times.
Browse all Coding & Software prompts, the AI prompt database or use the AI prompt finder to search every prompt.