Quote & Invoice Total Calculator
Enter the line items, an optional discount and a tax rate to get the subtotal, the tax and the total. The order of the calculation is shown below the result.
The order of the calculation
The total is worked out in this order:
- Line amount = unit price × quantity. Each line is rounded to the cent on its own (the default is round half up).
- Subtotal = the sum of the line amounts.
- Total before tax = subtotal − discount. The discount is taken off before the tax is applied. A discount larger than the subtotal is an error.
- Tax = total before tax × tax rate. It is rounded to the cent once, on the total before tax, not line by line.
- Total = total before tax + tax.
Rounding is done only where a result has to be a whole number of cents: on each line amount and on the tax. The unit price and the quantity are used exactly as you typed them, and nothing else is rounded along the way.
Tax rate: blank, 0% and "No tax"
- Blank: the calculator waits and shows no result. A blank is never treated as 0%.
- 0%: you typed a rate of 0, so the tax is 0.00.
- No tax: the tax is 0.00 and the label says "none".
The tax rate is the same for the whole quote. The calculator does not handle lines with different rates, a discount entered as a percentage, or rules that differ by country.
Example
| Item | Unit price | Quantity | Line amount |
|---|---|---|---|
| Design | 85.00 | 12 | 1,020.00 |
| Printing | 0.33 | 250.5 | 82.665 → 82.67 |
| Hosting | 19.99 | 3 | 59.97 |
- Subtotal = 1,020.00 + 82.67 + 59.97 = 1,162.64
- Discount = 50.00 → total before tax = 1,112.64
- Tax at 8.25% = 1,112.64 × 0.0825 = 91.7928 → 91.79
- Total = 1,112.64 + 91.79 = 1,204.43
Notes
- This is a calculator for amounts, not an invoicing tool. It does not produce an invoice or a quote, and it does not check what a quote or an invoice must contain under the tax and commercial rules of any country. Those rules differ by country and by business. Check them with your tax adviser or the tax authority.
- Amounts are entered to 2 decimal places, up to 9,999,999,999.99. The calculation works in whole cents (or the smallest unit of your currency), and no currency is assumed. The subtotal, the total before tax and the total must each be 9,999,999,999.99 or less.
- The unit price can be up to 9 digits before the decimal point and the quantity up to 9 digits and 6 decimal places.
- A row is calculated only if both its unit price and its quantity are filled in.
- To add tax to one amount, or take it out of a tax-inclusive amount, use the Tax Calculator. To work out a discounted price, see the Discount Calculator. For the profit on several products, see the Multi-Product Profit Calculator.
Frequently asked questions
Why is the tax calculated on the total and not on each line?
Rounding each line's tax and adding them up can give a slightly different total from rounding the tax once. This calculator uses one rounding on the total before tax. If your invoicing rules require another method, follow those rules.
Is the discount taken off before or after tax?
Before. The discount reduces the total before tax, and the tax is then worked out on the reduced amount.
What happens if I leave the tax rate blank?
No result is shown, so that a missing rate is never read as 0%. Enter a rate, or choose "No tax".
Can I enter a discount as a percentage?
Not in this calculator. Work out the amount first, for example with the Percentage Calculator, and enter it as the discount.