California sales tax calculator
On a purchase of 100, California's 7.25% statewide base sales tax is 7.25, for a total of 107.25. Enter any pre-tax amount to get the tax and the total at the state base rate, before any city or district add-on. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Amount
- 100
- Total
- 107.25
- Rate percent
- 7.25
- Rate decimal
- 0.0725
- Tax
- 7.25
Combined district add-ons are out of scope: this landing answers the search for the California statewide base rate, not a ZIP-code lookup.
What the 7.25 percent California statewide base rate means
The California statewide sales and use tax base rate is 7.25 percent of the taxable pre-tax selling price. That figure is the state-level floor that applies to taxable tangible personal property sold in California; it is the sum of the six percent state rate and the one point two five percent Bradley-Burns uniform local tax. Cities and special districts often add district transactions and use taxes on top, so a receipt from Los Angeles, San Francisco, or a tourist corridor may show a combined rate well above 7.25 percent.
This calculator answers the search for the California statewide base only: it does not look up a ZIP code, a city, or a district overlay, and it does not split a combined rate into state versus local shares. Given a pre-tax amount A, the tax is A times 7.25 divided by one hundred, and the total is A plus that tax. Money is rounded to two decimal places so the result matches a cash-register receipt rather than a long floating-point expansion.
A free sample or a zero-dollar line is allowed and yields zero tax and zero total.
What you can do with it
California checkout and invoice quotes
Storefronts and invoice tools send a pre-tax subtotal and display the 7.25 percent statewide-base tax and the amount due without embedding rate tables in every client.
Consumer-math homework on California receipts
Students compute statewide-base sales tax on practice prices and compare handwritten tax and total against a deterministic 7.25 percent result before submitting.
FAQ
What is the California statewide sales tax rate used here?
7.25 percent. That is the statutory statewide base (six percent state plus 1.25 percent Bradley-Burns local). Combined city and district rates are often higher and are not applied by this calculator.
How are tax and total computed?
Tax = pre-tax amount × 0.0725, rounded to the nearest cent. Total = amount + tax. Example: 100 at the statewide base → tax 7.25, total 107.25.
Does this include my city or district add-on tax?
No. You get only the California statewide base of 7.25 percent. Look up your district overlay separately if you need a combined rate for a specific ZIP or city.
What happens if the purchase amount is negative?
A negative pre-tax amount is not allowed; zero is valid and yields zero tax and zero total.
Is the California sales tax calculator free?
The browser tool is free and runs locally.
Related tools
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/fin/california-sales-tax \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"amount":100}'const res = await fetch("https://api.kit.forhosting.com/fin/california-sales-tax", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"amount": 100
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/fin/california-sales-tax",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"amount": 100
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/fin/california-sales-tax", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"amount":100}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"amount":100}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/fin/california-sales-tax", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"amount": 100
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "fin.california_sales_tax",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Limits
max_abs | 1000000000000 |
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
California charges a statewide base sales tax of 7.25 percent on taxable retail sales, and shoppers, cashiers, and invoice tools constantly need the two numbers that follow from a pre-tax amount: how much tax is due at that base rate and what the customer pays after tax. This California sales tax calculator accepts a non-negative pre-tax purchase amount, multiplies it by the statutory statewide base of 7.25 percent, and returns the tax and the total. A negative amount is rejected with invalid_input instead of inventing a refund.
What the 7.25 percent California statewide base rate means
A negative amount is not a purchase in this model; it would invert tax into a rebate, so the API rejects it with invalid_input instead of returning a negative tax that would confuse cart software.
Input contract, response shape, and error behaviour
The California statewide base rate is not an input; it is fixed at 7.25 percent (decimal 0.0725) so callers who searched for a California sales tax calculator do not have to remember the statute. Send a JSON body with one required finite number: amount (aliases price, pre_tax, subtotal, net), the non-negative pre-tax purchase in United States dollars. The field may arrive as a JSON number or as a numeric string that matches a strict finite pattern without dollar signs or thousands separators. Absolute value must stay within one trillion so the product remains finite in IEEE double precision on the Worker and in the browser. On success the response echoes the amount rounded to cents, reports rate_percent 7.25 and rate_decimal 0.0725, returns tax and total as two-decimal money, names the jurisdiction as California statewide base, and restates the formula tax equals amount times 0.0725, total equals amount plus tax. Failed validation—missing amount, a non-finite value, a value outside the absolute limit, or a negative amount—returns invalid_input and is never charged. Pricing is a flat $0.002 per successful request with unit item. Prefer a number over a currency-formatted string; if your source is a receipt photo, extract the pre-tax subtotal first and then call this endpoint.
Where a California sales tax calculator earns its keep
Storefronts that sell into California and want a transparent statewide-base quote can send the cart subtotal and display tax and total without reimplementing percentage math in every client. Invoice and estimate tools used by independent contractors in the state can fill a tax line at the statutory 7.25 percent floor and a due-now total in one call, then layer a known district add-on themselves if their city requires it. Consumer-math classrooms and exam-prep generators need a deterministic oracle that marks a negative purchase as invalid instead of silently flipping the sign. Quality-assurance suites for billing libraries can pin one hundred dollars to tax 7.25 and total 107.25, plus a fractional price such as 49.99 for cent-rounding checks, and a deliberately negative amount to prove the hard invalid_input path. This landing targets people searching for a California sales tax calculator, the 7.25 percent statewide base, or tax and total on a California purchase; it is not a ZIP-code tax API, not a generic rate-input sales tax tool, and not a reverse calculator that starts from a tax-inclusive receipt. Prefer this capability when you already know the pre-tax amount and want the California statewide floor applied; if you need a caller-supplied percent, use a generic sales-tax endpoint instead. Failed tasks that return invalid_input do not consume prepaid balance, which keeps exploratory scripts cheap. Round-trip checks are easy: recompute amount times 0.0725 by hand, confirm it equals the published tax within the same two-decimal rounding, then confirm that amount plus tax equals the published total at the published $0.002 automation rate.
Integration use cases
Unit tests for California cart libraries
QA and engineering pin known-good cases such as one hundred dollars to tax 7.25 and total 107.25, plus deliberate negative-amount rejections for golden expected values.