# Pricing Math Markup and margin, break-even, discount stacking, tiers, price rounding, bundles, MRR and fee-inclusive pricing. ## How to pay Machine-payable over x402. USDC on: Base (eip155:8453), Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp), Polygon (eip155:137), Arbitrum One (eip155:42161). No accounts. No API keys. No signup. The paying wallet is the account. ## Machine-readable - OpenAPI: https://pricing-math.x402tookit.com/openapi.json - x402 manifest: https://pricing-math.x402tookit.com/.well-known/x402 - Catalog (free): https://pricing-math.x402tookit.com/catalog - Health (free): https://pricing-math.x402tookit.com/health - Uptime (free): https://pricing-math.x402tookit.com/uptime ## Endpoints (9) ### GET /break-even — $0.02 Break-even units and revenue from fixed costs, price and variable cost per unit, with an optional profit target. Params: fixedCosts: number, price: number, variableCost: number, targetProfit?: number Example: https://pricing-math.x402tookit.com/break-even?fixedCosts=10000&price=25&variableCost=15 ### GET /bundle-price — $0.02 Bundle price, savings and bundle margin from item prices plus either a bundle discount percent or a set bundle price. Params: items: string, discountPct?: number, bundlePrice?: number, totalCost?: number Example: https://pricing-math.x402tookit.com/bundle-price?items=30%2C20%2C10&discountPct=15 ### GET /discount-stack — $0.02 Final price and effective discount when percentage discounts are stacked one after another, versus simply adding them. Params: price: number, discounts: string Example: https://pricing-math.x402tookit.com/discount-stack?price=100&discounts=20%2C10 ### GET /fee-inclusive — $0.02 Price to charge so you net a target after a percentage fee plus a fixed fee, with fees you supply. No fee table built in. Params: targetNet: number, feePct: number, fixedFee?: number Example: https://pricing-math.x402tookit.com/fee-inclusive?targetNet=89&feePct=10&fixedFee=1 ### GET /markup-margin — $0.02 Convert markup to margin and back, and get the selling price, from a cost plus one of markup, margin or price. Params: cost: number, markupPct?: number, marginPct?: number, price?: number Example: https://pricing-math.x402tookit.com/markup-margin?cost=60&markupPct=50 ### GET /price-rounding — $0.02 Round a price to a charm ending such as .99 or .95, or to steps like 9 at the end of tens, up, down or nearest. Params: price: number, ending?: number, step?: number, direction?: string Example: https://pricing-math.x402tookit.com/price-rounding?price=12.34 ### GET /price-tiers — $0.02 Total and average unit price for a quantity under graduated or volume tiers given as minQty:unitPrice pairs. Params: tiers: string, quantity: number, mode?: string Example: https://pricing-math.x402tookit.com/price-tiers?tiers=1%3A10%2C10%3A9%2C50%3A8&quantity=60 ### GET /subscription — $0.02 MRR, ARR, customer lifetime, annualised churn and LTV from customers, ARPU and monthly churn, with optional CAC payback. Params: customers: number, arpu: number, monthlyChurnPct: number, grossMarginPct?: number, cac?: number Example: https://pricing-math.x402tookit.com/subscription?customers=200&arpu=50&monthlyChurnPct=5&grossMarginPct=80&cac=200 ### GET /tax-split — $0.02 Split a tax-inclusive price into net and tax, or add tax to a net price, for a sales tax or VAT rate you supply. Params: amount: number, ratePct: number, mode?: string Example: https://pricing-math.x402tookit.com/tax-split?amount=120&ratePct=20 ## Terms Pricing arithmetic computed locally from the inputs given, provided as is. Fees, tax rates and costs are inputs you supply; no marketplace fee schedule or tax rate is built in. Not tax, legal, accounting or financial advice.