Build a pricing calculator in the chat with Claude

The struggle: Customers keep asking for a quote and you do the maths by hand each time, with a risk of getting it wrong.

What you end up with: A small interactive calculator artifact with your rates and rules, tested on awkward cases.

Describe your pricing rules and Claude builds a small calculator you can click. You test it with edge cases, then share it only after the numbers are right.

Tools: Claude. Level: Free to start. Time: 40 min.

Use it if

  • You quote jobs by size, hours or options
  • You answer the same 'how much' question every week
  • You can state your pricing rules in plain words

Skip it if

  • Your pricing needs discount negotiation or tax rules
  • You cannot state the rules yet

What you need first

  • A Claude account; artifacts work on every plan including Free
  • Create and edit files switched on in Settings > Capabilities, which artifacts need
  • Your price list or rule of thumb, written by you

The method

  1. Write the pricing rules (Claude: Chat)

    Open a chat and write every rule you use: base prices, add-ons, minimums, rounding, and when you say no. Include one or two real past quotes with the answer you gave.

    Prompt to copy:

    I want a quote calculator. Here are my rules and two past quotes with the correct totals: [paste]. Before building anything, restate the rules as a formula in plain words and list what is unclear or missing. Ask me about each gap. Do not invent prices.

    You get: Rules Claude cannot misread.

    Tip: Include a past quote. It is your answer key.

  2. Build it (Claude: Artifacts)

    Ask Claude in the chat to build the calculator as an interactive artifact. It opens beside the chat. Keep inputs few and label each in the customer's words. Free plans can build it too, but it does not store data or log anyone in.

    Prompt to copy:

    Build an interactive calculator artifact from the agreed rules. Inputs: [list]. Show the total and a line-by-line breakdown. Show a notice that figures are an estimate. If any rule is unclear, stop and ask. Use only my prices.

    You get: A working calculator beside the chat.

    Tip: Ask for a visible line showing how each total was reached, so you can audit it.

  3. Test the edge cases (Claude: Chat)

    Enter your two past quotes and check totals against your answer key. Then try zero, very large, odd or missing values and mixed options. Ask Claude to list ten tricky inputs and to predict each result before you run it.

    Prompt to copy:

    List ten edge cases for this calculator: zero, maximum, minimum, rounding, conflicting options, empty inputs. For each, give the expected total from my rules. I will run them and report mismatches.

    You get: A list of failures to fix.

    Tip: Edge cases are where hand maths and apps differ. Check them yourself.

  4. Fix and share carefully (Claude: Artifacts)

    Describe each mismatch in the chat and ask Claude to fix it, then rerun your tests. Artifacts start private to you. When the numbers pass, decide yourself who gets the link, using sharing settings on the web or Claude Desktop.

    You get: A calculator that passes your own tests.

    Tip: Keep your hand-maths for large jobs. Use the calculator for estimates, not final quotes.

Where this goes wrong

  • A wrong rule produces confident wrong prices. Check every total against your own maths.
  • Do not share it with customers until you have tested it yourself.
  • It cannot know your costs or tax. Keep a person responsible for final quotes. Have a qualified person check this before you sign, file or send it.

Sources

More like this

Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.