Plug in your costs, your time, and the margin you want. Get a price that actually holds up — with breakeven, profit, and ready-to-use tiers mapped out.
This whole tool is about 200 lines of code and zero AI calls — it's pure math. That's the point: most tools you reach for are simpler than they look. Once you can see the logic, you can build it. Here's the exact recipe.
The entire tool hangs on a single line of math. Price isn't cost plus a markup — it's cost divided by what's left after your margin. Internalize this and the rest is just inputs and display.
// true cost = everything it takes to deliver one
trueCost = directCost + (hours × rate) + overhead
// price that clears your target margin
price = trueCost / (1 - margin/100)
// e.g. $40 cost at 50% margin → $40 / 0.5 = $80
Don't hand-write the HTML. Paste this prompt into Claude or any builder. It hands you the whole working file — then you tweak. This is "thinking in AI": you bring the logic, AI brings the labor.
Build me a single-file HTML pricing calculator.
Inputs: product name, sales model (per-unit / hourly /
subscription), direct cost, hours, hourly rate, overhead,
target margin %, and expected monthly volume.
Logic:
trueCost = directCost + hours*rate + overhead
price = trueCost / (1 - margin/100)
show profit per sale, % markup, breakeven count,
and projected monthly + annual profit.
Also output an optional 3-tier version: Lite at 0.7x,
Core at 1x (the anchor), Premium at 1.6x.
Style: warm ivory background, black text, burnt-orange
accents, serif headers, monospace labels. Clean + editorial.
No backend, no API calls. Pure JavaScript math.
Swap the tier multipliers to match how you actually sell. Change the margin guidance for your industry. Add a field you wish it had. The version you bend to fit your own business is the one that proves you can build.
You just built a pricing calculator. Cool. But the real unlock is the moment a problem shows up and your brain goes "I could build something for that" instead of "ugh." That reflex doesn't come from one build — it comes from doing it over and over until it's automatic. That's the whole course.
Get The AI Brain Course →