{"uid":"cap_oiymwuKf1jvbX0cNtVCgZ","slug":"pricing-math-tax-split-c98d81ec","name":"Pricing Math – Tax Split","description":"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.","url":"https://pricing-math.x402tookit.com/tax-split?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":["amount","ratePct"],"properties":{"mode":{"type":"string","description":"inclusive (default: amount already includes tax) or exclusive (amount is the net price)"},"amount":{"type":"number","description":"The amount to split or grow"},"ratePct":{"type":"number","description":"Tax rate percent (you supply it; none is built in)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"mode":{"type":["null","string"]},"source":{"type":["null","string"]},"ratePct":{"type":["null","number"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"netAmount":{"type":["null","number"]},"taxAmount":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"grossAmount":{"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_ooNHIcra-qm2M4_2099vh","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":"Splits a tax-inclusive (gross) price into net and tax amounts, or adds tax to a net price, given a user-supplied tax rate percentage.","exampleAgentPrompt":"Split £119.99 into its net price and VAT amount — the price already includes VAT at 20%.","exampleUseCases":[{"title":"E-commerce VAT receipt breakdown","prompt":"I have a gross total of €85.00 that already includes VAT at 19% — can you break it down into the net price and the VAT amount separately?"},{"title":"Adding sales tax to a wholesale quote","prompt":"My wholesale net price is $250.00. Add 8.5% sales tax to it and tell me the total gross price and the tax amount I need to charge."},{"title":"Accounting reconciliation for mixed-rate receipts","prompt":"I need to split a £540 invoice that includes UK standard VAT at 20% — give me the net and the tax so I can post them to the right accounts."}],"resultDescription":"Returns netAmount, taxAmount, and grossAmount as numbers, along with the ratePct and mode used, plus a plain-English summary. All monetary values are rounded to standard decimal precision. The response also includes a disclaimer and any degraded/error flags.","failureModes":["Missing required 'amount' or 'ratePct' query parameters returns an error","Non-numeric or negative values for amount or ratePct may cause validation errors","Extremely large or small ratePct values (e.g. 0% or >100%) may return unexpected results","Payment failure ($0.02 USDC) via x402 protocol will block the request","Invalid 'mode' value (not 'inclusive' or 'exclusive') may default to inclusive or return an error"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic computation to split a tax-inclusive gross amount into net and tax, or to add a known tax rate to a net price. It requires you to supply the tax rate yourself (no built-in rate lookup), making it ideal when you already know the applicable VAT or sales tax rate and just need the arithmetic done reliably. Prefer this over a full tax-rate-lookup service when you have the rate in hand and only need the math.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:11:18.232Z","isFirstParty":false,"canonicalSlug":"pricing-math-tax-split-c98d81ec"}