{"uid":"cap_yDIGEbAT06q7vc4BdELxd","slug":"pricing-math-fee-inclusive-price-calculator-a93df138","name":"Pricing Math: Fee-Inclusive Price Calculator","description":"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.","url":"https://pricing-math.x402tookit.com/fee-inclusive?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["targetNet","feePct"],"properties":{"feePct":{"type":"number","description":"Percentage fee taken from the price (0 to below 100)"},"fixedFee":{"type":"number","description":"Fixed fee per sale (default 0)"},"targetNet":{"type":"number","description":"Amount you want to keep after fees (your cost plus desired profit)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"requiredPrice":{"type":["null","number"]},"naiveMarkupPrice":{"type":["null","number"]},"netAtRoundedPrice":{"type":["null","number"]},"feeAtRequiredPrice":{"type":["null","number"]},"feeShareOfPricePct":{"type":["null","number"]},"requiredPriceRoundedUpToCent":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bjUUUR6CDg3QbZdWiUQ2S","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the gross price to charge customers so that after deducting a percentage fee and a fixed fee, you retain a specified net amount.","exampleAgentPrompt":"What price do I need to charge so I net $45 after a 2.9% payment processing fee plus a $0.30 fixed fee per transaction?","exampleUseCases":[{"title":"Stripe payment fee pass-through","prompt":"I want to keep exactly $100 from each sale after Stripe takes its 2.9% plus $0.30 fee — what gross price should I charge my customers?"},{"title":"Marketplace commission pricing","prompt":"My marketplace charges a 15% commission and a $1 flat fee per order. If I need to net $80 per item, what should my listed price be?"},{"title":"Freelancer invoice gross-up","prompt":"I need to invoice a client so that after a 5% platform service fee and a $2 fixed processing fee, I actually receive $500. What total should I put on the invoice?"}],"resultDescription":"Returns the exact required gross price (requiredPrice), the price rounded up to the nearest cent (requiredPriceRoundedUpToCent), a naive markup price for comparison, the net you'd actually receive at the rounded price, the total fee at the required price, and the fee as a share of the price in percent.","failureModes":["feePct is 100 or above — mathematically undefined, likely returns an error","targetNet is zero or negative — no meaningful result","Missing required query params (targetNet or feePct) — 400-level error","feePct is negative — may return unexpected results or error","Very large fixedFee relative to targetNet — may produce implausibly large required price"],"whenToPreferThis":"Use this endpoint when you know your desired net proceeds and the exact fee structure (percentage + optional fixed fee) and need to compute the correct gross price to charge — it is purpose-built for this algebraic inversion. Prefer it over general markup/margin calculators when fees are expressed as a percentage-plus-fixed structure (e.g. payment processors, marketplaces). It is distinct from the markup-to-margin endpoint (which works from cost) and the tax splitter (which handles VAT/sales tax).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:30:17.892Z","isFirstParty":false,"canonicalSlug":"pricing-math-fee-inclusive-price-calculator-a93df138"}