ForHosting KIT · Finance & money

Calculate price with sales tax

Know what a purchase will really cost once tax is added: a price of 80 at a 7.5% rate carries 6 in tax, for a total of 86, with both figures shown separately. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Price
49.99
Tax rate
8.25
You get
Tax amount
4.124175
Total price
54.114175

Calculate the price with sales tax when you already know the pre-tax amount and the applicable percentage rate. The calculator returns the tax amount as a separate value and the final total price, making it useful for receipts, quotations, invoices, budgets, and checkout tests. Enter the rate as a percentage, so 8.25 means 8.25 percent. Zero is accepted for tax-free purchases, while a negative tax rate is rejected as invalid input.

How to calculate a price with sales tax

Start with the price before tax and the sales tax rate expressed as a percentage. The calculator first divides the percentage by one hundred, then multiplies that decimal rate by the pre-tax price. That result is the tax amount.

It then adds the tax amount to the original price to produce the total price. For example, a pre-tax price of 80 with a rate of 7.5 percent produces 6 in tax and a total price of 86. This separation matters because a receipt, quotation, or accounting record often needs to show the subtotal, tax, and amount due independently.

Enter 7.5 for a 7.5 percent rate; do not enter 0.075 unless your intended rate is 0.075 percent. A zero rate is valid and leaves the total unchanged. A negative rate is rejected because this capability models added sales tax, not discounts, credits, rebates, or reverse-tax calculations.

Choosing the correct price and tax rate

Use the taxable subtotal as the price input. If a basket contains taxable and exempt products, first total only the items governed by the rate you are applying, or calculate separate groups and combine their results afterward. The calculator does not determine whether an item is taxable and does not look up a rate from a postal code, city, state, province, or country.

Those decisions depend on jurisdiction, product category, seller obligations, and sometimes the buyer, so the correct known rate must come from your own source. Both inputs must be finite numbers. The pre-tax price must be non-negative and no greater than one trillion, while the rate must be between zero and one thousand percent.

These broad bounds prevent accidental or non-finite calculations without imposing currency-specific rules.

Using the result in receipts, budgets, and software

A budgeting tool can store the tax separately to explain why an actual purchase costs more than its advertised pre-tax price. Developers can use the structured response as a reference result when testing a checkout, invoicing system, or spreadsheet import. Calculations are rounded deterministically to at most twelve decimal places, which removes common floating-point noise while retaining more precision than typical currency displays.

Apply any legally required currency rounding or line-item allocation rules in the system responsible for the final invoice, because jurisdictions may prescribe when rounding occurs. No external service, random value, or current date affects the answer.

Check a receipt total

Enter the pre-tax subtotal and printed percentage rate to compare the expected tax amount and final total with a receipt.

Prepare a customer quotation

Add a known sales tax rate to a quoted pre-tax price and show the tax separately from the amount due.

Test checkout calculations

Generate deterministic expected tax and total values for automated tests of carts, billing forms, and invoice workflows.

What formula does the calculator use?

Tax amount equals price multiplied by tax rate divided by 100. Total price equals the pre-tax price plus that tax amount.

Does the calculator find my local tax rate?

No. Supply the known rate that applies to the transaction; the calculator performs arithmetic and does not resolve tax jurisdictions.

How do I enter a sales tax rate like 7.5%?

Type it as a plain percentage: 7.5, not 0.075. Entering 0.075 would mean a rate of 0.075 percent, so the tax would come out far too small.

Can I calculate with a zero tax rate?

Yes. A rate of zero is accepted for exempt purchases and leaves the total equal to the price. Negative rates are rejected, because the calculator only adds tax and does not handle discounts or credits.

How do I handle a basket with taxed and exempt items?

Enter only the subtotal of the items covered by the rate you are applying. If several rates apply, calculate each group separately and add the results together afterwards.

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.

POSThttps://api.kit.forhosting.com/calc2/sales-tax-add

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.

curl -X POST https://api.kit.forhosting.com/calc2/sales-tax-add \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"price":49.99,"tax_rate":8.25}'
{
  "price": 49.99,
  "tax_rate": 8.25
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "calc2.sales_tax_add",
  "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.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

The calculation is deterministic, requires no network lookup, and produces the same structured result in the browser and through the API.

How to calculate a price with sales tax

The response preserves the supplied price and rate and adds clearly named tax_amount and total_price fields, which makes the result easy to display or pass into another deterministic workflow.

Choosing the correct price and tax rate

The tax_rate field uses percentage notation: 5 means five percent, 8.25 means eight and one-quarter percent, and 0 means no tax. Currency symbols and formatted strings are intentionally not accepted; parse values such as “$1,249.00” in your application before submitting the numeric amount 1249.

Using the result in receipts, budgets, and software

The result contains four numeric fields: price, tax_rate, tax_amount, and total_price. A receipt can label price as the taxable subtotal, tax_amount as sales tax, and total_price as the amount due. The API costs $0.002 for each successful request, while invalid input such as a negative tax rate returns an invalid_input error. That makes repeated calls reproducible: identical numeric inputs yield identical JSON, whether the calculation runs through automation or the browser interface.

Should I enter 8.25 or 0.0825 for an 8.25 percent rate?

Enter 8.25. The tax_rate input is expressed as a percentage, not a decimal fraction.

What happens when the tax rate is negative?

The request returns an invalid_input error because this calculator only adds non-negative sales tax.

How much does an API calculation cost?

Each successful API request costs $0.002. The browser version can run the same deterministic calculation locally.

Read the full KIT documentation →