This version applies the tax percentage you type. It does not know the tax rules of any country: check the rate and how it is calculated with official sources or your adviser.
How it is calculated
- Tax
Tax base × tax rate - Total
Tax base + tax - Base from the total
Total ÷ (1 + tax rate)
This calculator handles three common situations. You have a total including tax and want to know the base, you have a base and want to add tax to it, or you have an invoice with several lines and different tax rates and need the breakdown. You can add or remove tax on any amount and see the base, the tax and the total.
The calculator applies the percentage you type, whether you call it VAT, sales tax, GST or something else. It does not know the rates or rules of any country: the initial values are only editable illustrations.
How to use the calculator
There are three modes:
- Add tax: enter the tax base and the tax rate. You get the tax amount and the total.
- Remove tax: enter the total including tax and the rate. You get the base and the tax amount.
- Several lines: for each line, enter the quantity, the unit price before tax, an optional discount and the tax rate. You get a breakdown by rate.
The tax rate is editable. The examples use 10% and 5% as illustrative figures. The rate that applies to each transaction depends on its nature and on the rules of your country, which you can check on your tax authority’s website.
What is the tax base
The tax base is the amount on which tax is calculated. On an invoice it corresponds to the amount of the transaction before tax, once the discounts shown on the invoice have been applied. The tax amount is the result of applying the rate to that base, and the total is the sum of the two.
Formulas
Adding tax to a base
Tax = Base × rate
Removing tax from a total (finding the base)
Base = Total ÷ (1 + rate)
The tax is then calculated as the difference, so that base and tax always add up exactly to the total.
Example 1: adding tax to a base
A base of 1,250.00 and a rate of 10%:
- Tax: 1,250 × 0.10 = 125.00
- Total: 1,375.00
Example 2: finding the base from the total
A total of 605.00 including tax, at a 10% rate:
- Base: 605 ÷ 1.10 = 550.00
- Tax: 605 − 550 = 55.00
Example 3: an invoice with several lines
| Line | Calculation | Discount | Line base | Rate |
|---|---|---|---|---|
| 1 | 3 × 120.00 = 360.00 | 10% | 324.00 | 10% |
| 2 | 1 × 450.00 | — | 450.00 | 10% |
| 3 | 12 × 8.50 = 102.00 | — | 102.00 | 5% |
The calculator groups by rate:
| Rate | Base | Tax |
|---|---|---|
| 5% | 102.00 | 5.10 |
| 10% | 324.00 + 450.00 = 774.00 | 77.40 |
| Total | 876.00 | 82.50 |
Invoice total: 876.00 + 82.50 = 958.50.
How rounding works
The calculator works in the smallest currency unit: it rounds the base and the tax to two decimals (halves are rounded up), so that base + tax always equals the total shown. With several lines, it rounds the base of each line and calculates the tax on the total base of each rate. It shows this criterion on screen.
A case where rounding matters: a total of 100.00 with a 10% tax rate. The base is 100 ÷ 1.10 = 90.9090…, shown as 90.91. The tax is calculated as the difference, 100.00 − 90.91 = 9.09, so 90.91 + 9.09 add up to exactly 100.00.
If you calculate line by line and round each one, a difference of a cent or so can appear compared with the calculation by rate. Apply the same criterion throughout your invoicing.
The discount reduces the base
A discount shown on a line reduces the base on which tax is calculated. On line 1 of example 3:
- Correct calculation: base of 324.00 → tax of 32.40.
- Wrong calculation: tax on 360.00 (before the discount) → 36.00. That is 3.60 too much.
Common mistakes
Subtracting the percentage instead of dividing
With a total of 605, subtracting 10% gives 544.50. That is wrong, because the 10% applies to the base, not to the total. The correct base is 605 ÷ 1.10 = 550. Calculating 10% of the total is also wrong: it gives 60.50, when the real tax is 55.00.
Calculating the tax before the discount
Applying the rate to the undiscounted amount produces more tax than is due (see the previous section).
Mixing tax rates in a single base
If an invoice has lines with different rates, each rate is calculated separately.
Treating tax as income or profit
Tax is added to the price and is not part of the business’s margin or profit. A price of 100 before tax and 110 with tax has a margin that is calculated on 100. To see the effect on a specific price, use the selling price calculator, and for the effect on the margin, the profit margin calculator.
Confusing tax added to a price with tax withheld from a payment
They are different concepts. Tax added to a price is a percentage on top of the base. Where tax is withheld from a payment, that is a separate amount that is handled on its own. This calculator only works with a tax percentage added to a base.
Scope of the tool
The calculator performs arithmetic with the data and rates you enter. It does not decide which tax rate applies to a transaction, it does not apply the rules of any country, and it does not replace professional advice.
Official sources: consult the official information of your country’s tax authority for the applicable rates and the rules on how the tax base is determined. More on how we review the content in Methodology.
Frequently asked questions
What is the tax base?
It is the amount of the transaction before tax is applied, after any discounts that reduce the price.
How do I remove tax from an amount?
Divide the total by 1 plus the tax rate written as a fraction: with 10%, divide by 1.10. The “Remove tax” tab does it for you.
How is rounding handled?
Calculations are done in the smallest currency unit and the tax is rounded to the nearest unit, so base plus tax always adds up to the total.
Does this calculator tell me which tax rate to apply?
No. It applies the rate you type; which rate applies to each transaction depends on your country’s rules and on each case.