Sales Tax Calculator API - add or reverse sales tax for one or many amounts
sales_tax_calculatorAdd sales tax to net prices or back out sales tax from totals (single or batch amounts), using a custom rate %, US state base rate (all 50 states + DC) and optional local city/county rate. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/sales-tax-calculator.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "add",
"amounts": "49.99\n120\n8.50",
"ratePercent": "8.25"
},
"name": "sales_tax_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | add (price -> total) or reverse (total -> net + tax) | add |
| state | No | 2-letter US state code for base rate, e.g. CA, TX, NY (optional) | |
| amounts | Yes | Prices or totals, newline-separated (or JSON array) | |
| ratePercent | No | Custom tax rate % (optional if state is given) | 8.25 |
| localPercent | No | Optional local city/county rate % to add |