30 Claude Prompts That Build Calculators
Describe the numbers you want crunched and Claude returns a working interactive calculator as a single HTML/JS artifact you can preview, test, and embed. Prompts for mortgage and loans, ROI and pricing, savings, health, and converters. Not "give me a formula."
In short: This page contains 30 copy-paste ready prompts, organized into 6 categories with a description and pro tip for each. The first 15 prompts are free instantly โ no signup needed. Hand-curated and tested by the AI Academy team.
Mortgage, Loans & Affordability
5 promptsMortgage Payment Calculator
1/30You are a senior front-end engineer who builds clean, accurate financial calculators. <context> I need a fully working mortgage payment calculator built as one self-contained HTML file with inline CSS and vanilla JS, so I can preview it instantly as an artifact and use it right away. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Default loan amount: [E.G. 350000] - Default annual interest rate: [E.G. 6.5%] - Default term in years: [E.G. 30] - Extras to include: [PROPERTY TAX, INSURANCE, PMI, OR NONE] </inputs> <task> Build a calculator with labeled number inputs for loan amount, interest rate, term, and any extras above. On every input change, compute the monthly principal-and-interest payment using the standard amortization formula, plus total interest paid and total cost over the loan. Show a clear results panel and a simple breakdown of principal vs interest. Recalculate live, no submit button needed. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only, no libraries. - Validate inputs (reject negative or empty values) and format money with the chosen currency and thousands separators. - Accessible labels tied to inputs; results update instantly and are keyboard friendly. </constraints> <format> Return the full HTML in an artifact, then state the exact amortization formula you used and how to add an extra-payment field. </format>
Generates a live mortgage payment calculator with amortization math and a cost breakdown as a previewable artifact.
Pro tip: Tell Claude to add a toggle between monthly and biweekly payments so you can see how much interest accelerating the schedule saves.
Loan Amortization Schedule Calculator
2/30You are a financial-software engineer who specializes in accurate amortization tools. <context> I need a loan amortization calculator that prints a full payment schedule, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. EUR, EUR] - Loan amount: [E.G. 25000] - Annual interest rate: [E.G. 8.9%] - Term in months: [E.G. 60] - Optional one-time extra payment and the month it applies: [AMOUNT AND MONTH OR NONE] </inputs> <task> Build a calculator that computes the fixed monthly payment, then renders a month-by-month table showing payment number, payment, principal portion, interest portion, and remaining balance. Above the table, show monthly payment, total interest, and payoff date. If an extra payment is set, apply it and show interest and months saved versus the baseline. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Table must scroll cleanly on mobile and use formatted currency; round consistently so the final balance lands at zero. - Accessible table markup with a caption and column headers. </constraints> <format> Return the full HTML in an artifact, then explain how you handled rounding so the schedule fully pays off, and how to export the table to CSV. </format>
Builds a loan calculator that renders a full month-by-month amortization schedule with extra-payment savings as a previewable artifact.
Pro tip: Ask Claude to highlight the row where the principal portion first exceeds the interest portion; it is the psychological turning point of any loan.
Mortgage Affordability Calculator
3/30You are a mortgage analyst who builds buyer-affordability tools. <context> I need a home-affordability calculator that tells a buyer the max home price they can target, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. GBP, ] - Gross annual income: [E.G. 90000] - Existing monthly debts: [E.G. 600] - Down payment available: [E.G. 40000] - Expected interest rate and term: [E.G. 6%, 30 YEARS] - Max debt-to-income ratio to use: [E.G. 36%] </inputs> <task> Build a calculator that derives the maximum affordable monthly housing payment from income and the chosen DTI, subtracts existing debts, then back-solves the largest loan that payment supports at the given rate and term, and adds the down payment to show the max home price. Display max home price, max loan, estimated monthly payment, and the DTI you assumed, with a short plain-language readout of what it means. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate live; validate inputs and format currency; show a gentle warning if existing debts already exceed the DTI budget. - Accessible labels and a clear, scannable results card. </constraints> <format> Return the full HTML in an artifact, then explain the DTI math you used and how to add a property-tax and insurance adjustment. </format>
Produces a home-affordability calculator that back-solves max home price from income and DTI as a previewable artifact.
Pro tip: Have Claude show a second, conservative number at 28% DTI next to the aggressive one so buyers see a safe range, not a single risky ceiling.
Auto Loan & Lease Comparison Calculator
4/30You are a personal-finance tool builder who helps people compare car-financing options. <context> I need a calculator that compares buying with an auto loan versus leasing, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Vehicle price: [E.G. 38000] - Down payment: [E.G. 5000] - Loan rate and term: [E.G. 7%, 60 MONTHS] - Lease monthly and term: [E.G. 420, 36 MONTHS] - Expected resale value after the loan term: [E.G. 18000] </inputs> <task> Build a two-column calculator. The loan side computes the monthly payment, total paid, and net cost after subtracting expected resale equity. The lease side computes total lease cost over its term with no residual equity. Show both monthly payments, both total costs, and a clear verdict on which is cheaper over the compared horizon, plus the dollar difference. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate live; format currency; handle the case where lease and loan terms differ by normalizing the comparison and labeling the assumption. - Accessible labels and a side-by-side layout that stacks on mobile. </constraints> <format> Return the full HTML in an artifact, then explain how you normalized the differing terms and the one assumption a buyer should double-check. </format>
Builds a buy-versus-lease auto calculator with a side-by-side cost comparison and verdict as a previewable artifact.
Pro tip: Ask Claude to add an annual-mileage input so the lease side can flag likely overage fees, which is where leases quietly get expensive.
Debt Payoff (Snowball vs Avalanche) Calculator
5/30You are a financial-wellness engineer who builds debt-payoff planners. <context> I need a calculator that compares the snowball and avalanche debt-payoff methods across multiple debts, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Starter debts (name, balance, APR, minimum payment): [LIST 2-4] - Extra monthly amount available beyond minimums: [E.G. 300] </inputs> <task> Build a calculator that lets me add or remove debt rows (name, balance, APR, minimum). Given the extra monthly amount, simulate both strategies month by month: snowball pays the smallest balance first, avalanche pays the highest APR first, both rolling freed-up payments forward. Show months to debt-free, total interest paid, and total time and interest saved by avalanche versus snowball, side by side. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Support dynamic add/remove of debt rows; validate that minimums cover at least the monthly interest, warn otherwise. - Format currency; accessible inputs and a clear two-strategy results panel. </constraints> <format> Return the full HTML in an artifact, then explain the month-by-month simulation logic and how to add a target payoff-date mode. </format>
Creates a multi-debt payoff planner comparing snowball and avalanche strategies month by month as a previewable artifact.
Pro tip: Have Claude add a one-line nudge under the results noting which method is mathematically cheaper and which keeps motivation higher.
XML tags are just the start. Learn the full Claude workflow.
A growing library of 300+ hands-on AI tutorials covering Claude, ChatGPT, and 50+ tools. New tutorials added every week.
Business, ROI & Pricing
5 promptsROI Calculator
6/30You are a B2B growth engineer who builds ROI calculators that sales teams use to close deals. <context> I need a clean ROI calculator for my product or initiative, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Cost of the investment: [E.G. ANNUAL PRICE OR PROJECT COST] - The value drivers (name and how each is measured): [E.G. HOURS SAVED PER WEEK, COST PER HOUR] - Time horizon: [E.G. 12 MONTHS] - Optional ramp-up before full value: [E.G. 2 MONTHS OR NONE] </inputs> <task> Build a calculator where the user enters their numbers for each value driver. Compute total gains over the horizon, net gain after the investment cost, ROI percentage, and payback period in months. Show a clear results card with the headline ROI percentage, the net dollar gain, and a one-line plain-language summary like "pays for itself in X months". </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate live; validate inputs and format currency and percentages. - Accessible labels; results card readable enough to screenshot for a sales deck. </constraints> <format> Return the full HTML in an artifact, then explain the value-driver math and how to make the calculator embeddable in a marketing site. </format>
Generates a live ROI calculator with payback period and a deck-ready results card as a previewable artifact.
Pro tip: Give Claude your real cost-per-hour or cost-per-error figure so the value drivers feel specific instead of generic placeholders.
Quote & Pricing Estimator
7/30You are a tools engineer who builds instant-quote calculators for service businesses. <context> I need a configurable pricing estimator that gives prospects an instant quote, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Base price: [E.G. 500] - Quantity or size driver and its unit price: [E.G. PER PAGE, PER SEAT, PER SQ FT] - Add-on options with prices (checkboxes): [LIST 3-5] - Tiers or multipliers (e.g. rush, complexity): [LIST OR NONE] - Optional discount rule: [E.G. 10% OVER 10 UNITS OR NONE] </inputs> <task> Build an estimator with a quantity input, checkboxes for add-ons, and a dropdown for any tier or multiplier. Compute the running total live: base plus quantity times unit price, plus selected add-ons, times any multiplier, minus any discount that applies. Show an itemized line-by-line breakdown and a bold final estimate, with a note that it is an estimate, not a binding quote. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate on every change; format currency; show the itemized breakdown so the number feels transparent. - Accessible form controls with proper labels and a clear total. </constraints> <format> Return the full HTML in an artifact, then explain the pricing-rule order of operations and how to add a "request this quote" capture step. </format>
Builds a configurable instant-quote estimator with add-ons, multipliers, and an itemized breakdown as a previewable artifact.
Pro tip: Ask Claude to round the headline estimate to a clean number and show the exact total in the breakdown so the quote reads confident, not fussy.
Break-Even Analysis Calculator
8/30You are a startup-finance engineer who builds break-even tools for founders. <context> I need a break-even calculator that shows how many units I must sell to cover costs, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Fixed costs per period: [E.G. 12000 PER MONTH] - Variable cost per unit: [E.G. 8] - Price per unit: [E.G. 29] - Optional target profit to also solve for: [E.G. 5000 OR NONE] </inputs> <task> Build a calculator that computes the contribution margin per unit, the break-even point in units and in revenue, and, if a target profit is given, the units needed to hit it. Show a results panel with break-even units, break-even revenue, contribution margin, and contribution-margin ratio. Include a small text-based sensitivity readout showing how break-even shifts if price rises or falls 10%. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate live; warn clearly if price is at or below variable cost (no break-even possible). - Format currency and percentages; accessible labels and a scannable results card. </constraints> <format> Return the full HTML in an artifact, then explain the contribution-margin formula and how to extend it to multiple products. </format>
Produces a break-even calculator with contribution margin and a price-sensitivity readout as a previewable artifact.
Pro tip: Tell Claude to flash a visible warning when your price is below variable cost; founders often discover the model is upside down right there.
SaaS Pricing & MRR Calculator
9/30You are a SaaS-metrics engineer who builds revenue calculators for subscription businesses. <context> I need a SaaS revenue calculator that projects MRR, ARR, and churn-adjusted growth, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Current paying customers: [E.G. 200] - Average revenue per account per month: [E.G. 49] - New customers added per month: [E.G. 40] - Monthly churn rate: [E.G. 4%] - Projection horizon in months: [E.G. 12] </inputs> <task> Build a calculator that projects customers, MRR, and ARR month by month, applying new adds and churn each period. Show current MRR and ARR, end-of-horizon MRR and ARR, net new MRR over the period, and the approximate customer lifetime in months implied by the churn rate. Render a compact month table or a simple text trajectory of MRR by month. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate live; validate that churn is between 0 and 100%; format currency. - Accessible inputs and a results layout that stacks cleanly on mobile. </constraints> <format> Return the full HTML in an artifact, then explain how churn compounds in your month-by-month loop and how to add expansion revenue. </format>
Builds a SaaS calculator projecting MRR, ARR, and churn-adjusted growth over a horizon as a previewable artifact.
Pro tip: Ask Claude to surface implied customer lifetime from your churn rate; it reframes a 4% number into the months a customer actually stays.
Freelance Hourly Rate Calculator
10/30You are a tools engineer who helps freelancers price their time correctly. <context> I need a calculator that turns a target take-home income into the hourly rate I must charge, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Target annual take-home income: [E.G. 90000] - Annual business expenses: [E.G. 12000] - Tax rate to set aside: [E.G. 25%] - Billable hours per week: [E.G. 25] - Weeks worked per year (after vacation): [E.G. 46] </inputs> <task> Build a calculator that grosses up the take-home for taxes, adds expenses, divides by total annual billable hours, and outputs the required hourly rate. Also show the implied day rate, the total billable hours per year, and how the rate changes if billable hours drop to a realistic 60% utilization. Display a clear results card with the headline hourly rate. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate live; validate inputs and format currency and percentages. - Accessible labels; results readable enough to set your rate from at a glance. </constraints> <format> Return the full HTML in an artifact, then explain the gross-up math and why you also showed the 60%-utilization rate. </format>
Generates a freelance rate calculator that derives the hourly rate needed to hit a take-home goal as a previewable artifact.
Pro tip: Tell Claude to show the rate at both your optimistic and realistic billable hours so you quote from the safe number, not the dream one.
Savings, Investing & Retirement
5 promptsCompound Interest Calculator
11/30You are a front-end engineer who builds accurate savings-growth calculators. <context> I need a compound interest calculator with regular contributions, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Starting principal: [E.G. 10000] - Monthly contribution: [E.G. 500] - Annual interest rate: [E.G. 7%] - Compounding frequency: [MONTHLY / ANNUALLY] - Years to grow: [E.G. 20] </inputs> <task> Build a calculator that projects the balance over time using compound interest plus periodic contributions. Show the final balance, total contributed, and total interest earned. Render a year-by-year table or a simple text trajectory of the balance, and clearly separate how much growth came from contributions versus from compounding. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate live; validate inputs; format currency; handle the chosen compounding frequency correctly. - Accessible labels and a results layout that reads cleanly on mobile. </constraints> <format> Return the full HTML in an artifact, then state the compounding formula you used and how to add an inflation-adjusted (real) balance line. </format>
Builds a compound interest calculator with contributions and a contribution-vs-growth split as a previewable artifact.
Pro tip: Ask Claude to add a line showing what the same money would total at a 1% lower rate; the gap is the clearest argument for low fees.
Retirement Savings Calculator
12/30You are a retirement-planning engineer who builds clear, honest projection tools. <context> I need a retirement savings calculator that projects whether I am on track, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Current age and target retirement age: [E.G. 34 AND 65] - Current savings: [E.G. 75000] - Monthly contribution: [E.G. 800] - Expected annual return before retirement: [E.G. 6.5%] - Desired annual income in retirement: [E.G. 50000] </inputs> <task> Build a calculator that grows current savings plus monthly contributions to the retirement age, then estimates how long that nest egg lasts at the desired annual withdrawal (assume a conservative post-retirement return, e.g. 4%). Show projected balance at retirement, years the money is expected to last, and a clear on-track or shortfall verdict with the extra monthly amount needed to close any gap. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate live; validate that retirement age exceeds current age; format currency. - Accessible labels and an unambiguous verdict line (green on track, amber shortfall). </constraints> <format> Return the full HTML in an artifact, then explain your withdrawal-depletion logic and the assumptions a user should adjust for their situation. </format>
Produces a retirement calculator that projects the nest egg and an on-track-or-shortfall verdict as a previewable artifact.
Pro tip: Have Claude state every assumption (returns, inflation, withdrawal) on screen; an honest retirement tool shows its work rather than a single false-precise number.
Savings Goal Timeline Calculator
13/30You are a personal-finance tool builder who helps people plan toward a specific goal. <context> I need a savings-goal calculator that tells me when I will reach a target, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Savings goal amount: [E.G. 20000] - Amount already saved: [E.G. 4000] - Monthly contribution: [E.G. 600] - Annual interest rate on savings: [E.G. 3%] - Optional hard deadline: [E.G. 24 MONTHS OR NONE] </inputs> <task> Build a calculator that computes how many months it takes to reach the goal given contributions and interest, and the exact date it lands on. If a deadline is set, compute the monthly contribution required to hit the goal by then and show whether the current plan makes it. Display months to goal, the target date, and total interest earned along the way. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate live; validate inputs; format currency; handle the case where the goal is already met. - Accessible labels and a clear, encouraging results card. </constraints> <format> Return the full HTML in an artifact, then explain the dual mode (solve-for-time vs solve-for-contribution) and how to add multiple simultaneous goals. </format>
Builds a savings-goal calculator that solves for either the date or the required monthly contribution as a previewable artifact.
Pro tip: Ask Claude to add a date picker for the deadline so the tool answers "how much per month by my birthday?" instead of an abstract month count.
Investment Return & CAGR Calculator
14/30You are a finance engineer who builds investment-performance calculators. <context> I need a calculator that measures an investment's return, including annualized CAGR, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Initial investment value: [E.G. 10000] - Final value: [E.G. 18500] - Holding period: [E.G. 5 YEARS] - Optional additional contributions during the period: [LIST AMOUNTS AND TIMING OR NONE] </inputs> <task> Build a calculator that computes total return percentage, absolute gain or loss, and the compound annual growth rate (CAGR) over the holding period. If contributions are added, compute a simple money-weighted approximation and label it as an approximation. Show a results card with total return, annualized CAGR, and the absolute gain, with a one-line plain explanation of what CAGR means. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate live; validate inputs; format currency and percentages; handle losses (negative returns) gracefully. - Accessible labels and a clear distinction between total return and annualized return. </constraints> <format> Return the full HTML in an artifact, then state the CAGR formula and explain why annualized return differs from total return. </format>
Generates an investment-return calculator with total return and annualized CAGR as a previewable artifact.
Pro tip: Tell Claude to display CAGR and total return side by side; people routinely confuse "85% total" with "85% a year" and this stops it.
Emergency Fund Calculator
15/30You are a financial-wellness engineer who builds practical budgeting tools. <context> I need an emergency-fund calculator that tells me how much cushion to hold and how long to build it, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Essential monthly expenses (rent, food, utilities, insurance, minimum debt): [LIST OR TOTAL] - Months of cushion desired: [E.G. 6] - Amount already saved for emergencies: [E.G. 3000] - Monthly amount you can set aside: [E.G. 500] </inputs> <task> Build a calculator that sums essential expenses, multiplies by the desired months to get the target fund, subtracts what is already saved to get the remaining gap, and computes how many months of saving it takes to close the gap. Show the target fund, the gap, the months to fully funded, and a short readout of what the fund covers (e.g. "this covers 6 months if income stops"). </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate live; allow either a single expense total or itemized rows; format currency. - Accessible labels and a reassuring, clear results card. </constraints> <format> Return the full HTML in an artifact, then explain why you anchored on essential rather than total expenses and how to adjust months by job stability. </format>
Builds an emergency-fund calculator that sets a target and a months-to-funded timeline as a previewable artifact.
Pro tip: Ask Claude to recommend 3 vs 6 months based on a simple job-stability question so the target fits the user instead of a one-size rule.
Health, Fitness & Nutrition
5 promptsBMI & Body Composition Calculator
16/30You are a front-end engineer who builds clear, responsible health calculators. <context> I need a BMI calculator that works in both metric and imperial units, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Default unit system: [METRIC / IMPERIAL] - Show category bands: [YES / NO] - Audience tone: [CLINICAL AND NEUTRAL / FRIENDLY] </inputs> <task> Build a calculator with a metric/imperial toggle. In metric, take height in cm and weight in kg; in imperial, feet and inches plus pounds. Compute BMI, show the value, its standard category (underweight, normal, overweight, obese) with the threshold ranges, and the weight range that would land the user in the normal band for their height. Add a clear note that BMI is a rough screen, not a diagnosis. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Convert units correctly when the toggle changes; validate inputs; round BMI to one decimal. - Accessible labels, a calm non-judgmental category readout, and a visible medical-disclaimer line. </constraints> <format> Return the full HTML in an artifact, then state the BMI formula for each unit system and explain the disclaimer wording you chose. </format>
Generates a metric/imperial BMI calculator with category bands and a responsible disclaimer as a previewable artifact.
Pro tip: Tell Claude to keep the category readout neutral and factual; a health tool that lectures gets closed before it helps.
Daily Calorie & Macro Calculator
17/30You are a nutrition-tool engineer who builds evidence-based calorie calculators. <context> I need a daily calorie and macronutrient calculator, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Default unit system: [METRIC / IMPERIAL] - Goal: [LOSE / MAINTAIN / GAIN] - Activity levels to offer: [SEDENTARY THROUGH VERY ACTIVE] - Macro split preset to default to: [E.G. BALANCED 40/30/30] </inputs> <task> Build a calculator that takes age, sex, height, weight, and an activity-level dropdown, computes BMR with the Mifflin-St Jeor equation, multiplies by an activity factor for TDEE, then adjusts for the selected goal (deficit or surplus). Output target daily calories and a macro breakdown in grams for protein, carbs, and fat based on the chosen split. Show BMR, TDEE, target calories, and the gram targets, with a short medical disclaimer. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Handle metric/imperial conversion; validate inputs; recalculate live. - Accessible labels; clearly separate BMR, TDEE, and the goal-adjusted target; include a disclaimer. </constraints> <format> Return the full HTML in an artifact, then state the BMR and activity-factor values you used and how to let users edit the macro split. </format>
Builds a calorie and macro calculator using Mifflin-St Jeor BMR and goal adjustment as a previewable artifact.
Pro tip: Ask Claude to expose the activity multipliers in a tooltip; people consistently overrate their activity level and inflate the target.
Pace, Distance & Time Calculator
18/30You are a sports-tech engineer who builds running and cycling calculators. <context> I need a pace calculator that solves for pace, distance, or time given the other two, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Default unit system: [KM / MILES] - Sport context: [RUNNING / CYCLING / WALKING] - Common race presets to offer: [E.G. 5K, 10K, HALF, MARATHON] </inputs> <task> Build a calculator with three fields (distance, time, pace) where the user fills any two and the third is computed. Support entering time as hours/minutes/seconds and pace as minutes per km or mile. Add quick race-distance preset buttons. Show the solved value prominently, plus a small table of split times at the chosen pace for the common race distances. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Handle km/mile conversion; validate time formats; recalculate the third field when any two are present. - Accessible labels and a clean three-field layout that stacks on mobile. </constraints> <format> Return the full HTML in an artifact, then explain how you decided which field to solve for and how to add a finish-time predictor from a recent race. </format>
Produces a pace/distance/time calculator that solves for any missing value with split tables as a previewable artifact.
Pro tip: Tell Claude to add finish-time presets so a runner can instantly see the pace needed for a sub-2-hour half, which is how most people actually use it.
Pregnancy Due Date Calculator
19/30You are a front-end engineer who builds clear, gentle health-date calculators. <context> I need a pregnancy due-date calculator, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Calculation basis to offer: [LAST MENSTRUAL PERIOD / CONCEPTION DATE / IVF TRANSFER] - Default cycle length: [E.G. 28 DAYS] - Tone: [WARM AND REASSURING / CLINICAL] </inputs> <task> Build a calculator with a basis dropdown and a date input. For last-menstrual-period, apply Naegele's rule adjusted for cycle length; for conception, add the standard gestational offset; for IVF, account for embryo age. Output the estimated due date, current gestational age in weeks and days (relative to today), the current trimester, and a few milestone dates. Add a clear note that this is an estimate and to confirm with a clinician. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Handle date math across month and year boundaries; validate the date; recalculate on change. - Accessible labels, a warm but accurate readout, and a visible medical-estimate disclaimer. </constraints> <format> Return the full HTML in an artifact, then explain the date math for each basis and the disclaimer wording you chose. </format>
Builds a due-date calculator across LMP, conception, and IVF bases with gestational milestones as a previewable artifact.
Pro tip: Ask Claude to show the gestational age relative to today alongside the due date; that "you are X weeks along" line is what people actually want.
Water Intake & Hydration Calculator
20/30You are a wellness-tool engineer who builds simple, practical health calculators. <context> I need a daily hydration calculator, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Default unit system: [METRIC LITRES / IMPERIAL OUNCES] - Factors to include: [BODY WEIGHT, EXERCISE MINUTES, CLIMATE] - Tone: [FRIENDLY / NEUTRAL] </inputs> <task> Build a calculator that takes body weight, daily exercise minutes, and a climate dropdown (temperate, hot, very hot), then estimates recommended daily water intake using a weight-based baseline plus exercise and climate adjustments. Output the recommended daily total, a suggested number of glasses, and a simple hourly sip target across waking hours. Add a note that needs vary and to listen to thirst and a clinician. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Handle metric/imperial conversion; validate inputs; recalculate live. - Accessible labels, a friendly readout, and a short disclaimer line. </constraints> <format> Return the full HTML in an artifact, then state the baseline and adjustment factors you used and how to add a coffee or alcohol offset. </format>
Generates a hydration calculator with weight, exercise, and climate factors plus an hourly sip target as a previewable artifact.
Pro tip: Tell Claude to translate the total into glasses and an hourly target; a raw "3.1 litres" is harder to act on than "one glass every hour".
Everyday & Tax Tools
5 promptsTip & Bill-Split Calculator
21/30You are a front-end engineer who builds fast, frictionless everyday calculators. <context> I need a tip and bill-splitting calculator, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact and usable one-handed on a phone. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Default tip presets: [E.G. 15%, 18%, 20%] - Allow custom tip percent: [YES] - Allow rounding the total: [YES / NO] </inputs> <task> Build a calculator with a bill-amount input, tip-percent preset buttons plus a custom tip field, and a number-of-people stepper. Compute the tip amount, total with tip, and per-person share live. Add an optional "round up the total to a clean number" toggle and show how that changes the effective tip. Make the per-person amount the biggest number on screen. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate on every change; format currency; handle one person (no split) gracefully. - Large tap targets, accessible labels, and a mobile-first layout. </constraints> <format> Return the full HTML in an artifact, then explain how rounding affects the effective tip and how to add uneven splits (people who owe different amounts). </format>
Builds a mobile-first tip and bill-split calculator with presets and a round-up toggle as a previewable artifact.
Pro tip: Ask Claude to make the per-person figure the largest element; at a restaurant that is the only number anyone needs to read.
Sales Tax & VAT Calculator
22/30You are a front-end engineer who builds accurate tax-line calculators. <context> I need a sales tax / VAT calculator that works both ways (add tax or extract tax), built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. EUR, ] - Default tax rate: [E.G. 20%] - Mode toggle: [ADD TAX TO NET / EXTRACT TAX FROM GROSS] - Optional preset rates: [LIST COMMON RATES OR NONE] </inputs> <task> Build a calculator with an amount input, a tax-rate input, and a mode toggle. In add-tax mode, compute tax and gross from a net amount; in extract mode, compute net and tax from a gross amount. Show net, tax, and gross clearly labeled in every mode, plus the effective tax rate. Include preset rate buttons if provided. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate live; format currency; round to two decimals consistently so net plus tax equals gross exactly. - Accessible labels and an unambiguous mode indicator so users never mix up inclusive and exclusive. </constraints> <format> Return the full HTML in an artifact, then explain the add-versus-extract formulas and how you guaranteed net plus tax reconciles to gross. </format>
Generates a two-way sales tax / VAT calculator that adds or extracts tax with reconciled rounding as a previewable artifact.
Pro tip: Tell Claude to label every mode clearly; the silent bug in tax tools is treating an inclusive price as exclusive and overcharging by the rate.
Income Tax Estimator (Bracketed)
23/30You are a finance engineer who builds transparent, bracket-based tax estimators. <context> I need an income-tax estimator that applies progressive brackets, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Tax brackets (lower bound, upper bound, rate): [PASTE THE BRACKET TABLE] - Standard deduction or allowance: [E.G. 14600] - Optional flat additional taxes (e.g. social contributions): [LIST OR NONE] </inputs> <task> Build a calculator with a gross-income input that applies the pasted brackets progressively after the deduction, computing tax owed per bracket. Show total tax, take-home income, the effective tax rate, and the marginal rate. Render a small breakdown table of how much tax each bracket contributed, and add a clear note that this is an estimate, not tax advice. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Apply brackets progressively (only income within each band is taxed at that band's rate); validate inputs; format currency and percentages. - Accessible table and labels; a visible "estimate only" disclaimer. </constraints> <format> Return the full HTML in an artifact, then explain the progressive-bracket logic and how to make the bracket table editable in the UI. </format>
Builds a bracketed income-tax estimator with marginal and effective rates and a per-bracket breakdown as a previewable artifact.
Pro tip: Have Claude show marginal and effective rates side by side; the gap explains why a raise into a higher bracket does not shrink your paycheck.
Unit & Measurement Converter
24/30You are a front-end engineer who builds reliable, multi-category unit converters. <context> I need a unit converter covering several measurement categories, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Categories to include: [E.G. LENGTH, WEIGHT, TEMPERATURE, VOLUME, SPEED, AREA] - Default category to open on: [E.G. LENGTH] - Decimal precision to show: [E.G. 4 SIGNIFICANT DIGITS] </inputs> <task> Build a converter with a category selector that swaps the available units. The user enters a value and picks from and to units; the result updates live, and a swap button flips the direction. Handle temperature with offset formulas (not simple ratios). Show the result with the chosen precision and a one-line formula or factor used for transparency. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Use accurate conversion factors; handle temperature offsets correctly; recalculate live; trim trailing zeros sensibly. - Accessible dropdowns and labels; a layout that works on mobile. </constraints> <format> Return the full HTML in an artifact, then explain how you stored conversion factors and why temperature needed special handling. </format>
Produces a multi-category unit converter with live conversion and correct temperature offsets as a previewable artifact.
Pro tip: Ask Claude to keep the factor table data-driven so adding a new unit or category later is one line, not a rewrite.
Currency Converter (Editable Rates)
25/30You are a front-end engineer who builds offline-friendly currency tools. <context> I need a currency converter that works offline with rates I can edit, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact (no live API calls). </context> <inputs> - Base currency: [E.G. USD] - Currencies to support and their rates vs the base: [E.G. EUR 0.92, GBP 0.79, JPY 156] - Default amount: [E.G. 100] - Decimal places: [E.G. 2] </inputs> <task> Build a converter with an amount input, a from-currency and to-currency selector, and an editable rates table so the user can paste in current rates. Convert via the base currency, update live, and offer a swap button. Show the converted amount, the implied rate used (e.g. 1 EUR = X GBP), and a small note that rates are user-supplied and may be stale. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only; no external network calls. - Convert correctly through the base currency; validate rates are positive; recalculate live; format with the chosen decimals. - Accessible inputs and an editable rates table with clear labels. </constraints> <format> Return the full HTML in an artifact, then explain the convert-through-base logic and how to wire it to a live rates API later if I want. </format>
Builds an offline currency converter with an editable rates table and convert-through-base logic as a previewable artifact.
Pro tip: Tell Claude to keep rates user-editable; an offline tool you control beats a half-broken live API for quick, repeatable conversions.
Most people use 10% of Claude. Tutorials unlock the rest.
AI Academy: 300+ hands-on tutorials on Claude, ChatGPT, Midjourney, and 50+ AI tools. New tutorials added every week.
Niche & Specialized Calculators
5 promptsAd Spend & ROAS Calculator
26/30You are a marketing-analytics engineer who builds paid-media planning calculators. <context> I need a calculator that models ad spend, ROAS, and break-even from a few funnel inputs, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - Monthly ad budget: [E.G. 5000] - Cost per click and click-to-lead rate: [E.G. 2.50 AND 8%] - Lead-to-customer conversion rate: [E.G. 20%] - Average revenue per customer (and margin %): [E.G. 400, 60%] </inputs> <task> Build a calculator that derives clicks, leads, and customers from the budget and rates, then computes revenue, ROAS, profit after margin, cost per acquisition, and the break-even CPA. Show the full funnel as a small step-down readout (spend, clicks, leads, customers, revenue) and a headline ROAS and profit figure, plus whether the campaign is profitable at the current numbers. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate live; validate that rates are between 0 and 100%; format currency and percentages. - Accessible labels and a clear, screenshot-friendly funnel and verdict. </constraints> <format> Return the full HTML in an artifact, then explain the funnel math and how to add a target-ROAS solver that outputs the max viable CPC. </format>
Generates an ad-spend calculator that models a full funnel to ROAS, profit, and break-even CPA as a previewable artifact.
Pro tip: Ask Claude to add the break-even CPA so you instantly know the most you can pay per customer before the campaign loses money.
Time Zone Meeting Planner Calculator
27/30You are a front-end engineer who builds practical scheduling tools for distributed teams. <context> I need a time-zone meeting planner that shows a proposed time across several cities, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Cities or time zones to compare: [E.G. NEW YORK, LONDON, BERLIN, SINGAPORE] - Reference time zone and proposed time: [E.G. 3PM NEW YORK] - Acceptable working-hours window: [E.G. 8AM-7PM LOCAL] </inputs> <task> Build a planner where the user picks a reference zone and a time; the tool shows that moment in every selected zone with the local day, and flags each as inside or outside working hours. Add a simple way to step the proposed time forward or back in 30-minute increments and watch all zones update, so the user can hunt for the time that lands in the most working windows. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only; use built-in timezone support, no external libraries. - Recalculate live; handle date rollover across zones; clearly mark out-of-hours zones. - Accessible controls and a readable multi-zone results row. </constraints> <format> Return the full HTML in an artifact, then explain how you handled timezone conversion and day rollover without a library, and DST caveats to note. </format>
Builds a meeting planner that maps a proposed time across zones and flags working-hours fit as a previewable artifact.
Pro tip: Tell Claude to add the step-forward buttons; finding the least-bad meeting slot is a search problem, and stepping makes it a two-second one.
Paint & Material Estimator
28/30You are a tools engineer who builds home-project material calculators. <context> I need a paint and material estimator for a room or project, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Default unit system: [METRIC METRES / IMPERIAL FEET] - Material type: [PAINT / FLOORING / WALLPAPER] - Coverage per unit (e.g. paint coverage per litre, tile size): [E.G. 10 SQ M PER LITRE] - Number of coats and a waste allowance: [E.G. 2 COATS, 10% WASTE] - Price per unit: [E.G. 28 PER LITRE] </inputs> <task> Build an estimator that takes room dimensions (length, width, height for walls; or floor area), subtracts a door/window allowance, computes total surface area, then divides by coverage, multiplies by coats, adds the waste allowance, and rounds up to whole units to buy. Show area, units needed, units to buy (rounded up), and total cost. Adapt the labels to the chosen material. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Handle metric/imperial conversion; validate inputs; always round purchase quantity up; format currency. - Accessible labels and a clear shopping-ready results card. </constraints> <format> Return the full HTML in an artifact, then explain the area-to-units math and how to support multiple rooms in one estimate. </format>
Produces a paint and material estimator that turns room dimensions into units to buy and total cost as a previewable artifact.
Pro tip: Ask Claude to always round purchase units up and show the leftover; running out of paint mid-wall is worse than buying one extra can.
Grade & GPA Calculator
29/30You are an education-tools engineer who builds clear grading calculators for students. <context> I need a grade and GPA calculator, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Grading scale: [E.G. 4.0 SCALE WITH LETTER-TO-POINTS MAP] - Mode: [WEIGHTED COURSE GPA / FINAL-GRADE-NEEDED] - Whether to support credit hours / weights: [YES / NO] </inputs> <task> Build a calculator with two modes. GPA mode lets the user add course rows (grade plus credit hours), then computes the weighted GPA. Final-grade mode lets a student enter current grade, the weight of the final exam, and a target overall grade, then computes the score they need on the final to hit it (and flags if it is impossible or already locked in). Show clear results for whichever mode is active. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Support dynamic add/remove of course rows; validate inputs; round sensibly. - Accessible labels and a clean two-mode toggle that stacks on mobile. </constraints> <format> Return the full HTML in an artifact, then explain the weighted-average math and how to make the letter-to-points map editable. </format>
Builds a dual-mode grade calculator for weighted GPA and the score needed on a final as a previewable artifact.
Pro tip: Tell Claude to flag when the needed final score is over 100% or already guaranteed; that single line answers the question every student is really asking.
Solar Savings & Payback Calculator
30/30You are a clean-energy tools engineer who builds homeowner solar calculators. <context> I need a solar-savings calculator that estimates payback and lifetime savings, built as one self-contained HTML file with inline CSS and vanilla JS, previewable instantly as an artifact. </context> <inputs> - Currency and symbol: [E.G. USD, $] - System cost after incentives: [E.G. 18000] - Average monthly electricity bill: [E.G. 180] - Expected portion of the bill offset by solar: [E.G. 80%] - Annual utility price increase: [E.G. 3%] - System lifespan in years: [E.G. 25] </inputs> <task> Build a calculator that computes annual savings from the offset bill, projects those savings forward with the annual utility price increase, and finds the payback year where cumulative savings exceed the system cost. Show monthly and annual savings, the payback period in years, total savings over the system lifespan, and the simple return as a percentage. Render a short year-by-year cumulative-savings readout. </task> <constraints> - One self-contained, responsive HTML file; vanilla JS only. - Recalculate live; validate inputs; format currency and percentages; compound the price increase year over year. - Accessible labels and a clear payback-year highlight. </constraints> <format> Return the full HTML in an artifact, then explain how the compounding utility increase shortens payback and which assumption is most sensitive. </format>
Generates a solar-savings calculator that finds payback year and lifetime savings with rising utility rates as a previewable artifact.
Pro tip: Ask Claude to highlight the payback year on the cumulative readout; that crossover point is the single number that sells or kills a solar quote.
Frequently Asked Questions
Prompts are the starting line. Tutorials are the finish.
A growing library of 300+ hands-on tutorials on ChatGPT, Claude, Midjourney, and 50+ AI tools. New tutorials added every week.
7-day free trial. Cancel anytime.