{"uid":"cap_oTLhzyoL305HnBKCtuGS0","slug":"sales-tax-vat-gst-calculator-ad743f17","name":"Sales Tax & VAT/GST Calculator","description":"Add tax to a net amount or extract tax from a gross amount, using a supplied rate or an embedded table of US state (state + avg local) and worldwide VAT/GST rates.","url":"https://api.24klabs.ai/api/v1/sales-tax-vat-calculator","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"type":"string"},"amount":{"type":"number"},"region":{"type":"string"}}},"responseSchema":{"type":"json","example":{"net":100,"tax":20,"gross":120,"rate_pct":20}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mLY1krRHG19Gz1yhHMJ6O","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Add tax to a net amount or extract tax from a gross amount using a supplied rate or a built-in table of US state (with avg local) and worldwide VAT/GST rates.","exampleAgentPrompt":"I need to charge a customer $149.99 for software — can you calculate the total including sales tax for Texas, adding the average local rate on top of the state rate?","exampleUseCases":[{"title":"E-commerce checkout tax calculation","prompt":"A customer in Illinois is buying a $79.99 item — can you add the Illinois state plus average local sales tax to get the final checkout total?"},{"title":"Invoice net-to-gross conversion for EU VAT","prompt":"I'm invoicing a client in France for €500 net. Can you add the French VAT rate to get the gross amount I should put on the invoice?"},{"title":"Reverse-calculate tax from a gross receipt","prompt":"I received a payment of $214.50 from a customer in New York and need to know how much of that was sales tax — can you extract the tax from the gross amount using New York's combined rate?"}],"resultDescription":"Returns a JSON object with the computed tax amount, net amount, gross amount, the effective combined rate applied, and the jurisdiction name — whether calculated from a supplied custom rate or looked up from the embedded US-state or worldwide VAT/GST table.","failureModes":["Unknown or unsupported jurisdiction code returns an error asking for a valid country/state","Missing required fields (amount or mode) return a 400-level validation error","Negative amounts may be rejected or return unexpected results","Ambiguous region strings that don't match the lookup table fall back to requiring an explicit rate"],"whenToPreferThis":"Use this endpoint when you need a quick, stateless tax calculation — either forward (net to gross) or reverse (gross to tax) — without needing to integrate a full tax compliance platform like TaxJar or Avalara. Ideal for pricing previews, invoice generation, and receipt breakdowns where a built-in rate table covering all US states (with average local rates) and major world VAT/GST jurisdictions is sufficient, and sub-cent precision is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:59:28.324Z","isFirstParty":false}